Searching \ for '[PIC]: lookup table pic16c74b' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/memory.htm?key=table
Search entire site for: 'lookup table pic16c74b'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: lookup table pic16c74b'
2002\08\08@034109 by Robert Berkes

flavicon
face
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
       movwf   look_hi
       movlw   low wel_data
       movwf   look_lo

welcome
       call    lookup

       clrf    pclath          ; set pclath
       call    transmitw       ; send w to the serial port
       addlw   0               ; check if w == h'00' == end of table
       btfss   status,z
       goto    welcome

; lookup routine
lookup
       movf    look_hi,w       ; set pclath
       movwf   pclath
       movf    look_lo,w       ; get pcl
       incf    look_lo,f       ; post increment
       skpnz
       incf    look_hi,f
       movwf   pcl             ; jump now
; end lookup routin

       org     0x800   (somewhere in page1)
wel_data
       dt "bla, bla, bla,...", h'0d', h'0a'
       dt "bla, bla, bla,...", h'0d', h'0a', h'00'


Thanks ,

Robert

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...