?login_element?

Subversion Repositories NedoOS

Rev

Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.     ; all of these should fail on i8080
  2.     ; (some will emit damaged machine code of legit i8080 instruction, like LD bc,ix)
  3.  
  4.     ORG 0x8000
  5.     OPT reset --syntax=f   ; fakes warning ON (should not matter, the error is shown any way)
  6.  
  7. rl_bc               rl bc
  8. rl_de               rl de
  9. rl_hl               rl hl
  10. rr_bc               rr bc
  11. rr_de               rr de
  12. rr_hl               rr hl
  13. sla_bc              sla bc
  14. sla_de              sla de
  15. sla_hl              sla hl
  16. sll_bc              sll bc
  17. sll_de              sll de
  18. sll_hl              sll hl
  19. sli_bc              sli bc
  20. sli_de              sli de
  21. sli_hl              sli hl
  22. sra_bc              sra bc
  23. sra_de              sra de
  24. sra_hl              sra hl
  25. srl_bc              srl bc
  26. srl_de              srl de
  27. srl_hl              srl hl
  28.  
  29. ld_bc_bc            ld bc,bc
  30. ld_bc_de            ld bc,de
  31. ld_bc_hl            ld bc,hl
  32. ld_bc_ix            ld bc,ix
  33. ld_bc_iy            ld bc,iy
  34. ld_bc_#hl#          ld bc,(hl)
  35. ld_bc_#ix_nn#       ld bc,(ix+$77)
  36. ld_bc_#iy_nn#       ld bc,(iy+$77)
  37.  
  38. ld_de_bc            ld de,bc
  39. ld_de_de            ld de,de
  40. ld_de_hl            ld de,hl
  41. ld_de_ix            ld de,ix
  42. ld_de_iy            ld de,iy
  43. ld_de_#hl#          ld de,(hl)
  44. ld_de_#ix_nn#       ld de,(ix+$77)
  45. ld_de_#iy_nn#       ld de,(iy+$77)
  46.  
  47. ld_hl_bc            ld hl,bc
  48. ld_hl_de            ld hl,de
  49. ld_hl_hl            ld hl,hl
  50. ld_hl_ix            ld hl,ix
  51. ld_hl_iy            ld hl,iy
  52. ld_hl_#ix_nn#       ld hl,(ix+$77)
  53. ld_hl_#iy_nn#       ld hl,(iy+$77)
  54.  
  55. ld_ix_bc            ld ix,bc
  56. ld_ix_de            ld ix,de
  57. ld_ix_hl            ld ix,hl
  58. ld_ix_ix            ld ix,ix
  59. ld_ix_iy            ld ix,iy
  60.  
  61. ld_iy_bc            ld iy,bc
  62. ld_iy_de            ld iy,de
  63. ld_iy_hl            ld iy,hl
  64. ld_iy_ix            ld iy,ix
  65. ld_iy_iy            ld iy,iy
  66.  
  67. ld_#hl#_bc          ld (hl),bc
  68. ld_#hl#_de          ld (hl),de
  69.  
  70. ld_#ix_nn#_bc       ld (ix+$77),bc
  71. ld_#ix_nn#_de       ld (ix+$77),de
  72. ld_#ix_nn#_hl       ld (ix+$77),hl
  73.  
  74. ld_#iy_nn#_bc       ld (iy+$77),bc
  75. ld_#iy_nn#_de       ld (iy+$77),de
  76. ld_#iy_nn#_hl       ld (iy+$77),hl
  77.  
  78. ldi_bc_#hl#         ldi bc,(hl)
  79. ldi_bc_#ix_nn#      ldi bc,(ix+$77)
  80. ldi_bc_#iy_nn#      ldi bc,(iy+$77)
  81.  
  82. ldi_de_#hl#         ldi de,(hl)
  83. ldi_de_#ix_nn#      ldi de,(ix+$77)
  84. ldi_de_#iy_nn#      ldi de,(iy+$77)
  85.  
  86. ldi_hl_#ix_nn#      ldi hl,(ix+$77)
  87. ldi_hl_#iy_nn#      ldi hl,(iy+$77)
  88.  
  89. ldi_#hl#_bc         ldi (hl),bc
  90. ldi_#hl#_de         ldi (hl),de
  91.  
  92. ldi_#ix_nn#_bc      ldi (ix+$77),bc
  93. ldi_#ix_nn#_de      ldi (ix+$77),de
  94. ldi_#ix_nn#_hl      ldi (ix+$77),hl
  95.  
  96. ldi_#iy_nn#_bc      ldi (iy+$77),bc
  97. ldi_#iy_nn#_de      ldi (iy+$77),de
  98. ldi_#iy_nn#_hl      ldi (iy+$77),hl
  99.  
  100. ldi_a_#bc#          ldi a,(bc)
  101. ldi_a_#de#          ldi a,(de)
  102. ldi_a_#hl#          ldi a,(hl)
  103. ldi_b_#hl#          ldi b,(hl)
  104. ldi_c_#hl#          ldi c,(hl)
  105. ldi_d_#hl#          ldi d,(hl)
  106. ldi_e_#hl#          ldi e,(hl)
  107. ldi_h_#hl#          ldi h,(hl)
  108. ldi_l_#hl#          ldi l,(hl)
  109. ldi_a_#ix_nn#       ldi a,(ix+$77)
  110. ldi_b_#ix_nn#       ldi b,(ix+$77)
  111. ldi_c_#ix_nn#       ldi c,(ix+$77)
  112. ldi_d_#ix_nn#       ldi d,(ix+$77)
  113. ldi_e_#ix_nn#       ldi e,(ix+$77)
  114. ldi_h_#ix_nn#       ldi h,(ix+$77)
  115. ldi_l_#ix_nn#       ldi l,(ix+$77)
  116. ldi_a_#iy_nn#       ldi a,(iy+$77)
  117. ldi_b_#iy_nn#       ldi b,(iy+$77)
  118. ldi_c_#iy_nn#       ldi c,(iy+$77)
  119. ldi_d_#iy_nn#       ldi d,(iy+$77)
  120. ldi_e_#iy_nn#       ldi e,(iy+$77)
  121. ldi_h_#iy_nn#       ldi h,(iy+$77)
  122. ldi_l_#iy_nn#       ldi l,(iy+$77)
  123.  
  124. ldd_a_#bc#          ldd a,(bc)
  125. ldd_a_#de#          ldd a,(de)
  126. ldd_a_#hl#          ldd a,(hl)
  127. ldd_b_#hl#          ldd b,(hl)
  128. ldd_c_#hl#          ldd c,(hl)
  129. ldd_d_#hl#          ldd d,(hl)
  130. ldd_e_#hl#          ldd e,(hl)
  131. ldd_h_#hl#          ldd h,(hl)
  132. ldd_l_#hl#          ldd l,(hl)
  133. ldd_a_#ix_nn#       ldd a,(ix+$77)
  134. ldd_b_#ix_nn#       ldd b,(ix+$77)
  135. ldd_c_#ix_nn#       ldd c,(ix+$77)
  136. ldd_d_#ix_nn#       ldd d,(ix+$77)
  137. ldd_e_#ix_nn#       ldd e,(ix+$77)
  138. ldd_h_#ix_nn#       ldd h,(ix+$77)
  139. ldd_l_#ix_nn#       ldd l,(ix+$77)
  140. ldd_a_#iy_nn#       ldd a,(iy+$77)
  141. ldd_b_#iy_nn#       ldd b,(iy+$77)
  142. ldd_c_#iy_nn#       ldd c,(iy+$77)
  143. ldd_d_#iy_nn#       ldd d,(iy+$77)
  144. ldd_e_#iy_nn#       ldd e,(iy+$77)
  145. ldd_h_#iy_nn#       ldd h,(iy+$77)
  146. ldd_l_#iy_nn#       ldd l,(iy+$77)
  147.  
  148. ldi_#bc#_a          ldi (bc),a
  149. ldi_#de#_a          ldi (de),a
  150. ldi_#hl#_a          ldi (hl),a
  151. ldi_#hl#_b          ldi (hl),b
  152. ldi_#hl#_c          ldi (hl),c
  153. ldi_#hl#_d          ldi (hl),d
  154. ldi_#hl#_e          ldi (hl),e
  155. ldi_#hl#_h          ldi (hl),h
  156. ldi_#hl#_l          ldi (hl),l
  157. ldi_#ix_nn#_a       ldi (ix+$77),a
  158. ldi_#ix_nn#_b       ldi (ix+$77),b
  159. ldi_#ix_nn#_c       ldi (ix+$77),c
  160. ldi_#ix_nn#_d       ldi (ix+$77),d
  161. ldi_#ix_nn#_e       ldi (ix+$77),e
  162. ldi_#ix_nn#_h       ldi (ix+$77),h
  163. ldi_#ix_nn#_l       ldi (ix+$77),l
  164. ldi_#iy_nn#_a       ldi (iy+$77),a
  165. ldi_#iy_nn#_b       ldi (iy+$77),b
  166. ldi_#iy_nn#_c       ldi (iy+$77),c
  167. ldi_#iy_nn#_d       ldi (iy+$77),d
  168. ldi_#iy_nn#_e       ldi (iy+$77),e
  169. ldi_#iy_nn#_h       ldi (iy+$77),h
  170. ldi_#iy_nn#_l       ldi (iy+$77),l
  171.  
  172. ldd_#bc#_a          ldd (bc),a
  173. ldd_#de#_a          ldd (de),a
  174. ldd_#hl#_a          ldd (hl),a
  175. ldd_#hl#_b          ldd (hl),b
  176. ldd_#hl#_c          ldd (hl),c
  177. ldd_#hl#_d          ldd (hl),d
  178. ldd_#hl#_e          ldd (hl),e
  179. ldd_#hl#_h          ldd (hl),h
  180. ldd_#hl#_l          ldd (hl),l
  181. ldd_#ix_nn#_a       ldd (ix+$77),a
  182. ldd_#ix_nn#_b       ldd (ix+$77),b
  183. ldd_#ix_nn#_c       ldd (ix+$77),c
  184. ldd_#ix_nn#_d       ldd (ix+$77),d
  185. ldd_#ix_nn#_e       ldd (ix+$77),e
  186. ldd_#ix_nn#_h       ldd (ix+$77),h
  187. ldd_#ix_nn#_l       ldd (ix+$77),l
  188. ldd_#iy_nn#_a       ldd (iy+$77),a
  189. ldd_#iy_nn#_b       ldd (iy+$77),b
  190. ldd_#iy_nn#_c       ldd (iy+$77),c
  191. ldd_#iy_nn#_d       ldd (iy+$77),d
  192. ldd_#iy_nn#_e       ldd (iy+$77),e
  193. ldd_#iy_nn#_h       ldd (iy+$77),h
  194. ldd_#iy_nn#_l       ldd (iy+$77),l
  195.  
  196. ldi_#hl#_nn         ldi (hl),$44
  197. ldi_#ix_nn#_nn      ldi (ix+$77),$44
  198. ldi_#iy_nn#_nn      ldi (iy+$77),$44
  199.  
  200. ldd_#hl#_nn         ldd (hl),$44
  201. ldd_#ix_nn#_nn      ldd (ix+$77),$44
  202. ldd_#iy_nn#_nn      ldd (iy+$77),$44
  203.  
  204. adc_de_bc           adc de,bc
  205. adc_de_de           adc de,de
  206. adc_de_hl           adc de,hl
  207. adc_de_sp           adc de,sp
  208.  
  209. add_de_bc           add de,bc
  210. add_de_de           add de,de
  211. add_de_hl           add de,hl
  212. add_de_sp           add de,sp
  213.  
  214. sbc_de_bc           sbc de,bc
  215. sbc_de_de           sbc de,de
  216. sbc_de_hl           sbc de,hl
  217. sbc_de_sp           sbc de,sp
  218.  
  219. sub_de_bc           sub de,bc
  220. sub_de_de           sub de,de
  221. sub_de_hl           sub de,hl
  222. sub_de_sp           sub de,sp
  223. sub_hl_bc           sub hl,bc
  224. sub_hl_de           sub hl,de
  225. sub_hl_hl           sub hl,hl
  226. sub_hl_sp           sub hl,sp
  227.  
  228.     ; ZXNext section - there are no true regular fakes yet, but some specials
  229. zxn_mul             mul         ; no warning "correct" syntax: "mul d,e" and "mul de"
  230.     ; these definitely should not work in i8080 mode (trying to switch --zxnext is fatal error)
  231. zxn_csp_break       break       ; CSpect emulator only: breakpoint instruction
  232. zxn_csp_exit        exit        ; CSpect emulator only: exit instruction
  233.