summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-12-08 10:42:10 -0500
committermrb0nk500 <b0nk@b0nk.xyz>2020-12-09 21:21:22 -0500
commite0aabb7c88e3b5b3cdc750146a19d642a79c4659 (patch)
tree33334e3032890bdfe8a323e76f71588fd0b3ed50 /io.c
parentf8965c0fb6294729e3e622b7802f13e2d2812696 (diff)
- Implemented support for the Orthogonal extension intonew-assembler
both the assembler, and the emulator. I finally figured out how I could get support for the Ortho extension implemented into the old assembler. The only reason for doing this, is to buy me some while I start work on the new assembler, and to help me get an idea for how to do the same in the new assembler.
Diffstat (limited to 'io.c')
-rw-r--r--io.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/io.c b/io.c
index cef5eb6..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;
@@ -333,7 +341,6 @@ void io(uint64_t address, uint8_t rw) {
} else {
handle_ctrlcode(addr[TX_ADDR]);
}
- //wrefresh(scr);
break;
}
}