Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: craigp@world.std.com (Craig Partridge)
Subject: loading data addresses on Alpha
Date: 1996/05/02	[thread overview]
Message-ID: <Dqs8D7.7A3@world.std.com> (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



             reply	other threads:[~1996-05-02  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-02  4:00 Craig Partridge [this message]
1996-05-03  4:00 ` loading data addresses on Alpha Roger Ivie
1996-05-07  4:00 ` Greg Lueck Development Environment
read-only archive

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