;;; example use of TABLRD ; ; by Terry Sturtevant ; November 10, 2017 ; ; initialize TBLPTR registers movlw upper stuff ;get upper (partial) byte movwf TBLPTRU,A ;put in TBLPTR upper register movlw high stuff ;get high byte movwf TBLPTRH,A ;put in TBLPTR high register movlw lower stuff ;get lower byte movwf TBLPTRL,A ;put in TBLPTR lower register tablrd*+ ;read byte into TABLAT and increment pointer movf TABLAT,W ;get byte in WREG ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; omitted code ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; stuff db 0x00, 0x01, 0x03 end