answer:
mflo $t0
answer: 000000 01000 01001 00000 00000 011000
answer: 000000 00000 00000 01010 00000 010010
answer: 3
answer: 1
answer:000000 10001 10010 01000 00000 100000
answer: sub $6 $4 $5
answer: 000000 00000 10000 01010 00100 000000
answer: 001101 01001 01011 1000 0000 0000 0000
answer: 001100 00000 01100 1111 1111 1111 1111 1111
answer: 001000 00000 01101 1111 1111 1111 1111
answer: True
answer: ori $t1, $0, -32768, (상수 field를 10진수로 표현해야한다)
answer: True
answer:
lui $t1, -1
,ori $t1, $0, -32768
answer: True
answer: 0x56780000 / answer: 001111 00000 01000 1111 1111 1111 1111
answer: 101011 00101 00100 0000 0000 0000 1000
answer: 100011 00101 00110 0000 0000 0000 1000,
lw $6, 8($5)
answer:
lw $t0, 32($s3) #base register로부터 32비트 떨어져있으므로(4 byte x 8) 32라고 적어야 한다. add $s1, $s2, $t0
answer: 000000 01001 00000 00000 00000 001000
answer: 000010 0000 0100 0000 0000 0000 0010 01 (상위 4비트는 PC의 4비트로 채우고 하위 2비트는 0으로 채운다)
answer: 000101 00011 00100 0000 0000 0000 0011
rs
,rt
의 위치가 assemble후에 바뀌지 않음을 유의하자.answer: false, (-131071~131071)
answer:
Loop: sll $t1, $s3, 2 add $t1, $s6, $t1 lw $t1, 0($t1) bne $t1, $s5, Exit addi $s3, $s3, 1 j Loop Exit: jr $ra
answer:
addi $a0, $0, 10 addi $v0, $0, 1 syscall
28.
29.
30.
31.
32.
33.
34.