opnames.c 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /* opnames.c Copyright (C) Codemist 1993-2002 */
  2. /*
  3. * This code may be used and modified, and redistributed in binary
  4. * or source form, subject to the "CCL Public License", which should
  5. * accompany it. This license is a variant on the BSD license, and thus
  6. * permits use of code derived from this in either open and commercial
  7. * projects: but it does require that updates to this code be made
  8. * available back to the originators of the package.
  9. * Before merging other code in with this or linking this code
  10. * with other packages or libraries please check that the license terms
  11. * of the other material are compatible with those of this.
  12. */
  13. /* Signature: 70e88d9f 08-Apr-2002 */
  14. /*
  15. * table giving printable names for all 256 byte opcodes.
  16. */
  17. static char *opnames[256] =
  18. {
  19. "LOADLOC", /* 0x00 */
  20. "LOADLOC0", /* 0x01 */
  21. "LOADLOC1", /* 0x02 */
  22. "LOADLOC2", /* 0x03 */
  23. "LOADLOC3", /* 0x04 */
  24. "LOADLOC4", /* 0x05 */
  25. "LOADLOC5", /* 0x06 */
  26. "LOADLOC6", /* 0x07 */
  27. "LOADLOC7", /* 0x08 */
  28. "LOADLOC8", /* 0x09 */
  29. "LOADLOC9", /* 0x0a */
  30. "LOADLOC10", /* 0x0b */
  31. "LOADLOC11", /* 0x0c */
  32. "LOC0LOC1", /* 0x0d */
  33. "LOC1LOC2", /* 0x0e */
  34. "LOC2LOC3", /* 0x0f */
  35. "LOC1LOC0", /* 0x10 */
  36. "LOC2LOC1", /* 0x11 */
  37. "LOC3LOC2", /* 0x12 */
  38. "VNIL", /* 0x13 */
  39. "LOADLIT", /* 0x14 */
  40. "LOADLIT1", /* 0x15 */
  41. "LOADLIT2", /* 0x16 */
  42. "LOADLIT3", /* 0x17 */
  43. "LOADLIT4", /* 0x18 */
  44. "LOADLIT5", /* 0x19 */
  45. "LOADLIT6", /* 0x1a */
  46. "LOADLIT7", /* 0x1b */
  47. "LOADFREE", /* 0x1c */
  48. "LOADFREE1", /* 0x1d */
  49. "LOADFREE2", /* 0x1e */
  50. "LOADFREE3", /* 0x1f */
  51. "LOADFREE4", /* 0x20 */
  52. "STORELOC", /* 0x21 */
  53. "STORELOC0", /* 0x22 */
  54. "STORELOC1", /* 0x23 */
  55. "STORELOC2", /* 0x24 */
  56. "STORELOC3", /* 0x25 */
  57. "STORELOC4", /* 0x26 */
  58. "STORELOC5", /* 0x27 */
  59. "STORELOC6", /* 0x28 */
  60. "STORELOC7", /* 0x29 */
  61. "STOREFREE", /* 0x2a */
  62. "STOREFREE1", /* 0x2b */
  63. "STOREFREE2", /* 0x2c */
  64. "STOREFREE3", /* 0x2d */
  65. "LOADLEX", /* 0x2e */
  66. "STORELEX", /* 0x2f */
  67. "CLOSURE", /* 0x30 */
  68. "CARLOC0", /* 0x31 */
  69. "CARLOC1", /* 0x32 */
  70. "CARLOC2", /* 0x33 */
  71. "CARLOC3", /* 0x34 */
  72. "CARLOC4", /* 0x35 */
  73. "CARLOC5", /* 0x36 */
  74. "CARLOC6", /* 0x37 */
  75. "CARLOC7", /* 0x38 */
  76. "CARLOC8", /* 0x39 */
  77. "CARLOC9", /* 0x3a */
  78. "CARLOC10", /* 0x3b */
  79. "CARLOC11", /* 0x3c */
  80. "CDRLOC0", /* 0x3d */
  81. "CDRLOC1", /* 0x3e */
  82. "CDRLOC2", /* 0x3f */
  83. "CDRLOC3", /* 0x40 */
  84. "CDRLOC4", /* 0x41 */
  85. "CDRLOC5", /* 0x42 */
  86. "CAARLOC0", /* 0x43 */
  87. "CAARLOC1", /* 0x44 */
  88. "CAARLOC2", /* 0x45 */
  89. "CAARLOC3", /* 0x46 */
  90. "CALL0", /* 0x47 */
  91. "CALL1", /* 0x48 */
  92. "CALL2", /* 0x49 */
  93. "CALL2R", /* 0x4a */
  94. "CALL3", /* 0x4b */
  95. "CALLN", /* 0x4c */
  96. "CALL0_0", /* 0x4d */
  97. "CALL0_1", /* 0x4e */
  98. "CALL0_2", /* 0x4f */
  99. "CALL0_3", /* 0x50 */
  100. "CALL1_0", /* 0x51 */
  101. "CALL1_1", /* 0x52 */
  102. "CALL1_2", /* 0x53 */
  103. "CALL1_3", /* 0x54 */
  104. "CALL1_4", /* 0x55 */
  105. "CALL1_5", /* 0x56 */
  106. "CALL2_0", /* 0x57 */
  107. "CALL2_1", /* 0x58 */
  108. "CALL2_2", /* 0x59 */
  109. "CALL2_3", /* 0x5a */
  110. "CALL2_4", /* 0x5b */
  111. "BUILTIN0", /* 0x5c */
  112. "BUILTIN1", /* 0x5d */
  113. "BUILTIN2", /* 0x5e */
  114. "BUILTIN2R", /* 0x5f */
  115. "BUILTIN3", /* 0x60 */
  116. "APPLY1", /* 0x61 */
  117. "APPLY2", /* 0x62 */
  118. "APPLY3", /* 0x63 */
  119. "APPLY4", /* 0x64 */
  120. "JCALL", /* 0x65 */
  121. "JCALLN", /* 0x66 */
  122. "JUMP", /* 0x67 */
  123. "JUMP_B", /* 0x68 */
  124. "JUMP_L", /* 0x69 */
  125. "JUMP_BL", /* 0x6a */
  126. "JUMPNIL", /* 0x6b */
  127. "JUMPNIL_B", /* 0x6c */
  128. "JUMPNIL_L", /* 0x6d */
  129. "JUMPNIL_BL", /* 0x6e */
  130. "JUMPT", /* 0x6f */
  131. "JUMPT_B", /* 0x70 */
  132. "JUMPT_L", /* 0x71 */
  133. "JUMPT_BL", /* 0x72 */
  134. "JUMPATOM", /* 0x73 */
  135. "JUMPATOM_B", /* 0x74 */
  136. "JUMPATOM_L", /* 0x75 */
  137. "JUMPATOM_BL", /* 0x76 */
  138. "JUMPNATOM", /* 0x77 */
  139. "JUMPNATOM_B", /* 0x78 */
  140. "JUMPNATOM_L", /* 0x79 */
  141. "JUMPNATOM_BL", /* 0x7a */
  142. "JUMPEQ", /* 0x7b */
  143. "JUMPEQ_B", /* 0x7c */
  144. "JUMPEQ_L", /* 0x7d */
  145. "JUMPEQ_BL", /* 0x7e */
  146. "JUMPNE", /* 0x7f */
  147. "JUMPNE_B", /* 0x80 */
  148. "JUMPNE_L", /* 0x81 */
  149. "JUMPNE_BL", /* 0x82 */
  150. "JUMPEQUAL", /* 0x83 */
  151. "JUMPEQUAL_B", /* 0x84 */
  152. "JUMPEQUAL_L", /* 0x85 */
  153. "JUMPEQUAL_BL", /* 0x86 */
  154. "JUMPNEQUAL", /* 0x87 */
  155. "JUMPNEQUAL_B", /* 0x88 */
  156. "JUMPNEQUAL_L", /* 0x89 */
  157. "JUMPNEQUAL_BL", /* 0x8a */
  158. "JUMPL0NIL", /* 0x8b */
  159. "JUMPL0T", /* 0x8c */
  160. "JUMPL1NIL", /* 0x8d */
  161. "JUMPL1T", /* 0x8e */
  162. "JUMPL2NIL", /* 0x8f */
  163. "JUMPL2T", /* 0x90 */
  164. "JUMPL3NIL", /* 0x91 */
  165. "JUMPL3T", /* 0x92 */
  166. "JUMPL4NIL", /* 0x93 */
  167. "JUMPL4T", /* 0x94 */
  168. "JUMPST0NIL", /* 0x95 */
  169. "JUMPST0T", /* 0x96 */
  170. "JUMPST1NIL", /* 0x97 */
  171. "JUMPST1T", /* 0x98 */
  172. "JUMPST2NIL", /* 0x99 */
  173. "JUMPST2T", /* 0x9a */
  174. "JUMPL0ATOM", /* 0x9b */
  175. "JUMPL0NATOM", /* 0x9c */
  176. "JUMPL1ATOM", /* 0x9d */
  177. "JUMPL1NATOM", /* 0x9e */
  178. "JUMPL2ATOM", /* 0x9f */
  179. "JUMPL2NATOM", /* 0xa0 */
  180. "JUMPL3ATOM", /* 0xa1 */
  181. "JUMPL3NATOM", /* 0xa2 */
  182. "JUMPFREE1NIL", /* 0xa3 */
  183. "JUMPFREE1T", /* 0xa4 */
  184. "JUMPFREE2NIL", /* 0xa5 */
  185. "JUMPFREE2T", /* 0xa6 */
  186. "JUMPFREE3NIL", /* 0xa7 */
  187. "JUMPFREE3T", /* 0xa8 */
  188. "JUMPFREE4NIL", /* 0xa9 */
  189. "JUMPFREE4T", /* 0xaa */
  190. "JUMPFREENIL", /* 0xab */
  191. "JUMPFREET", /* 0xac */
  192. "JUMPLIT1EQ", /* 0xad */
  193. "JUMPLIT1NE", /* 0xae */
  194. "JUMPLIT2EQ", /* 0xaf */
  195. "JUMPLIT2NE", /* 0xb0 */
  196. "JUMPLIT3EQ", /* 0xb1 */
  197. "JUMPLIT3NE", /* 0xb2 */
  198. "JUMPLIT4EQ", /* 0xb3 */
  199. "JUMPLIT4NE", /* 0xb4 */
  200. "JUMPLITEQ", /* 0xb5 */
  201. "JUMPLITNE", /* 0xb6 */
  202. "JUMPB1NIL", /* 0xb7 */
  203. "JUMPB1T", /* 0xb8 */
  204. "JUMPB2NIL", /* 0xb9 */
  205. "JUMPB2T", /* 0xba */
  206. "JUMPFLAGP", /* 0xbb */
  207. "JUMPNFLAGP", /* 0xbc */
  208. "JUMPEQCAR", /* 0xbd */
  209. "JUMPNEQCAR", /* 0xbe */
  210. "CATCH", /* 0xbf */
  211. "CATCH_B", /* 0xc0 */
  212. "CATCH_L", /* 0xc1 */
  213. "CATCH_BL", /* 0xc2 */
  214. "UNCATCH", /* 0xc3 */
  215. "THROW", /* 0xc4 */
  216. "PROTECT", /* 0xc5 */
  217. "UNPROTECT", /* 0xc6 */
  218. "PVBIND", /* 0xc7 */
  219. "PVRESTORE", /* 0xc8 */
  220. "FREEBIND", /* 0xc9 */
  221. "FREERSTR", /* 0xca */
  222. "EXIT", /* 0xcb */
  223. "NILEXIT", /* 0xcc */
  224. "LOC0EXIT", /* 0xcd */
  225. "LOC1EXIT", /* 0xce */
  226. "LOC2EXIT", /* 0xcf */
  227. "PUSH", /* 0xd0 */
  228. "PUSHNIL", /* 0xd1 */
  229. "PUSHNIL2", /* 0xd2 */
  230. "PUSHNIL3", /* 0xd3 */
  231. "PUSHNILS", /* 0xd4 */
  232. "POP", /* 0xd5 */
  233. "LOSE", /* 0xd6 */
  234. "LOSE2", /* 0xd7 */
  235. "LOSE3", /* 0xd8 */
  236. "LOSES", /* 0xd9 */
  237. "SWOP", /* 0xda */
  238. "EQ", /* 0xdb */
  239. "EQCAR", /* 0xdc */
  240. "EQUAL", /* 0xdd */
  241. "NUMBERP", /* 0xde */
  242. "CAR", /* 0xdf */
  243. "CDR", /* 0xe0 */
  244. "CAAR", /* 0xe1 */
  245. "CADR", /* 0xe2 */
  246. "CDAR", /* 0xe3 */
  247. "CDDR", /* 0xe4 */
  248. "CONS", /* 0xe5 */
  249. "NCONS", /* 0xe6 */
  250. "XCONS", /* 0xe7 */
  251. "ACONS", /* 0xe8 */
  252. "LENGTH", /* 0xe9 */
  253. "LIST2", /* 0xea */
  254. "LIST2STAR", /* 0xeb */
  255. "LIST3", /* 0xec */
  256. "PLUS2", /* 0xed */
  257. "ADD1", /* 0xee */
  258. "DIFFERENCE", /* 0xef */
  259. "SUB1", /* 0xf0 */
  260. "TIMES2", /* 0xf1 */
  261. "GREATERP", /* 0xf2 */
  262. "LESSP", /* 0xf3 */
  263. "FLAGP", /* 0xf4 */
  264. "GET", /* 0xf5 */
  265. "LITGET", /* 0xf6 */
  266. "GETV", /* 0xf7 */
  267. "QGETV", /* 0xf8 */
  268. "QGETVN", /* 0xf9 */
  269. "BIGSTACK", /* 0xfa */
  270. "BIGCALL", /* 0xfb */
  271. "ICASE", /* 0xfc */
  272. "FASTGET", /* 0xfd */
  273. "SPARE1", /* 0xfe */
  274. "SPARE2", /* 0xff */
  275. };
  276. /* end of opnames.c */