CIS 351 |
Assembly Branches |
Winter 2022 |
sumPositive
that takes three integers as input and
returns the sum of the positive integers. (If none of the integers are positive, return 0
.)
Use the actual hardware beq
instruction. Don't use any of the branch pseudo-instructions.
conditionalSum
that takes three integers and a boolean and returns
$a3
is true
, or$a3
is false
.if-else
construct, limit yourself to only one jr
statement.)
Updated Tuesday, 8 February 2022, 2:57 PM