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:
> Looks like you are using GAS or other.
Yes, that's what I use.  The OP mentioned AVR Studio and I assumed 
(probably incorrectly) that he was using avr-gcc and avr-gas.  All of 
my comments were based on that assumption.

With regard to multiplying by two to get a word address, this is only 
needed if you are going to use the address to refer to code.  For 
example, if you want to use the ijmp or icall instructions you must 
have a word address in r31:30.  For use with LPM, you want a byte 
address in r31:30.

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.