标题:[求助]8259中断问题
取消只看楼主
sandho
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-11-27
 问题点数:0 回复次数:1 
[求助]8259中断问题

;*******************************;
;* 中断实验 *;
;*******************************;

data segment
mess db 'TPCA interrupt!',0dh,0ah,'$'
data ends
code segment
assume cs:code,ds:data
start:
mov ax,cs
mov ds,ax
mov dx,offset int3
mov ax,250bh
int 21h

in al,21h
and al,0f7h
out 21h,al
mov cx,10
sti
ll: jmp ll
int3:
mov ax,data
mov ds,ax
mov dx,offset mess
mov ah,09
int 21h
mov al,20h
out 20h,al
loop next
in al,21h
or al,08h
out 21h,al
sti
mov ah,4ch
int 21h
next: iret
code ends
end start
这个程序我不太明白,究竟是怎么样运行的?那个ll: jmp ll岂不是一个死循环?

搜索更多相关主题的帖子: mov data segment jmp 
2007-01-09 15:52
sandho
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-11-27
得分:0 
测试?测试什么呢?
2007-01-10 00:03



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-115073-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.109716 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved