ORG 0000h
LJMP L0030
ORG 000Bh
LJMP L07F2 ;(Timer0 INT)
ORG 001Bh
LJMP L07C2 ;(Timer1 INT)
L0030: MOV P3,#0FEh
MOV A,#38h
LCALL L0837
MOV A,#0Ch
LCALL L0837
MOV A,#01h
LCALL L0837
CLR P0.6
LCALL L077D
SETB P0.6
MOV R0,#0FFh
L004B: MOV @R0,#00h ;clear 256 bytes IRAM
DJNZ R0,L004B
MOV P1,#0FFh
MOV P3,#0FFh
MOV P0,#0FFh
MOV SP,#2Fh
SETB P3.7
SETB P3.6
MOV DPTR,#L0040
MOV R0,#50h
LCALL L08CF
MOV IE,#8Ah ;enable timer interrupts
MOV TH0,#3Ch
MOV TL0,#0B0h ;load timer 0 for 50 ms
MOV TH1,#3Ch
MOV TL1,#0B0h ;load timer 1 for 50 ms
MOV TMOD,#11h ;set 16 bit timer
CLR P2.3
MOV DPTR,#L0A04
LCALL L0700