From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b21ae2574b9acb6b,start X-Google-Attributes: gid1164f8,public From: craigp@world.std.com (Craig Partridge) Subject: loading data addresses on Alpha Date: 1996/05/02 Message-ID: #1/1 X-Deja-AN: 152595645 organization: The World @ Software Tool & Die newsgroups: comp.sys.dec 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