[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] [avr-as]: How to assembler a 24-bit integer?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] [avr-as]: How to assembler a 24-bit integer? |
Date: |
Mon, 31 Oct 2011 20:50:50 +0100 (MET) |
Georg-Johann Lay <address@hidden> wrote:
> Now the question is: How to write down a 24-bit symbol?
>
> .global pc
> .data
> .type pc, @object
> .size pc, 3
> pc:
> .word c
> .byte hlo8(c) ??? error from as
How about extending the assembler to understand a native 24-bit type
as well?
.global pc
.data
.type pc, @object
.size pc, 3
pc: .word24 c
This probably also requires a matching relocation record type in
binutils (so the linker could appropriately enter c's address into
pc).
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)