Originally Posted by The Altruist
You can use the CHK?RP macro to locate the bank for any variable.Code:MyWord VAR WORD BANK0 ASM movf _MyWord,w ; this gets the LowByte movwf PORTB movf _MyWord + 1,w ; this gets the HighByte movwf PORTC ENDASM
But if you're accessing arrays, it's probably better to use an FSR/INDF.
<br>
Bookmarks