Please excuse my question if it can be found elsewhere--I've yet to find a good resource (other than here) on getting started with AVR. I'm coming from an M68HC11 background.
I'm using the Y-Index and pointing it at a table that I've created and I'd like to step through the table, but I am unable to load any data from it. Here is a simplified example of what I'm working on.
.include "m8535def.inc" .def Temp = R16 .org 0x0000 ldi YL, low(Table) ldi YH, high(Table) Loop: ld Temp, Y+ ;... rjmp Loop .org 0x0101 Table: .DW 0,9,11,16,48
Thing is, when I get to ld Temp, Y+ my Y will inc but I get nothing in Temp. What gives? The only thing I can think of is maybe I'm mixing Program space and data space? I don't know how to differentiate between the two really, if that's my problem.
Thanks for everyones help! :)