summaryrefslogtreecommitdiff
path: root/nandgame
diff options
context:
space:
mode:
Diffstat (limited to 'nandgame')
-rw-r--r--nandgame/Vcomputer__main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nandgame/Vcomputer__main.cpp b/nandgame/Vcomputer__main.cpp
index ad3b2bc..26d8aa6 100644
--- a/nandgame/Vcomputer__main.cpp
+++ b/nandgame/Vcomputer__main.cpp
@@ -53,13 +53,13 @@ void draw_ui(const std::unique_ptr<Vcomputer> &topp, int &i, StepPosition_t sp)
topp->halt
);
+ auto insline = print_decoded(opcode, true);
+ PRINT_ME(3 + NCUR_OFFSET, NCUR_X, "%-80s", insline.c_str());
+
// keep old state
if (topp->halt)
return;
- auto insline = print_decoded(opcode, true);
- PRINT_ME(3 + NCUR_OFFSET, NCUR_X, "%-80s", insline.c_str());
-
PRINT_ME(5 + NCUR_OFFSET, NCUR_X,
"A: 0x%04X\tD: 0x%04X\tM: 0x%04X\tRES: 0x%04X",
topp->computer->reg_A_int, topp->computer->reg_D_int,