implement ORA (ind), Y for Integer Basic

This commit is contained in:
Brad Grantham 2016-11-23 16:36:29 -08:00
parent 6876176b6b
commit e29d6ff984

View File

@ -1056,6 +1056,14 @@ struct CPU6502
break;
}
case 0x11: { // ORA (ind), Y
unsigned char zpg = read_pc_inc(bus);
int addr = bus.read(zpg) + bus.read((zpg + 1) & 0xFF) * 256 + y;
m = bus.read(addr);
set_flags(N | Z, a = a | m);
break;
}
case 0x05: { // ORA
unsigned char zpg = read_pc_inc(bus);
m = bus.read(zpg);