mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-06-02 16:41:33 +00:00
Simplify 8080/Z80 XHTL implementation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
171d590b8b
commit
0dd6f1025f
|
@ -814,12 +814,10 @@ namespace EightBit
|
||||||
this.MEMPTR.Low = this.BusRead(this.SP.Word);
|
this.MEMPTR.Low = this.BusRead(this.SP.Word);
|
||||||
++this.Bus.Address.Word;
|
++this.Bus.Address.Word;
|
||||||
this.MEMPTR.High = this.BusRead();
|
this.MEMPTR.High = this.BusRead();
|
||||||
this.Bus.Data = exchange.High;
|
this.BusWrite(exchange.High);
|
||||||
this.BusWrite();
|
|
||||||
exchange.High = this.MEMPTR.High;
|
exchange.High = this.MEMPTR.High;
|
||||||
--this.Bus.Address.Word;
|
--this.Bus.Address.Word;
|
||||||
this.Bus.Data = exchange.Low;
|
this.BusWrite(exchange.Low);
|
||||||
this.BusWrite();
|
|
||||||
exchange.Low = this.MEMPTR.Low;
|
exchange.Low = this.MEMPTR.Low;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1797,12 +1797,10 @@ namespace EightBit
|
||||||
this.MEMPTR.Low = this.BusRead(this.SP.Word);
|
this.MEMPTR.Low = this.BusRead(this.SP.Word);
|
||||||
++this.Bus.Address.Word;
|
++this.Bus.Address.Word;
|
||||||
this.MEMPTR.High = this.BusRead();
|
this.MEMPTR.High = this.BusRead();
|
||||||
this.Bus.Data = exchange.High;
|
this.BusWrite(exchange.High);
|
||||||
this.BusWrite();
|
|
||||||
exchange.High = this.MEMPTR.High;
|
exchange.High = this.MEMPTR.High;
|
||||||
--this.Bus.Address.Word;
|
--this.Bus.Address.Word;
|
||||||
this.Bus.Data = exchange.Low;
|
this.BusWrite(exchange.Low);
|
||||||
this.BusWrite();
|
|
||||||
exchange.Low = this.MEMPTR.Low;
|
exchange.Low = this.MEMPTR.Low;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user