Github issue #5656 - 6x09.sinc: Fix logicalShiftRight

The logicalShiftRight macro had incorrect carry flag handling.
Closes #5656
Reported-by: @pjanetzek
This commit is contained in:
Vesa-Pekka Palmu 2024-03-14 07:38:20 +02:00
parent 7360b14db0
commit e622f3a845

View File

@ -438,7 +438,7 @@ macro complement(op)
# P-code INT_SRIGHT.
macro arithmeticShiftRight(op)
{
$(C) = op & 1;
$(C) = ((op & 1) != 0);
op = (op s>> 1);
setNZFlags(op);
}