alberthrocks

Axe puzzle!

May 30th, 2011
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. .Please opim.
  2. .my subroutine!
  3. . Thanks!
  4. . -Albert
  5.  
  6. .Bonus points:
  7. .Guess what
  8. .this code
  9. .does!
  10.  
  11. .6 inputs,
  12. .all integers
  13. Lbl ABC
  14. If r5=r6
  15. For(X,r1,r2)
  16. For(Y,r3+(r6*r4),r3+(r4-1)+(r6*r4))
  17. Pxl-Change(X,Y)
  18. End
  19. End
  20. DispGraph
  21. Else
  22. If r6>r5
  23. For(N,1,r4)
  24. For(X,r1,r2)
  25. Pxl-Change(X,r3+(r5*r4)+(N-1))
  26. Pxl-Change(X,r3+(r6*r4)+(N-1))
  27. End
  28. DispGraph
  29. End
  30. Else
  31. For(N,1,r4)
  32. For(X,r1,r2)
  33. Pxl-Change(X,r3+(r5*r4)+(r4-N))
  34. Pxl-Change(X,r3+(r6*r4)+(r4-N))
  35. End
  36. DispGraph
  37. End
  38. End
  39. End
  40. Return
Advertisement
Add Comment
Please, Sign In to add comment