What does the following assembly language instruction do?
the contents of register
used as above with register
$zero, copies a bit pattern from the source register into
the destination register.
This is usually called a
move operation, although the source register does not change.
It is often convenient to move a value from one
register to another.
is awkward to say "add" when you mean "move".
The extended assembler
allows you to use the mnemonic
This mnemonic does not correspond to a new machine
It is just a way of asking for the same instruction
by using a more intuitive mnemonic.
It is a pseudoinstruction that the assembler
the appropriate basic assembly instruction.
A pseudoinstruction is an instruction that the extended assembler replaces with one or more basic assembly instructions.
extended assembler implements
Sometimes they are just convenient re-naming of basic assembly
Other times they correspond to a small, convenient
sequence of basic assembly instructions.
Here is the
move d,s # copy the contents of # the source register s # to the destination register d # (pseudoinstruction)
s can be
specified by using register mnemonic names
$zero) or by
using register numbers
This is true for all instructions of the extended assembler.
Write the instruction that moves (copies) the contents of
$t3 into register