> > > ldi ZH, high(TABLE*2) > ldi ZL, low(TABLE*2) > > lpm temp, Z+ > lpm temp, Z+ > lpm temp, Z+ > lpm temp, Z+ > lpm temp, Z+ > > Question: > > - What is the current value of ZH:ZL? You could just walk that through the sim and see how it works. Z increments byte by byte, not word, so it's 2.5 words up from the start of TABLE When you set Z, you're loading in Table*2, and the LSB selects which byte you get, 0=low, 1=high This is why we have the ELPM instruction, for the larger chips. [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] Reading tables from flash
2006-09-29 by David VanHorn