mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-09-25 03:24:30 +00:00
Whoops: missed bus read/write clock ticks in the 6502 emulator.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -533,6 +533,18 @@ namespace EightBit
|
||||
this.OpCode = 0x00; // BRK
|
||||
}
|
||||
|
||||
protected override sealed void BusWrite()
|
||||
{
|
||||
this.Tick();
|
||||
base.BusWrite();
|
||||
}
|
||||
|
||||
protected override sealed byte BusRead()
|
||||
{
|
||||
this.Tick();
|
||||
return base.BusRead();
|
||||
}
|
||||
|
||||
private static byte SetFlag(byte f, StatusBits flag) => SetFlag(f, (byte)flag);
|
||||
|
||||
private static byte SetFlag(byte f, StatusBits flag, int condition) => SetFlag(f, (byte)flag, condition);
|
||||
|
Reference in New Issue
Block a user