mirror of
https://github.com/bradgrantham/apple2e.git
synced 2025-03-17 19:29:24 +00:00
implement ORA (ind), Y for Integer Basic
This commit is contained in:
parent
6876176b6b
commit
e29d6ff984
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user