ovf 9097 src/dps8/dps8_eis.c ovf 9178 src/dps8/dps8_eis.c ovf 2245 src/dps8/dps8_ins.c static inline void overflow (bool ovf, bool dly, const char * msg) ovf 2250 src/dps8/dps8_ins.c if (ovf && chkOVF ()) ovf 2965 src/dps8/dps8_ins.c bool ovf; ovf 2967 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 2968 src/dps8/dps8_ins.c overflow (ovf, true, "aos overflow fault"); ovf 3246 src/dps8/dps8_ins.c bool ovf; ovf 3251 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 3255 src/dps8/dps8_ins.c overflow (ovf, false, "adq overflow fault"); ovf 3460 src/dps8/dps8_ins.c bool ovf; ovf 3461 src/dps8/dps8_ins.c cpu.rA = compl36 (cpu.CY, & cpu.cu.IR, & ovf); ovf 3465 src/dps8/dps8_ins.c overflow (ovf, false, "lca overflow fault"); ovf 3471 src/dps8/dps8_ins.c bool ovf; ovf 3472 src/dps8/dps8_ins.c cpu.rQ = compl36 (cpu.CY, & cpu.cu.IR, & ovf); ovf 3476 src/dps8/dps8_ins.c overflow (ovf, false, "lcq overflow fault"); ovf 3490 src/dps8/dps8_ins.c bool ovf; ovf 3492 src/dps8/dps8_ins.c cpu.rX[n] = compl18 (GETHI (cpu.CY), & cpu.cu.IR, & ovf); ovf 3496 src/dps8/dps8_ins.c overflow (ovf, false, "lcxn overflow fault"); ovf 4248 src/dps8/dps8_ins.c bool ovf; ovf 4249 src/dps8/dps8_ins.c cpu.rA = Add36b (cpu.rA, cpu.CY, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4253 src/dps8/dps8_ins.c overflow (ovf, false, "ada overflow fault"); ovf 4265 src/dps8/dps8_ins.c bool ovf; ovf 4268 src/dps8/dps8_ins.c tmp72, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4274 src/dps8/dps8_ins.c overflow (ovf, false, "adaq overflow fault"); ovf 4286 src/dps8/dps8_ins.c bool ovf; ovf 4289 src/dps8/dps8_ins.c tmp72, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4295 src/dps8/dps8_ins.c overflow (ovf, false, "adl overflow fault"); ovf 4310 src/dps8/dps8_ins.c bool ovf; ovf 4314 src/dps8/dps8_ins.c tmp72, 0, I_ZNC, & cpu.cu.IR, & ovf); ovf 4334 src/dps8/dps8_ins.c bool ovf; ovf 4335 src/dps8/dps8_ins.c cpu.rA = Add36b (cpu.rA, cpu.CY, 0, I_ZNC, & cpu.cu.IR, & ovf); ovf 4353 src/dps8/dps8_ins.c bool ovf; ovf 4354 src/dps8/dps8_ins.c cpu.rQ = Add36b (cpu.rQ, cpu.CY, 0, I_ZNC, & cpu.cu.IR, & ovf); ovf 4376 src/dps8/dps8_ins.c bool ovf; ovf 4378 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 4403 src/dps8/dps8_ins.c bool ovf; ovf 4406 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 4410 src/dps8/dps8_ins.c overflow (ovf, false, "adxn overflow fault"); ovf 4425 src/dps8/dps8_ins.c bool ovf; ovf 4427 src/dps8/dps8_ins.c & cpu.cu.IR, & ovf); ovf 4428 src/dps8/dps8_ins.c overflow (ovf, true, "asa overflow fault"); ovf 4439 src/dps8/dps8_ins.c bool ovf; ovf 4440 src/dps8/dps8_ins.c cpu.CY = Add36b (cpu.rQ, cpu.CY, 0, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4441 src/dps8/dps8_ins.c overflow (ovf, true, "asq overflow fault"); ovf 4462 src/dps8/dps8_ins.c bool ovf; ovf 4464 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4466 src/dps8/dps8_ins.c overflow (ovf, true, "asxn overflow fault"); ovf 4479 src/dps8/dps8_ins.c bool ovf; ovf 4481 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4485 src/dps8/dps8_ins.c overflow (ovf, false, "awca overflow fault"); ovf 4498 src/dps8/dps8_ins.c bool ovf; ovf 4500 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4504 src/dps8/dps8_ins.c overflow (ovf, false, "awcq overflow fault"); ovf 4518 src/dps8/dps8_ins.c bool ovf; ovf 4519 src/dps8/dps8_ins.c cpu.rA = Sub36b (cpu.rA, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4523 src/dps8/dps8_ins.c overflow (ovf, false, "sba overflow fault"); ovf 4535 src/dps8/dps8_ins.c bool ovf; ovf 4539 src/dps8/dps8_ins.c & ovf); ovf 4545 src/dps8/dps8_ins.c overflow (ovf, false, "sbaq overflow fault"); ovf 4557 src/dps8/dps8_ins.c bool ovf; ovf 4558 src/dps8/dps8_ins.c cpu.rA = Sub36b (cpu.rA, cpu.CY, 1, I_ZNC, & cpu.cu.IR, & ovf); ovf 4578 src/dps8/dps8_ins.c bool ovf; ovf 4582 src/dps8/dps8_ins.c I_ZNC, & cpu.cu.IR, & ovf); ovf 4598 src/dps8/dps8_ins.c bool ovf; ovf 4599 src/dps8/dps8_ins.c cpu.rQ = Sub36b (cpu.rQ, cpu.CY, 1, I_ZNC, & cpu.cu.IR, & ovf); ovf 4624 src/dps8/dps8_ins.c bool ovf; ovf 4626 src/dps8/dps8_ins.c I_ZNC, & cpu.cu.IR, & ovf); ovf 4640 src/dps8/dps8_ins.c bool ovf; ovf 4641 src/dps8/dps8_ins.c cpu.rQ = Sub36b (cpu.rQ, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4645 src/dps8/dps8_ins.c overflow (ovf, false, "sbq overflow fault"); ovf 4667 src/dps8/dps8_ins.c bool ovf; ovf 4669 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4673 src/dps8/dps8_ins.c overflow (ovf, false, "sbxn overflow fault"); ovf 4685 src/dps8/dps8_ins.c bool ovf; ovf 4686 src/dps8/dps8_ins.c cpu.CY = Sub36b (cpu.rA, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4687 src/dps8/dps8_ins.c overflow (ovf, true, "ssa overflow fault"); ovf 4699 src/dps8/dps8_ins.c bool ovf; ovf 4700 src/dps8/dps8_ins.c cpu.CY = Sub36b (cpu.rQ, cpu.CY, 1, I_ZNOC, & cpu.cu.IR, & ovf); ovf 4701 src/dps8/dps8_ins.c overflow (ovf, true, "ssq overflow fault"); ovf 4723 src/dps8/dps8_ins.c bool ovf; ovf 4725 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4727 src/dps8/dps8_ins.c overflow (ovf, true, "ssxn overflow fault"); ovf 4740 src/dps8/dps8_ins.c bool ovf; ovf 4742 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4746 src/dps8/dps8_ins.c overflow (ovf, false, "swca overflow fault"); ovf 4759 src/dps8/dps8_ins.c bool ovf; ovf 4761 src/dps8/dps8_ins.c I_ZNOC, & cpu.cu.IR, & ovf); ovf 4765 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);