mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-03-27 09:29:36 +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.Bus.Address.Word;
|
||||
this.MEMPTR.High = this.BusRead();
|
||||
this.Bus.Data = exchange.High;
|
||||
this.BusWrite();
|
||||
this.BusWrite(exchange.High);
|
||||
exchange.High = this.MEMPTR.High;
|
||||
--this.Bus.Address.Word;
|
||||
this.Bus.Data = exchange.Low;
|
||||
this.BusWrite();
|
||||
this.BusWrite(exchange.Low);
|
||||
exchange.Low = this.MEMPTR.Low;
|
||||
}
|
||||
|
||||
|
@ -1797,12 +1797,10 @@ namespace EightBit
|
||||
this.MEMPTR.Low = this.BusRead(this.SP.Word);
|
||||
++this.Bus.Address.Word;
|
||||
this.MEMPTR.High = this.BusRead();
|
||||
this.Bus.Data = exchange.High;
|
||||
this.BusWrite();
|
||||
this.BusWrite(exchange.High);
|
||||
exchange.High = this.MEMPTR.High;
|
||||
--this.Bus.Address.Word;
|
||||
this.Bus.Data = exchange.Low;
|
||||
this.BusWrite();
|
||||
this.BusWrite(exchange.Low);
|
||||
exchange.Low = this.MEMPTR.Low;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user