Term
lw register_destination, RAM_source |
|
Definition
#copy word (4 bytes) at source RAM location to destination register. |
|
|
Term
lb register_destination, RAM_source |
|
Definition
#copy byte at source RAM location to low-order byte of destination register, # and sign-e.g.tend to higher-order bytes |
|
|
Term
sw register_source, RAM_destination |
|
Definition
#store word in source register into RAM destination |
|
|
Term
sb register_source, RAM_destination |
|
Definition
#store byte (low-order) in source register into RAM destination |
|
|
Term
li register_destination, value |
|
Definition
#load immediate value into destination register |
|
|
Term
|
Definition
copy RAM address of var1 (presumably a label defined in the program) into register $t0 |
|
|
Term
|
Definition
load word at RAM address contained in $t0 into $t2 |
|
|
Term
|
Definition
store word in register $t2 into RAM at address contained in $t0 |
|
|
Term
|
Definition
* load word at RAM address ($t0+4) into register $t2 * "4" gives offset from address in register $t0 |
|
|
Term
|
Definition
* store word in register $t2 into RAM at address ($t0 - 12) * negative offsets are fine |
|
|
Term
|
Definition
# $t0 = $t1 + $t2; add as signed (2's complement) integers |
|
|
Term
|
Definition
|
|
Term
|
Definition
# $t2 = $t3 + 5; "add immediate" (no sub immediate) |
|
|
Term
|
Definition
# $t1 = $t6 + $t7; add as unsigned integers |
|
|
Term
|
Definition
# $t1 = $t6 - $t7; subtract as unsigned integers |
|
|
Term
|
Definition
# multiply 32-bit quantities in $t3 and $t4, and store 64-bit # result in special registers Lo and Hi: (Hi,Lo) = $t3 * $t4 |
|
|
Term
|
Definition
# Lo = $t5 / $t6 (integer quotient) # Hi = $t5 mod $t6 (remainder) |
|
|
Term
|
Definition
# move quantity in special register Hi to $t0: $t0 = Hi |
|
|
Term
|
Definition
# move quantity in special register Lo to $t1: $t1 = Lo # used to get at result of product or quotient |
|
|
Term
|
Definition
|
|
Term
|
Definition
# unconditional branch to program label target |
|
|
Term
|
Definition
# branch to target if $t0 = $t1 |
|
|
Term
|
Definition
# branch to target if $t0 < $t1 |
|
|
Term
|
Definition
# branch to target if $t0 <= $t1 |
|
|
Term
|
Definition
# branch to target if $t0 > $t1 |
|
|
Term
|
Definition
# branch to target if $t0 >= $t1 |
|
|
Term
|
Definition
# branch to target if $t0 <> $t1 |
|
|
Term
|
Definition
# unconditional jump to program label target |
|
|
Term
|
Definition
# jump to address contained in $t3 ("jump register") |
|
|
Term
|
Definition
# "jump and link" * copy program counter (return address) to register $ra (return address register) * jump to program statement at sub_label |
|
|
Term
|
Definition
# "jump register"
* jump to return address in $ra (stored by jal instruction) |
|
|