This is a port of a little game I made for iOS about five years ago
Inspired by Warioware: Twisted?
Sorry, haven't played it.
few videos of the game…and the one I could find is no good at this particular minigame. (Then again, there are, apparently, a record number of subgames in Twisted
sta $000, x
sta $100, x
; Reserving $200 for OAM display list
sta $300, x
sta $400, x
sta $500, x
sta $600, x
isn't clearing $700-$7ff, on a short inspection.
.macro ppu_load_scroll cam_x, cam_y
; Clamp scroll values
ora xscroll+1 ; Bring in X scroll coarse bit
ora yscroll+1 ; Y scroll coarse bit
sta PPUCTRL ; Re-enable NMI
Found one bug: This macro is putting both nametable selects on bit 0, which is wrong.