mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-06-11 15:29:37 +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)
|
||||
{
|
||||
return (byte)((input.high << 7) | input.variable);
|
||||
return (byte)((input.high << 7) | (input.variable & (byte)Mask.Mask7));
|
||||
}
|
||||
|
||||
public static RefreshRegister FromByte(byte input)
|
||||
|
|
Loading…
Reference in New Issue
Block a user