Advertisement
asolntsev

Untitled

Apr 5th, 2011
5,431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. get a
  2. ldi b 0x2d
  3. ldi d 0x1
  4. ldi h 0x1e
  5. dec a h
  6. main_loop:
  7. inc c
  8. tst c a
  9. jc exit
  10. mov e c
  11. and e d
  12. tst e z
  13. jc 4etnoe
  14. jmp ne4etnoe
  15. jmp main_loop
  16. exit:
  17. halt
  18. 4etnoe:
  19. mov g c
  20. inc g
  21. ldi f 0
  22. 4etnoe_loop:
  23. inc f
  24. mov k f
  25. add k h
  26. put k
  27. tst f g
  28. jnc 4etnoe_loop
  29. jmp main_loop
  30. ne4etnoe
  31. mov g c
  32. ne4etnoe_loop:
  33. mov k g
  34. add k h
  35. put k
  36. dec g
  37. tst g z
  38. jnc ne4etnoe_loop
  39. jmp main_loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement