avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] hi8, lo8, hh8 etc?


From: E. Weddington
Subject: Re: [avr-gcc-list] hi8, lo8, hh8 etc?
Date: Mon, 24 Jan 2005 07:37:07 -0700
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Per Arnold Blåsmo wrote:

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?

No docs exist AFAIK. The source is it.

Eric


reply via email to

[Prev in Thread] Current Thread [Next in Thread]