王爽汇编第十五章实验,求问我的代码哪里有问题?
assume cs:code,ss:stackstack segment para stack 'stack'
db 128 dup (0)
stack ends
code segment
start:
mov ax,stack
mov ss,ax
mov sp,128
mov ax,0
mov es,ax
push cs
pop ds
mov si,offset int9
mov di,204h
mov cx,offset int9_end - offset int9
cld
rep movsb
push es:
pop es:
push es:
pop es:
cli
mov word ptr es:,204h
mov word ptr es:,0
sti
; mov cx,120
;lp: mov ah,0
; int 16h
; loop lp
mov ax,4c00h
int 21h
int9:
push ds
push si
push ax
push cx
in al,60h
pushf
call dword ptr cs:
cmp al,9eh
jne int9_ok
mov ax,08b00h
mov ds,ax
mov si,0
mov cx,2000
mov al,'A'
int9_s:
mov ds:,al
add si,2
loop int9_s
int9_ok:
pop cx
pop ax
pop si
pop ds
iret
int9_end: nop
code ends
end start
真是难得给力的帖子啊。 a420478805 发表于 2013-4-8 17:39 static/image/common/back.gif
真是难得给力的帖子啊。
哥~我哭了~:'( 哈哈哈哈,帮顶,还没看汇编 楼主给2楼的回复戳中了我的笑点 我去了,知道了,0b800h写成08b00h了。哭了……这都可以,干看也没看出来,因为是中断也没法debug查看~这么弱智的问题……
页:
[1]