Mask the Z80 refresh register correctly

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2019-02-20 23:51:50 +00:00
parent f0d5751949
commit 53cdc614a2

View File

@ -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)