Advertisement
TheGhastModding

Binary counter

Aug 1st, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. VAR step
  2. VAR counter
  3. VAR tmp
  4. VAR tmp2
  5.  
  6. EXT cube1
  7. EXT cube2
  8. EXT cube3
  9. EXT cube4
  10.  
  11. PC step
  12.  
  13. LOOP:
  14. ADD counter, #1
  15. MOD counter, #16
  16. LD tmp, counter
  17.  
  18. MOD tmp, #2 => tmp2
  19. LD cube1, tmp2
  20. DIV tmp, #2
  21.  
  22. MOD tmp, #2 => tmp2
  23. LD cube2, tmp2
  24. DIV tmp, #2
  25.  
  26. MOD tmp, #2 => tmp2
  27. LD cube3, tmp2
  28. DIV tmp, #2
  29.  
  30. MOD tmp, #2 => tmp2
  31. LD cube4, tmp2
  32.  
  33. BR LOOP
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement