Debug option: Write/Load Cable data to/from SRAM

This commit allows you to use the Write Cbl Data debug option and new Load Cbl Data debug option to dump a link's data to SRAM
or load it from SRAM and pretend like you got it over the link cable.

This is useful for capturing the link process on gameboy and replay + debug it later in an emulator.
This commit is contained in:
Philippe Symons
2026-06-04 15:22:46 +02:00
parent 842f5bc259
commit c9ed32e3a1
9 changed files with 172 additions and 129 deletions

View File

@@ -192,9 +192,9 @@ void show_debug_info_screen(void *context, unsigned user_param)
}
}
void dbg_set_boolean_flag(void *context, unsigned user_param)
void dbg_set_byte_val(void *context, unsigned user_param)
{
bool *flag_ptr = (bool*)context;
u8 *flag_ptr = (u8*)context;
*flag_ptr = (user_param != 0);
}