- [msc] assume cs:codesg,ds:data,es:table data seg 01/12 17:07
- [mouse] 答案见附注3 汇编编译器对jmp指令的相关处理 12/01 16:54
- [lghstock] 4是退出,0~3是功能4不涉及中断! 08/15 19:32
- [lghstock] 你的中断例,参考以下我的,看看是不是程序的入口和标号的默认问题!! 08/15 19:31
- [lghstock] 正在完成17的任务 08/15 19:29
- [lghstock] 你的中断出问题了,我第一次调也是! 08/15 19:27
- [游客] dingyixia 08/14 22:53
- [app] 程序有些问题,当第一次运行时,只有4可以运行,之后再运行,无法输入数字选项。 08/14 22:53
- [app] 快学完了,坚持到底! 08/14 22:46
- [tomato] 不错! 08/10 20:58
[2008-08-13 23:22] 实验16编译中出现的问题:中断例程安装后,jmp set 指令后面怎么多出一个nop指令?请老师或高手指点!!!!!
;--------int-7ch中断例程---------
setscreen:jmp set
table dw offset sub1-offset setscreen+200h,offset sub2-offset setscreen+200h,offset sub3-offset setscreen+200h,offset sub4-offset setscreen+200h
set:push bx
cmp ah,3
ja sret
mov bl,ah
mov bh,0
add bx,bx
call word ptr [bx+202h]
sret:pop bx
iret
setscreen:jmp set
table dw offset sub1-offset setscreen+200h,offset sub2-offset setscreen+200h,offset sub3-offset setscreen+200h,offset sub4-offset setscreen+200h
set:push bx
cmp ah,3
ja sret
mov bl,ah
mov bh,0
add bx,bx
call word ptr [bx+202h]
sret:pop bx
iret
评论次数(1) |
浏览次数(474) |
类型(请教老师、高手) |
收藏此文 |