下面的是代码,为什么出来的没W,而且b870里面的东西也不是我写进去的呢?
assume cs:code,ds:data
data segment
db 'welcome to masm!'
data ends
code segment
start:mov ax,data
mov ds,ax
mov ax,0b870h
mov es,ax
mov di,0
mov si,0
mov cx,10h
s: mov al,ds:[di]
mov es:[si],al
mov ax,02h
mov es:[si+1],al
add di,1
add si,2
loop s
mov ax,4c00h
int 21h
code ends
end start |