1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 19:29:18 +00:00

Merge pull request #712 from ppelleti/fix-bit

sim65: Fix "$2C: BIT abs" to access the correct address.
This commit is contained in:
greg-king5 2018-08-11 01:48:11 -04:00 committed by GitHub
commit 188e3a74ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -739,7 +739,7 @@ static void OPC_6502_2C (void)
unsigned Addr;
unsigned char Val;
Cycles = 4;
Addr = MemReadByte (Regs.PC+1);
Addr = MemReadWord (Regs.PC+1);
Val = MemReadByte (Addr);
SET_SF (Val & 0x80);
SET_OF (Val & 0x40);