mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-25 05:02:14 +00:00
Some small consistency changes. Interesting!
This commit is contained in:
1 parent
c191639a24
commit
110c68a54e
8 files changed
+47
-51
No files matched your search
@@ -25,9 +25,9 @@ namespace EightBit
|
||||
public byte ReadInputPort(Register16 port)
|
||||
{
|
||||
Debug.Assert(port is not null, "port cannot be null");
|
||||
ReadingPort?.Invoke(this, new PortEventArgs(port));
|
||||
this.ReadingPort?.Invoke(this, new PortEventArgs(port));
|
||||
var value = this._input[port.Joined];
|
||||
ReadPort?.Invoke(this, new PortEventArgs(port));
|
||||
this.ReadPort?.Invoke(this, new PortEventArgs(port));
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -44,9 +44,9 @@ namespace EightBit
|
||||
public void WriteOutputPort(Register16 port, byte value)
|
||||
{
|
||||
Debug.Assert(port is not null, "port cannot be null");
|
||||
WritingPort?.Invoke(this, new PortEventArgs(port));
|
||||
this.WritingPort?.Invoke(this, new PortEventArgs(port));
|
||||
this._output[port.Joined] = value;
|
||||
WrittenPort?.Invoke(this, new PortEventArgs(port));
|
||||
this.WrittenPort?.Invoke(this, new PortEventArgs(port));
|
||||
}
|
||||
|
||||
public byte ReadOutputPort(ushort port) => this._output[port];
|
||||
|
||||
Reference in new issue
Block a user