diff options
Diffstat (limited to 'scroll/include/ppu.s')
| -rw-r--r-- | scroll/include/ppu.s | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/scroll/include/ppu.s b/scroll/include/ppu.s index 23fd978..34410a0 100644 --- a/scroll/include/ppu.s +++ b/scroll/include/ppu.s @@ -1,5 +1,3 @@ -.segment "CODE" - .scope PPU CONTROL = $2000 MASK = $2001 @@ -7,21 +5,10 @@ SCROLL = $2005 ADDRESS = $2006 DATA = $2007 -.endscope -.macro PPU_ADDR address - lda #.HIBYTE(address) - sta PPU::ADDRESS - lda #.LOBYTE(address) - sta PPU::ADDRESS -.endmacro + ;; Variable that shadows the value on PPU::CONTROL. + zp_control = $80 -;; WRITE_PPU_DATA is a macro that will write into PPU::ADDRESS the given address -;; and into PPU::DATA the given byte value. -.macro WRITE_PPU_DATA address, value - bit PPU::STATUS - - PPU_ADDR address - lda #value - sta PPU::DATA -.endmacro + ;; Variable that shadows the value on PPU::MASK. + zp_mask = $81 +.endscope |
