n 209 src/decNumber/decNumber.c # define QUOT10(u, n) ((((uInt)(u)>>(n))*multies[n])>>17) n 1811 src/decNumber/decNumber.c Int n; // rhs in binary n 1884 src/decNumber/decNumber.c n=decGetInt(rhs); n 1885 src/decNumber/decNumber.c if (n!=BADINT) { // it is an integer n 1887 src/decNumber/decNumber.c isoddint=(Flag)n&1; // [works even if big] n 1888 src/decNumber/decNumber.c if (n!=BIGEVEN && n!=BIGODD) // can use integer path? n 1899 src/decNumber/decNumber.c if (n==0) *res->lsu=1; // [-]Inf**0 => 1 n 1913 src/decNumber/decNumber.c if (n==0) { // 0**0 => Error n 1968 src/decNumber/decNumber.c if (n==0) { // x**0 = 1 n 1974 src/decNumber/decNumber.c if (n<0) n=-n; // use abs(n) n 2071 src/decNumber/decNumber.c n=n<<1; // move next bit to testable position n 2072 src/decNumber/decNumber.c if (n<0) { // top bit is set n 3300 src/decNumber/decNumber.c decNumber * decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) { n 3305 src/decNumber/decNumber.c for (; ub<bcd+n; ub++, up--) *up=*ub; n 3308 src/decNumber/decNumber.c Int cut=MSUDIGITS(n); // [faster than remainder] n 3315 src/decNumber/decNumber.c dn->digits=n; // set digit count n 3493 src/decNumber/decNumber.c Int n=pre; n 3503 src/decNumber/decNumber.c if (n<dn->digits) { // more to come, after '.' n 5195 src/decNumber/decNumber.c Int n=powers[h]; // always positive n 5205 src/decNumber/decNumber.c n=n<<1; // move next bit to testable position n 5206 src/decNumber/decNumber.c if (n<0) { // top bit is set n 169 src/decNumber/decNumberLocal.h # define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) //-V1003 n 173 src/decNumber/decNumberLocal.h # define ROUNDDOWN(i, n) (((i)/n)*n) //-V1003 n 127 src/dps8/bsd_random.c bsd_initstate(unsigned int seed, char *arg_state, int n) n 140 src/dps8/bsd_random.c if (n < BREAK_0) n 145 src/dps8/bsd_random.c if (n < BREAK_1) n 151 src/dps8/bsd_random.c else if (n < BREAK_2) n 157 src/dps8/bsd_random.c else if (n < BREAK_3) n 163 src/dps8/bsd_random.c else if (n < BREAK_4) n 50 src/dps8/bsd_random.h char *bsd_initstate(unsigned int seed, char *arg_state, int n); n 155 src/dps8/doAppendCycleIndirectWordFetch.h word3 n = 0; // PRn to be saved to TSN_PRNO n 450 src/dps8/doAppendCycleIndirectWordFetch.h n = GET_ITP_PRNUM (data); n 451 src/dps8/doAppendCycleIndirectWordFetch.h DBGAPP ("doAppendCycleIndirectWordFetch(P) TRR %o RSDWH.R1 %o PR[n].RNR %o\n", cpu.TPR.TRR, cpu.RSDWH_R1, cpu.PR[n].RNR); n 455 src/dps8/doAppendCycleIndirectWordFetch.h cpu.TPR.TRR = max3 (cpu.PR[n].RNR, cpu.TPR.TRR, cpu.RSDWH_R1); n 216 src/dps8/doAppendCycleOperandRead.h word3 n = 0; // PRn to be saved to TSN_PRNO n 713 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3); n 715 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3) + 4; n 721 src/dps8/doAppendCycleOperandRead.h cpu.PR[n].RNR = cpu.PPR.PRR; n 725 src/dps8/doAppendCycleOperandRead.h cpu.PR[n].SNR = cpu.PPR.PSR; n 726 src/dps8/doAppendCycleOperandRead.h cpu.PR[n].WORDNO = (cpu.PPR.IC + 1) & MASK18; n 727 src/dps8/doAppendCycleOperandRead.h SET_PR_BITNO (n, 0); n 729 src/dps8/doAppendCycleOperandRead.h HDBGRegPRW (n, "app tspn"); n 412 src/dps8/dps8.h # define ru_Xn(n) (1 << (7 - (n))) n 93 src/dps8/dps8_absi.c int n = atoi (cptr); n 94 src/dps8/dps8_absi.c if (n < 1 || n > N_ABSI_UNITS_MAX) n 96 src/dps8/dps8_absi.c absi_dev.numunits = (uint32) n; n 103 src/dps8/dps8_absi.c int n = (int) ABSI_UNIT_IDX (uptr); n 104 src/dps8/dps8_absi.c if (n < 0 || n >= N_ABSI_UNITS_MAX) n 106 src/dps8/dps8_absi.c if (absi_state[n].device_name[1] != 0) n 107 src/dps8/dps8_absi.c sim_printf("name : %s", absi_state[n].device_name); n 109 src/dps8/dps8_absi.c sim_printf("name : ABSI%d", n); n 116 src/dps8/dps8_absi.c int n = (int) ABSI_UNIT_IDX (uptr); n 117 src/dps8/dps8_absi.c if (n < 0 || n >= N_ABSI_UNITS_MAX) n 121 src/dps8/dps8_absi.c strncpy (absi_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 122 src/dps8/dps8_absi.c absi_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 125 src/dps8/dps8_absi.c absi_state[n].device_name[0] = 0; n 219 src/dps8/dps8_addrmods.c word3 n = GET_ITP_PRNUM (cpu.itxPair); n 220 src/dps8/dps8_addrmods.c CPTUR (cptUsePRn + n); n 222 src/dps8/dps8_addrmods.c HDBGRegPRR (n, "ITP"); n 224 src/dps8/dps8_addrmods.c cpu.TPR.TSR = cpu.PR[n].SNR; n 225 src/dps8/dps8_addrmods.c cpu.TPR.TRR = max3 (cpu.PR[n].RNR, cpu.RSDWH_R1, cpu.TPR.TRR); n 227 src/dps8/dps8_addrmods.c cpu.TPR.CA = cpu.PAR[n].WORDNO + GET_ITP_WORDNO (cpu.itxPair); n 234 src/dps8/dps8_addrmods.c cpu.cu.TSN_PRNO[0] = n; n 368 src/dps8/dps8_addrmods.c word3 n = GET_PRN(IWB_IRODD); // get PRn n 370 src/dps8/dps8_addrmods.c HDBGRegPRR (n, "b29"); n 373 src/dps8/dps8_addrmods.c cpu.TPR.CA = (cpu.PAR[n].WORDNO + SIGNEXT15_18 (offset)) n 1260 src/dps8/dps8_append.c word3 n = 0; // PRn to be saved to TSN_PRNO n 2055 src/dps8/dps8_append.c n = (i->opcode & 3); n 2057 src/dps8/dps8_append.c n = (i->opcode & 3) + 4; n 2063 src/dps8/dps8_append.c cpu.PR[n].RNR = cpu.PPR.PRR; n 2067 src/dps8/dps8_append.c cpu.PR[n].SNR = cpu.PPR.PSR; n 2068 src/dps8/dps8_append.c cpu.PR[n].WORDNO = (cpu.PPR.IC + 1) & MASK18; n 2069 src/dps8/dps8_append.c SET_PR_BITNO (n, 0); n 2071 src/dps8/dps8_append.c HDBGRegPRW (n, "app tspn"); n 2198 src/dps8/dps8_append.c n = GET_ITP_PRNUM (data); n 2200 src/dps8/dps8_append.c cpu.TPR.TRR, cpu.RSDWH_R1, cpu.PR[n].RNR); n 2204 src/dps8/dps8_append.c cpu.TPR.TRR = max3 (cpu.PR[n].RNR, cpu.TPR.TRR, cpu.RSDWH_R1); n 1360 src/dps8/dps8_cable.c #define all(i,n) \ n 1361 src/dps8/dps8_cable.c for (uint i = 0; i < n; i ++) n 1665 src/dps8/dps8_console.c int n = atoi (cptr); n 1666 src/dps8/dps8_console.c if (n < 1 || n > N_OPC_UNITS_MAX) n 1668 src/dps8/dps8_console.c opc_dev.numunits = (uint32) n; n 1769 src/dps8/dps8_console.c int n = (int) OPC_UNIT_IDX (uptr); n 1770 src/dps8/dps8_console.c if (n < 0 || n >= N_OPC_UNITS_MAX) n 1772 src/dps8/dps8_console.c sim_printf("name : OPC%d", n); n 1779 src/dps8/dps8_console.c int n = (int) OPC_UNIT_IDX (uptr); n 1780 src/dps8/dps8_console.c if (n < 0 || n >= N_OPC_UNITS_MAX) n 1784 src/dps8/dps8_console.c strncpy (console_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 1785 src/dps8/dps8_console.c console_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 1788 src/dps8/dps8_console.c console_state[n].device_name[0] = 0; n 726 src/dps8/dps8_cpu.c int n = atoi (cptr); n 727 src/dps8/dps8_cpu.c if (n < 1 || n > N_CPU_UNITS_MAX) n 729 src/dps8/dps8_cpu.c cpu_dev.numunits = (uint32) n; n 745 src/dps8/dps8_cpu.c int n = atoi (cptr); n 746 src/dps8/dps8_cpu.c if (n < 1 || n > 1000000) n 748 src/dps8/dps8_cpu.c kips = (uint) n; n 788 src/dps8/dps8_cpu.c long n, s, o, t; n 791 src/dps8/dps8_cpu.c n = strtol (cptr, & end, 0); n 794 src/dps8/dps8_cpu.c if (n < 0 || n >= N_STALL_POINTS) n 815 src/dps8/dps8_cpu.c stall_points[n].segno = (word15) s; n 816 src/dps8/dps8_cpu.c stall_points[n].offset = (word18) o; n 817 src/dps8/dps8_cpu.c stall_points[n].time = (unsigned int) t; n 821 src/dps8/dps8_cpu.c if (stall_points[n].segno && stall_points[n].offset) n 3241 src/dps8/dps8_cpu.c for (unsigned short n = 0; n < N_CPU_UNITS_MAX; n++) n 3244 src/dps8/dps8_cpu.c lockYieldAll = lockYieldAll + (unsigned long long)cpus[n].lockYield; n 3246 src/dps8/dps8_cpu.c lockWaitMaxAll = lockWaitMaxAll + (unsigned long long)cpus[n].lockWaitMax; n 3247 src/dps8/dps8_cpu.c lockWaitAll = lockWaitAll + (unsigned long long)cpus[n].lockWait; n 3248 src/dps8/dps8_cpu.c lockImmediateAll = lockImmediateAll + (unsigned long long)cpus[n].lockImmediate; n 3249 src/dps8/dps8_cpu.c lockCntAll = lockCntAll + (unsigned long long)cpus[n].lockCnt; n 3250 src/dps8/dps8_cpu.c instrCntAll = instrCntAll + (unsigned long long)cpus[n].instrCnt; n 3251 src/dps8/dps8_cpu.c cycleCntAll = cycleCntAll + (unsigned long long)cpus[n].cycleCnt; n 3508 src/dps8/dps8_cpu.c long int n = strtol (buf, & end, 0); n 3509 src/dps8/dps8_cpu.c if (* end || n < 0 || n >= MEMSIZE) n 3511 src/dps8/dps8_cpu.c sim_warn ("Invalid argument to watch? %ld\n", (long) n); n 3514 src/dps8/dps8_cpu.c watch_bits [n] = arg != 0; n 1956 src/dps8/dps8_cpu.h #define GET_PR_BITNO(n) (cpu.PAR[n].PR_BITNO) n 1957 src/dps8/dps8_cpu.h #define GET_AR_BITNO(n) (cpu.PAR[n].AR_BITNO) n 1958 src/dps8/dps8_cpu.h #define GET_AR_CHAR(n) (cpu.PAR[n].AR_CHAR) n 1959 src/dps8/dps8_cpu.h static inline void SET_PR_BITNO (uint n, word6 b) n 1961 src/dps8/dps8_cpu.h cpu.PAR[n].PR_BITNO = b; n 1962 src/dps8/dps8_cpu.h cpu.PAR[n].AR_BITNO = (b % 9) & MASK4; n 1963 src/dps8/dps8_cpu.h cpu.PAR[n].AR_CHAR = (b / 9) & MASK2; n 1965 src/dps8/dps8_cpu.h static inline void SET_AR_CHAR_BITNO (uint n, word2 c, word4 b) n 1967 src/dps8/dps8_cpu.h cpu.PAR[n].PR_BITNO = c * 9 + b; n 1968 src/dps8/dps8_cpu.h cpu.PAR[n].AR_BITNO = b & MASK4; n 1969 src/dps8/dps8_cpu.h cpu.PAR[n].AR_CHAR = c & MASK2; n 2341 src/dps8/dps8_cpu.h static inline void core_readN (word24 addr, word36 * data, uint n, n 2344 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) n 2351 src/dps8/dps8_cpu.h static inline void core_writeN (word24 addr, word36 * data, uint n, n 2354 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) n 1262 src/dps8/dps8_crdpun.c int n = atoi (cptr); n 1263 src/dps8/dps8_crdpun.c if (n < 1 || n > N_PUN_UNITS_MAX) n 1265 src/dps8/dps8_crdpun.c pun_dev . numunits = (uint32) n; n 1272 src/dps8/dps8_crdpun.c long n = PUN_UNIT_NUM (uptr); n 1273 src/dps8/dps8_crdpun.c if (n < 0 || n >= N_PUN_UNITS_MAX) n 1275 src/dps8/dps8_crdpun.c sim_printf("name : %s", pun_state [n] . device_name); n 1282 src/dps8/dps8_crdpun.c long n = PUN_UNIT_NUM (uptr); n 1283 src/dps8/dps8_crdpun.c if (n < 0 || n >= N_PUN_UNITS_MAX) n 1287 src/dps8/dps8_crdpun.c strncpy (pun_state [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); n 1288 src/dps8/dps8_crdpun.c pun_state [n] . device_name [MAX_DEV_NAME_LEN - 1] = 0; n 1291 src/dps8/dps8_crdpun.c pun_state [n] . device_name [0] = 0; n 63 src/dps8/dps8_crdrdr.c volatile size_t n = size; \ n 64 src/dps8/dps8_crdrdr.c (void)snprintf (dst, n, __VA_ARGS__); \ n 422 src/dps8/dps8_crdrdr.c uint n = 0; n 423 src/dps8/dps8_crdrdr.c buffer [n] = 0; n 429 src/dps8/dps8_crdrdr.c return n == 0; n 432 src/dps8/dps8_crdrdr.c buffer [n ++] = ch; n 433 src/dps8/dps8_crdrdr.c buffer [n] = 0; n 434 src/dps8/dps8_crdrdr.c if (n > 79) n 741 src/dps8/dps8_crdrdr.c n 1030 src/dps8/dps8_crdrdr.c int n = atoi (cptr); n 1031 src/dps8/dps8_crdrdr.c if (n < 1 || n > N_RDR_UNITS_MAX) n 1033 src/dps8/dps8_crdrdr.c rdr_dev . numunits = (uint32) n; n 1040 src/dps8/dps8_crdrdr.c long n = RDR_UNIT_NUM (uptr); n 1041 src/dps8/dps8_crdrdr.c if (n < 0 || n >= N_RDR_UNITS_MAX) n 1043 src/dps8/dps8_crdrdr.c sim_printf("name : %s", rdr_state [n] . device_name); n 1050 src/dps8/dps8_crdrdr.c long n = RDR_UNIT_NUM (uptr); n 1051 src/dps8/dps8_crdrdr.c if (n < 0 || n >= N_RDR_UNITS_MAX) n 1055 src/dps8/dps8_crdrdr.c strncpy (rdr_state [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); n 1056 src/dps8/dps8_crdrdr.c rdr_state [n] . device_name [MAX_DEV_NAME_LEN - 1] = 0; n 1059 src/dps8/dps8_crdrdr.c rdr_state [n] . device_name [0] = 0; n 302 src/dps8/dps8_decimal.c n 311 src/dps8/dps8_decimal.c n 319 src/dps8/dps8_decimal.c n 343 src/dps8/dps8_decimal.c n 353 src/dps8/dps8_decimal.c n 361 src/dps8/dps8_decimal.c n 386 src/dps8/dps8_decimal.c n 403 src/dps8/dps8_decimal.c n 176 src/dps8/dps8_dia.c int n = atoi (cptr); n 177 src/dps8/dps8_dia.c if (n < 1 || n > N_DIA_UNITS_MAX) n 179 src/dps8/dps8_dia.c dia_dev.numunits = (uint32) n; n 353 src/dps8/dps8_disk.c int n = atoi (cptr); n 354 src/dps8/dps8_disk.c if (n < 1 || n > N_DSK_UNITS_MAX) n 356 src/dps8/dps8_disk.c dsk_dev . numunits = (uint32) n; n 413 src/dps8/dps8_disk.c int n = (int) DSK_UNIT_IDX (uptr); n 414 src/dps8/dps8_disk.c if (n < 0 || n >= N_DSK_UNITS_MAX) n 416 src/dps8/dps8_disk.c sim_printf("name : %s", dsk_states[n].device_name); n 423 src/dps8/dps8_disk.c int n = (int) DSK_UNIT_IDX (uptr); n 424 src/dps8/dps8_disk.c if (n < 0 || n >= N_DSK_UNITS_MAX) n 428 src/dps8/dps8_disk.c strncpy (dsk_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 429 src/dps8/dps8_disk.c dsk_states[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 432 src/dps8/dps8_disk.c dsk_states[n].device_name[0] = 0; n 1671 src/dps8/dps8_disk.c int n = atoi (cptr); n 1672 src/dps8/dps8_disk.c if (n < 0 || n > N_DSK_UNITS_MAX) n 1674 src/dps8/dps8_disk.c ipc_dev.numunits = (uint32) n; n 1681 src/dps8/dps8_disk.c int n = (int) IPC_UNIT_IDX (uptr); n 1682 src/dps8/dps8_disk.c if (n < 0 || n >= N_IPC_UNITS_MAX) n 1684 src/dps8/dps8_disk.c if (ipc_states[n].device_name[0] != 0) n 1685 src/dps8/dps8_disk.c sim_printf("name : %s", ipc_states[n].device_name); n 1694 src/dps8/dps8_disk.c int n = (int) IPC_UNIT_IDX (uptr); n 1695 src/dps8/dps8_disk.c if (n < 0 || n >= N_IPC_UNITS_MAX) n 1699 src/dps8/dps8_disk.c strncpy (ipc_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 1700 src/dps8/dps8_disk.c ipc_states[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 1703 src/dps8/dps8_disk.c ipc_states[n].device_name[0] = 0; n 1813 src/dps8/dps8_disk.c int n = atoi (cptr); n 1814 src/dps8/dps8_disk.c if (n < 0 || n > N_DSK_UNITS_MAX) n 1816 src/dps8/dps8_disk.c msp_dev.numunits = (uint32) n; n 1823 src/dps8/dps8_disk.c int n = (int) MSP_UNIT_IDX (uptr); n 1824 src/dps8/dps8_disk.c if (n < 0 || n >= N_MSP_UNITS_MAX) n 1826 src/dps8/dps8_disk.c if (msp_states[n].device_name[0] != 0) n 1827 src/dps8/dps8_disk.c sim_printf("name : %s", msp_states[n].device_name); n 1836 src/dps8/dps8_disk.c int n = (int) MSP_UNIT_IDX (uptr); n 1837 src/dps8/dps8_disk.c if (n < 0 || n >= N_MSP_UNITS_MAX) n 1841 src/dps8/dps8_disk.c strncpy (msp_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 1842 src/dps8/dps8_disk.c msp_states[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 1845 src/dps8/dps8_disk.c msp_states[n].device_name[0] = 0; n 390 src/dps8/dps8_eis.c static word18 getMFReg18 (uint n, bool allowDU, bool allowNIC, fault_ipr_subtype_ *mod_fault) n 392 src/dps8/dps8_eis.c switch (n) n 477 src/dps8/dps8_eis.c return cpu.rX [n - 8]; n 479 src/dps8/dps8_eis.c sim_printf ("getMFReg18(): How'd we get here? n=%d\n", n); n 483 src/dps8/dps8_eis.c static word36 getMFReg36 (uint n, bool allowDU, bool allowNIC, fault_ipr_subtype_ *mod_fault) n 485 src/dps8/dps8_eis.c switch (n) n 552 src/dps8/dps8_eis.c return cpu.rX [n - 8]; n 554 src/dps8/dps8_eis.c sim_printf ("getMFReg36(): How'd we get here? n=%d\n", n); n 689 src/dps8/dps8_eis.c static void EISWriteIdx (EISaddr *p, uint n, word36 data, bool flush) n 694 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "EISWriteIdx addr %06o n %u\n", cpu.du.Dk_PTR_W[eisaddr_idx], n); n 695 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 697 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "EISWriteIdx addr %06o n %u\n", p->address, n); n 698 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 727 src/dps8/dps8_eis.c static word36 EISReadIdx (EISaddr * p, uint n) n 733 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "EISReadIdx addr %06o n %u\n", cpu.du.Dk_PTR_W[eisaddr_idx], n); n 734 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 737 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "EISReadIdx %ld addr %06o n %u\n", eisaddr_idx, p->address, n); n 738 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 780 src/dps8/dps8_eis.c n 782 src/dps8/dps8_eis.c n 787 src/dps8/dps8_eis.c static void EISReadPage (EISaddr * p, uint n, word36 * data) n 792 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 794 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 849 src/dps8/dps8_eis.c static void EISWritePage (EISaddr * p, uint n, word36 * data) n 854 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 856 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 1261 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1262 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1264 src/dps8/dps8_eis.c address = (cpu.AR [n].WORDNO + SIGNEXT15_18 (offset)) & AMASK; n 1272 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1274 src/dps8/dps8_eis.c e -> addr [k - 1].SNR = cpu.PR [n].SNR; n 1275 src/dps8/dps8_eis.c e -> addr [k - 1].RNR = max3 (cpu.PR [n].RNR, n 1280 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "AR n %u k %u\n", n, k - 1); n 1414 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1415 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1417 src/dps8/dps8_eis.c address = (cpu.AR [n].WORDNO + offset) & AMASK; n 1419 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1420 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1422 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1424 src/dps8/dps8_eis.c e -> addr [k - 1].SNR = cpu.PR [n].SNR; n 1425 src/dps8/dps8_eis.c e -> addr [k - 1].RNR = max3 (cpu.PR [n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1428 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "AR n %u k %u\n", n, k - 1); n 1619 src/dps8/dps8_eis.c word3 n = GET_ARN (opDesc); n 1620 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1622 src/dps8/dps8_eis.c y = (cpu.AR [n].WORDNO + SIGNEXT15_18 (offset)) & AMASK; n 1624 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1625 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1627 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1629 src/dps8/dps8_eis.c e -> addr [k - 1].SNR = cpu.PR[n].SNR; n 1630 src/dps8/dps8_eis.c e -> addr [k - 1].RNR = max3 (cpu.PR [n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1671 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1672 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1674 src/dps8/dps8_eis.c address = (cpu.AR[n].WORDNO + SIGNEXT15_18(offset)) & AMASK; n 1676 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1677 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1679 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1681 src/dps8/dps8_eis.c e->addr[k-1].SNR = cpu.PR[n].SNR; n 1682 src/dps8/dps8_eis.c e->addr[k-1].RNR = max3(cpu.PR[n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1852 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1853 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1855 src/dps8/dps8_eis.c address = (cpu.AR[n].WORDNO + SIGNEXT15_18(offset)) & AMASK; n 1857 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "bitstring k %d AR%d\n", k, n); n 1859 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1860 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1861 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1863 src/dps8/dps8_eis.c e->addr[k-1].SNR = cpu.PR[n].SNR; n 1864 src/dps8/dps8_eis.c e->addr[k-1].RNR = max3(cpu.PR[n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 4556 src/dps8/dps8_eis.c uint n = cpu.du.CHTALLY / 4; n 4557 src/dps8/dps8_eis.c word36 w = EISReadIdx (& e -> ADDR1, n); n 4558 src/dps8/dps8_eis.c EISWriteIdx (& e -> ADDR2, n, w, true); n 4587 src/dps8/dps8_eis.c uint n = cpu.du.CHTALLY / 4; n 4588 src/dps8/dps8_eis.c EISWriteIdx (& e -> ADDR2, n, w, true); n 4852 src/dps8/dps8_eis.c uint n = (limit - cpu.du.CHTALLY - 1) / 4; n 4853 src/dps8/dps8_eis.c word36 w = EISReadIdx (& e -> ADDR1, n); n 4854 src/dps8/dps8_eis.c EISWriteIdx (& e -> ADDR2, n, w, true); n 4887 src/dps8/dps8_eis.c uint n = (limit - cpu.du.CHTALLY - 1) / 4; n 4888 src/dps8/dps8_eis.c EISWriteIdx (& e -> ADDR2, n, w, true); n 5039 src/dps8/dps8_eis.c for(int n = 0 ; n < N ; n += 1) n 5042 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "src: %d: %o\n", n, c); n 5072 src/dps8/dps8_eis.c if (n == 0) // first had better be a sign .... n 5087 src/dps8/dps8_eis.c else if (TN == CTN9 && n == N-1) // the 9-bit exponent (of which only 8-bits are used) n 5092 src/dps8/dps8_eis.c else if (TN == CTN4 && n == N-2) // the 1st 4-chars of the 8-bit exponent n 5098 src/dps8/dps8_eis.c else if (TN == CTN4 && n == N-1) // the 2nd 4-chars of the 8-bit exponent n 5121 src/dps8/dps8_eis.c if (n == 0) // first had better be a sign .... n 5141 src/dps8/dps8_eis.c if (n == N-1) // last had better be a sign .... n 5195 src/dps8/dps8_eis.c for (uint n = 0 ; n < N ; n ++) n 5197 src/dps8/dps8_eis.c word9 c = EISget469 (k, n); n 5206 src/dps8/dps8_eis.c for (uint n = 0 ; n < (uint) e -> dstTally; n ++) n 5208 src/dps8/dps8_eis.c word9 c49 = e -> outBuffer [n]; n 5209 src/dps8/dps8_eis.c EISput469 (k, n, c49); n 5430 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 5668 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 5894 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 5896 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "MFLC n %d, srcTally %d, dstTally %d\n", n, e->srcTally, e->dstTally); n 5996 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF; n += 1) n 6004 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "MFLS n %d c %o\n", n, c); n 6099 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6142 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6144 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "MVC n %d srcTally %d dstTally %d\n", n, e->srcTally, e->dstTally); n 6202 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6260 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6326 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6972 src/dps8/dps8_eis.c for(int n = 0 ; n < e -> srcTally ; n ++) n 6973 src/dps8/dps8_eis.c sum += e -> inBuffer [n]; n 9259 src/dps8/dps8_eis.c static void load9x(int n, EISaddr *addr, int pos) n 9274 src/dps8/dps8_eis.c int m = n; n 9304 src/dps8/dps8_eis.c e->x = signExt9(x, n); // form proper 2's-complement integer n 9383 src/dps8/dps8_eis.c n 9385 src/dps8/dps8_eis.c n 9722 src/dps8/dps8_eis.c n 9746 src/dps8/dps8_eis.c n 9749 src/dps8/dps8_eis.c n 9754 src/dps8/dps8_eis.c n 9776 src/dps8/dps8_eis.c n 9797 src/dps8/dps8_eis.c n 9818 src/dps8/dps8_eis.c n 9890 src/dps8/dps8_eis.c n 12245 src/dps8/dps8_eis.c n 12359 src/dps8/dps8_eis.c n 1770 src/dps8/dps8_fnp2.c int n = atoi (cptr); n 1771 src/dps8/dps8_fnp2.c if (n < 1 || n > N_FNP_UNITS_MAX) n 1773 src/dps8/dps8_fnp2.c fnp_dev . numunits = (uint32) n; n 1781 src/dps8/dps8_fnp2.c long n = FNP_UNIT_IDX (uptr); n 1782 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 1784 src/dps8/dps8_fnp2.c sim_printf(" FNP IPC name: %s", fnpData.fnpUnitData [n] . ipcName); n 1791 src/dps8/dps8_fnp2.c long n = FNP_UNIT_IDX (uptr); n 1792 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 1796 src/dps8/dps8_fnp2.c strncpy (fnpData.fnpUnitData [n] . ipcName, cptr, MAX_DEV_NAME_LEN - 1); n 1797 src/dps8/dps8_fnp2.c fnpData.fnpUnitData [n] . ipcName [MAX_DEV_NAME_LEN - 1] = 0; n 1800 src/dps8/dps8_fnp2.c fnpData.fnpUnitData [n] . ipcName [0] = 0; n 2196 src/dps8/dps8_fnp2.c int n = (int) FNP_UNIT_IDX (uptr); n 2197 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 2199 src/dps8/dps8_fnp2.c if (fnpData.fnpUnitData[n].device_name[0] != 0) n 2200 src/dps8/dps8_fnp2.c sim_printf(" name: %s", fnpData.fnpUnitData[n].device_name); n 2209 src/dps8/dps8_fnp2.c int n = (int) FNP_UNIT_IDX (uptr); n 2210 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 2214 src/dps8/dps8_fnp2.c strncpy (fnpData.fnpUnitData[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 2215 src/dps8/dps8_fnp2.c fnpData.fnpUnitData[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 2218 src/dps8/dps8_fnp2.c fnpData.fnpUnitData[n].device_name[0] = 0; n 2299 src/dps8/dps8_fnp2.c n 2300 src/dps8/dps8_fnp2.c n 2302 src/dps8/dps8_fnp2.c n 2381 src/dps8/dps8_fnp2.c int n = atoi (buf); n 2382 src/dps8/dps8_fnp2.c if (n < 1 || n > 65535) n 2384 src/dps8/dps8_fnp2.c fnpData.telnet_port = n; n 2387 src/dps8/dps8_fnp2.c sim_printf ("[FNP emulation: TELNET server port set to %ld]\n", (long) n); n 2433 src/dps8/dps8_fnp2.c int n = atoi (buf); n 2434 src/dps8/dps8_fnp2.c if (n < 1 || n > 65535) n 2436 src/dps8/dps8_fnp2.c fnpData.telnet3270_port = n; n 2439 src/dps8/dps8_fnp2.c sim_printf ("[FNP emulation: TN3270 server port set to %ld]\n", (long) n); n 60 src/dps8/dps8_fnp2_iomcmd.c static inline void fnp_core_read_n (word24 addr, word36 *data, uint n, UNUSED const char * ctx) n 65 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n; i ++) n 76 src/dps8/dps8_fnp2_iomcmd.c const int n = 1; n 77 src/dps8/dps8_fnp2_iomcmd.c int shift = 36 - (int) p - (int) n; n 82 src/dps8/dps8_fnp2_iomcmd.c word36 mask = ~ (~0U<<n); // n low bits on n 266 src/dps8/dps8_ins.c word3 n; n 268 src/dps8/dps8_ins.c n = (cpu.currentInstruction.opcode & 3); n 270 src/dps8/dps8_ins.c n = (cpu.currentInstruction.opcode & 3) + 4; n 276 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.PPR.PRR; n 280 src/dps8/dps8_ins.c cpu.PR[n].SNR = cpu.PPR.PSR; n 281 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = (cpu.PPR.IC + 1) & MASK18; n 282 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 284 src/dps8/dps8_ins.c HDBGRegPRW (n, "read_tra_op tsp"); n 1824 src/dps8/dps8_ins.c for (uint n = 0; n < ndes; n += 1) { n 1825 src/dps8/dps8_ins.c CPT (cpt2U, 29 + n); // EIS operand fetch (29, 30, 31) n 1846 src/dps8/dps8_ins.c ReadInstructionFetch (cpu.PPR.IC + 1 + n, & cpu.currentEISinstruction.op[n]); n 1871 src/dps8/dps8_ins.c word3 n = GET_PRN(IWB_IRODD); // get PRn n 1873 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 1875 src/dps8/dps8_ins.c sim_debug (DBG_APPENDING, &cpu_dev, "doPtrReg: PR[%o] SNR=%05o RNR=%o WORDNO=%06o " "BITNO=%02o\n", n, cpu.PAR[n].SNR, cpu.PAR[n].RNR, cpu.PAR[n].WORDNO, GET_PR_BITNO (n)); n 1882 src/dps8/dps8_ins.c cpu.TPR.TBR = GET_PR_BITNO (n); n 1884 src/dps8/dps8_ins.c cpu.TPR.TSR = cpu.PAR[n].SNR; n 1886 src/dps8/dps8_ins.c cpu.TPR.TRR = max (cpu.PAR[n].RNR, cpu.PPR.PRR); n 1888 src/dps8/dps8_ins.c cpu.TPR.TRR = max3 (cpu.PAR[n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1890 src/dps8/dps8_ins.c sim_debug (DBG_APPENDING, &cpu_dev, "doPtrReg: n=%o offset=%05o TPR.CA=%06o " "TPR.TBR=%o TPR.TSR=%05o TPR.TRR=%o\n", n, offset, cpu.TPR.CA, cpu.TPR.TBR, cpu.TPR.TSR, cpu.TPR.TRR); n 2228 src/dps8/dps8_ins.c for (int n = 0 ; n < 8 ; n++) { n 2229 src/dps8/dps8_ins.c sim_debug (DBG_REGDUMPPR, &cpu_dev, "PR%d/%s: SNR=%05o RNR=%o WORDNO=%06o BITNO:%02o ARCHAR:%o ARBITNO:%02o\n", n, PRalias[n], cpu.PR[n].SNR, cpu.PR[n].RNR, cpu.PR[n].WORDNO, GET_PR_BITNO (n), GET_AR_CHAR (n), GET_AR_BITNO (n)); n 2313 src/dps8/dps8_ins.c #define x0(n) (n) n 2314 src/dps8/dps8_ins.c #define x1(n) (n|01000) n 2628 src/dps8/dps8_ins.c uint n = ((opcode10 & 020) >> 2) | (opcode10 & 03); n 2629 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2630 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.TPR.TRR; n 2631 src/dps8/dps8_ins.c cpu.PR[n].SNR = cpu.TPR.TSR; n 2632 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = cpu.TPR.CA; n 2633 src/dps8/dps8_ins.c SET_PR_BITNO (n, cpu.TPR.TBR); n 2635 src/dps8/dps8_ins.c HDBGRegPRW (n, "epp"); n 2669 src/dps8/dps8_ins.c uint n = ((opcode10 & 0400) >> 6) | (opcode10 & 03); n 2670 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2672 src/dps8/dps8_ins.c HDBGRegPRR (n, "spri"); n 2675 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].SNR) << 18; n 2676 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].RNR) << 15; n 2678 src/dps8/dps8_ins.c cpu.Ypair[1] = (word36) cpu.PR[n].WORDNO << 18; n 2679 src/dps8/dps8_ins.c cpu.Ypair[1] |= (word36) GET_PR_BITNO (n) << 9; n 2806 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 2807 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2808 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.TPR.TRR; n 2817 src/dps8/dps8_ins.c SET_PR_BITNO (n, bitno); n 2848 src/dps8/dps8_ins.c cpu.PR[n].SNR = 077777; n 2850 src/dps8/dps8_ins.c cpu.PR[n].SNR = oSNR; // unsigned word will 0-extend. n 2852 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = GETLO (cpu.CY); n 2857 src/dps8/dps8_ins.c n, cpu.CY, cpu.PR[n].RNR, GET_PR_BITNO (n), n 2858 src/dps8/dps8_ins.c cpu.PR[n].SNR, cpu.PR[n].WORDNO); n 2860 src/dps8/dps8_ins.c HDBGRegPRW (n, "lprp"); n 2875 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 2876 src/dps8/dps8_ins.c cpu.rX[n] = cpu.TPR.CA; n 2878 src/dps8/dps8_ins.c HDBGRegXW (n, "eaxn"); n 2940 src/dps8/dps8_ins.c uint n = ((opcode10 & 020) >> 2) | (opcode10 & 03); n 2941 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2942 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.TPR.TRR; n 2943 src/dps8/dps8_ins.c cpu.PR[n].SNR = cpu.TPR.TSR; n 2944 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = 0; n 2945 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 2947 src/dps8/dps8_ins.c HDBGRegPRW (n, "epbp"); n 3021 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3022 src/dps8/dps8_ins.c cpu.rX[n] = GETLO (cpu.CY); n 3024 src/dps8/dps8_ins.c HDBGRegXW (n, "lxln"); n 3026 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 3027 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 3054 src/dps8/dps8_ins.c uint32 n; n 3056 src/dps8/dps8_ins.c n = (opcode10 & 3); n 3058 src/dps8/dps8_ins.c n = (opcode10 & 3) + 4; n 3059 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 3127 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3129 src/dps8/dps8_ins.c cpu.CY = ((word36) cpu.rX[n]) << 18; n 3295 src/dps8/dps8_ins.c uint n = ((opcode10 & 0400) >> 6) | (opcode10 & 03); n 3296 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 3298 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].SNR) << 18; n 3299 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].RNR) << 15; n 3491 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3492 src/dps8/dps8_ins.c cpu.rX[n] = compl18 (GETHI (cpu.CY), & cpu.cu.IR, & ovf); n 3494 src/dps8/dps8_ins.c HDBGRegXW (n, "lcxn"); n 3598 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3599 src/dps8/dps8_ins.c cpu.rX[n] = GETHI (cpu.CY); n 3601 src/dps8/dps8_ins.c HDBGRegXW (n, "ldxn"); n 3603 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 3604 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 4372 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4374 src/dps8/dps8_ins.c HDBGRegXR (n, "adlxn"); n 4377 src/dps8/dps8_ins.c cpu.rX[n] = Add18b (cpu.rX[n], GETHI (cpu.CY), 0, I_ZNC, n 4380 src/dps8/dps8_ins.c HDBGRegXW (n, "adlxn"); n 4399 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4401 src/dps8/dps8_ins.c HDBGRegXR (n, "adxn"); n 4404 src/dps8/dps8_ins.c cpu.rX[n] = Add18b (cpu.rX[n], GETHI (cpu.CY), 0, n 4408 src/dps8/dps8_ins.c HDBGRegXW (n, "adxn"); n 4458 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4460 src/dps8/dps8_ins.c HDBGRegXR (n, "asxn"); n 4463 src/dps8/dps8_ins.c word18 tmp18 = Add18b (cpu.rX[n], GETHI (cpu.CY), 0, n 4620 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4622 src/dps8/dps8_ins.c HDBGRegXR (n, "sblxn"); n 4625 src/dps8/dps8_ins.c cpu.rX[n] = Sub18b (cpu.rX[n], GETHI (cpu.CY), 1, n 4628 src/dps8/dps8_ins.c HDBGRegXW (n, "sblxn"); n 4663 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4665 src/dps8/dps8_ins.c HDBGRegXR (n, "sbxn"); n 4668 src/dps8/dps8_ins.c cpu.rX[n] = Sub18b (cpu.rX[n], GETHI (cpu.CY), 1, n 4671 src/dps8/dps8_ins.c HDBGRegXW (n, "sbxn"); n 4719 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4721 src/dps8/dps8_ins.c HDBGRegXR (n, "ssxn"); n 4724 src/dps8/dps8_ins.c word18 tmp18 = Sub18b (cpu.rX[n], GETHI (cpu.CY), 1, n 5191 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5193 src/dps8/dps8_ins.c HDBGRegXR (n, "cmpxn"); n 5195 src/dps8/dps8_ins.c cmp18 (cpu.rX[n], GETHI (cpu.CY), &cpu.cu.IR); n 5297 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5299 src/dps8/dps8_ins.c HDBGRegXR (n, "ansxn"); n 5301 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] & GETHI (cpu.CY); n 5324 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5326 src/dps8/dps8_ins.c HDBGRegXR (n, "anxn"); n 5328 src/dps8/dps8_ins.c cpu.rX[n] &= GETHI (cpu.CY); n 5329 src/dps8/dps8_ins.c cpu.rX[n] &= MASK18; n 5331 src/dps8/dps8_ins.c HDBGRegXW (n, "anxn"); n 5334 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 5335 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 5426 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5428 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] | GETHI (cpu.CY); n 5450 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5452 src/dps8/dps8_ins.c HDBGRegXR (n, "orxn"); n 5454 src/dps8/dps8_ins.c cpu.rX[n] |= GETHI (cpu.CY); n 5455 src/dps8/dps8_ins.c cpu.rX[n] &= MASK18; n 5457 src/dps8/dps8_ins.c HDBGRegXW (n, "orxn"); n 5460 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 5461 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 5537 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5539 src/dps8/dps8_ins.c HDBGRegXR (n, "ersxn"); n 5542 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] ^ GETHI (cpu.CY); n 5564 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5566 src/dps8/dps8_ins.c HDBGRegXR (n, "erxn"); n 5568 src/dps8/dps8_ins.c cpu.rX[n] ^= GETHI (cpu.CY); n 5569 src/dps8/dps8_ins.c cpu.rX[n] &= MASK18; n 5571 src/dps8/dps8_ins.c HDBGRegXW (n, "erxn"); n 5574 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 5575 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 5635 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5637 src/dps8/dps8_ins.c HDBGRegXR (n, "canxn"); n 5639 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] & GETHI (cpu.CY); n 5643 src/dps8/dps8_ins.c n, cpu.rX[n], (word18) (GETHI (cpu.CY) & MASK18), n 5717 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5719 src/dps8/dps8_ins.c HDBGRegXR (n, "cnaxn"); n 5721 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] & ~GETHI (cpu.CY); n 6575 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n ++) n 6577 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6579 src/dps8/dps8_ins.c cpu.Ypair[0] = cpu.Yblock16[n * 2 + 0]; n 6581 src/dps8/dps8_ins.c cpu.Ypair[1] = cpu.Yblock16[n * 2 + 1]; n 6586 src/dps8/dps8_ins.c cpu.PR[n].RNR = max3 (Crr, cpu.SDW->R1, cpu.TPR.TRR); n 6588 src/dps8/dps8_ins.c cpu.PR[n].RNR = Crr; n 6589 src/dps8/dps8_ins.c cpu.PR[n].SNR = (cpu.Ypair[0] >> 18) & MASK15; n 6590 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = GETHI (cpu.Ypair[1]); n 6599 src/dps8/dps8_ins.c SET_PR_BITNO (n, bitno); n 6601 src/dps8/dps8_ins.c HDBGRegPRW (n, "lpri"); n 6645 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n++) n 6647 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6648 src/dps8/dps8_ins.c cpu.Yblock16[2 * n] = 043; n 6649 src/dps8/dps8_ins.c cpu.Yblock16[2 * n] |= ((word36) cpu.PR[n].SNR) << 18; n 6650 src/dps8/dps8_ins.c cpu.Yblock16[2 * n] |= ((word36) cpu.PR[n].RNR) << 15; n 6652 src/dps8/dps8_ins.c cpu.Yblock16[2 * n + 1] = (word36) cpu.PR[n].WORDNO << 18; n 6653 src/dps8/dps8_ins.c cpu.Yblock16[2 * n + 1] |= (word36) GET_PR_BITNO(n) << 9; n 6682 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 6683 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6689 src/dps8/dps8_ins.c if ((cpu.PR[n].SNR & 070000) != 0 && cpu.PR[n].SNR != MASK15) n 6692 src/dps8/dps8_ins.c cpu.CY = ((word36) (GET_PR_BITNO(n) & 077)) << 30; n 6694 src/dps8/dps8_ins.c cpu.CY |= ((word36) (cpu.PR[n].SNR & 07777)) << 18; n 6695 src/dps8/dps8_ins.c cpu.CY |= cpu.PR[n].WORDNO & PAMASK; n 6711 src/dps8/dps8_ins.c uint32 n = opcode10 & 03; // get n n 6712 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6713 src/dps8/dps8_ins.c cpu.PR[n].WORDNO += GETHI (cpu.CY); n 6714 src/dps8/dps8_ins.c cpu.PR[n].WORDNO &= MASK18; n 6715 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 6717 src/dps8/dps8_ins.c HDBGRegPRW (n, "adwpn"); n 6730 src/dps8/dps8_ins.c uint32 n = (opcode10 & MASK3) + 4U; // get n n 6731 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6732 src/dps8/dps8_ins.c cpu.PR[n].WORDNO += GETHI (cpu.CY); n 6733 src/dps8/dps8_ins.c cpu.PR[n].WORDNO &= MASK18; n 6734 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 6736 src/dps8/dps8_ins.c HDBGRegPRW (n, "adwpn"); n 7057 src/dps8/dps8_ins.c for (int n=1;n<=35;n++) { n 8494 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n 8495 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8498 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = GETHI (cpu.CY); n 8532 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) (CN/2), (CN % 2) ? 5 : 0); n 8541 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = 0; n 8542 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, 0, 0); n 8549 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) ((6 * CN) / 9), n 8558 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) (CN >> 1), 0); n 8564 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = 0; n 8565 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, 0, 0); n 8567 src/dps8/dps8_ins.c HDBGRegARW (n, "aarn"); n 8572 src/dps8/dps8_ins.c HDBGRegARW (n, "aarn"); n 8592 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 8593 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8594 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = GETHI (cpu.CY); n 8596 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, getbits36_2 (cpu.CY, 18), n 8599 src/dps8/dps8_ins.c HDBGRegARW (n, "larn"); n 8609 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n += 1) n 8611 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8612 src/dps8/dps8_ins.c word36 tmp36 = cpu.Yblock8[n]; n 8613 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = getbits36_18 (tmp36, 0); n 8614 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, getbits36_2 (tmp36, 18), n 8617 src/dps8/dps8_ins.c HDBGRegARW (n, "lareg"); n 8643 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n 8644 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8647 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = GETHI (cpu.CY); n 8681 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) (CN/2), (CN % 2) ? 5 : 0); n 8695 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) CN, 0); n 8699 src/dps8/dps8_ins.c HDBGRegARW (n, "narn"); n 8735 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n 8736 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8740 src/dps8/dps8_ins.c putbits36_18 (& cpu.CY, 0, cpu.AR[n].WORDNO & MASK18); n 8753 src/dps8/dps8_ins.c CN = (9 * GET_AR_CHAR (n) + GET_AR_BITNO (n) - 1) / 4; n 8760 src/dps8/dps8_ins.c CN = (9 * GET_AR_CHAR (n) + GET_AR_BITNO (n)) / 6; n 8769 src/dps8/dps8_ins.c (word3) ((GET_AR_CHAR (n) & MASK2) << 1)); n 8790 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get register # n 8791 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8800 src/dps8/dps8_ins.c putbits36_18 (& cpu.CY, 0, cpu.AR[n].WORDNO & MASK18); n 8809 src/dps8/dps8_ins.c word3 CN = (9 * GET_AR_CHAR (n) + n 8810 src/dps8/dps8_ins.c GET_AR_BITNO (n) - 1) / 4; n 8819 src/dps8/dps8_ins.c (word3) ((GET_AR_CHAR (n) & MASK2) << 1)); n 8843 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 8844 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8845 src/dps8/dps8_ins.c putbits36 (& cpu.CY, 0, 18, cpu.PR[n].WORDNO); n 8847 src/dps8/dps8_ins.c putbits36 (& cpu.CY, 18, 2, GET_AR_CHAR (n)); n 8848 src/dps8/dps8_ins.c putbits36 (& cpu.CY, 20, 4, GET_AR_BITNO (n)); n 8862 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n += 1) n 8864 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8866 src/dps8/dps8_ins.c putbits36 (& arx, 0, 18, cpu.PR[n].WORDNO); n 8867 src/dps8/dps8_ins.c putbits36 (& arx, 18, 2, GET_AR_CHAR (n)); n 8868 src/dps8/dps8_ins.c putbits36 (& arx, 20, 4, GET_AR_BITNO (n)); n 8869 src/dps8/dps8_ins.c cpu.Yblock8[n] = arx; n 9274 src/dps8/dps8_ins.c n 9278 src/dps8/dps8_ins.c n 9279 src/dps8/dps8_ins.c n 938 src/dps8/dps8_iom.c int n = atoi (cptr); n 939 src/dps8/dps8_iom.c if (n < 1 || n > N_IOM_UNITS_MAX) n 944 src/dps8/dps8_iom.c iom_dev.numunits = (unsigned) n; n 53 src/dps8/dps8_math.c long double ldexpl(long double x, int n) { n 54 src/dps8/dps8_math.c return __builtin_ldexpl(x, n); n 98 src/dps8/dps8_math.c for(int n = 70 ; n >= 0 ; n -= 1) // this also normalizes the mantissa n 101 src/dps8/dps8_math.c if (isnonzero_128 (and_128 (Mant, lshift_128 (construct_128 (0, 1), (unsigned int) n)))) n 106 src/dps8/dps8_math.c if (Mant & ((word72)1 << n)) n 150 src/dps8/dps8_math.c for(int n = 70 ; n >= 0 ; n -= 1) // this also normalizes the mantissa n 153 src/dps8/dps8_math.c if (isnonzero_128 (and_128 (Mant, lshift_128 (construct_128 (0, 1), (unsigned int) n)))) n 158 src/dps8/dps8_math.c if (Mant & ((word72)1 << n)) n 199 src/dps8/dps8_math.c for(int n = 62 ; n >= 0 && mant > 0; n -= 1) n 204 src/dps8/dps8_math.c putbits72 (& result, 71-n, 1, 1); n 316 src/dps8/dps8_math.c for(int n = 70 ; n >= 0 && mant > 0; n -= 1) n 321 src/dps8/dps8_math.c putbits72 (& result 71-n, 1, 1); n 365 src/dps8/dps8_math.c n 367 src/dps8/dps8_math.c n 402 src/dps8/dps8_math.c n 407 src/dps8/dps8_math.c n 537 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 551 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 570 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 584 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 1723 src/dps8/dps8_math.c for(int n = 0; n < shift_count; n += 1) { n 1756 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 1857 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 1890 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 2063 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 2096 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3341 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3359 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3385 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3403 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3477 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3493 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3512 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3528 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 168 src/dps8/dps8_math128.c uint128 lshift_128 (uint128 a, unsigned int n) n 175 src/dps8/dps8_math128.c if (n < 64) n 177 src/dps8/dps8_math128.c uint64_t nmask = (uint64_t) ((~(MASK64 << n))); n 180 src/dps8/dps8_math128.c uint64_t keep = (a.l >> (64 - n)) & nmask; n 183 src/dps8/dps8_math128.c uint64_t l = a.l << n; n 186 src/dps8/dps8_math128.c uint64_t h = a.h << n; n 193 src/dps8/dps8_math128.c uint64_t h = a.l << (n - 64); n 197 src/dps8/dps8_math128.c int128 lshift_s128 (int128 a, unsigned int n) n 199 src/dps8/dps8_math128.c uint128 t = lshift_128 (cast_128 (a), n); n 203 src/dps8/dps8_math128.c uint128 rshift_128 (uint128 a, unsigned int n) n 207 src/dps8/dps8_math128.c n 209 src/dps8/dps8_math128.c n 211 src/dps8/dps8_math128.c n 213 src/dps8/dps8_math128.c n 215 src/dps8/dps8_math128.c n 219 src/dps8/dps8_math128.c n 222 src/dps8/dps8_math128.c n 225 src/dps8/dps8_math128.c n 228 src/dps8/dps8_math128.c n 234 src/dps8/dps8_math128.c n 236 src/dps8/dps8_math128.c n 243 src/dps8/dps8_math128.c n 248 src/dps8/dps8_math128.c n 256 src/dps8/dps8_math128.c while (n) n 264 src/dps8/dps8_math128.c n --; n 269 src/dps8/dps8_math128.c int128 rshift_s128 (int128 a, unsigned int n) n 271 src/dps8/dps8_math128.c uint128 t = rshift_128 (cast_128 (a), n); n 278 src/dps8/dps8_math128.c uint32_t v[], int m, int n) n 290 src/dps8/dps8_math128.c for (j = 0; j < n; j++) n 305 src/dps8/dps8_math128.c uint32_t v[], int m, int n) n 307 src/dps8/dps8_math128.c mulmn (w, u, v, m, n); n 316 src/dps8/dps8_math128.c for (int j = 0; j < n; j++) n 323 src/dps8/dps8_math128.c if ((int32_t)v[n - 1] < 0) n 328 src/dps8/dps8_math128.c int t = (int) w[i + n] - (int) u[i] - b; n 329 src/dps8/dps8_math128.c w[i + n] = (uint32_t) t; n 339 src/dps8/dps8_math128.c int n; n 344 src/dps8/dps8_math128.c n = 0; n 348 src/dps8/dps8_math128.c n = n + 16; n 354 src/dps8/dps8_math128.c n = n + 8; n 360 src/dps8/dps8_math128.c n = n + 4; n 366 src/dps8/dps8_math128.c n = n + 2; n 372 src/dps8/dps8_math128.c n = n + 1; n 375 src/dps8/dps8_math128.c return n; n 382 src/dps8/dps8_math128.c int m, int n) n 392 src/dps8/dps8_math128.c if (m < n || n <= 0 || v[n-1] == 0) n 396 src/dps8/dps8_math128.c if (n == 1) n 413 src/dps8/dps8_math128.c s = nlz (v[n-1]) - 16; // 0 <= s <= 16. n 415 src/dps8/dps8_math128.c uint16_t vn [n]; n 416 src/dps8/dps8_math128.c for (i = n - 1; i > 0; i--) n 426 src/dps8/dps8_math128.c for (j = m - n; j >= 0; j--) n 429 src/dps8/dps8_math128.c qhat = (un[j+n]*b + un[j+n-1])/vn[n-1]; n 430 src/dps8/dps8_math128.c rhat = (un[j+n]*b + un[j+n-1])%vn[n-1]; n 432 src/dps8/dps8_math128.c if (qhat >= b || (unsigned)qhat*(unsigned long long)vn[n-2] > b*rhat + un[j+n-2]) n 435 src/dps8/dps8_math128.c rhat = rhat + vn[n-1]; n 441 src/dps8/dps8_math128.c for (i = 0; i < n; i++) n 448 src/dps8/dps8_math128.c t = un[j+n] - k; n 449 src/dps8/dps8_math128.c un[j+n] = (uint16_t) t; n 456 src/dps8/dps8_math128.c for (i = 0; i < n; i++) n 462 src/dps8/dps8_math128.c un[j+n] = (uint16_t) (un[j+n] + k); n 469 src/dps8/dps8_math128.c for (i = 0; i < n; i++) n 519 src/dps8/dps8_math128.c const int n = 8; n 520 src/dps8/dps8_math128.c uint16_t q[m], u[m], v[n]; n 574 src/dps8/dps8_math128.c const int n = 1; n 575 src/dps8/dps8_math128.c uint16_t q[m], u[m], v[n]; n 589 src/dps8/dps8_math128.c divmnu (q, remp, u, v, m, n); n 610 src/dps8/dps8_math128.c const int n = 2; n 611 src/dps8/dps8_math128.c uint16_t q[m], u[m], v[n], r[2]; n 626 src/dps8/dps8_math128.c divmnu (q, remp ? r : NULL, u, v, m, n); n 765 src/dps8/dps8_math128.c static void tls (uint64_t ah, uint64_t al, unsigned int n, n 769 src/dps8/dps8_math128.c uint128 r = lshift_128 (a, n); n 774 src/dps8/dps8_math128.c (unsigned long long)ah, (unsigned long long)al, (unsigned long long)n, n 780 src/dps8/dps8_math128.c static void trs (uint64_t ah, uint64_t al, unsigned int n, n 784 src/dps8/dps8_math128.c uint128 r = rshift_128 (a, n); n 789 src/dps8/dps8_math128.c (unsigned long long)ah, (unsigned long long)al, (unsigned long long)n, n 52 src/dps8/dps8_math128.h uint128 lshift_128 (uint128 a, unsigned int n); n 53 src/dps8/dps8_math128.h int128 lshift_s128 (int128 a, unsigned int n); n 54 src/dps8/dps8_math128.h uint128 rshift_128 (uint128 a, unsigned int n); n 55 src/dps8/dps8_math128.h int128 rshift_s128 (int128 a, unsigned int n); n 174 src/dps8/dps8_mgp.c int n = atoi(cptr); n 175 src/dps8/dps8_mgp.c if (n < 1 || n > N_MGP_UNITS_MAX) n 180 src/dps8/dps8_mgp.c mgp_dev.numunits = (uint32)n; n 189 src/dps8/dps8_mgp.c int n = (int)MGP_UNIT_IDX(uptr); n 191 src/dps8/dps8_mgp.c if (n < 0 || n >= N_MGP_UNITS_MAX) n 196 src/dps8/dps8_mgp.c if (mgp_state[n].device_name[1] != 0) n 198 src/dps8/dps8_mgp.c sim_printf("name : %s", mgp_state[n].device_name); n 202 src/dps8/dps8_mgp.c sim_printf("name : MGP%d", n); n 212 src/dps8/dps8_mgp.c int n = (int)MGP_UNIT_IDX(uptr); n 214 src/dps8/dps8_mgp.c if (n < 0 || n >= N_MGP_UNITS_MAX) n 221 src/dps8/dps8_mgp.c strncpy(mgp_state[n].device_name, cptr, MAX_DEV_NAME_LEN - 1); n 222 src/dps8/dps8_mgp.c mgp_state[n].device_name[MAX_DEV_NAME_LEN - 1] = 0; n 226 src/dps8/dps8_mgp.c mgp_state[n].device_name[0] = 0; n 167 src/dps8/dps8_mt.c int n = atoi (cptr); n 168 src/dps8/dps8_mt.c if (n < 0 || n > N_MTP_UNITS_MAX) n 170 src/dps8/dps8_mt.c mtp_dev.numunits = (uint32) n; n 199 src/dps8/dps8_mt.c int n = (int) atoi (cptr); n 200 src/dps8/dps8_mt.c if (n < 0 || n >= N_DEV_CODES) n 202 src/dps8/dps8_mt.c mtp_state[mtp_unit_idx].boot_drive = (uint) n; n 234 src/dps8/dps8_mt.c int n = (int) MTP_UNIT_IDX (uptr); n 235 src/dps8/dps8_mt.c if (n < 0 || n >= N_MTP_UNITS_MAX) n 237 src/dps8/dps8_mt.c sim_printf("name : %s", mtp_state [n].device_name); n 244 src/dps8/dps8_mt.c int n = (int) MTP_UNIT_IDX (uptr); n 245 src/dps8/dps8_mt.c if (n < 0 || n >= N_MTP_UNITS_MAX) n 249 src/dps8/dps8_mt.c strncpy (mtp_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 250 src/dps8/dps8_mt.c mtp_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 253 src/dps8/dps8_mt.c mtp_state[n].device_name[0] = 0; n 419 src/dps8/dps8_mt.c int n = atoi (cptr); n 420 src/dps8/dps8_mt.c if (n < 1 || n > N_MT_UNITS_MAX) n 422 src/dps8/dps8_mt.c tape_dev . numunits = (uint32) n; n 429 src/dps8/dps8_mt.c int n = (int) MT_UNIT_NUM (uptr); n 430 src/dps8/dps8_mt.c if (n < 0 || n >= N_MT_UNITS_MAX) n 432 src/dps8/dps8_mt.c if (tape_states[n].device_name[1] == 0) n 435 src/dps8/dps8_mt.c sim_printf("name : %s", tape_states[n].device_name); n 442 src/dps8/dps8_mt.c int n = (int) MT_UNIT_NUM (uptr); n 443 src/dps8/dps8_mt.c if (n < 0 || n >= N_MT_UNITS_MAX) n 447 src/dps8/dps8_mt.c strncpy (tape_states [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); n 448 src/dps8/dps8_mt.c tape_states [n] . device_name [MAX_DEV_NAME_LEN - 1] = 0; n 451 src/dps8/dps8_mt.c tape_states [n] . device_name [0] = 0; n 782 src/dps8/dps8_prt.c uint8_t n = get_BCD_char (i); n 784 src/dps8/dps8_prt.c if (n == 077) // pr2_conv_ sez ESC ESC is case shift n 794 src/dps8/dps8_prt.c else if (n >= 041 && n <= 057) n 796 src/dps8/dps8_prt.c int nchars = (n - 040) * 8; n 803 src/dps8/dps8_prt.c else if (n >= 020 && n <= 022) n 812 src/dps8/dps8_prt.c else if (n == 0) // slew 0 lines is just CR n 820 src/dps8/dps8_prt.c else if (n <= 017) n 822 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, newlines, n); n 823 src/dps8/dps8_prt.c if (n_write != n) n 831 src/dps8/dps8_prt.c sim_warn ("Printer BCD edited ESC %u. %o ignored\n", n, n); n 876 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); n 877 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, spaces, n); n 878 src/dps8/dps8_prt.c if (n_write != n) n 882 src/dps8/dps8_prt.c col += n; n 887 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); n 888 src/dps8/dps8_prt.c if (n) n 890 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, newlines, n); n 891 src/dps8/dps8_prt.c if (n_write != n) n 918 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); n 919 src/dps8/dps8_prt.c if (col < n) n 921 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, spaces, n - col); n 922 src/dps8/dps8_prt.c if (n_write != n - col) n 926 src/dps8/dps8_prt.c col += n; n 1771 src/dps8/dps8_prt.c int n = atoi (cptr); n 1772 src/dps8/dps8_prt.c if (n < 1 || n > N_PRT_UNITS_MAX) n 1774 src/dps8/dps8_prt.c prt_dev.numunits = (uint) n; n 1781 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1782 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1784 src/dps8/dps8_prt.c sim_printf("name : %s", prt_state[n].device_name); n 1791 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1792 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1800 src/dps8/dps8_prt.c prt_state[n].model = i; n 1814 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1815 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1817 src/dps8/dps8_prt.c sim_printf("model : %s", model_names[prt_state[n].model]); n 1824 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1825 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1829 src/dps8/dps8_prt.c strncpy (prt_state[n].device_name, cptr, MAX_DEV_NAME_LEN - 1); n 1830 src/dps8/dps8_prt.c prt_state[n].device_name[MAX_DEV_NAME_LEN - 1] = 0; n 1834 src/dps8/dps8_prt.c prt_state[n].device_name[0] = 0; n 1961 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1962 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1965 src/dps8/dps8_prt.c "Printer set ready: Invalid unit number %ld\n", (long) n); n 1966 src/dps8/dps8_prt.c sim_printf ("error: Invalid unit number %ld\n", (long) n); n 1969 src/dps8/dps8_prt.c return signal_prt_ready ((uint) n); n 620 src/dps8/dps8_scu.c int n = atoi (cptr); n 621 src/dps8/dps8_scu.c if (n < 1 || n > N_SCU_UNITS_MAX) n 623 src/dps8/dps8_scu.c scu_dev.numunits = (uint) n; n 102 src/dps8/dps8_socket_dev.c int n = atoi (cptr); n 103 src/dps8/dps8_socket_dev.c if (n < 1 || n > N_SKC_UNITS_MAX) n 105 src/dps8/dps8_socket_dev.c skc_dev.numunits = (uint32) n; n 112 src/dps8/dps8_socket_dev.c int n = (int) SKC_UNIT_IDX (uptr); n 113 src/dps8/dps8_socket_dev.c if (n < 0 || n >= N_SKC_UNITS_MAX) n 115 src/dps8/dps8_socket_dev.c if (skc_state[n].device_name[1] != 0) n 116 src/dps8/dps8_socket_dev.c sim_printf("Name: %s", skc_state[n].device_name); n 123 src/dps8/dps8_socket_dev.c int n = (int) SKC_UNIT_IDX (uptr); n 124 src/dps8/dps8_socket_dev.c if (n < 0 || n >= N_SKC_UNITS_MAX) n 128 src/dps8/dps8_socket_dev.c strncpy (skc_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 129 src/dps8/dps8_socket_dev.c skc_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 132 src/dps8/dps8_socket_dev.c skc_state[n].device_name[0] = 0; n 784 src/dps8/dps8_socket_dev.c for (uint n = 0; n < count; n ++) n 786 src/dps8/dps8_socket_dev.c uint wordno = (uint) n / 4; n 787 src/dps8/dps8_socket_dev.c uint charno = (uint) n % 4; n 788 src/dps8/dps8_socket_dev.c netdata[n] = getbits36_8 (buffer [5 + wordno], charno * 9 + 1); n 1211 src/dps8/dps8_socket_dev.c for (ssize_t n = 0; n < nread; n ++) n 1213 src/dps8/dps8_socket_dev.c uint wordno = (uint) n / 4; n 1214 src/dps8/dps8_socket_dev.c uint charno = (uint) n % 4; n 1215 src/dps8/dps8_socket_dev.c putbits36_9 (& buffer [5 + wordno], charno * 9, (word9) netdata [n]); n 1872 src/dps8/dps8_sys.c int n = 010000; //-V536 n 1875 src/dps8/dps8_sys.c n = (int) strtol (buf, NULL, 0); n 1877 src/dps8/dps8_sys.c sim_printf ("Restart entry 0%o\n", n); n 1881 src/dps8/dps8_sys.c n 1882 src/dps8/dps8_sys.c n 1893 src/dps8/dps8_sys.c cpu.restart_address = (uint) n; n 1903 src/dps8/dps8_sys.c int n = atoi (buf); n 1904 src/dps8/dps8_sys.c if (n < 1 || n > 1000) // 1 millisecond to 1 second n 1906 src/dps8/dps8_sys.c sim_printf ("POLL %d: must be 1 (1 millisecond) to 1000 (1 second)\r\n", n); n 1909 src/dps8/dps8_sys.c sim_printf ("Polling set to %d milliseconds\r\n", n); n 1910 src/dps8/dps8_sys.c sys_opts.sys_poll_interval = (uint) n; n 1918 src/dps8/dps8_sys.c int n = atoi (buf); n 1919 src/dps8/dps8_sys.c if (n < 1 || n > 1000) // 1 - slow poll every pool; 1000 - slow poll every 1000 polls n 1921 src/dps8/dps8_sys.c sim_printf ("SLOWPOLL %d: must be 1 (1 slow poll per pol) to 1000 (1 slow poll per 1000 polls)\r\n", n); n 1924 src/dps8/dps8_sys.c sim_printf ("Slow polling set to %d polls\r\n", n); n 1925 src/dps8/dps8_sys.c sys_opts.sys_slow_poll_interval = (uint) n; n 1933 src/dps8/dps8_sys.c int n = atoi (buf); n 1934 src/dps8/dps8_sys.c if (n < 1 || n > 1024*1024) // 1 - poll check rate in CPY cycles: 1 - check every cycle; 1024 check every 1024 cycles n 1936 src/dps8/dps8_sys.c sim_printf ("CHECKPOLL %d: must be 1 (check every cycle) to 1048576 (check every million cycles\r\n", n); n 1939 src/dps8/dps8_sys.c sim_printf ("Poll check rate set to %d CPU cycles\r\n", n); n 1940 src/dps8/dps8_sys.c sys_opts.sys_poll_check_rate = (uint) n; n 2337 src/dps8/dps8_sys.c int n = lookup_book_segment (name); n 2338 src/dps8/dps8_sys.c if (n >= 0) n 2339 src/dps8/dps8_sys.c return n; n 2356 src/dps8/dps8_sys.c n = n_book_segments; n 2358 src/dps8/dps8_sys.c return n; n 2388 src/dps8/dps8_sys.c int n = n_book_components; n 2390 src/dps8/dps8_sys.c return n; n 2685 src/dps8/dps8_sys.c int n; n 2686 src/dps8/dps8_sys.c for (n = 0; n < cnt / 2; n ++) n 2688 src/dps8/dps8_sys.c if (loc[n] > best && loc[n] <= (int) offset) n 2690 src/dps8/dps8_sys.c best = loc[n]; n 2691 src/dps8/dps8_sys.c memcpy (bestLines, linenos[n], n 3781 src/dps8/dps8_sys.c int n = dbgevent_lookup ((word15) segno, (word18) offset); n 3782 src/dps8/dps8_sys.c if (n < 0) n 3787 src/dps8/dps8_sys.c for (int i = n; i < n_dbgevents - 1; i ++) n 4689 src/dps8/dps8_sys.c int n; // number alias represents .... n 4765 src/dps8/dps8_sys.c segno = cpu.PR[prt->n].SNR; n 4766 src/dps8/dps8_sys.c PRoffset = cpu.PR[prt->n].WORDNO; n 4808 src/dps8/dps8_sys.c segno = cpu.PR[prt->n].SNR; n 4809 src/dps8/dps8_sys.c offset = cpu.PR[prt->n].WORDNO; n 4874 src/dps8/dps8_sys.c for(uint n = 0 ; n < p->info->ndes; n += 1) n 4875 src/dps8/dps8_sys.c fprintf(ofile, " %012llo", (unsigned long long int)val[n + 1]); n 104 src/dps8/dps8_urp.c int n = atoi (cptr); n 105 src/dps8/dps8_urp.c if (n < 1 || n > N_URP_UNITS_MAX) n 107 src/dps8/dps8_urp.c urp_dev.numunits = (uint32) n; n 113 src/dps8/dps8_urp.c int n = (int) URPUNIT_NUM (uptr); n 114 src/dps8/dps8_urp.c if (n < 0 || n >= N_URP_UNITS_MAX) n 116 src/dps8/dps8_urp.c sim_printf ("name : %s", urpState[n].deviceName); n 122 src/dps8/dps8_urp.c int n = (int) URPUNIT_NUM (uptr); n 123 src/dps8/dps8_urp.c if (n < 0 || n >= N_URP_UNITS_MAX) n 127 src/dps8/dps8_urp.c strncpy (urpState[n].deviceName, cptr, MAX_DEV_NAME_LEN - 1); n 128 src/dps8/dps8_urp.c urpState[n].deviceName[MAX_DEV_NAME_LEN - 1] = 0; n 131 src/dps8/dps8_urp.c urpState[n].deviceName [0] = 0; n 114 src/dps8/dps8_utils.c int n = (address >> 15) & 07; n 117 src/dps8/dps8_utils.c sprintf(buff, " pr%d|%o", n, offset); n 126 src/dps8/dps8_utils.c for(uint n = 0 ; n < 0100 ; n++) n 127 src/dps8/dps8_utils.c if (extMods[n].mod) n 128 src/dps8/dps8_utils.c if(n == tag) n 130 src/dps8/dps8_utils.c strcpy(buff, extMods[n].mod); n 158 src/dps8/dps8_utils.c for(uint n = 0 ; n < 0100 ; n++) //-V536 n 159 src/dps8/dps8_utils.c if (extMods[n].mod) n 160 src/dps8/dps8_utils.c if(n == tag) n 162 src/dps8/dps8_utils.c strcpy(msg, extMods[n].mod); n 1556 src/dps8/dps8_utils.c int64_t n = strtoll (value, & endptr, 0); n 1564 src/dps8/dps8_utils.c if (n < p -> min || n > p -> max) n 1570 src/dps8/dps8_utils.c * result = n; n 1912 src/dps8/dps8_utils.c static void print_uint128o_r (uint128 n, char * p) n 1914 src/dps8/dps8_utils.c if (n == 0) n 1917 src/dps8/dps8_utils.c print_uint128o_r(n / 8, p); n 1921 src/dps8/dps8_utils.c s [0] = n % 8 + '0'; n 1926 src/dps8/dps8_utils.c sim_printf("%c", (int) (n%8+0x30)); n 1929 src/dps8/dps8_utils.c char * print_int128o (int128 n, char * p) n 1931 src/dps8/dps8_utils.c if (n == 0) n 1939 src/dps8/dps8_utils.c print_uint128o_r ((uint128) n, p); n 1943 src/dps8/dps8_utils.c static void print_uint128_r (uint128 n, char * p) n 1945 src/dps8/dps8_utils.c if (n == 0) n 1948 src/dps8/dps8_utils.c print_uint128_r(n / 10, p); n 1952 src/dps8/dps8_utils.c s [0] = n % 10 + '0'; n 1957 src/dps8/dps8_utils.c sim_printf("%c", (int) (n%10+0x30)); n 1960 src/dps8/dps8_utils.c void print_int128 (int128 n, char * p) n 1962 src/dps8/dps8_utils.c if (n == 0) n 1970 src/dps8/dps8_utils.c if (n < 0) n 1976 src/dps8/dps8_utils.c n = -n; n 1978 src/dps8/dps8_utils.c print_uint128_r ((uint128) n, p); n 107 src/dps8/dps8_utils.h n 110 src/dps8/dps8_utils.h n 113 src/dps8/dps8_utils.h n 117 src/dps8/dps8_utils.h n 121 src/dps8/dps8_utils.h static inline word36 getbits36(word36 x, uint i, uint n) { n 123 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)n+1; n 125 src/dps8/dps8_utils.h sim_printf ("getbits36: bad args (%012llu,i=%d,n=%d)\n", (unsigned long long)x, i, n); n 128 src/dps8/dps8_utils.h return (x >> (unsigned) shift) & ~ (~0U << n); n 318 src/dps8/dps8_utils.h static inline word36 setbits36(word36 x, uint p, uint n, word36 val) n 320 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 322 src/dps8/dps8_utils.h sim_printf ("setbits36: bad args (%012llu,pos=%d,n=%d)\n", (unsigned long long)x, p, n); n 325 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 329 src/dps8/dps8_utils.h word36 result = (x & ~ mask) | ((val&MASKBITS(n)) << (36 - p - n)); n 335 src/dps8/dps8_utils.h const int n = 1; n 336 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 341 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 351 src/dps8/dps8_utils.h const int n = 4; n 352 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 357 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 367 src/dps8/dps8_utils.h const int n = 5; n 368 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 373 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 383 src/dps8/dps8_utils.h const int n = 6; n 384 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 389 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 399 src/dps8/dps8_utils.h const int n = 8; n 400 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 405 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 415 src/dps8/dps8_utils.h const int n = 9; n 416 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 421 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 431 src/dps8/dps8_utils.h const int n = 16; n 432 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 437 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 447 src/dps8/dps8_utils.h const int n = 24; n 448 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 453 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 461 src/dps8/dps8_utils.h static inline void putbits36 (word36 * x, uint p, uint n, word36 val) n 463 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 466 src/dps8/dps8_utils.h sim_printf ("putbits36: bad args (%012llu,pos=%d,n=%d)\n", (unsigned long long)*x, p, n); n 469 src/dps8/dps8_utils.h word36 mask = ~ (~0U << n); // n low bits on n 473 src/dps8/dps8_utils.h * x = (* x & ~mask) | ((val & MASKBITS (n)) << (36 - p - n)); n 479 src/dps8/dps8_utils.h const int n = 1; n 480 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 485 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 494 src/dps8/dps8_utils.h const int n = 2; n 495 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 500 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 509 src/dps8/dps8_utils.h const int n = 3; n 510 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 515 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 524 src/dps8/dps8_utils.h const int n = 4; n 525 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 530 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 539 src/dps8/dps8_utils.h const int n = 5; n 540 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 545 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 554 src/dps8/dps8_utils.h const int n = 6; n 555 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 560 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 569 src/dps8/dps8_utils.h const int n = 7; n 570 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 575 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 584 src/dps8/dps8_utils.h const int n = 8; n 585 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 590 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 599 src/dps8/dps8_utils.h const int n = 9; n 600 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 605 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 633 src/dps8/dps8_utils.h const int n = 10; n 634 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 639 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 648 src/dps8/dps8_utils.h const int n = 12; n 649 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 654 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 663 src/dps8/dps8_utils.h const int n = 13; n 664 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 669 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 678 src/dps8/dps8_utils.h const int n = 14; n 679 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 684 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 693 src/dps8/dps8_utils.h const int n = 15; n 694 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 699 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 708 src/dps8/dps8_utils.h const int n = 16; n 709 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 714 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 723 src/dps8/dps8_utils.h const int n = 17; n 724 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 729 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 738 src/dps8/dps8_utils.h const int n = 18; n 739 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 744 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 753 src/dps8/dps8_utils.h const int n = 23; n 754 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 759 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 768 src/dps8/dps8_utils.h const int n = 24; n 769 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 774 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 783 src/dps8/dps8_utils.h const int n = 28; n 784 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 789 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 796 src/dps8/dps8_utils.h static inline void putbits72 (word72 * x, uint p, uint n, word72 val) n 798 src/dps8/dps8_utils.h int shift = 72 - (int) p - (int) n; n 801 src/dps8/dps8_utils.h sim_printf ("putbits72: bad args (pos=%d,n=%d)\n", p, n); n 808 src/dps8/dps8_utils.h if (n >= 64) n 811 src/dps8/dps8_utils.h highmask = ~ ((~(uint64_t)0) << n); n 816 src/dps8/dps8_utils.h lowmask = ~ ((~(uint64_t)0) << n); n 821 src/dps8/dps8_utils.h * x = or_128 (and_128 (* x, notmask), and_128 (lshift_128 (val, 72 - p - n), mask)); n 823 src/dps8/dps8_utils.h word72 mask = ~ ((~(word72)0) << n); // n low bits on n 827 src/dps8/dps8_utils.h * x = (* x & ~mask) | ((val & MASKBITS72 (n)) << (72 - p - n)); n 834 src/dps8/dps8_utils.h static inline word18 getbits18 (word18 x, uint i, uint n) n 837 src/dps8/dps8_utils.h int shift = 17 - (int) i - (int) n + 1; n 840 src/dps8/dps8_utils.h sim_printf ("getbits18: bad args (%06o,i=%d,n=%d)\n", x, i, n); n 844 src/dps8/dps8_utils.h return (x >> (unsigned) shift) & ~ (~0U << n); n 849 src/dps8/dps8_utils.h static inline void putbits18 (word18 * x, uint p, uint n, word18 val) n 851 src/dps8/dps8_utils.h int shift = 18 - (int) p - (int) n; n 854 src/dps8/dps8_utils.h sim_printf ("putbits18: bad args (%06o,pos=%d,n=%d)\n", * x, p, n); n 857 src/dps8/dps8_utils.h word18 mask = ~ (~0U << n); // n low bits on n 861 src/dps8/dps8_utils.h * x = (* x & ~mask) | ((val & MASKBITS18 (n)) << (18 - p - n)); n 890 src/dps8/dps8_utils.h void print_int128 (int128 n, char * p); n 891 src/dps8/dps8_utils.h char * print_int128o (int128 n, char * p); n 112 src/dps8/hdbg.h # define HDBGFault(n, s, m, c) hdbgFault(n, s, m, c) n 353 src/dps8/segldr.c ssize_t n = write (fd, (void *) M, wrsz); n 354 src/dps8/segldr.c if (n != wrsz) n 381 src/dps8/segldr.c ssize_t n = read (fd, (void *) M, msize); n 382 src/dps8/segldr.c if (n < 1) n 398 src/dps8/segldr.c (unsigned long long) n, n 399 src/dps8/segldr.c (unsigned long long) (n / sizeof (word36)), n 400 src/dps8/segldr.c (unsigned long long) (n / sizeof (36) / 1024)); n 131 src/dps8/ucache.c # define stats(n) args ( (long long unsigned)cpus[cpuNo].uCache.hits [n], \ n 132 src/dps8/ucache.c (long long unsigned)cpus[cpuNo].uCache.misses[n], \ n 133 src/dps8/ucache.c (long long unsigned)cpus[cpuNo].uCache.skips [n] ) n 401 src/dps8/udplib.c ssize_t n = read (udp_links [link] . sock, ppkt, pktsiz); n 402 src/dps8/udplib.c if (n < 0) n 409 src/dps8/udplib.c return (int) n; n 98 src/dps8/utarray.h unsigned i, n; /* i: index of next available slot, n: num slots */ n 109 src/dps8/utarray.h if ((a)->n) { \ n 118 src/dps8/utarray.h (a)->n=0; \ n 132 src/dps8/utarray.h if (((a)->i+by) > ((a)->n)) { \ n 133 src/dps8/utarray.h while(((a)->i+by) > ((a)->n)) { (a)->n = ((a)->n ? (2*(a)->n) : 8); } \ n 134 src/dps8/utarray.h if ( ((a)->d=(char*)realloc((a)->d, (a)->n*(a)->icd.sz)) == NULL) oom(); \ n 85 src/simh/backtrace_func.c int n = strcmp(function, BACKTRACE_MAIN); n 86 src/simh/backtrace_func.c if (n == 0) n 10274 src/simh/scp.c size_t n, ilvl; n 10330 src/simh/scp.c n = uptr? uptr - dptr->units: 0; n 10331 src/simh/scp.c sprintf (buf, "%s%u", dptr->name, (int)n); n 10350 src/simh/scp.c n = 0; n 10352 src/simh/scp.c n += (n * 10) + (*htext++ - '0'); n 10354 src/simh/scp.c n == 0 || n >= VSMAX) { n 10359 src/simh/scp.c while (n > vsnum) /* Get arg pointer if not cached */ n 10361 src/simh/scp.c start = vstrings[n-1]; /* Insert selected string */ n 10410 src/simh/scp.c n = 0; n 10413 src/simh/scp.c n += (n * 10) + (*htext++ - '0'); n 10414 src/simh/scp.c if ((htext == start) || !n) { n 10419 src/simh/scp.c if (n <= topic->level) { /* Find level for new topic */ n 10420 src/simh/scp.c while (n <= topic->level) n 10424 src/simh/scp.c if (n > topic->level +1) { /* Skipping down more than 1 */ n 10447 src/simh/scp.c size_t n = 0; n 10450 src/simh/scp.c n += (n * 10) + (*start++ - '0'); n 10451 src/simh/scp.c if (!*start || *start == '\n'|| n == 0 || n >= VSMAX) { n 10456 src/simh/scp.c while (n > vsnum) /* Get arg pointer if not cached */ n 10458 src/simh/scp.c end = vstrings[n-1]; /* Check for True */ n 10498 src/simh/scp.c newt->level = n; n 10500 src/simh/scp.c n = strlen (newt->title); n 10501 src/simh/scp.c if (n > topic->kidwid) n 10502 src/simh/scp.c topic->kidwid = n; n 10504 src/simh/scp.c n = strlen (topic->label) + strlen (nbuf) + 1; n 10505 src/simh/scp.c newt->label = (char *) malloc (n); n 106 src/simh/scp.h # define GCC_FMT_ATTR(n, m) n 109 src/simh/scp.h # define GCC_FMT_ATTR(n, m) __attribute__ ((format (__printf__, n, m))) n 90 src/simh/sim_console.c # define nice(n) ({})