Question: The assignment here is to write a subprogram that returns the largest of the (signed) values in four registers. You are to run your program

 The assignment here is to write a subprogram that returns the

The assignment here is to write a subprogram that returns the largest of the (signed) values in four registers. You are to run your program with my driver sending its output to a file. The first thing you should do is simplify the specified command line down to a bare minimum:

java -jar Toy.jar +run MAX4driver.toy MAX4.dos

2 of 2 +W 5: MAX4 Subprogram Task: find the largest of 4 signed values MAX4 subprogram interface: On entry: Registers $A, $B, $c, $D are signed Register SF is the return address Invariant: $A, $B, $c, $D, main memory On exit: Register $E is max ($A, $B, $C, $D) Assignment: Driver supplies $A, $B, $C, $D, and $F as indicated Your subprogram puts maximum value into register $E Returns to Driver with this instruction: ret $F MAX5 Subprogram Driver DRIVER : $1

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!