ovf 9098 src/dps8/dps8_eis.c ovf 9179 src/dps8/dps8_eis.c ovf 2225 src/dps8/dps8_ins.c static inline void overflow (bool ovf, bool dly, const char * msg) ovf 2230 src/dps8/dps8_ins.c if (ovf && chkOVF ()) ovf 2945 src/dps8/dps8_ins.c bool ovf; ovf 2947 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 2948 src/dps8/dps8_ins.c overflow (ovf, true, "aos overflow fault"); ovf 3226 src/dps8/dps8_ins.c bool ovf; ovf 3231 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 3235 src/dps8/dps8_ins.c overflow (ovf, false, "adq overflow fault"); ovf 3440 src/dps8/dps8_ins.c bool ovf; ovf 3441 src/dps8/dps8_ins.c cpu.rA = compl36 (cpu.CY, & cpu.cu.IR, & ovf); ovf 3445 src/dps8/dps8_ins.c overflow (ovf, false, "lca overflow fault"); ovf 3451 src/dps8/dps8_ins.c bool ovf; ovf 3452 src/dps8/dps8_ins.c cpu.rQ = compl36 (cpu.CY, & cpu.cu.IR, & ovf); ovf 3456 src/dps8/dps8_ins.c overflow (ovf, false, "lcq overflow fault"); ovf 3470 src/dps8/dps8_ins.c bool ovf; ovf 3472 src/dps8/dps8_ins.c cpu.rX[n] = compl18 (GETHI (cpu.CY), & cpu.cu.IR, & ovf); ovf 3476 src/dps8/dps8_ins.c overflow (ovf, false, "lcxn overflow fault"); ovf 4228 src/dps8/dps8_ins.c bool ovf; ovf 4229 src/dps8/dps8_ins.c cpu.rA = Add36b (cpu.rA, cpu.CY, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4233 src/dps8/dps8_ins.c overflow (ovf, false, "ada overflow fault"); ovf 4245 src/dps8/dps8_ins.c bool ovf; ovf 4248 src/dps8/dps8_ins.c tmp72, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4254 src/dps8/dps8_ins.c overflow (ovf, false, "adaq overflow fault"); ovf 4266 src/dps8/dps8_ins.c bool ovf; ovf 4269 src/dps8/dps8_ins.c tmp72, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4275 src/dps8/dps8_ins.c overflow (ovf, false, "adl overflow fault"); ovf 4290 src/dps8/dps8_ins.c bool ovf; ovf 4294 src/dps8/dps8_ins.c tmp72, 0, I_ZNC, & cpu.cu.IR, & ovf); ovf 4314 src/dps8/dps8_ins.c bool ovf; ovf 4315 src/dps8/dps8_ins.c cpu.rA = Add36b (cpu.rA, cpu.CY, 0, I_ZNC, & cpu.cu.IR, & ovf); ovf 4333 src/dps8/dps8_ins.c bool ovf; ovf 4334 src/dps8/dps8_ins.c cpu.rQ = Add36b (cpu.rQ, cpu.CY, 0, I_ZNC, & cpu.cu.IR, & ovf); ovf 4356 src/dps8/dps8_ins.c bool ovf; ovf 4358 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 4383 src/dps8/dps8_ins.c bool ovf; ovf 4386 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 4390 src/dps8/dps8_ins.c overflow (ovf, false, "adxn overflow fault"); ovf 4405 src/dps8/dps8_ins.c bool ovf; ovf 4407 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 4408 src/dps8/dps8_ins.c overflow (ovf, true, "asa overflow fault"); ovf 4419 src/dps8/dps8_ins.c bool ovf; ovf 4420 src/dps8/dps8_ins.c cpu.CY = Add36b (cpu.rQ, cpu.CY, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4421 src/dps8/dps8_ins.c overflow (ovf, true, "asq overflow fault"); ovf 4442 src/dps8/dps8_ins.c bool ovf; ovf 4444 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4446 src/dps8/dps8_ins.c overflow (ovf, true, "asxn overflow fault"); ovf 4459 src/dps8/dps8_ins.c bool ovf; ovf 4461 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4465 src/dps8/dps8_ins.c overflow (ovf, false, "awca overflow fault"); ovf 4478 src/dps8/dps8_ins.c bool ovf; ovf 4480 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4484 src/dps8/dps8_ins.c overflow (ovf, false, "awcq overflow fault"); ovf 4498 src/dps8/dps8_ins.c bool ovf; ovf 4499 src/dps8/dps8_ins.c cpu.rA = Sub36b (cpu.rA, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4503 src/dps8/dps8_ins.c overflow (ovf, false, "sba overflow fault"); ovf 4515 src/dps8/dps8_ins.c bool ovf; ovf 4519 src/dps8/dps8_ins.c & ovf); ovf 4525 src/dps8/dps8_ins.c overflow (ovf, false, "sbaq overflow fault"); ovf 4537 src/dps8/dps8_ins.c bool ovf; ovf 4538 src/dps8/dps8_ins.c cpu.rA = Sub36b (cpu.rA, cpu.CY, 1, I_ZNC, & cpu.cu.IR, & ovf); ovf 4558 src/dps8/dps8_ins.c bool ovf; ovf 4562 src/dps8/dps8_ins.c I_ZNC, & cpu.cu.IR, & ovf); ovf 4578 src/dps8/dps8_ins.c bool ovf; ovf 4579 src/dps8/dps8_ins.c cpu.rQ = Sub36b (cpu.rQ, cpu.CY, 1, I_ZNC, & cpu.cu.IR, & ovf); ovf 4604 src/dps8/dps8_ins.c bool ovf; ovf 4606 src/dps8/dps8_ins.c I_ZNC, & cpu.cu.IR, & ovf); ovf 4620 src/dps8/dps8_ins.c bool ovf; ovf 4621 src/dps8/dps8_ins.c cpu.rQ = Sub36b (cpu.rQ, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4625 src/dps8/dps8_ins.c overflow (ovf, false, "sbq overflow fault"); ovf 4647 src/dps8/dps8_ins.c bool ovf; ovf 4649 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4653 src/dps8/dps8_ins.c overflow (ovf, false, "sbxn overflow fault"); ovf 4665 src/dps8/dps8_ins.c bool ovf; ovf 4666 src/dps8/dps8_ins.c cpu.CY = Sub36b (cpu.rA, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4667 src/dps8/dps8_ins.c overflow (ovf, true, "ssa overflow fault"); ovf 4679 src/dps8/dps8_ins.c bool ovf; ovf 4680 src/dps8/dps8_ins.c cpu.CY = Sub36b (cpu.rQ, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4681 src/dps8/dps8_ins.c overflow (ovf, true, "ssq overflow fault"); ovf 4703 src/dps8/dps8_ins.c bool ovf; ovf 4705 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4707 src/dps8/dps8_ins.c overflow (ovf, true, "ssxn overflow fault"); ovf 4720 src/dps8/dps8_ins.c bool ovf; ovf 4722 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4726 src/dps8/dps8_ins.c overflow (ovf, false, "swca overflow fault"); ovf 4739 src/dps8/dps8_ins.c bool ovf; ovf 4741 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4745 src/dps8/dps8_ins.c overflow (ovf, false, "swcq overflow fault"); ovf 599 src/dps8/dps8_math.c bool ovf; ovf 601 src/dps8/dps8_math.c m3 = Add72b (m1, m2, 0, I_CARRY, & cpu.cu.IR, & ovf); ovf 607 src/dps8/dps8_math.c if (ovf) { ovf 1558 src/dps8/dps8_math.c bool ovf; ovf 1571 src/dps8/dps8_math.c m = Add72b (m, construct_128 (0, 0177777777777777LL), carry, I_OFLOW, & flags1, & ovf); ovf 1573 src/dps8/dps8_math.c m = Add72b (m, 0177777777777777LL, carry, I_OFLOW, & flags1, & ovf); ovf 1589 src/dps8/dps8_math.c SC_I_OFLOW(ovf); ovf 1630 src/dps8/dps8_math.c bool ovf; ovf 1643 src/dps8/dps8_math.c m = Add72b (m, construct_128 (0, 0177777777777777LL), carry, I_OFLOW, & flags1, & ovf); ovf 1645 src/dps8/dps8_math.c m = Add72b (m, 0177777777777777LL, carry, I_OFLOW, & flags1, & ovf); ovf 1661 src/dps8/dps8_math.c SC_I_OFLOW(ovf); ovf 2123 src/dps8/dps8_math.c bool ovf; ovf 2124 src/dps8/dps8_math.c word72 m3 = Add72b (m1, m2, 0, I_CARRY, & cpu.cu.IR, & ovf); ovf 2128 src/dps8/dps8_math.c if (ovf) { ovf 3162 src/dps8/dps8_math.c bool ovf; ovf 3175 src/dps8/dps8_math.c m = Add72b (m, construct_128 (0, 0177), carry, I_OFLOW, & flags1, & ovf); ovf 3177 src/dps8/dps8_math.c m = Add72b (m, 0177, carry, I_OFLOW, & flags1, & ovf); ovf 3193 src/dps8/dps8_math.c SC_I_OFLOW (ovf); ovf 3250 src/dps8/dps8_math.c bool ovf; ovf 3263 src/dps8/dps8_math.c m = Add72b (m, construct_128 (0, 0177), carry, I_OFLOW, & flags1, & ovf); ovf 3265 src/dps8/dps8_math.c m = Add72b (m, 0177, carry, I_OFLOW, & flags1, & ovf); ovf 3282 src/dps8/dps8_math.c SC_I_OFLOW(ovf); ovf 175 src/dps8/dps8_utils.c word36 Add36b (word36 op1, word36 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf) ovf 204 src/dps8/dps8_utils.c * ovf = r37 ^ r36; ovf 214 src/dps8/dps8_utils.c if (ovf) CPT (cpt2L, 29); // ovf ovf 229 src/dps8/dps8_utils.c if (* ovf) ovf 249 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Add36b res %012"PRIo64" flags %06o ovf %o\n", res, * flags, * ovf); ovf 253 src/dps8/dps8_utils.c word36 Sub36b (word36 op1, word36 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf) ovf 292 src/dps8/dps8_utils.c * ovf = r37 ^ r36; ovf 299 src/dps8/dps8_utils.c if (ovf) CPT (cpt2L, 29); // ovf ovf 314 src/dps8/dps8_utils.c if (* ovf) ovf 337 src/dps8/dps8_utils.c word18 Add18b (word18 op1, word18 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf) ovf 368 src/dps8/dps8_utils.c * ovf = r19 ^ r18; ovf 375 src/dps8/dps8_utils.c if (ovf) CPT (cpt2L, 29); // ovf ovf 390 src/dps8/dps8_utils.c if (* ovf) ovf 413 src/dps8/dps8_utils.c word18 Sub18b (word18 op1, word18 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf) ovf 452 src/dps8/dps8_utils.c * ovf = r19 ^ r18; ovf 459 src/dps8/dps8_utils.c if (ovf) CPT (cpt2L, 29); // ovf ovf 474 src/dps8/dps8_utils.c if (* ovf) ovf 497 src/dps8/dps8_utils.c word72 Add72b (word72 op1, word72 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf) ovf 558 src/dps8/dps8_utils.c * ovf = r73 ^ r72; ovf 565 src/dps8/dps8_utils.c if (ovf) CPT (cpt2L, 29); // ovf ovf 580 src/dps8/dps8_utils.c if (* ovf) ovf 611 src/dps8/dps8_utils.c word72 Sub72b (word72 op1, word72 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf) ovf 673 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Sub72b res %012"PRIo64"%012"PRIo64" flags %06o ovf %o\n", (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); ovf 675 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Sub72b res %012"PRIo64"%012"PRIo64" flags %06o ovf %o\n", (word36) ((res >> 36) & MASK36), (word36) (res & MASK36), * flags, * ovf); ovf 702 src/dps8/dps8_utils.c * ovf = r73 ^ r72; ovf 709 src/dps8/dps8_utils.c if (ovf) CPT (cpt2L, 29); // ovf ovf 724 src/dps8/dps8_utils.c if (* ovf) ovf 753 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Sub72b res %012"PRIo64"%012"PRIo64" flags %06o ovf %o\n", (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); ovf 755 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Sub72b res %012"PRIo64"%012"PRIo64" flags %06o ovf %o\n", (word36) ((res >> 36) & MASK36), (word36) (res & MASK36), * flags, * ovf); ovf 761 src/dps8/dps8_utils.c word36 compl36(word36 op1, word18 *flags, bool * ovf) ovf 772 src/dps8/dps8_utils.c * ovf = op1 == MAXNEG; ovf 775 src/dps8/dps8_utils.c if (* ovf) CPT (cpt2L, 29); // ovf ovf 780 src/dps8/dps8_utils.c if (chkOVF () && * ovf) ovf 797 src/dps8/dps8_utils.c word18 compl18(word18 op1, word18 *flags, bool * ovf) ovf 808 src/dps8/dps8_utils.c * ovf = op1 == MAX18NEG; ovf 810 src/dps8/dps8_utils.c if (* ovf) CPT (cpt2L, 29); // ovf ovf 815 src/dps8/dps8_utils.c if (chkOVF () && * ovf) ovf 1999 src/dps8/dps8_utils.c ovf 2008 src/dps8/dps8_utils.c ovf 2021 src/dps8/dps8_utils.c ovf 2026 src/dps8/dps8_utils.c ovf 53 src/dps8/dps8_utils.h word36 compl36(word36 op1, word18 *flags, bool * ovf); ovf 54 src/dps8/dps8_utils.h word18 compl18(word18 op1, word18 *flags, bool * ovf); ovf 892 src/dps8/dps8_utils.h word36 Add36b (word36 op1, word36 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf); ovf 893 src/dps8/dps8_utils.h word36 Sub36b (word36 op1, word36 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf); ovf 894 src/dps8/dps8_utils.h word18 Add18b (word18 op1, word18 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf); ovf 895 src/dps8/dps8_utils.h word18 Sub18b (word18 op1, word18 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf); ovf 896 src/dps8/dps8_utils.h word72 Add72b (word72 op1, word72 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf); ovf 897 src/dps8/dps8_utils.h word72 Sub72b (word72 op1, word72 op2, word1 carryin, word18 flagsToSet, word18 * flags, bool * ovf); ovf 903 src/dps8/dps8_utils.h void currentTR (word27 * trunits, bool * ovf);