Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Returns NC if there is a match
- ; Does C(8,2) iterations
- ld b,$80
- ld d,matrix >> 8
- ld hl,innerloop
- push hl
- ld hl,0
- add hl,sp
- outerloop:
- rlc b
- jr c,end
- ld c,b
- scf
- innerloop:
- ld sp,hl ;This instruction MUST GO HERE if interrupts are enabled
- rl c
- jr c,outerloop
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- inc e
- ld a,(de)
- and c
- ret po
- end:
- pop hl
- ret
Add Comment
Please, Sign In to add comment