單片機(jī)十字旋轉(zhuǎn)LED程序
MAIN:
MM:
mov c,acc.0
mov b.7,c
mov c,acc.1
mov b.6,c
mov c,acc.2
mov b.5,c
mov c,acc.3
mov b.4,c
mov c,acc.4
mov b.3,c
mov c,acc.5
mov b.2,c
mov c,acc.6
mov b.1,c
mov c,acc.7
mov b.0,c
mov a,b
ret
TAB:
db 08h,20h,06h,20h,80h,7eh,63h,80h
db 0ch,04h,00h,04h,20h,04h,20h,04h
db 20h,04h,3fh,0fch,20h,04h,20h,04h
db 20h,04h,20h,04h,00h,04h,00h,00h
db 20h,00h,20h,02h,22h,32h,22h,0e4h
db 22h,08h,0fah,30h,22h,0e0h,2fh,80h
db 22h,04h,0fah,02h,22h,02h,23h,0fch
db 20h,00h,20h,40h,20h,30h,00h,00h
db 20h,00h,20h,00h,27h,0feh,24h,20h
db 24h,0a0h,26h,0a0h,2dh,0a0h,0f4h,0feh
db 24h,0a0h,25h,0a0h,26h,0a0h,24h,0a4h
db 24h,22h,67h,0fch,20h,00h,00h,00h
db 00h,00h,20h,04h,20h,08h,27h,98h
db 24h,0b0h,24h,82h,0a4h,81h,64h,0feh
db 24h,80h,24h,80h,24h,0a0h,27h,0b0h
db 60h,1ch,20h,08h,00h,00h,00h,00h
評(píng)論