BHD2: MOV R6,#10H BHD3: MOV A,R5 ADD A,R5 DA A MOV R5,A MOV A,R4 ADDC A,R4 DA A MOV R4,A MOV A,R3 RLC A MOV R3,A MOV A,R2 RLC A MOV R2,A DJNZ R6,BHD3 MOV A,R4 ADD A,#0B0H JNC BHD4 INC R3 MOV A,R3 JNZ BHD4 INC R2 BHD4: RET