aboutsummaryrefslogtreecommitdiff
path: root/main.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-03-07 15:01:07 +0900
committerAstatin <[email protected]>2025-03-07 15:01:07 +0900
commit3649b73eca599701db818dbbf470b1b17e660083 (patch)
treee2116939c2cfa66806cb039fb68ee236eef21658 /main.gbasm
parentb04c85f5316b58a60b5ae161e9bbf3a20cf1b084 (diff)
Fix walk on deleted objects + fix out of vblank on dialogue close and object draw
Diffstat (limited to 'main.gbasm')
-rw-r--r--main.gbasm6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.gbasm b/main.gbasm
index 177a6db..6cff1bc 100644
--- a/main.gbasm
+++ b/main.gbasm
@@ -65,6 +65,9 @@
.END
.MACRODEF ENABLE_VBLANK_INTERRUPTS
+ LD A, $reg_interrupt_flags
+ RES 0, A
+ LD $reg_interrupt_flags, A
LD A, $03
LD $reg_interrupt_enable, A
.END
@@ -154,7 +157,6 @@ New_Dungeon:
.SET_WINDOW_LCDC_E
.ENABLE_TOP_BAR
.ENABLE_VBLANK_INTERRUPTS
- .HBLANK_WAIT
EI
Wait_for_Interrupt.loop:
HALT
@@ -162,7 +164,6 @@ New_Dungeon:
JP =Wait_for_Interrupt.loop
VBLANK_Entrypoint:
- DBG
.SET_WINDOW_LCDC_E
.ENABLE_TOP_BAR
@@ -202,7 +203,6 @@ VBLANK_Entrypoint:
.skip_stop:
LD $dbg_var A
- DBG
; LYC
LD A, $0a
LD $reg_lyc, A