Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. ppu setup:
  2. writes to 2006
  3. pointer setup
  4. tile row = 0
  5. meta row = 0
  6. meta tile = 0 (beginning of row)
  7.  
  8. meta row loop: (0-5 = 6 rows of meta tiles on screen)
  9.  
  10. meta tile loop: (0-7 = 8 meta tiles per row)
  11. load tile
  12. write tile
  13. add/write 3x more
  14. iny
  15.  
  16. add 1 to meta tile
  17. if meta tile is not 8, go up to meta tile loop
  18.  
  19. meta tile = 0
  20.  
  21. add 1 to tile row (0-3 = 4 rows of normal tiles per meta tile)
  22. if tile row = 4, all done with that meta tile row, so go down to next meta row
  23. if tile row is not 4, subtract 8 from Y (rewind to start of row), go up to meta tile loop to repeat the same row again
  24.  
  25. next meta row:
  26. tile row = 0
  27. add 1 to meta row
  28. if meta row is not 6, go up to meta row loop
  29.  
  30. all done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement