captmicro

Untitled

Jun 27th, 2010
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. --COMMENT
  2. //COMMENT
  3.  
  4. #define testif [10]
  5.  
  6. #if (%testif% == 10)
  7. testif = %testif% + 1;
  8. #else
  9. testif = %testif% - 1;
  10. #endif
  11.  
  12. #push %testif%
  13. #push "testif value: %d\n"
  14. #call printf
  15.  
  16.  
  17. #define testwhile [0]
  18.  
  19. #while (%testwhile% < 10)
  20. testwhile = %testwhile% + 1
  21. #call printf "testwhile value: %d\n" %testwhile%
  22. #endwhile
  23.  
  24.  
  25. #define testlbl [0]
  26.  
  27. #label "lblstart"
  28. #call printf "testlbl value: %d\n" %testlbl%
  29. testlbl = %testlbl% + 1
  30.  
  31. #if (%testlbl% == 1)
  32. #goto "lblstart"
  33. #endif
Add Comment
Please, Sign In to add comment