Advertisement
_Shaldy_

Virtual Machine and solution for Fibonacci

Oct 4th, 2022
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Z80 Assembler 0.15 KB | Source Code | 0 0
  1. input 0
  2. init 1 1
  3. init 1 2
  4. init 8 8
  5. init 0 6
  6. init 0 4
  7. init 14 7
  8. init 1 5
  9. sum 1 2 1
  10. swap 1 2
  11. sub 0 5 0
  12. cmp_eq 0 6 4
  13. sum 4 7 9
  14. goto 9
  15. goto 8
  16. out 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement