Advertisement
NovaYoshi

z80 dumb additions

Apr 1st, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. CP HL, DE
  2. CP DE, HL
  3. CP HL, BC
  4. CP DE, BC
  5. CP HL, IX
  6. CP DE, IX
  7. CP HL, IY
  8. CP DE, IY
  9. CP HL, word
  10. CP DE, word
  11. CP BC, word
  12. CP IX, word
  13. CP HL, (word)
  14. CP DE, (word)
  15. CP BC, (word)
  16. CP IX, (word) // $DD uses SP, $FD uses IY
  17. ADD HL, A
  18. SUB HL, A
  19. ADD DE, A
  20. SUB DE, A
  21. ADD IX, A
  22. SUB IX, A
  23. ADD IY, A
  24. SUB IY, A
  25. ADD BC, A
  26. SUB BC, A
  27. ADD HL, unsigned byte
  28. SUB HL, unsigned byte
  29. ADD DE, unsigned byte
  30. SUB DE, unsigned byte
  31. ADD HL, unsigned word
  32. SUB HL, unsigned word
  33. ADD DE, unsigned word
  34. SUB DE, unsigned word
  35. ADD HL, unsigned byte (word)
  36. SUB HL, unsigned byte (word)
  37. ADD DE, unsigned byte (word)
  38. SUB DE, unsigned byte (word)
  39. ADD HL, unsigned word (word)
  40. SUB HL, unsigned word (word)
  41. ADD DE, unsigned word (word)
  42. SUB DE, unsigned word (word)
  43. LD B,(word)
  44. LD C,(word)
  45. LD D,(word)
  46. LD E,(word)
  47. LD (word),B
  48. LD (word),C
  49. LD (word),D
  50. LD (word),E
  51. LD HL, (HL)
  52. LD DE, (DE)
  53. LD BC, (BC)
  54. LD IX, (IX)
  55. NEG HL
  56. NEG DE
  57. EX H, L
  58. EX D, E
  59. ADD B, byte
  60. ADD C, byte
  61. ADD D, byte
  62. ADD E, byte
  63. SUB B, byte
  64. SUB C, byte
  65. SUB D, byte
  66. SUB E, byte
  67. ADD B, (word)
  68. ADD C, (word)
  69. ADD D, (word)
  70. ADD E, (word)
  71. SUB B, (word)
  72. SUB C, (word)
  73. SUB D, (word)
  74. SUB E, (word)
  75. MUL HL, +A
  76. MUL HL, -A
  77. MUL HL, signed A
  78. MUL HL, byte
  79. MUL HL, byte (word)
  80. MUL HL, word
  81. MUL HL, (word)
  82. MUL HL, DE
  83. MUL DE, +A
  84. MUL DE, -A
  85. MUL DE, signed A
  86. MUL DE, byte
  87. MUL DE, byte (word)
  88. MUL DE, word
  89. MUL DE, (word)
  90. MUL DE, HL
  91. SLA HL
  92. SLA DE
  93. SLA BC
  94. SRL HL
  95. SRL DE
  96. RLCA HL
  97. RRCA HL
  98. RLCA DE
  99. RRCA DE
  100. ADD DE, HL
  101. ADD DE, BC
  102. MUL H, L
  103. MUL D, E
  104. MUL HL, HL
  105. MUL DE, DE
  106. SQRT HL
  107. SQRT DE
  108. SQRT A
  109. SQRT (word)
  110. INC (word)
  111. DEC (word)
  112. INC (IX)
  113. DEC (IX)
  114. ABS A
  115. ABS HL
  116. ABS DE
  117. ABS IX
  118. DIV HL, unsigned A
  119. DIV HL, unsigned byte
  120. DIV HL, unsigned word
  121. DIV HL, unsigned DE
  122. DIV DE, unsigned A
  123. DIV DE, unsigned byte
  124. DIV DE, unsigned word
  125. DIV DE, unsigned HL
  126. SEX A, DE
  127. SEX E, DE
  128. REV A
  129. REV HL
  130. BCD A
  131. BCD HL
  132. MOD HL, A
  133. SLA HL, 1
  134. SLA HL, 2
  135. SLA HL, 3
  136. SLA HL, 4
  137. SLA HL, 5
  138. SLA HL, 6
  139. SLA HL, 7
  140. PACK
  141. UNPACK
  142. EX A,(word)
  143. EX HL,(word)
  144. EX DE,(word)
  145. EX BC,(word)
  146. EX IX,(word)
  147. ADD H,D L,E
  148. SUB H,D L,E
  149. LD (word), (word)
  150. JP (here+(A*2))
  151. JP (word+(A*2))
  152. DJNZ BC
  153. DJNZ C
  154. LD (HL--), A
  155. LD (HL++), A
  156. LD A, (HL--)
  157. LD A, (HL++)
  158. LD (DE--), A
  159. LD (DE++), A
  160. LD A, (DE--)
  161. LD A, (DE++)
  162. LD (IX--), A
  163. LD (IX++), A
  164. LD A, (IX--)
  165. LD A, (IX++)
  166. LD (IY--), A
  167. LD (IY++), A
  168. LD A, (IY--)
  169. LD A, (IY++)
  170. SLA H,L
  171. SRL H,L
  172. SLA A, 2
  173. SLA A, 3
  174. SLA A, 4
  175. SLA A, 5
  176. SLA A, 6
  177. SLA A, 7
  178. RESAVE1 - write new value of register most recently read from RAM back to RAM at same location
  179. RESAVE2
  180. RESAVE3
  181. EX DE, BC
  182. EX IX, IY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement