Kod: Markera allt
movlw offset ;load offset in w reg
call Table
.
.
.
Table:
addwf PCL,F ;add offset to pc to
;generate a computed goto
retlw ’A’ ;return the ASCII char A
retlw ’B’ ;return the ASCII char B
retlw ’C’ ;return the ASCII char C
Kod: Markera allt
movlw offset ;load offset in w reg
call Table
.
.
.
Table:
addwf PCL,F ;add offset to pc to
;generate a computed goto
retlw ’A’ ;return the ASCII char A
retlw ’B’ ;return the ASCII char B
retlw ’C’ ;return the ASCII char C