Hi,
I have had to do some inline assembly and needed to use some addresses
and pointer to those etc.
I "stumbled" over some pseudo-opcodes that I can't see are documented
anyplace and that seems to be useful.
I have some example code programed with IAR that uses opcodes like:
LDI R17, Low(hwrd(var)) // Address Bits 16->23 of
OUT RAMPX, R17 // the field in var
LDI XH, High(lwrd(var)) // Address Bits 08->15
LDI XL, Low(lwrd(var)) // Address Bits 00->07
'var' has a 24bit address.
Trying to find something like this for avr-gcc I found (binutils file
gas/config/tc-avr.c):
-hh8
-pm_hh8
-hi8
-pm_hi8
-lo8
-pm-lo8
-hlo8
-hhi8
http://www.nongnu.org/avr-libc/user-manual/assembler.html mentions
lo8, hi8 and pm, but does not document those.
Does any documentation exist or?