Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; allocate stack space for numerator and denominator
- ; assign values to them
- ; check if the denom is zero
- ; if the denom is zero, print error message and return
- if_denom_zero:
- ; else continue to calculate
- if_denom_non_zero:
- br label %cond
- cond:
- finished_false:
- ; increment the quotient
- ; num -= denom_reg
- br label %cond
- finished_true:
- ; record the remainder (denom_reg - num)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement