diff options
Diffstat (limited to 'nandgame')
| -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"); |
