video: disabling oam on window
authorLukas Krickl <lukas@krickl.dev>
Thu, 10 Jul 2025 04:27:44 +0000 (06:27 +0200)
committerLukas Krickl <lukas@krickl.dev>
Thu, 10 Jul 2025 04:27:44 +0000 (06:27 +0200)
src/hw.inc
src/jmp.inc
src/sys.s
src/unit.s

index 81d3cc1e54443a19870cd1263168ebdf80e80a12..e781a94ebb4b37699ddac284617fb2e8a1d638ad 100644 (file)
@@ -59,6 +59,7 @@
 ; interrupt enabled
 #define IE 0xFFFF
 #define IVBLANK 0b00000001
+#define ILCD 0b00000010
 
 ; location where code for dma needs to be memcyp'd to
 .def int DMAFN = 0xFF80 
index 423680dcf7c72a748874889d00afc4240bd66ee4..26d62f5d34ac26598b130dda8a941d7ff185ce38 100644 (file)
@@ -41,7 +41,6 @@ vec_vblank:
 ; STA 0x48
 ;=============
 vec_stat:
-  BREAK
   ; disable objects
   push af
   ld a, [RLCD]
index 1648bafcd736fbcaae4503531f12a73958225413..b881cba3e655ec6602bbd357ebd1aaa47b203e61 100644 (file)
--- a/src/sys.s
+++ b/src/sys.s
@@ -19,7 +19,7 @@ panic:
 
 enableinterrupts:
   ; enable interrupts 
-  ld a, IVBLANK
+  ld a, IVBLANK | ILCD
   ld [IE], a
   ei 
   ret
index c74ddd035eb7375a92bd0b7a24182d0189fdd414..10b75d9567a58d722fa7fcccaafac65a9ba85626 100644 (file)
@@ -220,13 +220,6 @@ unit_generic_draw:
   sub a, b
   ld [hl+], a
 
-  ; if the position is inside the window set PRIO bit
-  cp a, 128 ; window start position in pixels
-  jr c, @not_on_window REL
-    ld a, OAM_FPRIO
-    ld [TMP_OAMFLAG_PRIO], a
-
-@not_on_window:
   ; set x pos
   inc de
   ld a, [de]