;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Macro to set a 16-bit address to the PPU_ADDR register (at $2006) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .macro PPU_SETADDR addr bit PPU_STATUS ; Read from PPU_STATUS to reset the address latch lda #>addr ; Fetch the hi-byte from 16-bit address sta PPU_ADDR ; Store the hi-byte into PPU_ADDR $2006 lda #