L0: MOV B, #10H
L1: CLR C
MOV A, R5
RLC A
MOV R5, A
MOV A, R4
RLC A
MOV R4, A
MOV A, R3
RLC A
MOV R3, A
XCH A, R2
RLC A
XCH A, R2
MOV F0, C
CLR C
SUBB A, R7
MOV 09H, A
MOV A, R2
SUBB A, R6
JB F0, L2
JC L3
L2: MOV R2, A
MOV A, 09H
MOV R3, A
INC R5
L3: DJNZ B, L1
RETI
|