MOV A,@R0
JB ACC.7,multiple
CJNE A,#0CH,Jump1000
Jump1000: JC multiple
MOV R2,#75H
MOV R3,#30H
LJMP GetRusl
;===========================================
multiple: MOV R6,#00H
MOV R7,#0AH
LCALL Multi_Routine //@R0@R0+1 * R6R7
MOV R6,#00H
MOV R7,#01H
LCALL Div_routine //@R0@R0+1 /R6R7
GetRusl: MOV A,R2
MOV @R0,A
INC R0
MOV A,R3
MOV @R0,A
RET
------------------------------------------------------------------------------------------------------------------
请教各位高手:这段条件判断有何作用?JB ACC.7,multiple是判断@R0@R0+1是否是负数。就是不明白CJNE A,#0CH,Jump1000 Jump1000: JC multiple
的作用。
MOV A,@R0
JB ACC.7,multiple
CJNE A,#0CH,Jump1000
Jump1000: JC multiple
|