SirCmpwn

Untitled

Apr 24th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. # Table format:
  2. # type value key
  3. # value is a hex number that corresponds to the key
  4. # key is a specially formatted key:
  5. # _ is required whitespace
  6. # - is optional whitespace
  7. # %a is the "a" value
  8. # %b is the "b" value
  9. # $n is a literal value that is to be output after the instruction
  10. # "n" may increment from zero.
  11. # type is the type of entry: o for opcode, a and b for parameters. n is a non-basic opcode.
  12. # In binary, these correspond to aaaaaabbbbbooooo
  13. #opcodes
  14. o 01 SET_%b-,-%a
  15. o 02 ADD_%b-,-%a
  16. o 03 SUB_%b-,-%a
  17. o 04 MUL_%b-,-%a
  18. o 05 MLI_%b-,-%a
  19. o 06 DIV_%b-,-%a
  20. o 07 DVI_%b-,-%a
  21. o 08 MOD_%b-,-%a
  22. o 09 AND_%b-,-%a
  23. o 0A BOR_%b-,-%a
  24. o 0B XOR_%b-,-%a
  25. o 0C SHR_%b-,-%a
  26. o 0D ASR_%b-,-%a
  27. o 0E SHL_%b-,-%a
  28. #o 0F [nop]
  29. o 10 IFB_%b-,-%a
  30. o 11 IFC_%b-,-%a
  31. o 12 IFE_%b-,-%a
  32. o 13 IFN_%b-,-%a
  33. o 14 IFG_%b-,-%a
  34. o 15 IFA_%b-,-%a
  35. o 16 IFL_%b-,-%a
  36. o 17 IFU_%b-,-%a
  37. #o 18 [nop]
  38. #o 19 [nop]
  39. #o 1A [nop]
  40. #o 1B [nop]
  41. #o 1C [nop]
  42. #o 1D [nop]
  43. #o 1E [nop]
  44. #o 1F [nop]
  45. #non-basic
  46. #n 00 [nop]
  47. n 01 JSR_$0
  48. #n 02 [nop]
  49. #n 03 [nop]
  50. #n 04 [nop]
  51. #n 05 [nop]
  52. #n 06 [nop]
  53. #n 07 [nop]
  54. n 08 INT_$0
  55. n 09 ING_$0
  56. n 0A INS_$0
  57. #n 0B [nop]
  58. #n 0C [nop]
  59. #n 0D [nop]
  60. #n 0E [nop]
  61. #n 0F [nop]
  62. n 10 HWN_$0
  63. n 11 HWQ_$0
  64. n 12 HWI_$0
  65. #n 13 [nop]
  66. #n 14 [nop]
  67. #n 15 [nop]
  68. #n 16 [nop]
  69. #n 17 [nop]
  70. #n 18 [nop]
  71. #n 19 [nop]
  72. #n 1A [nop]
  73. #n 1B [nop]
  74. #n 1C [nop]
  75. #n 1D [nop]
  76. #n 1E [nop]
  77. #n 1F [nop]
  78. #values
  79. a,b 0 A
  80. a,b 1 B
  81. a,b 2 C
  82. a,b 3 X
  83. a,b 4 Y
  84. a,b 5 Z
  85. a,b 6 I
  86. a,b 7 J
  87. a,b 8 [-A-]
  88. a,b 9 [-B-]
  89. a,b A [-C-]
  90. a,b B [-X-]
  91. a,b C [-Y-]
  92. a,b D [-Z-]
  93. a,b E [-I-]
  94. a,b F [-J-]
  95. a,b 10 [-$0-+-A-]
  96. a,b 11 [-$0-+-B-]
  97. a,b 12 [-$0-+-C-]
  98. a,b 13 [-$0-+-X-]
  99. a,b 14 [-$0-+-Y-]
  100. a,b 15 [-$0-+-Z-]
  101. a,b 16 [-$0-+-I-]
  102. a,b 17 [-$0-+-J-]
  103. #same as above, alternate synatx
  104. a,b 10 [-A-+-$0-]
  105. a,b 11 [-B-+-$0-]
  106. a,b 12 [-C-+-$0-]
  107. a,b 13 [-X-+-$0-]
  108. a,b 14 [-Y-+-$0-]
  109. a,b 15 [-Z-+-$0-]
  110. a,b 16 [-I-+-$0-]
  111. a,b 17 [-J-+-$0-]
  112. a,b 18 POP
  113. a,b 18 PUSH
  114. a,b 19 PEEK
  115. a,b 19 [-SP-]
  116. a,b 1A [-SP-+$0-]
  117. a,b 1A PICK_$0
  118. a,b 1B SP
  119. a,b 1C PC
  120. a,b 1D EX
  121. a,b 1E [-$0-]
  122. a,b 1F $0
  123. # 0x20-0x3F is not included in this document
Advertisement
Add Comment
Please, Sign In to add comment