aboutsummaryrefslogtreecommitdiff
path: root/main.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-04-08 14:15:40 +0200
committerAstatin <[email protected]>2025-04-08 14:15:40 +0200
commit51bdddd2ee8357950d785a60b887730368527277 (patch)
treea42d8b10221605c77240004795f227988b21a9c2 /main.gbasm
parent85c478d0c2368c0a38fa3e6aa4d4e9070ea63fc3 (diff)
Fix frame specific and sameboy specific bug with loading screens
Diffstat (limited to 'main.gbasm')
-rw-r--r--main.gbasm10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.gbasm b/main.gbasm
index 21b9420..ee3500f 100644
--- a/main.gbasm
+++ b/main.gbasm
@@ -68,13 +68,13 @@
LD A, $reg_interrupt_flags
RES 0, A
LD $reg_interrupt_flags, A
- LD A, $03
+ LD A, $reg_interrupt_enable
+ OR $01
LD $reg_interrupt_enable, A
.END
-.MACRODEF RESET_STAT_INTERRUPT
- LD A, $reg_interrupt_flags
- RES 1, A
+.MACRODEF RESET_INTERRUPTS
+ LD A, $00
LD $reg_interrupt_flags, A
.END
@@ -83,7 +83,7 @@
LD ($mem_stat_jump_destination), A
LD A, high(=STAT_Entrypoint)
LD ($mem_stat_jump_destination+1), A
- .RESET_STAT_INTERRUPT
+ .RESET_INTERRUPTS
LD A, $40
LD $reg_lcd_status, A
LD A, $02