mirror of
https://github.com/bradgrantham/apple2e.git
synced 2024-12-29 14:29:53 +00:00
Add way to disable 65C02 instructions.
This commit is contained in:
parent
68cfd142b1
commit
1591046c74
@ -20,6 +20,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#define SUPPORT_65C02 1
|
||||||
|
|
||||||
template<class CLK, class BUS>
|
template<class CLK, class BUS>
|
||||||
struct CPU6502
|
struct CPU6502
|
||||||
{
|
{
|
||||||
@ -1384,6 +1386,7 @@ struct CPU6502
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SUPPORT_65C02
|
||||||
// 65C02 instructions
|
// 65C02 instructions
|
||||||
|
|
||||||
case 0x80: { // BRA imm, 65C02
|
case 0x80: { // BRA imm, 65C02
|
||||||
@ -1471,6 +1474,7 @@ struct CPU6502
|
|||||||
set_flags(N | Z, m = a - m);
|
set_flags(N | Z, m = a - m);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif // SUPPORT_65C02
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf("unhandled instruction %02X at %04X\n", inst, pc - 1);
|
printf("unhandled instruction %02X at %04X\n", inst, pc - 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user