交通灯指挥系统的总体设计报告(13)
发布时间:2021-06-08
发布时间:2021-06-08
RET
WORK2 ENDP
WORK3 PROC NEAR MOV SEC,10 push cx mov cl,01 SHOW3:
CALL DELAY1
CALL CLEAR_LED ;清空RAM call show CMP SEC,00
JNZ CONTINUE3 MOV SEC,10 dec cl cmp cl,00 jE over
CONTINUE3: DEC SEC JMP SHOW3 over3: pop cx RET
WORK3 ENDP
show proc near mov al,sec mov ah,0 mov dl,10 div dl
mov bl,ah;将余数(即秒的个位)放在BL中 mov bh,al;将商(即秒的十位)放在BH中 call trans;调用8279显示秒的个位 NOP
mov bl,bh
call trans;调用8279显示秒的十位 NOP ret
show endp
TRANS PROC NEAR ;数码管显示程序
下一篇:皮带机安全检查表