I'm a beginner using assembler on PIC18 and I try to understand the Branch (BRA) instruction. The Manual says that the parameter used with BRA is ADDED to the Program Counter (PC), but trying this with simple code makes me thing that the parameter overwrites PC instead.
PC = 0xBE
BRA 4h
This should add 4 + 2 to PC but the PC actually jumps to 0x4! Am i interpreting the manual wrong? I thought i would be able to jump forward or backwords relative to the current PC position.
Regards Mats