From 8c31bf6a8778b7120057dd33a92b683acb2df535 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Thu, 10 Jul 2025 06:27:44 +0200 Subject: [PATCH] video: disabling oam on window --- src/hw.inc | 1 + src/jmp.inc | 1 - src/sys.s | 2 +- src/unit.s | 7 ------- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/hw.inc b/src/hw.inc index 81d3cc1..e781a94 100644 --- a/src/hw.inc +++ b/src/hw.inc @@ -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 diff --git a/src/jmp.inc b/src/jmp.inc index 423680d..26d62f5 100644 --- a/src/jmp.inc +++ b/src/jmp.inc @@ -41,7 +41,6 @@ vec_vblank: ; STA 0x48 ;============= vec_stat: - BREAK ; disable objects push af ld a, [RLCD] diff --git a/src/sys.s b/src/sys.s index 1648baf..b881cba 100644 --- 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 diff --git a/src/unit.s b/src/unit.s index c74ddd0..10b75d9 100644 --- a/src/unit.s +++ b/src/unit.s @@ -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] -- 2.30.2