diff options
Diffstat (limited to 'shared/ppu.s')
| -rw-r--r-- | shared/ppu.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/shared/ppu.s b/shared/ppu.s new file mode 100644 index 0000000..42acb06 --- /dev/null +++ b/shared/ppu.s @@ -0,0 +1,11 @@ +;; WRITE_PPU_DATA is a macro that will write into PPUADDR the given address and +;; into PPUDATA the given byte value. +.macro WRITE_PPU_DATA address, value + bit $2002 + lda #.HIBYTE(address) + sta $2006 + lda #.LOBYTE(address) + sta $2006 + lda #value + sta $2007 +.endmacro |
