gnupic: indirect addressing question


Previous by date: 6 Mar 2004 02:52:11 -0000 indirect addressing question, Steven Michalske
Next by date: 6 Mar 2004 02:52:11 -0000 Re: indirect addressing question, Steven Michalske
Previous in thread: 6 Mar 2004 02:52:11 -0000 indirect addressing question, Steven Michalske
Next in thread: 6 Mar 2004 02:52:11 -0000 Re: indirect addressing question, Steven Michalske

Subject: Re: indirect addressing question
From: Craig Franklin ####@####.####
Date: 6 Mar 2004 02:52:11 -0000
Message-Id: <1078539561.1457.14.camel@r2d2>

On Fri, 2004-03-05 at 17:57, Steven Michalske wrote:
> first off id like to say great work folks
> 
> 
> I am writing relocatable objects and I would like to get the address of an 
> symbol to put into FSR
> 
> what is the assembly syntax to do this
> 
> a c line of code would be
> 
> FSR = *othervar
> 
> 

What processor family are you using?  Need to know that before the
question can be answered.

In general, the address of a symbol is loaded into w with

movlw [UPPER|HIGH|LOW]<symbol_name>

The assembler will generate a relocation and the linker will patch the
code with the final address.

> thanks folks
> 
> Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 


Previous by date: 6 Mar 2004 02:52:11 -0000 indirect addressing question, Steven Michalske
Next by date: 6 Mar 2004 02:52:11 -0000 Re: indirect addressing question, Steven Michalske
Previous in thread: 6 Mar 2004 02:52:11 -0000 indirect addressing question, Steven Michalske
Next in thread: 6 Mar 2004 02:52:11 -0000 Re: indirect addressing question, Steven Michalske


Powered by ezmlm-browse 0.20.