III. MIPS CODE DEVELOPMENT: SELECTION
A subset of the ASCII code is given on p. 122. Consider the following declarations:
.data
SCORE1: .word 79
SCORE2: .word 64
PASS: .asciiz “?”
Write a MIPS program that reads the two integer values in variables SCORE1 and SCORE2. If the sum of the two scores is less than 140, your program should set character variable PASS to ‘N’; otherwise, it should set PASS to ‘Y’. NOTE: Your program should work for any integer values SCORE1 and SCORE2. Feel free to use pseudo-instructions as needed to solve this problem.
MIPS CODE DEVELOPMENT: SELECTION
A subset of the ASCII code is given on p. 122. Consider the following declarations:
.data
SCORE1: .word 79
SCORE2: .word 64
PASS: .asciiz “?”
Write a MIPS program that reads the two integer values in variables SCORE1 and SCORE2. If the sum of the two scores is less than 140, your program should set character variable PASS to ‘N’; otherwise, it should set PASS to ‘Y’. NOTE: Your program should work for any integer values SCORE1 and SCORE2. Feel free to use pseudo-instructions as needed to solve this problem.
Get Answers For Free
Most questions answered within 1 hours.