diff options
| author | uvok | 2026-01-11 12:02:25 +0100 |
|---|---|---|
| committer | uvok | 2026-01-11 12:02:25 +0100 |
| commit | 671c20b2bbb179c9d62534f5671de18c15630b03 (patch) | |
| tree | 0efd743a00a374b78cce7942a55dbd478282d39c | |
| parent | f0da85e50f3e922609c495900e8e82a017cd78d5 (diff) | |
get rid of complicated format specifiers
| -rw-r--r-- | nandgame/cpp/simpc_ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp index dc327d3..f1b3947 100644 --- a/nandgame/cpp/simpc_ui.cpp +++ b/nandgame/cpp/simpc_ui.cpp @@ -69,11 +69,11 @@ void simpc_ui_write(const std::unique_ptr<Vcomputer> &topp, uint64_t &i, topp->computer->reg_A_int, topp->computer->reg_D_int, topp->computer->reg_pA_int, topp->computer->result_int); PRINT_ME(6 + NCUR_OFFSET, NCUR_X, - "%9" PRId16 "\t%9" PRId16 "\t%9" PRId16 "\t%11" PRId16, + "%9d\t%9d\t%9d\t%11d", topp->computer->reg_A_int, topp->computer->reg_D_int, topp->computer->reg_pA_int, topp->computer->result_int); PRINT_ME(7 + NCUR_OFFSET, NCUR_X, "ALU"); - PRINT_ME(8 + NCUR_OFFSET, NCUR_X, "X: %5" PRId16 "\tY: %5" PRId16, + PRINT_ME(8 + NCUR_OFFSET, NCUR_X, "X: %5d\tY: %5d", topp->computer->CPU->my_alu->int_op_x, topp->computer->CPU->my_alu->int_op_y); PRINT_ME(getmaxy(stdscr) - 1, 1, "q - Quit; p - (Un)pause; any key in pause - step"); |
