我把下面的示例.ASM作为项目中的源文件之一,但是我在汇编指令(NOP)上得到了“相位错误”。3个NOP指令被标记为错误:(840)相位错误,什么是相位误差和/或我可以在哪里查找错误解释?-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------预文件,它似乎已经失去了缩进和空格。我不确定A.Primefile应该是什么样子,所以我首先在记事本++中编辑了.ASM文件,以将所有标签隐藏到空格中,但这无济于事。在这次运行中,我改变了NOPS到所有的上限,但这无济于事。这里是预文件:结束
以上来自于百度翻译
以下为原文
I've added the following Example.asm as one of the source files in the project but I'm get
ting "phase error" on the assembly instructions (nop).
PROG CODE ; Set the start of code from 16f84a.lkr scriptmain ; Min code entry called from Example2.asm
global main ; Define as global so can be used in Example2.asm
nop ; Main does nothing -- Put your code here
goto main ; Our sample "main" is just an infinite loopservice ; Interrupt routine, called from Example2.asm
global service ; Define as global so can be used in Example2.asm
nop ; Interrupt code would go here
nop
retfie
endThe 3 nop instructions are tagged as
error: (840) phase error
What is a phase error and/or where can I look up error explanations?
-------------------------------------------------------------------
If I look at the Example.pre file it appears to have lost indenting and spaces. I'm not sure what a .pre file is supposed to look like so at first I edited the .ASM file in Notepad++ to covert all tabs to spaces but that didn't help. In this run I changed the nops to all CAPS but that didn't help. Here is the .pre file:
# 1 "Example.asm"
PROG CODE ; Set the start of code from 16f84a.lkr scriptmain ; Min code entry called from Example2.asm
global main ; Define as global so can be used in Example2.asm
NOP ; Main does nothing -- Put your code here
goto main ; Our sample "main" is just an infinite loopservice ; Interrupt routine, called from Example2.asm
global service ; Define as global so can be used in Example2.asm
NOP ; Interrupt code would go here
NOP
retfie
end