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