SirCmpwn

Untitled

Apr 26th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 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 MDI_%b-,-%a
  23. o 0A AND_%b-,-%a
  24. o 0B BOR_%b-,-%a
  25. o 0C XOR_%b-,-%a
  26. o 0D SHR_%b-,-%a
  27. o 0E ASR_%b-,-%a
  28. o 0F SHL_%b-,-%a
  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 ADX_%b-,-%a
  40. o 1B SBX_%b-,-%a
  41. #o 1C [nop]
  42. #o 1D [nop]
  43. o 1E STI_%b-,-%a
  44. o 1F STD_%b-,-%a
  45. ########## NONBASIC OPCODES
  46. #n 00 [nop]
  47. n 01 JSR_%a
  48. #n 02 [nop]
  49. #n 03 [nop]
  50. #n 04 [nop]
  51. #n 05 [nop]
  52. #n 06 [nop]
  53. n 07 HCF_%a
  54. n 08 INT_%a
  55. n 09 IAG_%a
  56. n 0A IAS_%a
  57. n 0B IAP_%a
  58. n 0C IAQ_%a
  59. #n 0D [nop]
  60. #n 0E [nop]
  61. #n 0F [nop]
  62. n 10 HWN_%a
  63. n 11 HWQ_%a
  64. n 12 HWI_%a
  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. #
  113. a,b 18 POP
  114. a,b 18 PUSH
  115. a,b 19 PEEK
  116. a,b 19 [-SP-]
  117. a,b 1A [-SP-+$0-]
  118. a,b 1A PICK_$0
  119. a,b 1B SP
  120. a,b 1C PC
  121. a,b 1D EX
  122. a,b 1E [-$0-]
  123. a,b 1F $0
  124. # 0x20-0x3F is not included in this document
Advertisement
Add Comment
Please, Sign In to add comment