Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gcd:
- load SP #-1 R1
- jumpz R1 gcd_end
- load SP #-2 R0
- mod R0 R1 R3
- move R1 R0
- move R3 R1
- push R2
- push R0
- push R1
- call gcd
- pop R0
- pop R0
- pop R0
- store R0 #-3 SP
- return
- gcd_end:
- store R0 #-3 SP
- return
- 0x100:
- load #16 R0
- load #12 R1
- push R2 ; return value
- push R0
- push R1
- call gcd
- pop R0
- pop R0
- pop R0
Advertisement
Add Comment
Please, Sign In to add comment