lord loh.
Member
How on earth do I access R0 to R15 of the general purpose registers? Whenever I try
I get an error called invalid register...
Where could I have gone wrong...
Please excuse me if the question is dumb and help me out.
Thank You.
______
Added a few minutes later:
Okay, I discovered that the instruction LDS to load into all 32 registers but the con is that it is a 2 word instruction unlike the ldi which is a single word instruction.
If anyone has anything to add that might clear any misconception that I have, please do so.
Code:
ldi r0,0x01
Where could I have gone wrong...
Please excuse me if the question is dumb and help me out.
Thank You.
______
Added a few minutes later:
Okay, I discovered that the instruction LDS to load into all 32 registers but the con is that it is a 2 word instruction unlike the ldi which is a single word instruction.
If anyone has anything to add that might clear any misconception that I have, please do so.
Last edited: