全文预览

最新电子钟课程设计完整创新版

上传者:叶子黄了 |  格式:doc  |  页数:14 |  大小:0KB

文档介绍
UL?BL ADD?AL,buffer1+6 MOV?hour,AL?;时?JMP?Exit?Exit:?RET SetTime ENDP TimeToBuffer?PROC?NEAR MOV?AL,hour XOR?AH,AH MOV?BL,10 DIV?BL MOV?[SI],AH MOV?[SI+1],AL?;秒?MOV?BYTEPTR[SI+2],10H?;这位不显示?MOV?AL,min XOR?AH,AH DIV?BL MOV?[SI+3],AH MOV?[SI+4],AL ;分?MOV?BYTEPTR[SI+5],10H?;这位不显示?MOV?AL,sec XOR?AH,AH DIV?BL MOV?[SI+6],AH MOV?[SI+7],AL?;时?RET TimeToBuffer?ENDP Display_LED?PROC?NEAR LEA?SI,buffer CALL?TimeToBuffer LEA?SI,buffer CALL?Display8 ;显示?RET Display_LED?ENDP Timer0Int:?PUSH?AX PUSH?DX MOV?bFlash,1 INC?halfsec CMP?halfsec,2 JNZ?Timer0Int1 MOV?bNeedDisplay,1 MOV?halfsec,0 INC?sec CMP?sec,60 JNZTimer0Int1 MOV?sec,0 INC?min CMP?min,60 JNZ?Timer0Int1 MOV?min,0 INC?hour CMP?hour,24 JNZ?Timer0Int1 MOV?hour,0?Timer0Int1:?MOV?DX,IO8259_0 MOV?AL,20H OUT?DX,AL POP?DX POP?AX IRET Init8253?PROC?NEAR

收藏

分享

举报
下载此文档