[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
indirect addressing question
From: Steven Michalske ####@####.#### Date: 6 Mar 2004 00:30:41 -0000 Message-Id: <200403051857.28176.michalsc@email.uc.edu> 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 thanks folks Steve | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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: ####@####.#### > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |