diff options
author | Astatin <[email protected]> | 2024-10-22 18:01:00 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2024-10-22 18:01:00 +0900 |
commit | 5513939c6077032f625c2de98f395026caf063b1 (patch) | |
tree | 8f247591201ab9804c31990674cb444cf87ec089 /init.gbasm | |
parent | f5183a78e20deaa9a294250873f3b5ee5cedafa3 (diff) |
Add white window at the top for future health bar
Diffstat (limited to 'init.gbasm')
-rw-r--r-- | init.gbasm | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -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 |