From cee93625989b651cfe91387eabd0abd3f64a00df Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 27 Nov 2023 10:31:03 +0100 Subject: scroll: Start with the scrolling examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is still work in progress but at least there's some basic structure to it. Signed-off-by: Miquel Sabaté Solà --- scroll/include/oam.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scroll/include/oam.s (limited to 'scroll/include/oam.s') diff --git a/scroll/include/oam.s b/scroll/include/oam.s new file mode 100644 index 0000000..ecd1b7d --- /dev/null +++ b/scroll/include/oam.s @@ -0,0 +1,13 @@ +.segment "CODE" + +.scope OAM + ADDR = $2003 + DMA = $4014 +.endscope + +.macro OAM_WRITE_SPRITES + lda #$00 + sta OAM::ADDR + lda #$02 + sta OAM::DMA +.endmacro -- cgit v1.2.3