avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] inline assembler, 2nd register


From: E. Weddington
Subject: Re: [avr-libc-dev] inline assembler, 2nd register
Date: Sun, 01 Jun 2003 07:53:20 -0600


Klaus Kloos wrote:

> Hello
>
> Im new to this mailinglist. Ive searched the archive, but found no
> mail helping me.
> I have a problem getting the 2nd register of a 16bit pointer to
> PRGMEM in assembler.
>
> I want to have something like PRG_RDB(), but for 16bit.
>

If you want to read 16-bit values from flash, it's already been
implemented, just not widely distributed. There's a new API in pgmspace.h
in CVS which implements 16-bit reads as well as other functions for large
micros (mega128) and stuff. You should be able to grab pgmspace.h from
CVS and use it directly in your project without having to rebuild
avr-libc; the new API is implemented as inline assembly macros.

Eric Weddington





reply via email to

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