mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-02-21 00:29:07 +00:00
Fuse fixes: Correct address high part of output port block writes.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
8db6c6fde9
commit
f07f184ce9
@ -1905,9 +1905,9 @@ namespace EightBit
|
||||
private void BlockOut(ushort source, Register16 destination)
|
||||
{
|
||||
var value = this.BusRead(source);
|
||||
destination.High = this.Decrement(destination.High);
|
||||
this.Bus.Address.Word = destination.Word;
|
||||
this.WritePort();
|
||||
destination.High = this.Decrement(destination.High);
|
||||
this.MEMPTR.Word = destination.Word;
|
||||
this.F = SetBit(this.F, StatusBits.NF, value & (byte)Bits.Bit7);
|
||||
this.F = SetBit(this.F, StatusBits.HC | StatusBits.CF, (this.L + value) > 0xff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user