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:
Adrian Conlon 2019-08-15 16:21:35 +01:00
parent 8db6c6fde9
commit f07f184ce9
1 changed files with 1 additions and 1 deletions

View File

@ -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);