CSE 230 Modules 6-10 | Questions And Answers |
Latest Study Solutions
The purpose of the SW instruction is to:
(6.1) ANS copy data from a register to main memory
The MIPS architecture uses a general-purpose register file and each entry stores how many bits?(6.1) ANS
32
The MIPS architecture uses main memory that is accessed using how many address bits?
(6.1) ANS 32
Which of the following instructions can be used to copy data from a register to another register?
- sw $t0
- add $t0, $t1, $zero
- lw $t0, 4($s1)
- sll $s0, $t1, 4
(6.1) ANS add $t0, $t1, $zero
The MIPS architecture uses a general-purpose register file with how many entries?
(6.1) ANS 32
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$fp = 88, $at = 93 :
xor $v0, $fp, $at
(6.2) ANS 5
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$s4 = 42, $t5 = 98 :
, nor $v0, $s4, $t5
(6.2) ANS -107
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$t2 = 30 :
addi $v0, $t2, 14648
(6.2) ANS 14678
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$zero = 0, $t7 = 109 :
sll $v0, $t7, 9
(6.2) ANS 55808
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$zero = 0 :
andi $v0, $zero, 5428
(6.2) ANS 0
Select the correct MIPS assembly implementation of the following C code decision (given i,j,k stored in $s0,
$s1 and $s2 respectively:
if (i != j)
k = i + j;
j=j-i
Latest Study Solutions
The purpose of the SW instruction is to:
(6.1) ANS copy data from a register to main memory
The MIPS architecture uses a general-purpose register file and each entry stores how many bits?(6.1) ANS
32
The MIPS architecture uses main memory that is accessed using how many address bits?
(6.1) ANS 32
Which of the following instructions can be used to copy data from a register to another register?
- sw $t0
- add $t0, $t1, $zero
- lw $t0, 4($s1)
- sll $s0, $t1, 4
(6.1) ANS add $t0, $t1, $zero
The MIPS architecture uses a general-purpose register file with how many entries?
(6.1) ANS 32
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$fp = 88, $at = 93 :
xor $v0, $fp, $at
(6.2) ANS 5
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$s4 = 42, $t5 = 98 :
, nor $v0, $s4, $t5
(6.2) ANS -107
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$t2 = 30 :
addi $v0, $t2, 14648
(6.2) ANS 14678
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$zero = 0, $t7 = 109 :
sll $v0, $t7, 9
(6.2) ANS 55808
In the field below, enter the integer value of the $v0 register after executing the following instruction, given the
register values
$zero = 0 :
andi $v0, $zero, 5428
(6.2) ANS 0
Select the correct MIPS assembly implementation of the following C code decision (given i,j,k stored in $s0,
$s1 and $s2 respectively:
if (i != j)
k = i + j;
j=j-i