I'd like to assemble a 24-bit integer in avr-as as if it was generated from C code like
const __pgmx char c = 1; const __pgmx char *pc = &c;
and the assumption that __pgmx generates 24-bit addresses.
If pc just holds the lower 16 bits of c's location then the code is
.global pc .data .type pc, @object .size pc, 2 pc: .word c
Now the question is how to write down the complete 24-bit address?
.global pc .data .type pc, @object .size pc, 3 pc: .word c .byte hlo8(c) ??? error from as
same error for hh8(c)
Can anyone enlight me?