{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Assn5Soln

# Assn5Soln - CDA 3101 Assignment 5 Due in class on Thursday...

This preview shows pages 1–2. Sign up to view the full content.

Due in class on Thursday, Oct. 12 Turn hardcopy in class, stapled, with your name and “CDA 3101 Assignment 5” clearly written on it. For programs, submit a printout with your hardcopy, in class. Also, submit the program for Problem 2 below electronically, via WebCT Assignment Tool. You must use the WebCT Assignment Tool to submit your code; you cannot submit your code using email. 1. (20 points) Problem 2.37 from the textbook. move \$t1, \$t2 -> add \$t1, \$t2, \$zero clear \$t0 -> add \$t0, \$zero, \$zero beq \$t1, small, L -> addi \$at, \$zero, small; beq \$t1, \$at, L beq \$t2, big, L -> lui \$at, upper(big) ori \$at, \$at, lower(big) beq \$t2, \$at, L li \$t1, small -> addi \$t1, \$zero, small li \$t2, big -> lui \$at, upper(big) ori \$t2, \$at, lower(big) ble \$t3, \$t5, L -> slt \$at, \$t5, \$t3 ; beq \$at, \$zero, L bgt \$t4, \$t5, L -> slt \$at, \$t5, \$t4 ; bne \$at, \$zero, L bge \$t5, \$t3, L -> slt \$at, \$t5, \$t3; beq \$at, \$zero, L addi \$t0, \$t2, big -> lui \$at, upper(big) ori \$at, \$at, lower(big)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 4

Assn5Soln - CDA 3101 Assignment 5 Due in class on Thursday...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online