SirCmpwn

Untitled

Apr 19th, 2012
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ; Test file for .orgASM
  2. .equ TEST 14
  3. TEST2 .equ 18
  4. TEST .equ 12 ; Duplicate
  5.  
  6. .org 5
  7.  
  8. #nolist
  9. ADD B, A
  10. SET PC, 0x8000
  11. .list
  12. SET A, 10 + 'b' - 0b101101 * 0x14 / (0o7 << TEST) | (4 >> (10 & 13)) ^ ~10
  13. SET PC, label1 ; Forward-referencing
  14. label1:
  15. :label2
  16. SET A,B ; Comment "te'st"
  17. SET pop, A
  18. JSR $++
  19. SET A, [B]
  20. $:
  21. SET B , [0]
  22. SET C, [A+2]
  23. ADD A, B
  24. .org 0x8000
  25. $:
  26. SET A, $+0x20
  27. label3:
  28. invalid label:
  29. IFB A, Z
  30. MUL notaregister, b
  31. INVALIDOPCODE A, Z
  32. label1: ; Duplicate
  33. DIV A,I
  34. SET PC, pop
  35. JSR label3
  36. SET A, A
  37. SET 10, A
  38. .org 0x8000
  39. SET A, $+0x10
  40. #ifdef TEST
  41. SET A, 1
  42. #end
  43. #ifdef NOTDEFINED
  44. SET A, 0
  45. #end
  46. SET PC, POP
  47. #ifdef
  48. #ifdef TOO MANY PARAMETERS
  49. #end
  50. .dat 0, 1, 0x2, 0x03, 'b', "Hello\nworld!"
Advertisement
Add Comment
Please, Sign In to add comment