如何让点阵显示1-9循环飘出?我就是不会让它飘
org 0000hswwc:mov r5,#10
mov 20h,#00
swwb:mov r4,#100
swwa:lcall main
djnz r4,swwa
mov a,20h
add a,#08
mov 20h,a
djnz r5,swwb
ajmp swwc 这是主程序,控制循环次数,下面的是每次循环显示的内容
ret
main:mov r1,20h
mov r3,#08h
mov r2,#0feh
gn1:mov p2,#0ffh
mov dptr,#tab
mov a,r1
movc a,@a+dptr
mov p0,a
inc r1
mov a,r2
mov p2,a
lcall delay
rl a
mov r2,a
djnz r3,gn1
ret
delay:push 04h
push 05h
mov r4,#14h
loop:mov r5,#18h
djnz r5,$
djnz r4,loop
pop 05h
pop 04h
ret
TAB: DB 00H,3CH,42H,81H,81H,42H,3CH,00H
DB 00h,00h,00h,21h,7fh,01h,00h,00h
DB 00H,00h,27h,45h,45h,45h,39h,00h
DB 00h,00h,22h,49h,49h,49h,36h,00h
DB 00H,04h,0ch,14h,24h,7fh,04h,00h
DB 00h,00h,72h,51h,51h,51h,4eh,00h
DB 00H,00h,3eh,49h,49h,49h,26h,00h
DB 00H,00h,40h,40h,40h,4fh,70h,00h
DB 00H,00h,36h,49h,49h,49h,36h,00h
DB 00H,00h,32h,49h,49h,49h,3eh,00h
end
我就是不知道怎么在主程序里加一些东西,让他能用点阵显示器轮流滚动显示数字0-9,而且所有数字采用渐渐移出显示器方式
谢谢大神,跪求大神了, 学知识不容易啊