Hi, on PIC18 it is possible to use BRA, but which command is relative to BRA on PIC16? Was it GOTO?
For example I would like to use a BRA SENSOR, but on the PIC16.
GOTO will work if you know the destination address but the only branching on 8-bit devices is forwards or backwards 127 addresses by loading the offset into W and adding it to the program counter. Be aware that you may create an overflow/underflow of the high register of PC if your branch crosses a page boundary.
PIC18 are far more advanced devices than PIC16, particularly when it comes to addressing.
GOTO will work if you know the destination address but the only branching on 8-bit devices is forwards or backwards 127 addresses by loading the offset into W and adding it to the program counter. Be aware that you may create an overflow/underflow of the high register of PC if your branch crosses a page boundary.
PIC18 are far more advanced devices than PIC16, particularly when it comes to addressing.
GOTO will work if you know the destination address but the only branching on 8-bit devices is forwards or backwards 127 addresses by loading the offset into W and adding it to the program counter. Be aware that you may create an overflow/underflow of the high register of PC if your branch crosses a page boundary.
PIC18 are far more advanced devices than PIC16, particularly when it comes to addressing.