Advertisement
Runer112

Put16x16_X8

Jan 10th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Put16x16_X8:
  2. ld de,(IndirectSpriteAddress) ; could just pass this as an argument for more flexibility
  3. ld a,(foo) ; this could also be passed as an argument
  4. ld l,a
  5. add a,a
  6. add a,l
  7. ld h,0
  8. ld l,a
  9. add hl,hl
  10. add hl,hl
  11. ld bc,plotSScreen+1
  12. add hl,bc
  13. ld bc,(16<<8)|11
  14. drawLoop:
  15. ld a,(de)
  16. ld (hl),a
  17. inc de
  18. inc hl
  19. ld a,(de)
  20. ld (hl),a
  21. inc de
  22. ld a,b
  23. ld b,0
  24. add hl,bc
  25. ld b,a
  26. djnz drawLoop
  27. ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement