code :
main5:
mov a,r3
rl a
mov r3,a
mov p1,a
clr p3.3
setb p3.2
setb p3.0
setb p3.1
mov a,b
movc a,@a+DPTR
mov p2,a
inc b
acall delay
cjne r3,#07fh,main5
djnz r0,main1
inc DPTR
mov a,DPL
cjne a,#168,lap
sjmp batdau
delay :
push 04
push 05
push 06
mov r4,#4
n1:mov r5,#4
n2:mov r6,#4
n3:djnz r6,n3
djnz r5,n2
djnz r4,n1
pop 06
pop 05
pop 04
ret
delay2:
mov r4,#4
m1:mov r5,#4
m2:mov r6,#4
m3:djnz r6,m3
djnz r5,m2
djnz r4,m1
ret
org 800h
maled: DB 0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H
DB 0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H
DB 0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H
DB 0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H
DB 0H,0FFH,91H,91H,91H,91H,0H,0H
DB 0H,0FFH,11H,11H,11H,0EH,0H,0H
DB 0H,7FH,80H,80H,80H,7FH,0H,0H
DB 8H,8H,8H,8H,8H,8H,0H,0H
DB 8H,0FFH,89H,81H,81H,7EH,0H,0H
DB 0H,89H,89H,89H,89H,7EH,0H,0H
DB 0H,7EH,81H,81H,81H,81H,0H,0H
DB 0H,78H,84H,84H,84H,7DH,3H,0H
DB 0H,0FFH,81H,81H,81H,7EH,0H,0H
DB 0H,0H,0H,7DH,80H,40H,0H,0H
DB 0H,7AH,0A5H,0A5H,9AH,0H,0H,0H
DB 0H,0F8H,4H,4H,4H,0F8H,0H,0H
DB 0H,1H,1H,0FFH,1H,1H,0H,0H
DB 0H,7CH,80H,80H,80H,7DH,5H,2H
DB 8H,8H,8H,8H,8H,8H,8H,8H
DB 0H,7EH,81H,81H,81H,81H,0H,0H
DB 0H,0FFH,2H,4H,8H,10H,20H,0FFH
DB 0H,7EH,81H,81H,81H,81H,0H,0H
DB 0H,0FFH,8H,14H,22H,41H,80H,0H
end
Comment