EE230 Online Assignment 3 This assignment consists of two parts. Submit both of files at the same time on Blackboard. 1. Use the following program for this question.
EEE230 Online Assignment 3 This assignment consists of two parts. Submit both of files at the same time on Blackboard. 1. Use the following program for this question. Assume the .data section starts at 0x10010000 and the .text starts at 0x00400010, .data num: .word 7 .globl main .text main: lui $t0, 0x1001 top: lw $t1, 0($t0) beq $s0, $0, end jal func add $s0, $s0, $t0 addi $s0, $s0, -1 j top bne $s0, $0, top end: func: sll $v0, $t1, 4 jr $ra a. There are five labels in the code. What is the value of each label? b. What is the addressing mode for each instruction? There are 10 unique instructions. c. Encode the program and give the machine code in hex. Be careful with the branch and jump instructions. 2. Write a MIPS assembly language program to solve the following problem. Be sure to comment the program. Do not use pseudo-instructions. a. Prompt the use to enter 3 integer values. b. Read the integers. c. Calculate and print the average of the integers as an integer result d. Calculate and print the average of the integers as a floating point number. The number of decimal places is not relevant. Example Enter 3 integers 5 7 8 6 6.66666
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
