bug: fixed shadow oam alignment. this caused DMA not behave wrongly.
authorLukas Krickl <lukas@krickl.dev>
Thu, 3 Jul 2025 15:50:53 +0000 (17:50 +0200)
committerLukas Krickl <lukas@krickl.dev>
Thu, 3 Jul 2025 15:50:53 +0000 (17:50 +0200)
src/wram.s

index 516f05443152ca598f8977c1741d63c9fdd36198..18b71bf506958d730fee675d078f53fe79a235e2 100644 (file)
@@ -1,15 +1,15 @@
 .org WRAM
 .section wram 
 
+; needs to be at the start or alinged properly for DMA!
+shadow_oam: .adv OBJSMAX * oamsize 
+shadow_oam_end: 
+
   ; temporary variables
   ; that can be used by any routine
   ; as storage
 scratch: .adv 16
 
-
-shadow_oam: .adv OBJSMAX * oamsize 
-shadow_oam_end: 
-
 frame_ready: .adv 1
 frame_count: .adv 1