ORG 0000h
LJMP MAIN
ORG 1000h
MAIN:
mov SP,#60h
mov 81h,#50h
mov r0,#20h
mov @r0,#45h
INC r0
mov @r0,#74h
mov r1,#30h
mov @r1,#67h
INC r1
mov @r1,#28h
CLR C
mov r2,#02h
L2: lcall L1
DEC r0
DEC r1
DJNZ r2,L2
CLR a
mov ACC.0,C
NOP
mov @r0,A
L3:SJMP L3
L1: MOV A,@R0
ADDC A,@R1
DA A
MOV @R0,A
RET
END
(LCALL ACALL CALL都试过了,就是不执行调用L1子程序的指令) |