好文档 - 专业文书写作范文服务资料分享网站

微机原理课程设计——电子时钟课程设计

天下 分享 时间: 加入收藏 我要投稿 点赞

CALL DISP POP SI POP DI POP BX POP AX IRET

FULL SFM PROC NEAR LEA DI,DISBUF LEA BX,LED LEA SI,SECOND MOV CX,3 AA4:

MOV AL,[SI] AND AL,0FH XLAT

MOV [DI],AL INC DI

MOV AL,[SI] PUSH CX MOV CL,4 SHR AL,CL AND AL,0FH XLAT MOV [DI],AL INC DI POP CX INC SI LOOP AA4 RET

FULL SFM ENDP

FULL SHI PROC NEAR LEA SI,DISBUF MOV AL,0 MOV CX,4 CCC0: MOV [SI],AL INC SI

LOOP CCC0

LEA BX,LED

MOV AL,HOUR AND AL,0FH XLAT

MOV [SI],AL XLAT

MOV [SI],AL MOV AL,HOUR MOV CL,4 SHR AL,CL AND AL,0FH XLAT

INC SI

MOV [SI],AL RET

FULL SHI ENDP

FULL FEN PROC NEAR LEA SI,DISBUF MOV AL,0 MOV [SI],AL INC SI

MOV [SI],AL INC SI

LEA BX,LED

MOV AL,MINUTE AND AL,0FH XLAT

MOV [SI],AL MOV AL,MINUTE MOV CL,4 SHR AL,CL

AND AL,0FH XLAT INC SI

MOV [SI],AL RET

FULL FEN ENDP

FULL MIAO PROC NEAR LEA SI,DISBUF LEA BX,LED

MOV AL,SECOND AND AL,0FH XLAT

MOV [SI],AL MOV AL,SECOND MOV CL,4 SHR AL,CL AND AL,0FH XLAT INC SI

MOV [SI],AL MOV AL,0 INC SI

MOV [SI],AL INC SI

MOV [SI],AL INC SI

MOV [SI],AL INC SI

MOV [SI],AL RET

FULL MIAO ENDP DISP PROC NEAR MOV CX,8

MOV DX,D8279 LEA SI,DISBUF DISI

MOV AL,[SI] OUT DX,AL INC SI LOOP DISI RET CODE ENDS

END START

微机原理课程设计——电子时钟课程设计

CALLDISPPOPSIPOPDIPOPBXPOPAXIRETFULLSFMPROCNEARLEADI,DISBUFLEABX,LEDLEASI,SECOND
推荐度:
点击下载文档文档为doc格式
96oa41fjlz92i2p9mey92mdyx423a401ce3
领取福利

微信扫码领取福利

微信扫码分享