Advertisement
sci4me

spu0 multiplication by addition

Jun 11th, 2015
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. multiply:
  2. ldi r2 0
  3. push r3
  4. ldi r3 1
  5. multiply_loop:
  6. add r2 r1
  7. sub r0 r3
  8. blt r0 r3 multiply_end
  9. jmp multiply_loop
  10. multiply_end:
  11. ldi r1 0
  12. pop r3
  13. rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement