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 Paul Maddox

All,

Ok, and the final soloution is ;-

mov r30, step
ldi r31, high(array<<1)
add r31, num
lpm r18, z
out portd, r18

As I'm only using Bytes not Words, I didn't need to left shift the ZL (r30)
value.

Thanks to everyone for helping :-)

Paul

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.