mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-01-09 07:34:13 +00:00
Correct ROM loading issue in LR35902, by correcting evaluation order in bus write code.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
8fba82063a
commit
6cb3aa37df
@ -66,7 +66,8 @@ namespace EightBit
|
|||||||
public void Write()
|
public void Write()
|
||||||
{
|
{
|
||||||
this.OnWritingByte();
|
this.OnWritingByte();
|
||||||
this.Reference() = this.Data;
|
var data = this.Data; // N.B. Don't join these two lines together: the
|
||||||
|
this.Reference() = data; // data bus integrity is lost, due to evaluation order!
|
||||||
this.OnWrittenByte();
|
this.OnWrittenByte();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user