debug code

This commit is contained in:
folkert van heusden 2023-03-19 11:32:28 +01:00
parent e50001ce15
commit 4f0327e323
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

10
cpu.cpp
View file

@ -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); //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); 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); //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); b->writePhysical(word_mode ? phys.physical_data : phys.physical_instruction, v);
} }
} }
@ -2163,10 +2157,6 @@ void cpu::step_b()
try { try {
uint16_t instr = b->readWord(temp_pc); 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); addRegister(7, false, 2);
if (double_operand_instructions(instr)) if (double_operand_instructions(instr))