Advertisement
Guest User

Untitled

a guest
Oct 10th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ;HL points to start of the data (palette)
  2.  
  3. ld de,mpLcdPalette ;Copy palette
  4. ld bc,2*64
  5. ldir
  6.  
  7. ld de,vram ;HL now points to the image, which is scaled up 4 times when rendered.
  8. ld b,60
  9. renderYLoop:
  10. push bc
  11.  
  12. push hl
  13. ld b,4
  14. renderDoubleYLoop:
  15. pop hl
  16. push hl
  17. push bc
  18.  
  19. ld b,80
  20. XrenderLoop:
  21. ld a,(hl)
  22. ld (de),a
  23. inc de
  24. ld (de),a
  25. inc de
  26. ld (de),a
  27. inc de
  28. ld (de),a
  29. inc de
  30. inc hl
  31. djnz XrenderLoop
  32.  
  33. pop bc
  34. djnz renderDoubleYLoop
  35. pop af
  36.  
  37. pop bc
  38. djnz renderYLoop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement