王爽汇编语言实验12 0中断处理程序
assume cs:codecode segment
start: mov ax,cs
mov ds,ax
mov si,offset do0
mov ax,0
mov es,ax
mov di,200h
mov cx,offset do0end-offset do0
cld
rep movsb
;设置0号中断向量
mov ax,0
mov es,ax
mov word ptr es:,200h
mov word ptr es:,0
mov ax,4c00h
int 21h
do0: jmp do0start
db "overflow"
do0start: mov ax,cs
mov ds,ax
mov si,203h
mov ax,0b800h
mov es,ax
mov di,12*160+36*2
mov cx,8
s:mov al,ds:
mov es:,al
mov byte ptr es:,71h
add si,1
add di,2
loop s
mov ax,4c00h
int 21h
do0end: nop
code ends
end start
页:
[1]