CIS 351 |
Assembly Branches |
Winter 2021 |
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 Monday, 22 March 2021, 8:38 AM