我无法找出代码有什么问题? 当寄存器si等于我想要移动的字节数时,它会循环该过程并且不会停止(数字。
IDEAL
MODEL small
Stack 100h
DATASEG
number db 3
addressOne db 0
addressTwo db 5
CODESEG
proc move
push bp
mov bp,sp
mov si,0
L1:
mov ax,[word ptr addressOne+si]
mov [word ptr addressTwo+si],ax
inc si
cmp si,[word ptr number]
JB L1
pop bp
ret 6
endp move
start:
mov ax, @data
mov ds, ax
call move
quit:
mov ax, 4C00h
int 21h
End start