标签:span html ret com bsp pre color style lca
本文为《proteus仿真51流水灯和点阵(心形)》的后续文章,上文链接:https://www.cnblogs.com/xing-2/p/11147890.html
流水灯的原理图同上文
汇编代码如下:
ORG 0000H
MOV R1,#01H
LCALL movbit
delay:
MOV R7,#00H
delayloop:
DJNZ R7,delayloop
DJNZ R6,delayloop
RET
movbit:
MOV A,R1
RL A
MOV R1,A
MOV P1,R1
MOV R6,#0FFH
LCALL delay
LCALL movbit
RET
标签:span html ret com bsp pre color style lca
原文地址:https://www.cnblogs.com/xing-2/p/11800356.html