Add way to disable 65C02 instructions.

This commit is contained in:
Lawrence Kesteloot 2019-02-06 23:23:29 -08:00
parent 68cfd142b1
commit 1591046c74

View File

@ -20,6 +20,8 @@
#include <stdlib.h>
#include <assert.h>
#define SUPPORT_65C02 1
template<class CLK, class BUS>
struct CPU6502
{
@ -1384,6 +1386,7 @@ struct CPU6502
break;
}
#if SUPPORT_65C02
// 65C02 instructions
case 0x80: { // BRA imm, 65C02
@ -1471,6 +1474,7 @@ struct CPU6502
set_flags(N | Z, m = a - m);
break;
}
#endif // SUPPORT_65C02
default:
printf("unhandled instruction %02X at %04X\n", inst, pc - 1);