mirror of
https://github.com/bradgrantham/apple2e.git
synced 2024-11-19 11:31:38 +00:00
Add ORA (ind) 65C02 instructions.
This commit is contained in:
parent
53f231573e
commit
43448014b1
10
apple2e.cpp
10
apple2e.cpp
@ -2190,6 +2190,14 @@ struct CPU6502
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 0x12: { // ORA (ind), 65C02 instruction
|
||||||
|
unsigned char zpg = read_pc_inc(bus);
|
||||||
|
int addr = bus.read(zpg) + bus.read((zpg + 1) & 0xFF) * 256;
|
||||||
|
m = bus.read(addr);
|
||||||
|
set_flags(N | Z, a = a | m);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case 0x05: { // ORA zpg
|
case 0x05: { // ORA zpg
|
||||||
unsigned char zpg = read_pc_inc(bus);
|
unsigned char zpg = read_pc_inc(bus);
|
||||||
m = bus.read(zpg);
|
m = bus.read(zpg);
|
||||||
@ -2750,7 +2758,7 @@ struct CPU6502
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
printf("unhandled instruction %02X\n", inst);
|
printf("unhandled instruction %02X at %04X\n", inst, pc - 1);
|
||||||
fflush(stdout); exit(1);
|
fflush(stdout); exit(1);
|
||||||
}
|
}
|
||||||
if(debug & DEBUG_STATE) {
|
if(debug & DEBUG_STATE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user