I think I know how RAM works, but I have an exercise where I have to read at the address 0x????.
Furthermore, I am only interested what value get returned after the reading command. For example:
There is a RAM and the whole RAM is filled with (so it's repeating)
$22476BFF 273C22FF. . .
Now I read the content at the adress "0x2901": (Here is my code, but actually I only need a theoretical answer)
Loop: LD R17,Y+ // Y =0x2901 ADIW Z,4 JMP Loop
Description: (You may skip)
In this code I read with LD R17, Y+ the content of the Register of the RAM with the address of Y and save this content in the register R17. (I hope you understand me).
The content which got read is "0x47", but I am not sure why.
Could it be that if Y is "0x2900" would the content be "0x22"? If so, what would be at the address "0x2908"? (=0x22, because it's repeating?)
I am using Eclipse as a platform. I don't believe it's necessary but I'm using an AVR ATMega162 board.
Or maybe you know an example which is similar to that.
Thanks for the help