Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
HW#7 definition CPTR380 homework #7 - For Wednesday 01/26/22 In HW#3 problem 2.25 you translated C code to MIPS assembly. That problem was not graded as part of HW#3. For homework #7 you are to create an assembly file (a .s file) containing your problem 2.25 solution using a text editor. Then simulate your solution using QtSPIM and debug it. The simulator allows you to monitor register contents and memory contents as you single step through the program and thus confirm operation or find problems. As you write the assembly source file keep the following in mind. I expect you to include a "header" at the top (see my example file) that includes the file name, your name, date, etc. You are expected to create variables A and B as well as the array in the .data area. Initialize A and B to small values, such as 3, to allow single stepping to completion without too many mouse clicks. The problem statement for 2.25 states that values for A, B, and the base address of the array are already in registers. However, you will need to read variables A and B to get values into $s0 and $s1 and also load the array base address into $s2. After you have written and debugged this routine, edit the header of the file to include a statement regarding your success or failure to have the program function properly. The source file you create is to be submitted to a CPTR-380 D2L drop box. Also, read sections 4.1, 4.2, 4.3 in the text. Larry Aamodt PhD, PE Professor of Engineering and Computer Science Walla Walla University Contact: via email: AamoLa(at)wallawalla.edu via phone: x2058