Question: Step 1 : Write the myMax function in LEGv 8 AssemblyYou will write assembly code that takes two arguments from x 0 and x 1
Step : Write the myMax function in LEGv AssemblyYou will write assembly code that takes two arguments from x and x compares them, and stores the larger one in x
Step : Write the myMax function in LEGv AssemblyAfter myMax is complete, you will write myMax It will call myMax twice: once to compare x and x and a second time to compare the result with x
Step : Test your functionsYou will need to run your code in a LEGv simulator to test and debug it The assignment suggests using a specific LEGv simulator.
Step : DebuggingIf your code doesnt work as expected, you will need to debug it by stepping through each instruction and verifying the contents of the registers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
