-define-atomic-atomic evaluate sprites scanline: (N)
+define-atomic evaluate sprites scanline: (N)
delete all of secondary OAM
delete all of evaluation line
repeat 32
set lower mask to mask
get bit mask (join "0x" ((item (16 * tile + scanline + table+9) of CHR-ROM)))
-define-atomic-atomic compute background pixel
+define-atomic compute background pixel
; "Fetch it from CHR and decode, not unlike sprites"
; "Only a bit different indexing"
get pattern tile: BG: Nametable scanline: (mY mod 8) table: PPU Background pattern table
end
end
-define-atomic-atomic compute pixel
+define-atomic compute pixel
; "Perform BACKGROUND tasks"
if mX mod 8 = 0 then
set PPU VRAM address to 8192 + (mX/8) + (32*(floor of (mY / 8)))