assume cs:code
code segment
start: mov ax,0
mov es,ax
mov di,204h
mov ax,cs
mov ds,ax
mov si,offset xint9
mov cx,offset xint9end-offset xint9
cld
rep movsb
push es:[9*4+2]
push es:[9*4]
pop es:[200h] ;保存中断9的地址
pop es:[202h]
cli
mov word ptr es:[9*4],204h
mov word ptr es:[9*4+2],0
sti
mov ax,4c00h
int 21h
xint9:
push si
push ax
push cx
push es
in al,60h
pushf ;对应CALL中的iret
call dword ptr cs:[200h] ;CS=0
cmp al,9eh
jne s
mov ax,0b800h
mov es,ax
mov cx,2000
mov si,0
s1: mov byte ptr es:[si],'A'
add si,2
loop s1
s: pop es
pop cx
pop ax
pop si
iret
xint9end: nop
code ends
end start
- [zaixuexi] 我以为是a0=0,a1=1,没仔细看 02/12 09:23
- [yang5731] 不对吧 我的结果应该是对的 N=9时 确实得217 你自己算算。你帮我看看论坛 算法上的程序吧 题 02/11 23:49
- [zaixuexi] 递归不是这么写的哦,我想你肯定没调试过自己写的这代码. 先看C代码吧: unsigned int 02/11 22:58
- [游客] <a href="http://www.playren.com/">整人方法</a> 12/15 17:11
- [wisji8] mov ax,0a0h mul dh mov bx,ax mov ax,2 mul 10/03 16:56
- [yang5731] 谢谢了 课程设计一做出来了 确实不能调用着个····· 08/25 02:50
- [mywiil] 课程设计一要用到这个子程序,这里暂不做评论。 赶紧完成课程设计一吧。 08/21 03:33