Geekboy

Untitled

Nov 11th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. sethl2matrix:
  2. ld hl,matrix
  3. ld a,(y)
  4. inc a ;djnz needs at least 1 else it loops over and that would be bad
  5. ld b,a
  6. ld a,(x)
  7. ld c,a ; load a to c so we can
  8. xor a
  9. _:
  10. add a,c
  11. djnz _
  12. ld c,a
  13. ld b,0
  14. add hl,bc ; matrix pos stored in HL
Advertisement
Add Comment
Please, Sign In to add comment