AnsweredAssumed Answered

HC12 Need to declare 2 variables at the same address

Question asked by daniel herve on Jan 25, 2007
Latest reply on Jan 25, 2007 by CompilerGuru
Hello,

I work with code warrior hc12 3.1 build 4047

I need to declare 2 variables at the same address
(really need that not an access with pointer )

the first variable:
extern unsigned int _AL;
...
unsigned int _AL = 0;

i try this:

unsigned int BD @ &_AL;
but it doesn't compile => the message "illegal use of global address modifier"

someone have the correct definition ?

Thanks,

Message Edited by CrasyCat on 2007-04-13 10:59 AM

Outcomes