An emulator, assembler, and disassembler for the Sega Game Gear
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

324 lines
4.2 KiB

  1. # Copyright (C) 2014-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
  2. # Released under the terms of the MIT License. See LICENSE for details.
  3. # *** ASM Instruction Description File ***
  4. # This file is used to generate 'instructions.inc.c'.
  5. # `make` should trigger a rebuild when this file is modified; if not, use:
  6. # `python scripts/update_asm_instructions.py`.
  7. ---
  8. adc:
  9. args: yes
  10. cases:
  11. - type: [register, register]
  12. cases:
  13. - cond: [a, a]
  14. return: [0x8F]
  15. - cond: [a, b]
  16. return: [0x88]
  17. - cond: [a, c]
  18. return: [0x89]
  19. - cond: [a, d]
  20. return: [0x8A]
  21. - cond: [a, e]
  22. return: [0x8B]
  23. - cond: [a, h|ih]
  24. return: [0x8C]
  25. - cond: [a, l|il]
  26. return: [0x8D]
  27. - cond: [hl, bc]
  28. return: [0xED, 0x4A]
  29. - cond: [hl, de]
  30. return: [0xED, 0x5A]
  31. - cond: [hl, hl]
  32. return: [0xED, 0x6A]
  33. - cond: [hl, sp]
  34. return: [0xED, 0x7A]
  35. - type: [register, immediate]
  36. cases:
  37. - cond: [a, u8]
  38. return: [0xCE, u8]
  39. - type: [register, indirect_hl_or_indexed]
  40. cases:
  41. - cond: [a, _]
  42. return: [0x8E]
  43. # add:
  44. # args: no
  45. # return: error
  46. # and:
  47. # args: no
  48. # return: error
  49. # bit:
  50. # args: no
  51. # return: error
  52. # call:
  53. # args: no
  54. # return: error
  55. # ccf:
  56. # args: no
  57. # return: error
  58. # cp:
  59. # args: no
  60. # return: error
  61. # cpd:
  62. # args: no
  63. # return: error
  64. # cpdr:
  65. # args: no
  66. # return: error
  67. # cpi:
  68. # args: no
  69. # return: error
  70. # cpir:
  71. # args: no
  72. # return: error
  73. # cpl:
  74. # args: no
  75. # return: error
  76. # daa:
  77. # args: no
  78. # return: error
  79. # dec:
  80. # args: no
  81. # return: error
  82. # di:
  83. # args: no
  84. # return: error
  85. # djnz:
  86. # args: no
  87. # return: error
  88. # ei:
  89. # args: no
  90. # return: error
  91. # ex:
  92. # args: no
  93. # return: error
  94. # exx:
  95. # args: no
  96. # return: error
  97. # halt:
  98. # args: no
  99. # return: error
  100. # im:
  101. # args: no
  102. # return: error
  103. # in:
  104. # args: no
  105. # return: error
  106. # inc:
  107. # args: no
  108. # return: error
  109. # ind:
  110. # args: no
  111. # return: error
  112. # indr:
  113. # args: no
  114. # return: error
  115. ini:
  116. args: no
  117. return: [0xED, 0xA2]
  118. # inir:
  119. # args: no
  120. # return: error
  121. # jp:
  122. # args: no
  123. # return: error
  124. # jr:
  125. # args: no
  126. # return: error
  127. # ld:
  128. # args: no
  129. # return: error
  130. # ldd:
  131. # args: no
  132. # return: error
  133. # lddr:
  134. # args: no
  135. # return: error
  136. # ldi:
  137. # args: no
  138. # return: error
  139. # ldir:
  140. # args: no
  141. # return: error
  142. # neg:
  143. # args: no
  144. # return: error
  145. # nop:
  146. # args: no
  147. # return: error
  148. # or:
  149. # args: no
  150. # return: error
  151. # otdr:
  152. # args: no
  153. # return: error
  154. # otir:
  155. # args: no
  156. # return: error
  157. # out:
  158. # args: no
  159. # return: error
  160. # outd:
  161. # args: no
  162. # return: error
  163. # outi:
  164. # args: no
  165. # return: error
  166. # pop:
  167. # args: no
  168. # return: error
  169. # push:
  170. # args: no
  171. # return: error
  172. # res:
  173. # args: no
  174. # return: error
  175. # ret:
  176. # args: no
  177. # return: error
  178. # reti:
  179. # args: no
  180. # return: error
  181. # retn:
  182. # args: no
  183. # return: error
  184. # rl:
  185. # args: no
  186. # return: error
  187. # rla:
  188. # args: no
  189. # return: error
  190. # rlc:
  191. # args: no
  192. # return: error
  193. # rlca:
  194. # args: no
  195. # return: error
  196. # rld:
  197. # args: no
  198. # return: error
  199. # rr:
  200. # args: no
  201. # return: error
  202. # rra:
  203. # args: no
  204. # return: error
  205. # rrc:
  206. # args: no
  207. # return: error
  208. # rrca:
  209. # args: no
  210. # return: error
  211. # rrd:
  212. # args: no
  213. # return: error
  214. # rst:
  215. # args: no
  216. # return: error
  217. # sbc:
  218. # args: no
  219. # return: error
  220. # scf:
  221. # args: no
  222. # return: error
  223. # set:
  224. # args: no
  225. # return: error
  226. # sl1:
  227. # args: no
  228. # return: error
  229. # sla:
  230. # args: no
  231. # return: error
  232. # sll:
  233. # args: no
  234. # return: error
  235. # sls:
  236. # args: no
  237. # return: error
  238. # sra:
  239. # args: no
  240. # return: error
  241. # srl:
  242. # args: no
  243. # return: error
  244. # sub:
  245. # args: no
  246. # return: error
  247. # xor:
  248. # args: no
  249. # return: error