aboutsummaryrefslogtreecommitdiff
path: root/gui.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-12-12 17:33:37 +0900
committerAstatin <[email protected]>2024-12-12 17:33:37 +0900
commitbfc32de4fd80c7bb51283840abf21d48151b5feb (patch)
treed38f2ca7acf89961f538a1ea7d65d279e42f81d2 /gui.gbasm
parente93a99e8e8565db0111b40d3286ce3d78f263559 (diff)
Fix copy dialogue buffer update outside of VBlank (+ add dbg for lcd status at the end of expected vblank thingy)
Diffstat (limited to 'gui.gbasm')
-rw-r--r--gui.gbasm14
1 files changed, 8 insertions, 6 deletions
diff --git a/gui.gbasm b/gui.gbasm
index ba92b94..6bfaae0 100644
--- a/gui.gbasm
+++ b/gui.gbasm
@@ -1,16 +1,18 @@
Copy_Dialogue_Buffer:
LD A, $mem_display_flag
- BIT 0, A
+ BIT 2, A
RET Z
+ RES 2, A
+ LD $mem_display_flag, A
LD HL, $9dc1
LD DE, $dialogue_first_line
LD BC, $12
CALL =memcpy
- LD HL, $9de1
- LD DE, $dialogue_second_line
- LD BC, $12
- CALL =memcpy
+ ; LD HL, $9de1
+ ; LD DE, $dialogue_second_line
+ ; LD BC, $12
+ ; CALL =memcpy
LD HL, $9e01
LD DE, $dialogue_third_line
@@ -184,7 +186,7 @@ Check_Open_Menu_button:
CALL =Init_Menu
- LD A, $01
+ LD A, $05
LD $mem_display_flag, A
LD A, $enum_dungeon_menu_mode