sim65: Fix "$2C: BIT abs" to access the correct address.
Bug is documented here: http://forum.6502.org/viewtopic.php?f=2&t=5242
This commit is contained in:
@@ -739,7 +739,7 @@ static void OPC_6502_2C (void)
|
|||||||
unsigned Addr;
|
unsigned Addr;
|
||||||
unsigned char Val;
|
unsigned char Val;
|
||||||
Cycles = 4;
|
Cycles = 4;
|
||||||
Addr = MemReadByte (Regs.PC+1);
|
Addr = MemReadWord (Regs.PC+1);
|
||||||
Val = MemReadByte (Addr);
|
Val = MemReadByte (Addr);
|
||||||
SET_SF (Val & 0x80);
|
SET_SF (Val & 0x80);
|
||||||
SET_OF (Val & 0x40);
|
SET_OF (Val & 0x40);
|
||||||
|
|||||||
Reference in New Issue
Block a user