Question: 1. (a) (b) Explain why it is important for processor designers to release ISA specifications. Figure 1 shows the MIPS assembly of a short
1. (a) (b) Explain why it is important for processor designers to release ISA specifications. Figure 1 shows the MIPS assembly of a short C-code function. (i) (ii) funct: $12: $L3: addiu $sp,$sp, -8 sw $fp, 4 ($sp) move $fp,$sp sw $4,8 ($fp) lw $t2,8 ($fp) nop slt $t2, $t2,4 bne $t2, $0, $12 nop li $t2,1 j $13 nop li $t2,2 move $sp, $fp lw $fp, 4 ($sp) addiu $sp, $sp, 8 j$ra [10%] Figure 1. MIPS Assembly Code of 'Function' Describe each of the 5 assembly code blocks (denoted by a line space) in Figure 1 and give the C-code function. [20%] If the C-code was extended to be used with an array, what MIPS instructions would be used to load the address 0x80042001 into t2. [10%]
Step by Step Solution
3.54 Rating (151 Votes )
There are 3 Steps involved in it
a It is important for processor designers to release ISA specifications because they allow software developers to write code that can be executed on a variety of different processorsWithout ISA specif... View full answer
Get step-by-step solutions from verified subject matter experts
