Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ecall x3, x0, 5
- ecall x4, x0, 5
- ecall x5, x0, 5
- blt x3, x4, a # a < b
- blt x4, x5, b # b < c # branch to
- ecall x5, x5, 0
- beq x0, x0, exit
- a:
- blt x3, x5, print_a
- ecall x5, x5, 0
- beq x0, x0, exit # if $t0 == $t1 then target
- b:
- ecall x4, x4, 0
- beq x0, x0, exit
- c:
- ecall x5, x5, 0
- beq x0, x0, exit
- print_a:
- ecall x3, x3, 0
- beq x0, x0, exit
- exit:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement