Yahoo Groups archive

AVR-Chat

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

Thread

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

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

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

2004-12-01 by Paul Maddox

Paul,

> 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,

Yep, I worked that out, just wasn't 100% sure about the phrase 'page
boundry'.

> but I assume I am talking to some spooky RSRE/DRA/DERA man that was, on
the hill.

not quite on the hill ;-)
So you're either ex DERA or nearby?

Its been a long time since I've done any assembly, and my brain is a little
fogged.

Thanks for the help.

Paul

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.