diff --git a/cpu6502.h b/cpu6502.h index 027b3e1..b76e44c 100644 --- a/cpu6502.h +++ b/cpu6502.h @@ -20,6 +20,8 @@ #include #include +#define SUPPORT_65C02 1 + template 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);