Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* loading data addresses on Alpha
@ 1996-05-02  4:00 Craig Partridge
  1996-05-03  4:00 ` Roger Ivie
  1996-05-07  4:00 ` Greg Lueck Development Environment
  0 siblings, 2 replies; 3+ messages in thread
From: Craig Partridge @ 1996-05-02  4:00 UTC (permalink / raw)



Hi:

I've got a quick (and possibly stupid) question.
    
    How does one load addresses into registers on the Alpha?
    
Having plowed through the manuals and various bits of code, it appears there
are two choices:

    * I can laboriously load 16-bits of the address at a time using
    LDA and LDAH and one shift.  This eats several instructions.
    
    * Various assemblers seem to offer a single instruction macro expansion of
    LDA, that loads a particular address using some offset from (I believe)
    the global pointer (GP).  What I can't puzzle out is how this is done
    and how GP is initialized.
    
I'm trying to puzzle this out since I'm doing some assembly hacking in an
environment which does not use the standard register assignments.

Anyone got some tips?

Thanks!

Craig
craig@bbn.com



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-05-07  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-02  4:00 loading data addresses on Alpha Craig Partridge
1996-05-03  4:00 ` Roger Ivie
1996-05-07  4:00 ` Greg Lueck Development Environment

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox