一段简单汇编代码的问题

来源:百度知道 编辑:UC知道 时间:2024/05/07 08:48:12
assume cs:codesg,ds:datasg

datasg segment

db 'welcome to masm!'
db 16 dup (0)

datasg ends

codesg segment

start: mov ax,datasg
mov ds,ax
mov bx,0
mov si,0
mov cx,16
mov ax,0B800H
mov ss,ax

mov ss:[si],[bx]

mov ax,4c00H
int 21H

codesg ends

end start

出现了问题,好像是什么操作类型的东东,有谁知道吗?
这段代码是我自己编的,还没有完整,要求是在屏幕上显示“welcome to masm!”,提示说是只要把welcome to masm!送到内存单元地址为B8000H就可以显示了,可过程该怎么写?

mov ss:[si],[bx]
这句错了
INTEL汇编指令里面不允许同时有两个内存操作数。
mov cx,N (显示个数)
mov si,addrstr
mov di,0
设置好DS,FS
rep
movsw
大概过程就这样