org 0000h
MOV P0,#0FFH
MOV P3,#0FFH
mov p1,#0FFH
mov p2,#0FFH
clr p2.4
clr p2.5
clr p2.6
clr p2.7
main:
jnb p1.0,bat1
jnb p3.2,tat1
jnb p1.1,bat2
jnb p3.3,tat2
jnb p1.2,bat3
jnb p3.4,tat3
jnb p1.3,bat4
jnb p3.5,tat4
jnb p1.4,bat5
jnb p3.6,tat5
jnb p1.5,bat6
jnb p3.7,tat6
jnb p1.6,bat7
jnb p2.0,tat7
jnb p1.7,bat8
jnb p2.1,tat8
jnb p3.0,bat9
jnb p2.2,tat9
jnb p3.1,bat10
jnb p2.3,tat10
ljmp main
bat1:
clr p0.0
ljmp main
tat1:
setb p0.0
ljmp main
bat2:
clr p0.1
ljmp main
tat2:
setb p0.1
ljmp main
bat3:
clr p0.2
ljmp main
tat3:
setb p0.2
ljmp main
bat4:
clr p0.3
ljmp main
tat4:
setb p0.3
ljmp main
bat5:
clr p0.4
ljmp main
tat5:
setb p0.4
ljmp main
bat6:
clr p0.5
ljmp main
tat6:
setb p0.5
ljmp main
bat7:
clr p0.6
ljmp main
tat7:
setb p0.6
ljmp main
bat8:
clr p0.7
ljmp main
tat8:
setb p0.7
ljmp main
bat9:
setb p2.7
ljmp main
tat9:
clr p2.7
ljmp main
bat10:
setb p2.6
ljmp main
tat10:
clr p2.6
ljmp main
end
MOV P0,#0FFH
MOV P3,#0FFH
mov p1,#0FFH
mov p2,#0FFH
clr p2.4
clr p2.5
clr p2.6
clr p2.7
main:
jnb p1.0,bat1
jnb p3.2,tat1
jnb p1.1,bat2
jnb p3.3,tat2
jnb p1.2,bat3
jnb p3.4,tat3
jnb p1.3,bat4
jnb p3.5,tat4
jnb p1.4,bat5
jnb p3.6,tat5
jnb p1.5,bat6
jnb p3.7,tat6
jnb p1.6,bat7
jnb p2.0,tat7
jnb p1.7,bat8
jnb p2.1,tat8
jnb p3.0,bat9
jnb p2.2,tat9
jnb p3.1,bat10
jnb p2.3,tat10
ljmp main
bat1:
clr p0.0
ljmp main
tat1:
setb p0.0
ljmp main
bat2:
clr p0.1
ljmp main
tat2:
setb p0.1
ljmp main
bat3:
clr p0.2
ljmp main
tat3:
setb p0.2
ljmp main
bat4:
clr p0.3
ljmp main
tat4:
setb p0.3
ljmp main
bat5:
clr p0.4
ljmp main
tat5:
setb p0.4
ljmp main
bat6:
clr p0.5
ljmp main
tat6:
setb p0.5
ljmp main
bat7:
clr p0.6
ljmp main
tat7:
setb p0.6
ljmp main
bat8:
clr p0.7
ljmp main
tat8:
setb p0.7
ljmp main
bat9:
setb p2.7
ljmp main
tat9:
clr p2.7
ljmp main
bat10:
setb p2.6
ljmp main
tat10:
clr p2.6
ljmp main
end