diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-12-09 21:13:40 -0500 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-12-09 21:13:40 -0500 |
commit | 1700d8d10453ffe046438de0e6fbd496def915a1 (patch) | |
tree | cd222f66ad948f472b192fa967bf00f59e13179d /sux.h | |
parent | f0e217bbc7d646742e3a83dbeb36332ded9f9df4 (diff) |
- Made the emulator's debugger use individual windows.
I mainly did this to be able to display all 16 main
registers, but also to simplify the debugger.
Diffstat (limited to 'sux.h')
-rw-r--r-- | sux.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -24,6 +24,9 @@ extern uint8_t kbd_rdy; extern WINDOW *scr; +extern WINDOW *regs; +extern WINDOW *inst_win; +extern WINDOW *dbg_win; #if debug extern uint8_t subdbg; @@ -52,8 +55,9 @@ extern pthread_cond_t cond; extern pthread_cond_t main_cond; #if debug -extern void print_regs(struct sux *cpu, uint8_t lines, uint8_t thread); -extern void disasm(struct sux *cpu, uint8_t lines, uint8_t opcode, uint8_t prefix, uint8_t ext_prefix, uint8_t prefix2, uint8_t *op_type, uint8_t *op_id, uint8_t thread); +extern void print_info(struct sux *cpu, WINDOW *w, uint8_t lines, uint8_t thread); +extern void print_regs(struct sux *cpu, WINDOW *w); +extern void disasm(struct sux *cpu, WINDOW *w, uint8_t lines, uint8_t opcode, uint8_t prefix, uint8_t ext_prefix, uint8_t prefix2, uint8_t *op_type, uint8_t *op_id, uint8_t thread); #endif /*#define KEYBUF_SIZE 0x40 |