COOT MATRIC

org00h

ljmpmain

org30h

main:

mov dptr,#bangma

hienthi:

mov r4,#60

mov r5,#30

play:

mov r3,#00h

mov r2,#01h

loop:

mov A,r3

movc A,@A+dptr

mov p3,A

mov p0,r2

acall delay

mov p0,#00h

acall delay

INC r3

mov A,r2

rr a

mov r2,A

cjne r3,#8,loop

djnz r5,play

INC dptr

mov r5,#20

djnz r4,play

noptheed:

mov p3,#00h

mov p0,#00h

acall delay

ljmp main

delay:

mov r7,#5

del1:

mov r6,#70

del2:

nop

djnz r6,del2

djnz r7,del1

ret

delay1:

mov r7,#1

djnz r7,$

ret

bangma:

db 0ffh,00h,0deh,0edh,0f3h,0ffh,0ffh,0ffh

db 0ffh,00h,0f7h,0f7h,0f7h,00h,0ffh,0ffh

db 0ffh,00h,7fh,7fh,7fh,00h,0ffh,0ffh

db 0ffh,00h,7eh,7eh,7eh,00h,0ffh,0ffh

db 00h,00h,0fdh,0fbh,0f7h,0efh,9fh,00h

db 0ffh,81h,7fh,7eh,5eh,98h,0dfh,0ffh

end

Bạn đang đọc truyện trên: AzTruyen.Top

Tags: #jidasfio