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-01 by Paul Curtis

Hi Paul, 

> > Assuming you align your array on a 256-byte boundary, we 
> can drop one
> > instruction:
> 
> you mean like ;-
> 
> .ORG 0x0200 <data><data>....

Correct.

> Rather than;-
> 
> .ORG 0x0201 <data><data>.....

Also correct.

> That shouldn't be too hard, I just need to make sure its 
> above the are where the code is.
> Cheers

The reason you can drop one instruction is that you know the low byte of
the address is zero and make use of the identity that 0+x = x, but I
assume I am talking to some spooky RSRE/DRA/DERA man that was, on the
hill.

--
Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors

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.