Exact match. Not showing close matches.
'[PIC]: lookup table pic16c74b'
|I desperately try to move my lookup tables into the second page (page1). I
tried several pieces of code from the piclist source.
The simulation shows that the first jump to the table occurs correctly,
but instead of jumping to the second position, lookup returns directly
although pclath and pcl are set correctly.
Here's the code I'm currently using:
; select the table
movlw high wel_data
movlw low wel_data
clrf pclath ; set pclath
call transmitw ; send w to the serial port
addlw 0 ; check if w == h'00' == end of table
; lookup routine
movf look_hi,w ; set pclath
movf look_lo,w ; get pcl
incf look_lo,f ; post increment
movwf pcl ; jump now
; end lookup routin
org 0x800 (somewhere in page1)
dt "bla, bla, bla,...", h'0d', h'0a'
dt "bla, bla, bla,...", h'0d', h'0a', h'00'
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
More... (looser matching)
- Last day of these posts
- In 2002
, 2003 only
- New search...