diff options
author | Astatin <[email protected]> | 2025-03-25 19:01:47 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2025-03-25 19:01:47 +0900 |
commit | fb8e853fd0c6660696e762f67877b4d24a9f4c22 (patch) | |
tree | 4c2c69bd5e13bebfe02534541e4adcf2b67f335f /init.gbasm | |
parent | 2df3daa5128a27381fe5208fa4eac59ab10bdd9c (diff) |
Separate modes VBlank functions
Diffstat (limited to 'init.gbasm')
-rw-r--r-- | init.gbasm | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2,11 +2,11 @@ .PADTO 0x0040 VBlank: - JP =VBLANK_Entrypoint + JP $mem_vblank_jump_instruction .PADTO 0x0048 STAT: - JP =STAT_Entrypoint + JP $mem_stat_jump_instruction .PADTO 0x0100 Start: @@ -64,6 +64,12 @@ Empty_VRAM: ; (Clear screen) LD A, $obj_palette_frozen LD $reg_obj1_palette, A + ; Interrupt jmp instruction + LD A, $c3 ; Unconditional imm16 jump + LD ($mem_vblank_jump_instruction), A + LD ($mem_stat_jump_instruction), A + + Initialize_Window_GUI: LD A, $48 LD $reg_window_y, A |