illegal instruction trap no longer stops emulation
This commit is contained in:
parent
aac7fa33ab
commit
fa8d6d9f9d
1 changed files with 1 additions and 12 deletions
13
cpu.cpp
13
cpu.cpp
|
@ -1642,18 +1642,7 @@ void cpu::step()
|
||||||
if (misc_operations(instr))
|
if (misc_operations(instr))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(stderr, "UNHANDLED instruction %o\n\n", instr);
|
fprintf(stderr, "UNHANDLED instruction %o\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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
trap(010);
|
trap(010);
|
||||||
|
|
||||||
*event = 1;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue