illegal instruction trap no longer stops emulation

This commit is contained in:
folkert van heusden 2022-03-26 20:44:09 +01:00
parent aac7fa33ab
commit fa8d6d9f9d

13
cpu.cpp
View file

@ -1642,18 +1642,7 @@ void cpu::step()
if (misc_operations(instr))
return;
fprintf(stderr, "UNHANDLED instruction %o\n\n", instr);
{
FILE *fh = fopen("fail.dat", "wb");
if (fh) {
for(int i=0; i<256; i++)
fputc(b -> readByte(getPC() - 2 + i), fh);
fclose(fh);
}
}
fprintf(stderr, "UNHANDLED instruction %o\n", instr);
trap(010);
*event = 1;
}