From 4f0327e3232ff38407a104f16b44b1de7d70e824 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 19 Mar 2023 11:32:28 +0100 Subject: [PATCH] debug code --- cpu.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cpu.cpp b/cpu.cpp index de832db..306aad1 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -1223,9 +1223,6 @@ bool cpu::single_operand_instructions(const uint16_t instr) //b->check_address(true, true, phys, false, word_mode, (getPSW() >> 12) & 3); - extern FILE *lfh; - fflush(lfh); - v = b->readPhysical(word_mode ? phys.physical_data : phys.physical_instruction); } } @@ -1273,9 +1270,6 @@ bool cpu::single_operand_instructions(const uint16_t instr) //b->check_address(true, true, phys, false, word_mode, (getPSW() >> 12) & 3); - extern FILE *lfh; - fflush(lfh); - b->writePhysical(word_mode ? phys.physical_data : phys.physical_instruction, v); } } @@ -2163,10 +2157,6 @@ void cpu::step_b() try { uint16_t instr = b->readWord(temp_pc); -// FILE *fh = fopen("/home/folkert/kek.dat", "a+"); -// fprintf(fh, "%06o %06o\n", temp_pc, instr); -// fclose(fh); - addRegister(7, false, 2); if (double_operand_instructions(instr))