1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-16 08:23:21 +00:00

B5500: Fixed bug in CMN opcode execution.

This commit is contained in:
Richard Cornwell 2018-06-13 23:01:27 -04:00
parent 2fb8a31d33
commit c41caeb4d0

View File

@ -3678,17 +3678,15 @@ control:
R = 0;
F = S; /* Set F and X */
X = toF(S);
S = CF(B);
if (B & FLAG) {
if ((B & PRESENT) == 0) {
if (NCSF)
Q |= PRES_BIT;
break;
}
KV = 0;
if ((B & PRESENT) == 0 && NCSF)
Q |= PRES_BIT;
else
KV = 0;
} else {
KV = (uint8)((B >> (FFIELD_V - 3)) & 070);
}
S = CF(B);
break;
case VARIANT(WMOP_MKS): /* Mark Stack */