MOVE Instructions - muneeb-mbytes/computerArchitectureCourse GitHub Wiki
Move Instructions:
* This is Pseudo instruction
* when Pseuso instructions are used, Assembler converts Pseudo instructions into real instructions
* Both MIPS and RISC-V supports MOVE instructions
MIPS move instructions
The syntax is move $<destinition register address> $<source register address>
This is converted to real instruction add $<destination register address> $< first source register address> $<second source register address>
Here second source register value will be zero
ex: move $at,$v0
The above code is converted to real code instruction as add $at,$v0,$zero
RISC-V move instructions
The syntax is mv <destinition register address> <source register address>
This is converted to real instruction addi <destination register address> 0
ex: mv at v0
The above code is converted to real code instruction as addi at v0 0
ARM move instructions
The syntax is MOV <destinition register address> <source register address>
This is converted to real instruction add <destination register address> < first source register address> <second source register address>
Here second source register value will be zero
ex: MOV x0,x1
The above code is converted to real code instruction as ADD X0, X1, #0
There are several MOV instruction available in ARMv8 that performs different functions