PersonalCorpus 版 (精华区)
DUDIV: CLR A
MOV R7,A
MOV R6,A
MOV R0,#10H
LP: CLR C
MOV A,R4
RLC A
MOV R4,A
MOV A,R5
RLC A
MOV R5,A
MOV A,R6
RLC A
MOV R6,A
MOV A,R7
RLC A
MOV R7,A
LP1: MOV A,R6
SUBB A,R2
MOV R1,A
MOV A,R7
SUBB A,R3
JC SMALL
MOV R7,A
MOV A,R1
MOV R6,A
INC R4
SJMP LP1
SMALL: DJNZ R0,LP
MOV 20H,R7
JB 07H,ADD1
CLR C
MOV A,R6
RLC A
MOV R6,A
MOV A,R7
RLC A
SUBB A,R3
JC RETURN
JNZ ADD1
MOV A,R6
SUBB A,R2
JC RETURN
ADD1: MOV A,R4
ADD A,#01H
MOV R4,A
MOV A,R5
ADDC A,#00H
MOV R5,A
RETURN: RET
;
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.192毫秒