Search code examples
assemblymicrocontrollerpicpic18

PIC18F2550 Assembly BRA command


Hi I have an question about the BRA command in the PIC18F2550. The command works according to the datasheet like following:

BRA n
-1024 <= n <= 1023
PC + 2 + 2n -> PC

But what happens when the PC gets an negative value where will it point in the Program memory then?


Solution

  • I find out that the PC Should never get an negative value and if it get that then something is very wrong.