Reference Information
ALU Arithmetic Input Table:
Operation Cin=1
G=A+1 G=A+B+1 G=A-B
Copyright By PowCoder代写 加微信 powcoder
Assembly Instruction Table:
Instruction Type Op/Func Syntax
Register assignments:
R R I I R R R R R R R I R R I R I R R R R R R I I I I J J R R I I I I I I I I R R I I R R I
100000 100001 001000 001001 011010 011011 011000 011001 100010 100011 100100 001100 100111 100101 001101 100110 001110 000000 000100 000011 000111 000010 000110 000100 000111 000110 000101 000010 000011 001001 001000 100000 100100 100001 100101 100011 101000 101001 101011 101010 101001 001010 001011 010000 010010 001100
$d, $s, $t $d, $s, $t $t, $s, i $t, $s, i $s, $t
$d, $s, $t $d, $s, $t $d, $s, $t $t, $s, i
$d, $s, $t $d, $s, $t $t, $s, i
$d, $s, $t $t, $s, i
$d, $t, a $d, $t, $s $d, $t, a $d, $t, $s $d, $t, a $d, $t, $s $s, $t, label $s, label $s, label $s, $t, label label
$t, i ($s) $t, i ($s) $t, i ($s) $t, i ($s) $t, i ($s) $t, i ($s) $t, i ($s) $t, i ($s) $d, $s, $t $d, $s, $t $t, $s, i $t, $s, i $d
Register values : Processor role
Register 0 ($zero): reserved value.
Register 1 ($at): reserved for the assembler.
Registers 2-3 ($v0, $v1): return values
Registers 4-7 ($a0-$a3): function arguments
Registers 8-15, 24-25 ($t0-$t9): temporaries
Registers 16-23 ($s0-$s7): saved temporaries
Registers 28-31 ($gp, $sp, $fp, $ra)
Student Number: __________________
(continued)
This page is left blank intentionally for answer overflows.
Student Number: __________________ 18
Total Marks = 232 Total Pages = 18
End of assessment (continued)
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com