Page 1 of 1

Write a well-documented MIPS Assembly program that: Task #1: Prompts the user to enter from the KBD an integer number in

Posted: Fri Jul 08, 2022 6:35 am
by answerhappygod
Write A Well Documented Mips Assembly Program That Task 1 Prompts The User To Enter From The Kbd An Integer Number In 1
Write A Well Documented Mips Assembly Program That Task 1 Prompts The User To Enter From The Kbd An Integer Number In 1 (78.29 KiB) Viewed 38 times
Write a well-documented MIPS Assembly program that: Task #1: Prompts the user to enter from the KBD an integer number in the range (10 .. +40). Multiply the entered number by 24. (Multiply instructions are NOT allowed). Display the entered and the calculated result separated by tab at the beginning of a new line. Task #2: • Prompts the user to enter from the KBD an integer number in the range (80.. +120). • Multiply the entered number by 36. (Multiply instructions are NOT allowed). • Display the entered and the calculated result separated by hash sign (#) at the beginning of a new line. Task #3: Prompts the user to enter from the KBD an integer number in the range (20.. +50). • Multiply the entered number by 50. (Multiply instructions are NOT allowed). • Display the entered and the calculated result separated by one space at the beginning of a new line. Methods and Hints: • Define properly the needed variables and messages in the data segment. • Display the results with proper messages. ● Develop and test the code for each task (part) and debug it before moving to the next part. Multiply instructions are NOT allowed. Use shift instructions instead !!! Use simple values to verify the correctness of calculations in your program. Practice well with ALL buttons and commands to work with MARS software. . ● Use single-step mode to watch the contents of registers and memory locations after executing each instruction.