Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: problems

2008-03-23 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, John Samperi <samperi@...> wrote:
> Also the address need to be multiplied by 2
The pm() operator is useful for that purpose:

ldi r30, lo8(pm(LABEL))
ldi r31, hi8(pm(LABEL))

Or, if you use the macro that I posted earlier:

ldiZ pm(LABEL)

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.