54 typedef int (*ReadByteCallback)(
void * context,
int addr);
55 typedef void (*WriteByteCallback)(
void * context,
int addr,
int value);
56 typedef int (*Page0ReadByteCallback)(
void * context,
int addr);
57 typedef void (*Page0WriteByteCallback)(
void * context,
int addr,
int value);
58 typedef int (*Page1ReadByteCallback)(
void * context,
int addr);
59 typedef void (*Page1WriteByteCallback)(
void * context,
int addr,
int value);
62 void setCallbacks(
void * context, ReadByteCallback readByte, WriteByteCallback writeByte, Page0ReadByteCallback page0ReadByte, Page0WriteByteCallback page0WriteByte, Page1ReadByteCallback page1ReadByte, Page1WriteByteCallback page1WriteByte) {
64 m_readByte = readByte;
65 m_writeByte = writeByte;
66 m_page0ReadByte = page0ReadByte;
67 m_page0WriteByte = page0WriteByte;
68 m_page1ReadByte = page1ReadByte;
69 m_page1WriteByte = page1WriteByte;
76 void setPC(uint16_t addr) { m_PC = addr; }
77 uint16_t getPC() {
return m_PC; }
83 typedef void (
MOS6502::*ADCSBC)(uint8_t);
85 void OP_BINADC(uint8_t m);
86 void OP_BINSBC(uint8_t m);
88 void OP_BCDADC(uint8_t m);
89 void OP_BCDSBC(uint8_t m);
111 ReadByteCallback m_readByte;
112 WriteByteCallback m_writeByte;
113 Page0ReadByteCallback m_page0ReadByte;
114 Page0WriteByteCallback m_page0WriteByte;
115 Page1ReadByteCallback m_page1ReadByte;
116 Page1WriteByteCallback m_page1WriteByte;