Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main:
- addi x4, x0, 255
- addi sp, sp, 1600
- addi sp, sp, -8
- sd x4, 0(sp)
- jal x1, make_even
- addi x4, x4, -4
- ld x4, 0(sp)
- addi sp, sp, 8
- ld x4, 0(sp)
- # ecall x4, x4, 0
- ORG 96
- make_even:
- addi x5, x0, 2
- rem x6, x4, x5
- beq x6, x0, else
- addi x4, x4, -1
- sd x4, 0(sp)
- jalr x0, 0(x1)
- # ORG 96
- else:
- jalr x0, 0(x1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement