diff options
| author | uvok | 2026-01-07 18:30:07 +0100 |
|---|---|---|
| committer | uvok | 2026-01-07 18:30:07 +0100 |
| commit | 19e820000483be3bcae4acebbcebe393aeb81003 (patch) | |
| tree | 6a1f97e7d6942a5e08e4eacd83d601cfa18e0beb /nandgame/Vcomputer__main.cpp | |
| parent | e377f94c08b6305cd6114b3274e04f73a73829b4 (diff) | |
view result register
Diffstat (limited to 'nandgame/Vcomputer__main.cpp')
| -rw-r--r-- | nandgame/Vcomputer__main.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nandgame/Vcomputer__main.cpp b/nandgame/Vcomputer__main.cpp index 101d2fa..5b71221 100644 --- a/nandgame/Vcomputer__main.cpp +++ b/nandgame/Vcomputer__main.cpp @@ -83,22 +83,25 @@ int main(int argc, char** argv, char**) { } printf( - " A: 0x%04X, D: 0x%04X, M: 0x%04X\n", + " A: 0x%04X, D: 0x%04X, M: 0x%04X, RES: 0x%04X\n", topp->computer->reg_A_int, topp->computer->reg_D_int, - topp->computer->reg_pA_int + topp->computer->reg_pA_int, + topp->computer->result_int ); printf( - " A: %5" PRId16 ", D: %5" PRId16 ", M: %5" PRId16 "\n", + " A: %5" PRId16 ", D: %5" PRId16 ", M: %5" PRId16 ", RES: %5" PRId16 "\n", topp->computer->reg_A_int, topp->computer->reg_D_int, - topp->computer->reg_pA_int + topp->computer->reg_pA_int, + topp->computer->result_int ); // Evaluate model topp->eval(); // Advance time contextp->timeInc(1); i++; + puts("-----"); } puts("Simulation finished"); |
