gnupic: Re: [gnupic] Relocatable code and EXTERN


Previous by date: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Potential PIC project ?, Rick Altherr
Next by date: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Potential PIC project ?, Peter
Previous in thread: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Relocatable code and EXTERN, Scott Dattalo
Next in thread: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Relocatable code and EXTERN, John De Villiers

Subject: Re: [gnupic] Relocatable code and EXTERN
From: Iain Dooley ####@####.####
Date: 1 Jan 2006 22:37:29 +0000
Message-Id: <Pine.BSF.4.63.0601020935320.66699@marlin.powerband.net.au>


On Sun, 1 Jan 2006, John De Villiers wrote:

> It seems not. Any ideas how to do it?
>
> In the code that i have i want to add a literal to a value in a routine
> that will become part of a library. I dont want to have to change the
> library for every project, nor make copies of it all the time. The
> literal contains the amount of defined strings ( screen.asm in the lcd
> samples of gpsim - WS_TABLE_MASK)
>
> I presume im going to have to use an initialised variable for it ?

does your library have an include file that defines all the externs and 
things? just put your EQU in an include file. so if your library was 
called mylib.lib, then you might have mylib.h which has NUM_STRINGS EQU 
WS_TABLE_MASK in it.

iain

> On Sun, 2006-01-01 at 23:24, John De Villiers wrote:
>> Is it possible to declare and EQU as external ?
>>
>> I want to have the var EQU value defined in another file. It should then
>> only get resolved at link time. Is this possible ?
>>
>>
>> John
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ####@####.####
>> For additional commands, e-mail: ####@####.####
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>


Previous by date: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Potential PIC project ?, Rick Altherr
Next by date: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Potential PIC project ?, Peter
Previous in thread: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Relocatable code and EXTERN, Scott Dattalo
Next in thread: 1 Jan 2006 22:37:29 +0000 Re: [gnupic] Relocatable code and EXTERN, John De Villiers


Powered by ezmlm-browse 0.20.