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 /modes/loading.gbasm | |
parent | 2df3daa5128a27381fe5208fa4eac59ab10bdd9c (diff) |
Separate modes VBlank functions
Diffstat (limited to 'modes/loading.gbasm')
-rw-r--r-- | modes/loading.gbasm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modes/loading.gbasm b/modes/loading.gbasm new file mode 100644 index 0000000..dea6e89 --- /dev/null +++ b/modes/loading.gbasm @@ -0,0 +1,36 @@ +Loading_VBLANK_Entrypoint: + .SET_WINDOW_LCDC_E + .ENABLE_TOP_BAR + + LD A, $palette_bold_font + LD $reg_bg_palette, A + + CALL $OAM_DMA_Transfer_routine + CALL =Loading_Mode_VBlank + + ; LYC + LD A, $0a + LD $reg_lyc, A + .ENABLE_LYC_INTERRUPT + .RESET_STAT_INTERRUPT + EI + + CALL =Pad_Button_Check + CALL =Load_Additional_Block + + CALL =Animation_Wait_Mode + CALL =Update_Blinking_Counter + CALL =Update_Animation_Steps + CALL =Loading_Mode_Regular + + LD A, $00 + LD $mem_oam_buffer_low, A + CALL =Display_Animation_List + CALL =Display_Entities + + LD A, $mem_loop_frame_timer + INC A + LD $mem_loop_frame_timer, A + + .ENABLE_VBLANK_INTERRUPTS + RETI |