SDS: Fix overflow test instructions OVT and OTO
Improper implementation of the OVT and OTO instructions. OV is always zero or one, so the Boolean AND in the original if statement would always fail. Also, these instructions are supposed to skip if overflow is not set, the opposite of the way it was coded.
This commit is contained in:
parent
c9eb08c767
commit
3b33804327
1 changed files with 1 additions and 1 deletions
|
@ -969,7 +969,7 @@ switch (op) { /* case on opcode */
|
|||
/* Overflow instruction */
|
||||
|
||||
case OVF:
|
||||
if ((inst & 0100) & OV)
|
||||
if ((inst & 0100) && !OV)
|
||||
P = (P + 1) & VA_MASK;
|
||||
if (inst & 0001)
|
||||
OV = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue