From 6c4ac7727094259b3b5a25e8c168245983e70b2f Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 4 Feb 2025 11:00:22 +0100 Subject: scroll: Implement a roulette-like game MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- shared/ppu.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shared/ppu.s (limited to 'shared/ppu.s') 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 -- cgit v1.2.3