mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-11-25 06:17:29 +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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user