summaryrefslogtreecommitdiff
path: root/nandgame
diff options
context:
space:
mode:
authoruvok2026-01-11 14:40:34 +0100
committeruvok2026-01-11 14:40:34 +0100
commitdb879929161a7714fdd779fcd2e0d9a114ad40cf (patch)
tree6281ac65c79dead1e5c8a9bebe37acff20932ecc /nandgame
parentc0ae4a050c1d5c861db8d0f9be6c4e20e4a63346 (diff)
Getting started with windows
Diffstat (limited to 'nandgame')
-rw-r--r--nandgame/cpp/simpc_ui.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp
index bf5b94c..1ee22f0 100644
--- a/nandgame/cpp/simpc_ui.cpp
+++ b/nandgame/cpp/simpc_ui.cpp
@@ -93,6 +93,7 @@ void simpc_ui_write(const std::unique_ptr<Vcomputer> &topp, uint64_t &i,
PRINT_ME(ypos_base + i, NCUR_X, "%04X %s%04X %-30s",
current_ROM_address, prefix, program_op_code,
disas_code.c_str());
+ // mvchgat in bold
}
if (current_RAM_address < 0) {
PRINT_ME(
@@ -119,7 +120,7 @@ void simpc_ui_write(const std::unique_ptr<Vcomputer> &topp, uint64_t &i,
// topp->computer->CPU->my_alu->int_op_y);
PRINT_ME(getmaxy(stdscr) - 1, 1,
- "q - Quit; p - (Un)pause; s - step (while paused)");
+ " q - Quit; p - (Un)pause; s - step (while paused) ");
PRINT_NEXT();
@@ -145,6 +146,9 @@ void simpc_ui_finish_message(const std::unique_ptr<VerilatedContext> &contextp,
attroff(A_BOLD);
}
+#define SIMPLE_BORDER(w, lr, tb, c) \
+ { wborder(w, lr, lr, tb, tb, c, c, c, c); }
+
void simpc_ui_init(void) {
#if NCUR
initscr();
@@ -152,6 +156,8 @@ void simpc_ui_init(void) {
nodelay(stdscr, TRUE);
noecho();
cbreak();
+
+ SIMPLE_BORDER(stdscr, '|', '-', '+');
#endif
}