aboutsummaryrefslogtreecommitdiff
path: root/init.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-10-22 18:01:00 +0900
committerAstatin <[email protected]>2024-10-22 18:01:00 +0900
commit5513939c6077032f625c2de98f395026caf063b1 (patch)
tree8f247591201ab9804c31990674cb444cf87ec089 /init.gbasm
parentf5183a78e20deaa9a294250873f3b5ee5cedafa3 (diff)
Add white window at the top for future health bar
Diffstat (limited to 'init.gbasm')
-rw-r--r--init.gbasm17
1 files changed, 14 insertions, 3 deletions
diff --git a/init.gbasm b/init.gbasm
index 8a7a5f4..f6a14f0 100644
--- a/init.gbasm
+++ b/init.gbasm
@@ -2,8 +2,11 @@
.PADTO 0x0040
VBlank:
- CALL =VBLANK_Entrypoint
- RETI
+ JP =VBLANK_Entrypoint
+
+.PADTO 0x0048
+STAT:
+ JP =STAT_Entrypoint
.PADTO 0x0100
Start:
@@ -57,9 +60,17 @@ Empty_VRAM: ; (Clear screen)
LD $reg_obj0_palette, A
; Interrupts
- LD A, $01
+ LD A, $03
LD $reg_interrupt_enable, A
+ ; LYC
+ LD A, $0a
+ LD $reg_lyc, A
+
+ ; Set STAT interrupt to LYC = LY
+ LD A, $40
+ LD $reg_lcd_status, A
+
Copy_OAM_DMA_Transfer_Routine_To_HRAM:
LD HL, $OAM_DMA_Transfer_routine
LD DE, =OAM_DMA_Transfer_routine_src