Show work for full credit
enqueue 'a', 'b', and 'c' dequeue two characters enqueue 'a', 'd', and 'e' dequeue three characters
enqueue 'c' and 'd' dequeue two characters enqueue 'a', 'c', 'b' and 'd' dequeue four characters
lw | $t2, 15($t1) | |
add | $t1, $t1, 1 | |
lw | $t2, 14($t1) | |
or | $t1, $t1, 0x0001 | |
lw | $t2, 13($t1) | |
sub | $t1, $t1, 1 | |
lb | $t2, 12($t1) |
int1
.
and $s3, $t0, 0x5566
sw $a0, int1
putc $t4
sw $a1, int_variable
Assume that the assembler has assigned int_variable
to address 0x00401234.
lui | $8, 0xMSlabel | |
ori | $8, $8, 0xLSlabel | |
lw | $8, 0($8) |
lui | $8, 0xMSlabel | |
lw | $8, 0xLSlabel($8) |
.data |
||
AA: | .word | |
BB: | .word AA | |
.text |
||
__start: | lw $2, AA | (1) |
lw $3, BB | (2) | |
lw $4, 4($3) | (3) | |
la $5, 4($3) | (4) | |
done | (5) |
After this code is executed, what values are stored in each of the registers? For all non-zero values, indicate which instruction last changed the value of the register. If a register was initially non-zero, indicate instruction (0) as the modifying instruction.