aboutsummaryrefslogtreecommitdiff
path: root/include/oam.s
diff options
context:
space:
mode:
Diffstat (limited to 'include/oam.s')
-rw-r--r--include/oam.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/oam.s b/include/oam.s
new file mode 100644
index 0000000..22935b2
--- /dev/null
+++ b/include/oam.s
@@ -0,0 +1,11 @@
+.scope OAM
+ ADDRESS = $2003
+ DMA = $4014
+.endscope
+
+.macro OAM_WRITE_SPRITES
+ lda #$00
+ sta OAM::ADDR
+ lda #$02
+ sta OAM::DMA
+.endmacro