mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-09-01 15:29:11 +00:00
Whoops: Correct cycle counts for the OR instruction on the 6809
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
551c26bb3c
commit
905e7d3d44
@ -258,16 +258,16 @@ int EightBit::mc6809::executeUnprefixed(uint8_t opcode) {
|
||||
// OR
|
||||
|
||||
// ORA
|
||||
case 0x8a: addCycles(3); A() = orr(A(), AM_immediate_byte()); break; // OR (ORA immediate)
|
||||
case 0x9a: addCycles(3); A() = orr(A(), AM_direct_byte()); break; // OR (ORA direct)
|
||||
case 0xaa: addCycles(3); A() = orr(A(), AM_indexed_byte()); break; // OR (ORA indexed)
|
||||
case 0xba: addCycles(3); A() = orr(A(), AM_extended_byte()); break; // OR (ORA extended)
|
||||
case 0x8a: addCycles(2); A() = orr(A(), AM_immediate_byte()); break; // OR (ORA immediate)
|
||||
case 0x9a: addCycles(4); A() = orr(A(), AM_direct_byte()); break; // OR (ORA direct)
|
||||
case 0xaa: addCycles(4); A() = orr(A(), AM_indexed_byte()); break; // OR (ORA indexed)
|
||||
case 0xba: addCycles(5); A() = orr(A(), AM_extended_byte()); break; // OR (ORA extended)
|
||||
|
||||
// ORB
|
||||
case 0xca: addCycles(3); A() = orr(A(), AM_immediate_byte()); break; // OR (ORB immediate)
|
||||
case 0xda: addCycles(3); A() = orr(A(), AM_direct_byte()); break; // OR (ORB direct)
|
||||
case 0xea: addCycles(3); A() = orr(A(), AM_indexed_byte()); break; // OR (ORB indexed)
|
||||
case 0xfa: addCycles(3); A() = orr(A(), AM_extended_byte()); break; // OR (ORB extended)
|
||||
case 0xca: addCycles(2); A() = orr(A(), AM_immediate_byte()); break; // OR (ORB immediate)
|
||||
case 0xda: addCycles(4); A() = orr(A(), AM_direct_byte()); break; // OR (ORB direct)
|
||||
case 0xea: addCycles(4); A() = orr(A(), AM_indexed_byte()); break; // OR (ORB indexed)
|
||||
case 0xfa: addCycles(5); A() = orr(A(), AM_extended_byte()); break; // OR (ORB extended)
|
||||
|
||||
// ORCC
|
||||
case 0x1a: addCycles(3); CC() |= AM_immediate_byte(); break; // OR (ORCC immediate)
|
||||
|
Loading…
Reference in New Issue
Block a user