Mike - K8LH
Well-Known Member
Has anyone come up with a macro that could test a table to see if it straddles a 256-byte boundary and then insert the 'short' or 'long' code as necessary?
Code:
;
addwf PCL,W ;
;
tbl
Code:
;
movwf Temp ; save index
movlw high (tbl) ;
movwf PCLATH ;
movf Temp,W ;
addlw low (tbl) ;
skpnc ;
incf PCLATH,F ;
movwf PCL ;
;
tbl