|
Fall 2010 CSCI 304: Computer Organization Homework #4 Solutions1. Encode each of the following MIPS assembly language instructions and indicate the corresponding MIPS machine code instruction given as a hexadecimal value. (a) 0x02325824
(b) 0x014B2006
(c) 0x29224ECA
2. Consider the following MIPS assembly language code segment and provide the MIPS machine code for the branch instruction (bleq). while: blez $t0, endwhile addi $t0, $t0, 1 srl $t3, $t3, 1 mul $t2, $t2, $t0 # This is a count controlled loop. endwhile: sw $t2, y 0x19000003
3. Decode each of the following MIPS machine code instructions and indicate the corresponding MIPS assembly language instruction. (a) addu $s1, $s2, $s3
(b) bgez $v0, -252
|