Question: Please add enough comments for key instructions understand it . In MiniMIPS, comments start with a # . For instance, slt regd, reg 2 ,

Please add enough comments for key instructions understand it. In MiniMIPS, comments start with a #. For instance,
slt regd, reg2, reg1 # if (reg2) reg1), then regd larr1, else regd larr0
(1)(5 marks) Given n points in the 4D space ,
yn-1,zn-1), we use the following formulae to calculate a peculiar point (wp,xp,yp,zp),
which will be used a special application. The peculiar point is defined as follows.
wp=w0-w1+w2-dotswn-1n
xp=x0-x1+x2-dotsxn-1n
yp=y0-y1+y2-dotsyn-1n
zp=z0-z1+z2-dotszn-1n
Create an assembly program to implement the above formulae. The data segment of your
program should look like the following.
yp: .space 4
# a word result
zp: , space 4
# a word result
wp,xp,yp, and zp are all integers. Ignore the remainders if there are any.
NOTE: THIS MUST RUN IN QTSIMP (MINI MIPS)- assembly language. Need the full code, and output should be printed is : 34
29
39
37
 Please add enough comments for key instructions understand it. In MiniMIPS,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!