完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
ASTEP EQU 01H
BSTEP EQU 02H CSTEP EQU 04H DSTEP EQU 08H CODE SEGMENT ASSUME CS:CODE START: MOV DX,8003H MOV AL,82H OUT DX,AL; K0:MOV DX,8000H MOV AL,0 OUT DX,AL; MOV DX,8001H IN AL,DX TEST AL,01H JNZ K1 TEST AL,02H JNZ K2 TEST AL,04H JNZ k3 JMP K0 k1:MOV BX,4000H MOV DX,8000H MOV AL,ASTEP OUT DX,AL; CALL DELAY MOV AL,ASTEP+BSTEP OUT DX,AL CALL DELAY MOV AL,BSTEP OUT DX,AL; CALL DELAY MOV AL,BSTEP+CSTEP OUT DX,AL; CALL DELAY MOV AL,CSTEP OUT DX,AL; CALL DELAY MOV AL,CSTEP+DSTEP OUT DX,AL; CALL DELAY MOV AL,DSTEP OUT DX,AL; CALL DELAY MOV AL,DSTEP+ASTEP OUT DX,AL; CALL DELAY k2:MOV BX,2000H MOV DX,8000H MOV AL,ASTEP+BSTEP OUT DX,AL; CALL DELAY MOV AL,BSTEP+CSTEP OUT DX,AL; CALL DELAY MOV AL,CSTEP+DSTEP OUT DX,AL; CALL DELAY MOV AL,DSTEP+ASTEP OUT DX,AL; CALL DELAY JMP K0 k3:MOV BX,1000H MOV DX,8000H MOV AL,DSTEP OUT DX,AL; CALL DELAY MOV AL,CSTEP OUT DX,AL; CALL DELAY MOV AL,BSTEP OUT DX,AL; CALL DELAY MOV AL,ASTEP OUT DX,AL; CALL DELAY JMP K0 DELAY PROC NEAR PUSH CX MOV CX,BX DD1:NOP LOOP DD1 POP CX RET DELAY ENDP CODE ENDS END START |
|
相关推荐
6 个讨论
|
|
初学c,汇编看不懂,路过
|
|
|
|
|
|
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 04:58 , Processed in 0.697215 second(s), Total 49, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号