Question

III. MIPS CODE DEVELOPMENT: SELECTION A subset of the ASCII code is given on p. 122....

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.

Homework Answers

Answer #1

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.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions