aboutsummaryrefslogtreecommitdiff
path: root/include/oam.s
diff options
context:
space:
mode:
Diffstat (limited to 'include/oam.s')
-rw-r--r--include/oam.s19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/oam.s b/include/oam.s
index 22935b2..a73494d 100644
--- a/include/oam.s
+++ b/include/oam.s
@@ -1,11 +1,12 @@
.scope OAM
- ADDRESS = $2003
- DMA = $4014
-.endscope
+ ;; Region in internal RAM where sprites are being allocated for later use in
+ ;; the DMA process. The entire page is reserved, as there are 64 sprites x 4
+ ;; bytes each = 256 bytes in total.
+ m_sprites = $200 ; asan:reserve $100
+
+ ;;;
+ ;; Actual addresses from OAM space.
-.macro OAM_WRITE_SPRITES
- lda #$00
- sta OAM::ADDR
- lda #$02
- sta OAM::DMA
-.endmacro
+ m_address = $2003
+ m_dma = $4014
+.endscope