标题:哪位大侠给解释下,谢谢,只要个大概解释就行,我绞尽脑汁也向不出来啊
只看楼主
jsjdezqh
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-6-26
 问题点数:0 回复次数:0 
哪位大侠给解释下,谢谢,只要个大概解释就行,我绞尽脑汁也向不出来啊
主程序
0000:2008:  IN   AL,21
     AND AL,FE
     OUT 21,AL
MOV AX,21F3
MOV W[ 0020],AX
MOV AX,00
MOV W[0022].AX
MOV AL,82
OUT 63,AL
MOV AL,34
OUT 43,AL
MOV AL,7C
OUT 40,AL
MOV AL,2E
OUT 40,AL
MOV B[3600],00
MOV B[3601],00
MOV B[3602],00
MOV B[3603],00
MOV B[3604],3A
MOV B[3605],7F
0000:2048:   STI
MOV AL,B[3603]
CALL 2300
MOV AL,B[3604]
MOV AH,01
INT 10
MOV AL,B[3602]
CALL 2300
MOV AH,01
INT 10
MOV AL,B[3602]
CALL 2300
MOV AH,01
MOV AL,B[3604]
INT 10
MOV AL,B[3601]
CALL 2300
MOV AL,0D
MOV AH,01
INT 10
NOP
NOP
CALL 3000
MOV AH,00
MOV AL,B[3601]
MOV B,05
DIV BL
CMP AH,00
JNZ 2048
MOV AL,B[3605]
ROL AL,1
OUT 60,AL
MOV B[3605],AL
CALL 3000
JMP 2048
中断计时程序
0000:21F3  CLI
PUSH AX
MOV AL,34
OUT 43,AL
MOV AL,7C
OUT 40,AL
MOV AL,2E
OUT 40,AL
MOV AL,B[3600]
INC AL
CMP AL,64
JNZ 224F
MOV B[3600],00
MOV AL,B[3601]
INC AL
CMP AL,3C
JNZ 2240
MOV B[3601],00
MOV AL,B[3602]
INC AL
CMP AL,3C
JNZ 2245
MOV B[3602],00
MOV AL,B[3603]
INC AL
CMP AL,18
JNZ 224A
MOV B[3603],00
STI
POP AX
MOV AL,20
OUT 20,AL
IRET
MOV B[3600],AL
JMP 2239
MOV B[3602].A;
JMP 2239
MOV B[3603],AL
JMP 2239

显示程序
0000:2300   MOV AH,00
MOV BL,OA
DIV BL
MOV BL,AH
ADD AL,30
MOV AH,01
INT 10
MOV AL,BL
ADD AL,30
INT 10
RET
延时程序
0000:3000   PUSH AX
MOV CX,0064
MOC AX,0064
DEC AX
JNZ 3007
LOOP 3004
POP AX
RET
搜索更多相关主题的帖子: MOV 绞尽脑汁 OUT INT 
2008-06-26 10:47



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




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

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