summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-12-09 21:13:40 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2020-12-09 21:13:40 -0500
commit1700d8d10453ffe046438de0e6fbd496def915a1 (patch)
treecd222f66ad948f472b192fa967bf00f59e13179d /io.c
parentf0e217bbc7d646742e3a83dbeb36332ded9f9df4 (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 'io.c')
-rw-r--r--io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/io.c b/io.c
index 4e69f7e..e19f194 100644
--- a/io.c
+++ b/io.c
@@ -85,6 +85,9 @@ int get_key(WINDOW *scr) {
puts("Reinitializing screen.");
init_scr();
wrefresh(scr);
+ #if debug
+ wrefresh(regs);
+ #endif
break;
}
#if debug && !bench
@@ -304,6 +307,11 @@ void io(uint64_t address, uint8_t rw) {
}
kbd_rdy = 1;
wrefresh(scr);
+ #if debug
+ wrefresh(regs);
+ wrefresh(inst_win);
+ wrefresh(dbg_win);
+ #endif
addr[RX_ADDR] = get_key(scr);
kbd_rdy = 0;
break;