Page 1 of 1

Write in MIPS Assembly language a well-documented program consisting of the two following functions. • Write a function

Posted: Tue May 24, 2022 8:18 am
by answerhappygod
Write In Mips Assembly Language A Well Documented Program Consisting Of The Two Following Functions Write A Function 1
Write In Mips Assembly Language A Well Documented Program Consisting Of The Two Following Functions Write A Function 1 (28.76 KiB) Viewed 14 times
Write in MIPS Assembly language a well-documented program consisting of the two following functions. • Write a function that accepts two parameters of type half in $a0 and $a1 registers and returns in $a3 register the value calculated as shown below. (16 $a0-8 $al if $a0 == $a1 $a3 = $a0. Sal if $a0 != $a1 • Write a function with a minimum number of instructions that: 1) defines four variables p1 and p2 of type half and initializes them with any values; 2) calls the above-defined function and prints three values: p1, p2 and the returned value separated by tabs. 3) To ensure the correctness of your program, run it twice: a) When p1 and p2 are equal b) When p1 and p2 are NOT equal