根据我对数据表中的指令集的理解,这是一个相对的分支(PC)->;(PC)+1+k但是如果我使用BRA0x2it跳转到程序地址2,它似乎不会将其添加到当前PC值中。和GOTO一样。我可以做BRA标签,但是和GOTO标签一样,所以我看不出重点。非常感谢说明:-)BRW似乎工作正常,但我不想用我想跳过的行数加载W。
以上来自于百度翻译
以下为原文
From my understanding of the instruc
tion set from the datasheet, this does a relative branch
(PC) --> (PC)+1+k
But if I use
BRA 0x2
it jumps to program address 2, it doesn't seem to add it to the current PC value.
Which to my mind makes it an absolute not relative jump. And the same as GOTO.
I can do BRA label, but that achieves the same as GOTO label, so I don't see the point.
Clarification would be greatly appreciated :-)
BRW seems to work okay, but I don't want to have to load W with the number of lines I want to jump.