mr
Move Register
mr RA, RS
Copies contents of RS to RA. (Alias for 'or RA, RS, RS').
Details
Move Register. Extended mnemonic for OR (or RA,RS,RS). Copies the contents of register RS into register RA.
Pseudocode Operation
RA ← RS
Programming Note
The `mr` instruction is commonly used to copy values between general-purpose registers. It does not require any special alignment or privilege level. However, be cautious when using this instruction in performance-critical sections as it may introduce pipeline stalls if the destination register is already in use.
Example
mr r4, r3
Encoding
Binary Layout
31
0
RS
6
RA
11
RS
16
444
21
/
31
Operands
-
RA
Target -
RS
Source