CPU fix for the cases using a Mask with shift = 0
This commit is contained in:
@ -58,7 +58,7 @@ namespace ChocolArm64.Instruction
|
||||
|
||||
int Shift = Op.Imm - (8 << Op.Size);
|
||||
|
||||
ulong Mask = ulong.MaxValue >> (64 - Shift);
|
||||
ulong Mask = Shift != 0 ? ulong.MaxValue >> (64 - Shift) : 0;
|
||||
|
||||
for (int Index = 0; Index < (Bytes >> Op.Size); Index++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user