mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-02-04 09:30:38 +00:00
Mask the Z80 refresh register correctly
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
f0d5751949
commit
53cdc614a2
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
public static byte ToByte(RefreshRegister input)
|
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)
|
public static RefreshRegister FromByte(byte input)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user