Binary
Loops
Memory Access
Open Scenario
100

The number 0b0111 1001 1111 0110 in hexadecimal.

What is 0x79F6?

100

The loop in MIPS assembly:

while (A & (!B))

beq    A,    false,    exit

bne    B,    false,    exit

body:

beq    A,    false,    exit

beq    B,    false,    body

exit:

100

The amount of actual memory each address increments by in MIPS.

What is one byte?

100

The hidden benefit of 2's complement.

What is simple subtraction.

200

The purpose of hexadecimal.

What is brevity?

200

The if, else structure in MIPS assembly:

if (A)

else if(B)

else

beq    A,    false,    middle

<first if block>

j    exit

middle:    beq    B,    false,    else

<second if block>

j    exit

else:

<else block>

exit:

200

The instruction used to retreive the 6th element in an array of half words, given the base array pointer. The array starts with the 0th element.

What is:

lh    $t0,    12($s0)

?

200

Describe how you use registers in the register file.

...

300

The decimal sum of the two signed binary numbers 0b0011 0001 and 0b10 1100 1110.

What is -257?

300

The number of branching statements required for the loop:

do

{

} while (A ^ B ^ C)

What is 7?

300

The declaration for an array of char pointers, 16 elements, all initialized to 0x0000 0000.

What is:

arr:    .word    0:16

?

300

Describe how you would implement a switch case statement in MIPS assembly.

...

M
e
n
u