;这段代码哪里有错,总是到
cli
mov word ptr es:[9*4],0204h
mov word ptr es:[9*4+2],0 =========================== 这里就报错????
======================================================================================
assume cs:code
stack segment
db 128 dup(0)
stack ends
code segment
start: mov ax,stack
mov ss,ax
mov sp,128
mov ax,cs ;push cs 相同
mov ds,ax ;pop ds 相同
mov ax,0
mov es,ax
mov si,offset int9
mov di,0204h
mov cx,offset send-offset int9
cld
rep movsb
push es:[9h*4]
pop es:[0200h]
push es:[9h*4+2]
pop ds:[0202h]
cli
mov word ptr es:[9*4],0204h
mov word ptr es:[9*4+2],0 =========================== 这里就报错????
sti
mov ax,4c00h
int 21h
;中断例程
int9: push ax
push bx
push es
push cx
in al,60h
pushf
call dword ptr es:[0200h]
cmp al,3bh
jne int9ret
mov ax,0b800h
mov es,ax
mov bx,1
mov cx,2000
sl: inc byte ptr es:[bx]
add bx,2
loop sl
int9ret:pop cx
pop es
pop bx
pop ax
iret
send: nop
code ends
end start |