Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- divide:
- ldi r2 0
- mov r3 r0
- divide_loop:
- push r3
- ldi r3 1
- add r2 r3
- pop r3
- sub r3 r1
- blt r3 r1 divide_end
- jmp divide_loop
- divide_end:
- ldi r0 0
- ldi r1 0
- rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement