Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Reading from flash in Assembly

2004-12-03 by Jim Wagner

Paul -

The reason is that the low bit is used as a byte indicator.
Bit = 0 gets low byte in 16 bit word and 1 gets high byte
in the word.

Jim


On Fri, 3 Dec 2004 10:33:46 -0000
 "Paul Maddox" <P.Maddox@signal.qinetiq.com> wrote:
> 
> 
> 
> 
> 
> Larry,
> 
> > Which chip are you using?  lpm Rx, Z is only
> supported on newer mega
> chips.
> 
> Soprry, should've said, its a Mega16.
> 
> > If the right address is in Z and the chip supports
> the instruction, then
> if
> > you are only getting 0xFF is because there is no
> data at that location.
> 
> Looks like I should be shifting the address left once
> before using it for
> some reason (thanks John/Richard/Beaver) I'll give that a
> go, though I don't
> understand quite why.
> 
> Paul
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor
> 
> 
>   ADVERTISEMENT 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> To visit your group on the web, go
> to:http://groups.yahoo.com/group/AVR-Chat/ 
> To unsubscribe from this group, send an email
> to:AVR-Chat-unsubscribe@yahoogroups.com 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms
> of Service.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

---------------------------------------------------------------
The Think Different Store
http://www.thinkdifferentstore.com/
For All Your Mac Gear
---------------------------------------------------------------

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.