I cannot find what "Rr" register name in assembly mnemonics means. "Rd" is probably Destination register but where comes the "r" from? "Source"?
What "Rr" in assembly means
Where are you looking?
Show an example!
Where are you looking?
Show an example!
presumably something like this in the opcode manual:
As "operands" says, in this case "r" is a placeholder for some register number between 0 and 31 so you can "STS 0x123, R17", "STS 0x456,R29" or more generally "STS k, Rr" (0 <= k <=65535, 0 <= r <= 31)
presumably something like this in the opcode manual
Indeed.
And that very manual explains what it means by "Rr" on its first page as shown in #3
EDIT
#3 - not #2
where comes the "r" from? "Source"?
Is that the real question - "why did they choose 'r' ?"
Who knows - and who cares !
It could be just any random letter to distinguish it from Rd ...
Remember that the AVR was invented by Norwegians - so, if there is a specific reason (which there need not be), it might be based in Norwegian ...
it might be based in Norwegian ...
Smajdalf wrote:where comes the "r" from? "Source"?Is that the real question - "why did they choose 'r' ?"
Who knows - and who cares !
It could be just any random letter to distinguish it from Rd ...
Remember that the AVR was invented by Norwegians - so, if there is a specific reason (which there need not be), it might be based in Norwegian ...
Yes, this was the real question.
All other mnemonics seem to come from English and it is easy to imagine where they come from. I.e. CLR = Clear register, SER = Set register. I just thought there is some other word starting with "r" they meant which I cannot find. If noone knows it probably has no meaning. Thank you.
it probably has no meaning.
Indeed.
Now please see Tip #5.
I just had a read through the opcode manuals for other CPUs to see if anything else has similar naming schemes but most seem to use the slightly more obvious terms such as "src", "dst" and so on.
Rread ?
I always thought is was Rresource ......