实验12
assume cs:codecode segment
start:
mov ax,cs
mov ds,ax
mov si,offset d0o
mov ax,0
mov es,ax
mov di,200h
mov cx,offset d0oend-offset d0o
cld
rep movsb
mov ax,0
mov es,ax
mov word ptr es:,200h
mov word ptr es:,0
mov ax,4c00h
int 21h
d0o:
jmp short d0ostart
db "divide errors!"
d0ostart:
mov ax,cs
mov ds,ax
mov si,0202h
mov ax,0b800h
mov es,ax
mov di,13*160+36*2
mov cx,13
s:
mov al,
mov es:,al
mov word ptr es:,2
inc si
add di,2
loop s
mov ax,4c00h
int 21h
d0oend:
nop
code ends
end start
页:
[1]