Write a subroutine named ABS: the entry and exit parameters are $a0, $v0, respectively, and the function is to find the absolute value of $a0.And write the main program to read the integer from keyboard, and test whether the subprogram handles the positive and negative numbers correctly, and output the absolute value of the integer. It's required to submit your subroutine and main procedures assembly code, and the test screenshot in Mars.
Write a subroutine named ABS: the entry and exit parameters are $a0, $v0, respectively, and the function is to find the absolute value of $a0.And write the main program to read the integer from keyboard, and test whether the subprogram handles the positive and negative numbers correctly, and output the absolute value of the integer. It's required to submit your subroutine and main procedures assembly code, and the test screenshot in Mars.
发布时间:2024-09-08 23:09:44