Skip to content

Instantly share code, notes, and snippets.

@BlockoS
Last active April 2, 2018 20:34
Show Gist options
  • Save BlockoS/a80d634316e06ff08e770df40f9c928e to your computer and use it in GitHub Desktop.
Save BlockoS/a80d634316e06ff08e770df40f9c928e to your computer and use it in GitHub Desktop.
:(
; ex af, af'
; add ix, de ; 15 ix += de
; exx
; ld a,ixh ; 4 a = hi(ix)
; and 31 ; 7 a &= 31
;
; xor l ; 4 l = 0
; ld h,a ; 4 h = a
; srl h ; 8 lsr h
; rr l ; 8 ror l
; srl h ; 8 lsr h
; rr l ; 8 ror l
; ld bc,pattern_{line} ; 10 bc = pattern_{line}
; add hl,bc ; 11 hl += bc
; ex af, af'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment