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
Implement the following functions in the given code: def random_suit_number(): def get_card_suit_string_from_number(n): def random_value_number(): def get_card_value_string_from_number(n):...
Implement the following functions in the given code: def random_suit_number(): def get_card_suit_string_from_number(n): def random_value_number(): def get_card_value_string_from_number(n): def is_leap_year(year): def get_letter_grade_version_1(x): def get_letter_grade_version_2(x): def get_letter_grade_version_3(x): Pay careful attention to the three different versions of the number-grade-to-letter-grade functions. Their behaviors are subtly different. Use the function descriptions provided in the code to replace the pass keyword with the necessary code. Remember: Parameters contain values that are passed in by the caller. You will need to make use of the parameters that each...
Cpp Task: Create a class called Mixed. Objects of type Mixed will store and manage rational...
Cpp Task: Create a class called Mixed. Objects of type Mixed will store and manage rational numbers in a mixed number format (integer part and a fraction part). Details and Requirements Your class must allow for storage of rational numbers in a mixed number format. Remember that a mixed number consists of an integer part and a fraction part (like 3 1/2 – “three and one-half”). The Mixed class must allow for both positive and negative mixed number values. A...
Note: Do not use classes or any variables of type string to complete this assignment Write...
Note: Do not use classes or any variables of type string to complete this assignment Write a program that reads in a sequence of characters entered by the user and terminated by a period ('.'). Your program should allow the user to enter multiple lines of input by pressing the enter key at the end of each line. The program should print out a frequency table, sorted in decreasing order by number of occurences, listing each letter that ocurred along...
Using the following code perform ALL of the tasks below in C++: ------------------------------------------------------------------------------------------------------------------------------------------- Implementation: Overload input...
Using the following code perform ALL of the tasks below in C++: ------------------------------------------------------------------------------------------------------------------------------------------- Implementation: Overload input operator>> a bigint in the following manner: Read in any number of digits [0-9] until a semi colon ";" is encountered. The number may span over multiple lines. You can assume the input is valid. Overload the operator+ so that it adds two bigint together. Overload the subscript operator[]. It should return the i-th digit, where i is the 10^i position. So the first...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT