gnupic: Help needed


Previous by date: 13 Sep 2004 16:45:23 +0100 Re: .COD file problems with MPLAB, Scott Dattalo
Next by date: 13 Sep 2004 16:45:23 +0100 Re: Help needed, Greg Hill
Previous in thread:
Next in thread: 13 Sep 2004 16:45:23 +0100 Re: Help needed, Greg Hill

Subject: Help needed
From: Julian Green ####@####.####
Date: 13 Sep 2004 16:45:23 +0100
Message-Id: <20040913164545.W57383-100000@pschulz.lon.yahoo.com>

Im doing a project with the PIC16F871, and I am using a number of lookup
tables that uses computed goto.  Is there a way of getting the linker to
chose an address for the table that does not cross page boundaries?

e.g.

CRC16_Lookup:
    global  CRC16_Lookup

    movwf   temp

    movlw   High($)
    movwf   PCLATH

    movfw   temp
    ANDLW   0x1F
    ADDWF   PCL, F

    RETLW   0x00		; LOW Byte Data
    RETLW   0x21
    RETLW   0x42
    RETLW   0x63
    RETLW   0x84
    RETLW   0xA5
    RETLW   0xC6
    RETLW   0xE7
    RETLW   0x08
    RETLW   0x29
    RETLW   0x4A
    RETLW   0x6B
    RETLW   0x8C
    RETLW   0xAD
    RETLW   0xCE
    RETLW   0xEF
    RETLW   0x00		; HIGH Byte DATA
    RETLW   0x10
    RETLW   0x20
    RETLW   0x30
    RETLW   0x40
    RETLW   0x50
    RETLW   0x60
    RETLW   0x70
    RETLW   0x81
    RETLW   0x91
    RETLW   0xA1
    RETLW   0xB1
    RETLW   0xC1
    RETLW   0xD1
    RETLW   0xE1
    RETLW   0xF1

Many thanks

Julian


Previous by date: 13 Sep 2004 16:45:23 +0100 Re: .COD file problems with MPLAB, Scott Dattalo
Next by date: 13 Sep 2004 16:45:23 +0100 Re: Help needed, Greg Hill
Previous in thread:
Next in thread: 13 Sep 2004 16:45:23 +0100 Re: Help needed, Greg Hill


Powered by ezmlm-browse 0.20.