Guest User

Untitled

a guest
Jul 15th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ; Returns NC if there is a match
  2. ; Does C(8,2) iterations
  3. ld b,$80
  4. ld d,matrix >> 8
  5. ld hl,innerloop
  6. push hl
  7. ld hl,0
  8. add hl,sp
  9. outerloop:
  10. rlc b
  11. jr c,end
  12. ld c,b
  13. scf
  14. innerloop:
  15. ld sp,hl ;This instruction MUST GO HERE if interrupts are enabled
  16. rl c
  17. jr c,outerloop
  18. ld a,(de)
  19. and c
  20. ret po
  21. inc e
  22. ld a,(de)
  23. and c
  24. ret po
  25. inc e
  26. ld a,(de)
  27. and c
  28. ret po
  29. inc e
  30. ld a,(de)
  31. and c
  32. ret po
  33. inc e
  34. ld a,(de)
  35. and c
  36. ret po
  37. inc e
  38. ld a,(de)
  39. and c
  40. ret po
  41. inc e
  42. ld a,(de)
  43. and c
  44. ret po
  45. inc e
  46. ld a,(de)
  47. and c
  48. ret po
  49. end:
  50. pop hl
  51. ret
Add Comment
Please, Sign In to add comment