Skip to content

Commit 01ee9bc

Browse files
committed
LZCNT bit choosing fix
1 parent 6477470 commit 01ee9bc

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

Debug/UDEmulator.pdb

0 Bytes
Binary file not shown.

Debug/UDEmulator.sys

104 Bytes
Binary file not shown.

LZCNT.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ int __stdcall LZCNTInstructionEmulator(
2828
int temp = operand_size - 1;
2929
int dest = 0;
3030

31-
while ((temp >= 0) && (src >> temp == 0))
31+
while ((temp >= 0) && (((src >> temp) & 1) == 0))
3232
{
3333
--temp;
3434
++dest;

0 commit comments

Comments
 (0)