|
我是刚学的,请高手帮帮忙,
以下是我的程序:
ORG 0000H
AJMP 0030H
ORG 0030H
ADR1 EQU #0A0H
ADR2 EQU #0B0H
L EQU #004H
MOV 0A0H, #66H
MOV 0A1H, #77H
MOV 0A2H, #88H
MOV 0A3H, #99H
MOV 0B0H, #10H
MOV 0B1H, #20H
MOV 0B2H, #30H
MOV 0B3H, #40H
MOV R3, #L
MOV R1, #ADR1
MOV R2, #ADR2
LOOP: MOV A, @R1
SUBB A, @R2
MOV @R1, A
INC R1
INC R2
DJNZ R3,LOOP
END
编译时出现如下错误:
实验?A51(15): error A45: UNDEFINED SYMBOL (PASS-2)
实验?A51(16): error A45: UNDEFINED SYMBOL (PASS-2)
实验?A51(17): error A45: UNDEFINED SYMBOL (PASS-2)
实验?A51(19): error A4: BAD INDIRECT REGISTER
实验?A51(19): error A9: SYNTAX ERROR
Target not created
双击错误弹出窗口如下提示:
contains an invalid path
|
|