Skip to content

Commit

Permalink
ui_c64.h: remote debug support
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Dec 21, 2023
1 parent 26cd180 commit 833b972
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/ui_c64.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ typedef struct {
c64_t* c64; // pointer to c64_t instance to track
ui_c64_boot_cb boot_cb; // reboot callback function
ui_dbg_texture_callbacks_t dbg_texture; // texture create/update/destroy callbacks
ui_dbg_debug_callbacks_t dbg_debug;
ui_dbg_keys_desc_t dbg_keys; // user-defined hotkeys for ui_dbg_t
ui_snapshot_desc_t snapshot; // snapshot UI setup params
} ui_c64_desc_t;
Expand Down Expand Up @@ -551,9 +552,13 @@ void ui_c64_init(ui_c64_t* ui, const ui_c64_desc_t* ui_desc) {
desc.x = x;
desc.y = y;
desc.m6502 = &ui->c64->cpu;
desc.freq_hz = C64_FREQUENCY;
desc.scanline_ticks = M6569_HTOTAL;
desc.frame_ticks = M6569_HTOTAL * M6569_VTOTAL;
desc.read_cb = _ui_c64_mem_read;
desc.break_cb = _ui_c64_eval_bp;
desc.texture_cbs = ui_desc->dbg_texture;
desc.debug_cbs = ui_desc->dbg_debug;
desc.keys = ui_desc->dbg_keys;
desc.user_data = ui;
/* custom breakpoint types */
Expand Down

0 comments on commit 833b972

Please sign in to comment.