mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-10-25 05:02:14 +00:00
Mask the Z80 refresh register correctly
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
1 parent
f0d5751949
commit
53cdc614a2
1 file changed
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
public static byte ToByte(RefreshRegister input)
|
||||
{
|
||||
return (byte)((input.high << 7) | input.variable);
|
||||
return (byte)((input.high << 7) | (input.variable & (byte)Mask.Mask7));
|
||||
}
|
||||
|
||||
public static RefreshRegister FromByte(byte input)
|
||||
|
||||
Reference in new issue
Block a user