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 /definitions.gbasm | |
parent | 2df3daa5128a27381fe5208fa4eac59ab10bdd9c (diff) |
Separate modes VBlank functions
Diffstat (limited to 'definitions.gbasm')
-rw-r--r-- | definitions.gbasm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/definitions.gbasm b/definitions.gbasm index 6a01759..3bb4c60 100644 --- a/definitions.gbasm +++ b/definitions.gbasm @@ -71,13 +71,14 @@ .DEFINE mem_current_mode ($c014) .DEFINE mem_requested_mode ($c015) +; bit 0-3: which vblank handler group ; bit 7: setp if map, objects and gui update are frozen .DEFINE enum_dungeon_mode $00 -.DEFINE enum_dead_mode $01 -.DEFINE enum_dungeon_menu_mode $80 -.DEFINE enum_dungeon_dialogue_mode $81 -.DEFINE enum_loading_mode $82 -.DEFINE enum_animation_wait_mode $83 +.DEFINE enum_dead_mode $10 +.DEFINE enum_dungeon_menu_mode $01 +.DEFINE enum_dungeon_dialogue_mode $11 +.DEFINE enum_loading_mode $02 +.DEFINE enum_animation_wait_mode $12 .DEFINE mem_menu_cursor_position ($c016) .DEFINE mem_last_button_direction ($c017) @@ -132,6 +133,11 @@ .DEFINE mem_entity_being_attacked_low ($c040) +.DEFINE mem_vblank_jump_instruction $c041 ; takes from c041 to c043 +.DEFINE mem_vblank_jump_destination $c042 ; takes from c042 to c043 +.DEFINE mem_stat_jump_instruction $c044 ; takes from c044 to c046 +.DEFINE mem_stat_jump_destination $c045 ; takes from c045 to c046 + .DEFINE mem_next_free_head_lower_bytes ($c6ff) .DEFINE mem_dungeon_generation_heads $c700 ; Takes the memory from c700 to c717 @@ -239,8 +245,10 @@ ; bit 3: blinking mode ; status: u8 ; ; bit 0: whether or not turns should be skipped +; ; bit 2: whether or not the status should be removed for the next turn ; ; 01: freeze ; ; 02: invincible +; ; 04: end of freeze ; mana: u8 ; _padding: u48 ; |