gnupic: indirect addressing question
Subject:
Re: indirect addressing question
From:
Steven Michalske ####@####.####
Date:
6 Mar 2004 03:15:13 -0000
Message-Id: <200403052142.02162.hardkrash@kc8apf.net>
Craig,
Thanks for the pointer in the right direction, sorry couldn't resist
I'm using the 16f676, and its turning out to be a nice package :-)
btw Is there an irc channel with pic devlopers and such?
Steve
On Friday 05 March 2004 9:19 pm, Craig Franklin wrote:
> 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: ####@####.####
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####