mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-07-24 21:24:47 +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()
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user