n 194 src/decNumber/decNumber.c # define QUOT10(u, n) ((((uInt)(u)>>(n))*multies[n])>>17) n 1795 src/decNumber/decNumber.c Int n; // rhs in binary n 1868 src/decNumber/decNumber.c n=decGetInt(rhs); n 1869 src/decNumber/decNumber.c if (n!=BADINT) { // it is an integer n 1871 src/decNumber/decNumber.c isoddint=(Flag)n&1; // [works even if big] n 1872 src/decNumber/decNumber.c if (n!=BIGEVEN && n!=BIGODD) // can use integer path? n 1883 src/decNumber/decNumber.c if (n==0) *res->lsu=1; // [-]Inf**0 => 1 n 1897 src/decNumber/decNumber.c if (n==0) { // 0**0 => Error n 1952 src/decNumber/decNumber.c if (n==0) { // x**0 = 1 n 1958 src/decNumber/decNumber.c if (n<0) n=-n; // use abs(n) n 2055 src/decNumber/decNumber.c n=n<<1; // move next bit to testable position n 2056 src/decNumber/decNumber.c if (n<0) { // top bit is set n 3284 src/decNumber/decNumber.c decNumber * decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) { n 3289 src/decNumber/decNumber.c for (; ub<bcd+n; ub++, up--) *up=*ub; n 3292 src/decNumber/decNumber.c Int cut=MSUDIGITS(n); // [faster than remainder] n 3299 src/decNumber/decNumber.c dn->digits=n; // set digit count n 3476 src/decNumber/decNumber.c Int n=pre; n 3486 src/decNumber/decNumber.c if (n<dn->digits) { // more to come, after '.' n 5175 src/decNumber/decNumber.c Int n=powers[h]; // always positive n 5185 src/decNumber/decNumber.c n=n<<1; // move next bit to testable position n 5186 src/decNumber/decNumber.c if (n<0) { // top bit is set n 171 src/decNumber/decNumberLocal.h # define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) //-V1003 n 175 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 49 src/dps8/bsd_random.h char *bsd_initstate(unsigned int seed, char *arg_state, int n); n 152 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 452 src/dps8/doAppendCycleIndirectWordFetch.h cpu.TPR.TRR, cpu.RSDWH_R1, cpu.PR[n].RNR); n 456 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 729 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3); n 731 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3) + 4; n 737 src/dps8/doAppendCycleOperandRead.h cpu.PR[n].RNR = cpu.PPR.PRR; n 741 src/dps8/doAppendCycleOperandRead.h cpu.PR[n].SNR = cpu.PPR.PSR; n 742 src/dps8/doAppendCycleOperandRead.h cpu.PR[n].WORDNO = (cpu.PPR.IC + 1) & MASK18; n 743 src/dps8/doAppendCycleOperandRead.h SET_PR_BITNO (n, 0); n 745 src/dps8/doAppendCycleOperandRead.h HDBGRegPRW (n, "app tspn"); n 421 src/dps8/dps8.h # define ru_Xn(n) (1 << (7 - (n))) n 87 src/dps8/dps8_absi.c int n = atoi (cptr); n 88 src/dps8/dps8_absi.c if (n < 1 || n > N_ABSI_UNITS_MAX) n 90 src/dps8/dps8_absi.c absi_dev.numunits = (uint32) n; n 97 src/dps8/dps8_absi.c int n = (int) ABSI_UNIT_IDX (uptr); n 98 src/dps8/dps8_absi.c if (n < 0 || n >= N_ABSI_UNITS_MAX) n 100 src/dps8/dps8_absi.c if (absi_state[n].device_name[1] != 0) n 101 src/dps8/dps8_absi.c sim_printf("name : %s", absi_state[n].device_name); n 103 src/dps8/dps8_absi.c sim_printf("name : ABSI%d", n); n 110 src/dps8/dps8_absi.c int n = (int) ABSI_UNIT_IDX (uptr); n 111 src/dps8/dps8_absi.c if (n < 0 || n >= N_ABSI_UNITS_MAX) n 115 src/dps8/dps8_absi.c strncpy (absi_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 116 src/dps8/dps8_absi.c absi_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 119 src/dps8/dps8_absi.c absi_state[n].device_name[0] = 0; n 216 src/dps8/dps8_addrmods.c word3 n = GET_ITP_PRNUM (cpu.itxPair); n 217 src/dps8/dps8_addrmods.c CPTUR (cptUsePRn + n); n 219 src/dps8/dps8_addrmods.c HDBGRegPRR (n, "ITP"); n 221 src/dps8/dps8_addrmods.c cpu.TPR.TSR = cpu.PR[n].SNR; n 222 src/dps8/dps8_addrmods.c cpu.TPR.TRR = max3 (cpu.PR[n].RNR, cpu.RSDWH_R1, cpu.TPR.TRR); n 224 src/dps8/dps8_addrmods.c cpu.TPR.CA = cpu.PAR[n].WORDNO + GET_ITP_WORDNO (cpu.itxPair); n 231 src/dps8/dps8_addrmods.c cpu.cu.TSN_PRNO[0] = n; n 365 src/dps8/dps8_addrmods.c word3 n = GET_PRN(IWB_IRODD); // get PRn n 367 src/dps8/dps8_addrmods.c HDBGRegPRR (n, "b29"); n 370 src/dps8/dps8_addrmods.c cpu.TPR.CA = (cpu.PAR[n].WORDNO + SIGNEXT15_18 (offset)) n 1255 src/dps8/dps8_append.c word3 n = 0; // PRn to be saved to TSN_PRNO n 2050 src/dps8/dps8_append.c n = (i->opcode & 3); n 2052 src/dps8/dps8_append.c n = (i->opcode & 3) + 4; n 2058 src/dps8/dps8_append.c cpu.PR[n].RNR = cpu.PPR.PRR; n 2062 src/dps8/dps8_append.c cpu.PR[n].SNR = cpu.PPR.PSR; n 2063 src/dps8/dps8_append.c cpu.PR[n].WORDNO = (cpu.PPR.IC + 1) & MASK18; n 2064 src/dps8/dps8_append.c SET_PR_BITNO (n, 0); n 2066 src/dps8/dps8_append.c HDBGRegPRW (n, "app tspn"); n 2193 src/dps8/dps8_append.c n = GET_ITP_PRNUM (data); n 2195 src/dps8/dps8_append.c cpu.TPR.TRR, cpu.RSDWH_R1, cpu.PR[n].RNR); n 2199 src/dps8/dps8_append.c cpu.TPR.TRR = max3 (cpu.PR[n].RNR, cpu.TPR.TRR, cpu.RSDWH_R1); n 1337 src/dps8/dps8_cable.c #define all(i,n) \ n 1338 src/dps8/dps8_cable.c for (uint i = 0; i < n; i ++) n 1674 src/dps8/dps8_console.c int n = atoi (cptr); n 1675 src/dps8/dps8_console.c if (n < 1 || n > N_OPC_UNITS_MAX) n 1677 src/dps8/dps8_console.c opc_dev.numunits = (uint32) n; n 1778 src/dps8/dps8_console.c int n = (int) OPC_UNIT_IDX (uptr); n 1779 src/dps8/dps8_console.c if (n < 0 || n >= N_OPC_UNITS_MAX) n 1781 src/dps8/dps8_console.c sim_printf("name : OPC%d", n); n 1788 src/dps8/dps8_console.c int n = (int) OPC_UNIT_IDX (uptr); n 1789 src/dps8/dps8_console.c if (n < 0 || n >= N_OPC_UNITS_MAX) n 1793 src/dps8/dps8_console.c strncpy (console_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 1794 src/dps8/dps8_console.c console_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 1797 src/dps8/dps8_console.c console_state[n].device_name[0] = 0; n 715 src/dps8/dps8_cpu.c int n = atoi (cptr); n 716 src/dps8/dps8_cpu.c if (n < 1 || n > N_CPU_UNITS_MAX) n 718 src/dps8/dps8_cpu.c cpu_dev.numunits = (uint32) n; n 734 src/dps8/dps8_cpu.c int n = atoi (cptr); n 735 src/dps8/dps8_cpu.c if (n < 1 || n > 4000000) n 737 src/dps8/dps8_cpu.c kips = (uint) n; n 782 src/dps8/dps8_cpu.c long n, s, o, t; n 785 src/dps8/dps8_cpu.c n = strtol (cptr, & end, 0); n 788 src/dps8/dps8_cpu.c if (n < 0 || n >= N_STALL_POINTS) n 809 src/dps8/dps8_cpu.c stall_points[n].segno = (word15) s; n 810 src/dps8/dps8_cpu.c stall_points[n].offset = (word18) o; n 811 src/dps8/dps8_cpu.c stall_points[n].time = (unsigned int) t; n 815 src/dps8/dps8_cpu.c if (stall_points[n].segno && stall_points[n].offset) n 3199 src/dps8/dps8_cpu.c for (unsigned short n = 0; n < N_CPU_UNITS_MAX; n++) n 3202 src/dps8/dps8_cpu.c lockYieldAll = lockYieldAll + (unsigned long long)cpus[n].coreLockState.lockYield; n 3204 src/dps8/dps8_cpu.c lockWaitMaxAll = lockWaitMaxAll + (unsigned long long)cpus[n].coreLockState.lockWaitMax; n 3205 src/dps8/dps8_cpu.c lockWaitAll = lockWaitAll + (unsigned long long)cpus[n].coreLockState.lockWait; n 3206 src/dps8/dps8_cpu.c lockImmediateAll = lockImmediateAll + (unsigned long long)cpus[n].coreLockState.lockImmediate; n 3207 src/dps8/dps8_cpu.c lockCntAll = lockCntAll + (unsigned long long)cpus[n].coreLockState.lockCnt; n 3208 src/dps8/dps8_cpu.c instrCntAll = instrCntAll + (unsigned long long)cpus[n].instrCnt; n 3209 src/dps8/dps8_cpu.c cycleCntAll = cycleCntAll + (unsigned long long)cpus[n].cycleCnt; n 3466 src/dps8/dps8_cpu.c long int n = strtol (buf, & end, 0); n 3467 src/dps8/dps8_cpu.c if (* end || n < 0 || n >= MEMSIZE) n 3469 src/dps8/dps8_cpu.c sim_warn ("Invalid argument to watch? %ld\n", (long) n); n 3472 src/dps8/dps8_cpu.c watch_bits [n] = arg != 0; n 1965 src/dps8/dps8_cpu.h #define GET_PR_BITNO(n) (cpu.PAR[n].PR_BITNO) n 1966 src/dps8/dps8_cpu.h #define GET_AR_BITNO(n) (cpu.PAR[n].AR_BITNO) n 1967 src/dps8/dps8_cpu.h #define GET_AR_CHAR(n) (cpu.PAR[n].AR_CHAR) n 1968 src/dps8/dps8_cpu.h static inline void SET_PR_BITNO (cpu_state_t * restrict cpup, uint n, word6 b) n 1970 src/dps8/dps8_cpu.h cpu.PAR[n].PR_BITNO = b; n 1971 src/dps8/dps8_cpu.h cpu.PAR[n].AR_BITNO = (b % 9) & MASK4; n 1972 src/dps8/dps8_cpu.h cpu.PAR[n].AR_CHAR = (b / 9) & MASK2; n 1974 src/dps8/dps8_cpu.h #define SET_PR_BITNO(n, b) SET_PR_BITNO(cpup, n, b) n 1975 src/dps8/dps8_cpu.h static inline void SET_AR_CHAR_BITNO (cpu_state_t * restrict cpup, uint n, word2 c, word4 b) n 1977 src/dps8/dps8_cpu.h cpu.PAR[n].PR_BITNO = c * 9 + b; n 1978 src/dps8/dps8_cpu.h cpu.PAR[n].AR_BITNO = b & MASK4; n 1979 src/dps8/dps8_cpu.h cpu.PAR[n].AR_CHAR = c & MASK2; n 1981 src/dps8/dps8_cpu.h #define SET_AR_CHAR_BITNO(n, c, b) SET_AR_CHAR_BITNO(cpup, n, c, b) n 2356 src/dps8/dps8_cpu.h static inline void core_readN (cpu_state_t * cpup, word24 addr, word36 * data, uint n, n 2359 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) n 2366 src/dps8/dps8_cpu.h static inline void core_writeN (cpu_state_t * cpup, word24 addr, word36 * data, uint n, n 2369 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) n 1265 src/dps8/dps8_crdpun.c int n = atoi (cptr); n 1266 src/dps8/dps8_crdpun.c if (n < 1 || n > N_PUN_UNITS_MAX) n 1268 src/dps8/dps8_crdpun.c pun_dev . numunits = (uint32) n; n 1275 src/dps8/dps8_crdpun.c long n = PUN_UNIT_NUM (uptr); n 1276 src/dps8/dps8_crdpun.c if (n < 0 || n >= N_PUN_UNITS_MAX) n 1278 src/dps8/dps8_crdpun.c sim_printf("name : %s", pun_state [n] . device_name); n 1285 src/dps8/dps8_crdpun.c long n = PUN_UNIT_NUM (uptr); n 1286 src/dps8/dps8_crdpun.c if (n < 0 || n >= N_PUN_UNITS_MAX) n 1290 src/dps8/dps8_crdpun.c strncpy (pun_state [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); n 1291 src/dps8/dps8_crdpun.c pun_state [n] . device_name [MAX_DEV_NAME_LEN - 1] = 0; n 1294 src/dps8/dps8_crdpun.c pun_state [n] . device_name [0] = 0; n 60 src/dps8/dps8_crdrdr.c volatile size_t n = size; \ n 61 src/dps8/dps8_crdrdr.c (void)snprintf (dst, n, __VA_ARGS__); \ n 419 src/dps8/dps8_crdrdr.c uint n = 0; n 420 src/dps8/dps8_crdrdr.c buffer [n] = 0; n 426 src/dps8/dps8_crdrdr.c return n == 0; n 429 src/dps8/dps8_crdrdr.c buffer [n ++] = ch; n 430 src/dps8/dps8_crdrdr.c buffer [n] = 0; n 431 src/dps8/dps8_crdrdr.c if (n > 79) n 741 src/dps8/dps8_crdrdr.c n 1031 src/dps8/dps8_crdrdr.c int n = atoi (cptr); n 1032 src/dps8/dps8_crdrdr.c if (n < 1 || n > N_RDR_UNITS_MAX) n 1034 src/dps8/dps8_crdrdr.c rdr_dev . numunits = (uint32) n; n 1041 src/dps8/dps8_crdrdr.c long n = RDR_UNIT_NUM (uptr); n 1042 src/dps8/dps8_crdrdr.c if (n < 0 || n >= N_RDR_UNITS_MAX) n 1044 src/dps8/dps8_crdrdr.c sim_printf("name : %s", rdr_state [n] . device_name); n 1051 src/dps8/dps8_crdrdr.c long n = RDR_UNIT_NUM (uptr); n 1052 src/dps8/dps8_crdrdr.c if (n < 0 || n >= N_RDR_UNITS_MAX) n 1056 src/dps8/dps8_crdrdr.c strncpy (rdr_state [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); n 1057 src/dps8/dps8_crdrdr.c rdr_state [n] . device_name [MAX_DEV_NAME_LEN - 1] = 0; n 1060 src/dps8/dps8_crdrdr.c rdr_state [n] . device_name [0] = 0; n 303 src/dps8/dps8_decimal.c n 312 src/dps8/dps8_decimal.c n 320 src/dps8/dps8_decimal.c n 346 src/dps8/dps8_decimal.c n 356 src/dps8/dps8_decimal.c n 364 src/dps8/dps8_decimal.c n 391 src/dps8/dps8_decimal.c n 410 src/dps8/dps8_decimal.c n 177 src/dps8/dps8_dia.c int n = atoi (cptr); n 178 src/dps8/dps8_dia.c if (n < 1 || n > N_DIA_UNITS_MAX) n 180 src/dps8/dps8_dia.c dia_dev.numunits = (uint32) n; n 352 src/dps8/dps8_disk.c int n = atoi (cptr); n 353 src/dps8/dps8_disk.c if (n < 1 || n > N_DSK_UNITS_MAX) n 355 src/dps8/dps8_disk.c dsk_dev . numunits = (uint32) n; n 412 src/dps8/dps8_disk.c int n = (int) DSK_UNIT_IDX (uptr); n 413 src/dps8/dps8_disk.c if (n < 0 || n >= N_DSK_UNITS_MAX) n 415 src/dps8/dps8_disk.c sim_printf("name : %s", dsk_states[n].device_name); n 422 src/dps8/dps8_disk.c int n = (int) DSK_UNIT_IDX (uptr); n 423 src/dps8/dps8_disk.c if (n < 0 || n >= N_DSK_UNITS_MAX) n 427 src/dps8/dps8_disk.c strncpy (dsk_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 428 src/dps8/dps8_disk.c dsk_states[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 431 src/dps8/dps8_disk.c dsk_states[n].device_name[0] = 0; n 1674 src/dps8/dps8_disk.c int n = atoi (cptr); n 1675 src/dps8/dps8_disk.c if (n < 0 || n > N_DSK_UNITS_MAX) n 1677 src/dps8/dps8_disk.c ipc_dev.numunits = (uint32) n; n 1684 src/dps8/dps8_disk.c int n = (int) IPC_UNIT_IDX (uptr); n 1685 src/dps8/dps8_disk.c if (n < 0 || n >= N_IPC_UNITS_MAX) n 1687 src/dps8/dps8_disk.c if (ipc_states[n].device_name[0] != 0) n 1688 src/dps8/dps8_disk.c sim_printf("name : %s", ipc_states[n].device_name); n 1697 src/dps8/dps8_disk.c int n = (int) IPC_UNIT_IDX (uptr); n 1698 src/dps8/dps8_disk.c if (n < 0 || n >= N_IPC_UNITS_MAX) n 1702 src/dps8/dps8_disk.c strncpy (ipc_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 1703 src/dps8/dps8_disk.c ipc_states[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 1706 src/dps8/dps8_disk.c ipc_states[n].device_name[0] = 0; n 1816 src/dps8/dps8_disk.c int n = atoi (cptr); n 1817 src/dps8/dps8_disk.c if (n < 0 || n > N_DSK_UNITS_MAX) n 1819 src/dps8/dps8_disk.c msp_dev.numunits = (uint32) n; n 1826 src/dps8/dps8_disk.c int n = (int) MSP_UNIT_IDX (uptr); n 1827 src/dps8/dps8_disk.c if (n < 0 || n >= N_MSP_UNITS_MAX) n 1829 src/dps8/dps8_disk.c if (msp_states[n].device_name[0] != 0) n 1830 src/dps8/dps8_disk.c sim_printf("name : %s", msp_states[n].device_name); n 1839 src/dps8/dps8_disk.c int n = (int) MSP_UNIT_IDX (uptr); n 1840 src/dps8/dps8_disk.c if (n < 0 || n >= N_MSP_UNITS_MAX) n 1844 src/dps8/dps8_disk.c strncpy (msp_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 1845 src/dps8/dps8_disk.c msp_states[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 1848 src/dps8/dps8_disk.c msp_states[n].device_name[0] = 0; n 384 src/dps8/dps8_eis.c static word18 getMFReg18 (cpu_state_t * cpup, uint n, bool allowDU, bool allowNIC, fault_ipr_subtype_ *mod_fault) n 386 src/dps8/dps8_eis.c switch (n) n 471 src/dps8/dps8_eis.c return cpu.rX [n - 8]; n 473 src/dps8/dps8_eis.c sim_printf ("getMFReg18(cpup, ): How'd we get here? n=%d\n", n); n 477 src/dps8/dps8_eis.c static word36 getMFReg36 (cpu_state_t * cpup, uint n, bool allowDU, bool allowNIC, fault_ipr_subtype_ *mod_fault) n 479 src/dps8/dps8_eis.c switch (n) n 546 src/dps8/dps8_eis.c return cpu.rX [n - 8]; n 548 src/dps8/dps8_eis.c sim_printf ("getMFReg36(cpup, ): How'd we get here? n=%d\n", n); n 683 src/dps8/dps8_eis.c static void EISWriteIdx (cpu_state_t * cpup, EISaddr *p, uint n, word36 data, bool flush) n 688 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 689 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 691 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "EISWriteIdx addr %06o n %u\n", p->address, n); n 692 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 721 src/dps8/dps8_eis.c static word36 EISReadIdx (cpu_state_t * cpup, EISaddr * p, uint n) n 727 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 728 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 731 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "EISReadIdx %ld addr %06o n %u\n", eisaddr_idx, p->address, n); n 732 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 774 src/dps8/dps8_eis.c n 776 src/dps8/dps8_eis.c n 781 src/dps8/dps8_eis.c static void EISReadPage (cpu_state_t * cpup, EISaddr * p, uint n, word36 * data) n 786 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 788 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 843 src/dps8/dps8_eis.c static void EISWritePage (cpu_state_t * cpup, EISaddr * p, uint n, word36 * data) n 848 src/dps8/dps8_eis.c word18 addressN = (cpu.du.Dk_PTR_W[eisaddr_idx] + n) & AMASK; n 850 src/dps8/dps8_eis.c word18 addressN = p -> address + n; n 1255 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1256 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1258 src/dps8/dps8_eis.c address = (cpu.AR [n].WORDNO + SIGNEXT15_18 (offset)) & AMASK; n 1266 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1268 src/dps8/dps8_eis.c e -> addr [k - 1].SNR = cpu.PR [n].SNR; n 1269 src/dps8/dps8_eis.c e -> addr [k - 1].RNR = max3 (cpu.PR [n].RNR, n 1274 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "AR n %u k %u\n", n, k - 1); n 1408 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1409 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1411 src/dps8/dps8_eis.c address = (cpu.AR [n].WORDNO + offset) & AMASK; n 1413 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1414 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1416 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1418 src/dps8/dps8_eis.c e -> addr [k - 1].SNR = cpu.PR [n].SNR; n 1419 src/dps8/dps8_eis.c e -> addr [k - 1].RNR = max3 (cpu.PR [n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1422 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "AR n %u k %u\n", n, k - 1); n 1613 src/dps8/dps8_eis.c word3 n = GET_ARN (opDesc); n 1614 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1616 src/dps8/dps8_eis.c y = (cpu.AR [n].WORDNO + SIGNEXT15_18 (offset)) & AMASK; n 1618 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1619 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1621 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1623 src/dps8/dps8_eis.c e -> addr [k - 1].SNR = cpu.PR[n].SNR; n 1624 src/dps8/dps8_eis.c e -> addr [k - 1].RNR = max3 (cpu.PR [n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1665 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1666 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1668 src/dps8/dps8_eis.c address = (cpu.AR[n].WORDNO + SIGNEXT15_18(offset)) & AMASK; n 1670 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1671 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1673 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1675 src/dps8/dps8_eis.c e->addr[k-1].SNR = cpu.PR[n].SNR; n 1676 src/dps8/dps8_eis.c e->addr[k-1].RNR = max3(cpu.PR[n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1851 src/dps8/dps8_eis.c word3 n = (word3) getbits18 (address, 0, 3); n 1852 src/dps8/dps8_eis.c CPTUR (cptUsePRn + n); n 1854 src/dps8/dps8_eis.c address = (cpu.AR[n].WORDNO + SIGNEXT15_18(offset)) & AMASK; n 1856 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "bitstring k %d AR%d\n", k, n); n 1858 src/dps8/dps8_eis.c ARn_CHAR = GET_AR_CHAR (n); // AR[n].CHAR; n 1859 src/dps8/dps8_eis.c ARn_BITNO = GET_AR_BITNO (n); // AR[n].BITNO; n 1860 src/dps8/dps8_eis.c cpu.cu.TSN_PRNO[k-1] = n; n 1862 src/dps8/dps8_eis.c e->addr[k-1].SNR = cpu.PR[n].SNR; n 1863 src/dps8/dps8_eis.c e->addr[k-1].RNR = max3(cpu.PR[n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 4596 src/dps8/dps8_eis.c uint n = cpu.du.CHTALLY / 4; n 4597 src/dps8/dps8_eis.c word36 w = EISReadIdx (cpup, & e -> ADDR1, n); n 4598 src/dps8/dps8_eis.c EISWriteIdx (cpup, & e -> ADDR2, n, w, true); n 4627 src/dps8/dps8_eis.c uint n = cpu.du.CHTALLY / 4; n 4628 src/dps8/dps8_eis.c EISWriteIdx (cpup, & e -> ADDR2, n, w, true); n 4892 src/dps8/dps8_eis.c uint n = (limit - cpu.du.CHTALLY - 1) / 4; n 4893 src/dps8/dps8_eis.c word36 w = EISReadIdx (cpup, & e -> ADDR1, n); n 4894 src/dps8/dps8_eis.c EISWriteIdx (cpup, & e -> ADDR2, n, w, true); n 4927 src/dps8/dps8_eis.c uint n = (limit - cpu.du.CHTALLY - 1) / 4; n 4928 src/dps8/dps8_eis.c EISWriteIdx (cpup, & e -> ADDR2, n, w, true); n 5079 src/dps8/dps8_eis.c for(int n = 0 ; n < N ; n += 1) n 5082 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "src: %d: %o\n", n, c); n 5112 src/dps8/dps8_eis.c if (n == 0) // first had better be a sign .... n 5127 src/dps8/dps8_eis.c else if (TN == CTN9 && n == N-1) // the 9-bit exponent (of which only 8-bits are used) n 5132 src/dps8/dps8_eis.c else if (TN == CTN4 && n == N-2) // the 1st 4-chars of the 8-bit exponent n 5138 src/dps8/dps8_eis.c else if (TN == CTN4 && n == N-1) // the 2nd 4-chars of the 8-bit exponent n 5163 src/dps8/dps8_eis.c if (n == 0) // first had better be a sign .... n 5183 src/dps8/dps8_eis.c if (n == N-1) // last had better be a sign .... n 5237 src/dps8/dps8_eis.c for (uint n = 0 ; n < N ; n ++) n 5239 src/dps8/dps8_eis.c word9 c = EISget469 (cpup, k, n); n 5248 src/dps8/dps8_eis.c for (uint n = 0 ; n < (uint) e -> dstTally; n ++) n 5250 src/dps8/dps8_eis.c word9 c49 = e -> outBuffer [n]; n 5251 src/dps8/dps8_eis.c EISput469 (cpup, k, n, c49); n 5472 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 5709 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 5935 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 5937 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 6037 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF; n += 1) n 6045 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "MFLS n %d c %o\n", n, c); n 6148 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6191 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6193 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 6251 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6309 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 6375 src/dps8/dps8_eis.c for(int n = 0 ; n < e->mopIF ; n += 1) n 7026 src/dps8/dps8_eis.c for(int n = 0 ; n < e -> srcTally ; n ++) n 7027 src/dps8/dps8_eis.c sum += e -> inBuffer [n]; n 9311 src/dps8/dps8_eis.c static void load9x(cpu_state_t * cpup, int n, EISaddr *addr, int pos) n 9326 src/dps8/dps8_eis.c int m = n; n 9356 src/dps8/dps8_eis.c e->x = signExt9(x, n); // form proper 2's-complement integer n 9435 src/dps8/dps8_eis.c n 9437 src/dps8/dps8_eis.c n 9784 src/dps8/dps8_eis.c n 9808 src/dps8/dps8_eis.c n 9811 src/dps8/dps8_eis.c n 9816 src/dps8/dps8_eis.c n 9838 src/dps8/dps8_eis.c n 9859 src/dps8/dps8_eis.c n 9880 src/dps8/dps8_eis.c n 9952 src/dps8/dps8_eis.c n 12362 src/dps8/dps8_eis.c n 12474 src/dps8/dps8_eis.c n 1808 src/dps8/dps8_fnp2.c int n = atoi (cptr); n 1809 src/dps8/dps8_fnp2.c if (n < 1 || n > N_FNP_UNITS_MAX) n 1811 src/dps8/dps8_fnp2.c fnp_dev . numunits = (uint32) n; n 1819 src/dps8/dps8_fnp2.c long n = FNP_UNIT_IDX (uptr); n 1820 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 1822 src/dps8/dps8_fnp2.c sim_printf(" FNP IPC name: %s", fnpData.fnpUnitData [n] . ipcName); n 1829 src/dps8/dps8_fnp2.c long n = FNP_UNIT_IDX (uptr); n 1830 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 1834 src/dps8/dps8_fnp2.c strncpy (fnpData.fnpUnitData [n] . ipcName, cptr, MAX_DEV_NAME_LEN - 1); n 1835 src/dps8/dps8_fnp2.c fnpData.fnpUnitData [n] . ipcName [MAX_DEV_NAME_LEN - 1] = 0; n 1838 src/dps8/dps8_fnp2.c fnpData.fnpUnitData [n] . ipcName [0] = 0; n 2279 src/dps8/dps8_fnp2.c int n = (int) FNP_UNIT_IDX (uptr); n 2280 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 2282 src/dps8/dps8_fnp2.c if (fnpData.fnpUnitData[n].device_name[0] != 0) n 2283 src/dps8/dps8_fnp2.c sim_printf(" name: %s", fnpData.fnpUnitData[n].device_name); n 2292 src/dps8/dps8_fnp2.c int n = (int) FNP_UNIT_IDX (uptr); n 2293 src/dps8/dps8_fnp2.c if (n < 0 || n >= N_FNP_UNITS_MAX) n 2297 src/dps8/dps8_fnp2.c strncpy (fnpData.fnpUnitData[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 2298 src/dps8/dps8_fnp2.c fnpData.fnpUnitData[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 2301 src/dps8/dps8_fnp2.c fnpData.fnpUnitData[n].device_name[0] = 0; n 2385 src/dps8/dps8_fnp2.c n 2386 src/dps8/dps8_fnp2.c n 2388 src/dps8/dps8_fnp2.c n 2467 src/dps8/dps8_fnp2.c int n = atoi (buf); n 2468 src/dps8/dps8_fnp2.c if (n < 1 || n > 65535) n 2470 src/dps8/dps8_fnp2.c fnpData.telnet_port = n; n 2473 src/dps8/dps8_fnp2.c sim_printf ("[FNP emulation: TELNET server port set to %ld]\n", (long) n); n 2519 src/dps8/dps8_fnp2.c int n = atoi (buf); n 2520 src/dps8/dps8_fnp2.c if (n < 1 || n > 65535) n 2522 src/dps8/dps8_fnp2.c fnpData.telnet3270_port = n; n 2525 src/dps8/dps8_fnp2.c sim_printf ("[FNP emulation: TN3270 server port set to %ld]\n", (long) n); n 57 src/dps8/dps8_fnp2_iomcmd.c static inline void fnp_core_read_n (word24 addr, word36 *data, uint n, UNUSED const char * ctx) n 62 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n; i ++) n 73 src/dps8/dps8_fnp2_iomcmd.c const int n = 1; n 74 src/dps8/dps8_fnp2_iomcmd.c int shift = 36 - (int) p - (int) n; n 79 src/dps8/dps8_fnp2_iomcmd.c word36 mask = ~ (~0U<<n); // n low bits on n 297 src/dps8/dps8_ins.c word3 n; n 299 src/dps8/dps8_ins.c n = (cpu.currentInstruction.opcode & 3); n 301 src/dps8/dps8_ins.c n = (cpu.currentInstruction.opcode & 3) + 4; n 307 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.PPR.PRR; n 311 src/dps8/dps8_ins.c cpu.PR[n].SNR = cpu.PPR.PSR; n 312 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = (cpu.PPR.IC + 1) & MASK18; n 313 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 315 src/dps8/dps8_ins.c HDBGRegPRW (n, "read_tra_op tsp"); n 1895 src/dps8/dps8_ins.c for (uint n = 0; n < ndes; n += 1) { n 1896 src/dps8/dps8_ins.c CPT (cpt2U, 29 + n); // EIS operand fetch (29, 30, 31) n 1917 src/dps8/dps8_ins.c ReadInstructionFetch (cpup, cpu.PPR.IC + 1 + n, & cpu.currentEISinstruction.op[n]); n 1942 src/dps8/dps8_ins.c word3 n = GET_PRN(IWB_IRODD); // get PRn n 1944 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 1948 src/dps8/dps8_ins.c n, cpu.PAR[n].SNR, cpu.PAR[n].RNR, cpu.PAR[n].WORDNO, GET_PR_BITNO (n)); n 1955 src/dps8/dps8_ins.c cpu.TPR.TBR = GET_PR_BITNO (n); n 1957 src/dps8/dps8_ins.c cpu.TPR.TSR = cpu.PAR[n].SNR; n 1959 src/dps8/dps8_ins.c cpu.TPR.TRR = max (cpu.PAR[n].RNR, cpu.PPR.PRR); n 1961 src/dps8/dps8_ins.c cpu.TPR.TRR = max3 (cpu.PAR[n].RNR, cpu.TPR.TRR, cpu.PPR.PRR); n 1965 src/dps8/dps8_ins.c n, offset, cpu.TPR.CA, cpu.TPR.TBR, cpu.TPR.TSR, cpu.TPR.TRR); n 2310 src/dps8/dps8_ins.c for (int n = 0 ; n < 8 ; n++) { n 2312 src/dps8/dps8_ins.c n, PRalias[n], cpu.PR[n].SNR, cpu.PR[n].RNR, cpu.PR[n].WORDNO, n 2313 src/dps8/dps8_ins.c GET_PR_BITNO (n), GET_AR_CHAR (n), GET_AR_BITNO (n)); n 2399 src/dps8/dps8_ins.c #define x0(n) (n) n 2400 src/dps8/dps8_ins.c #define x1(n) (n|01000) n 2713 src/dps8/dps8_ins.c uint n = ((opcode10 & 020) >> 2) | (opcode10 & 03); n 2714 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2715 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.TPR.TRR; n 2716 src/dps8/dps8_ins.c cpu.PR[n].SNR = cpu.TPR.TSR; n 2717 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = cpu.TPR.CA; n 2718 src/dps8/dps8_ins.c SET_PR_BITNO (n, cpu.TPR.TBR); n 2720 src/dps8/dps8_ins.c HDBGRegPRW (n, "epp"); n 2754 src/dps8/dps8_ins.c uint n = ((opcode10 & 0400) >> 6) | (opcode10 & 03); n 2755 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2757 src/dps8/dps8_ins.c HDBGRegPRR (n, "spri"); n 2760 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].SNR) << 18; n 2761 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].RNR) << 15; n 2763 src/dps8/dps8_ins.c cpu.Ypair[1] = (word36) cpu.PR[n].WORDNO << 18; n 2764 src/dps8/dps8_ins.c cpu.Ypair[1] |= (word36) GET_PR_BITNO (n) << 9; n 2891 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 2892 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 2893 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.TPR.TRR; n 2902 src/dps8/dps8_ins.c SET_PR_BITNO (n, bitno); n 2933 src/dps8/dps8_ins.c cpu.PR[n].SNR = 077777; n 2935 src/dps8/dps8_ins.c cpu.PR[n].SNR = oSNR; // unsigned word will 0-extend. n 2937 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = GETLO (cpu.CY); n 2942 src/dps8/dps8_ins.c n, cpu.CY, cpu.PR[n].RNR, GET_PR_BITNO (n), n 2943 src/dps8/dps8_ins.c cpu.PR[n].SNR, cpu.PR[n].WORDNO); n 2945 src/dps8/dps8_ins.c HDBGRegPRW (n, "lprp"); n 2960 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 2961 src/dps8/dps8_ins.c cpu.rX[n] = cpu.TPR.CA; n 2963 src/dps8/dps8_ins.c HDBGRegXW (n, "eaxn"); n 3025 src/dps8/dps8_ins.c uint n = ((opcode10 & 020) >> 2) | (opcode10 & 03); n 3026 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 3027 src/dps8/dps8_ins.c cpu.PR[n].RNR = cpu.TPR.TRR; n 3028 src/dps8/dps8_ins.c cpu.PR[n].SNR = cpu.TPR.TSR; n 3029 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = 0; n 3030 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 3032 src/dps8/dps8_ins.c HDBGRegPRW (n, "epbp"); n 3106 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3107 src/dps8/dps8_ins.c cpu.rX[n] = GETLO (cpu.CY); n 3109 src/dps8/dps8_ins.c HDBGRegXW (n, "lxln"); n 3111 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 3112 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 3139 src/dps8/dps8_ins.c uint32 n; n 3141 src/dps8/dps8_ins.c n = (opcode10 & 3); n 3143 src/dps8/dps8_ins.c n = (opcode10 & 3) + 4; n 3144 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 3240 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3242 src/dps8/dps8_ins.c cpu.CY = ((word36) cpu.rX[n]) << 18; n 3408 src/dps8/dps8_ins.c uint n = ((opcode10 & 0400) >> 6) | (opcode10 & 03); n 3409 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 3411 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].SNR) << 18; n 3412 src/dps8/dps8_ins.c cpu.Ypair[0] |= ((word36) cpu.PR[n].RNR) << 15; n 3632 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3633 src/dps8/dps8_ins.c cpu.rX[n] = compl18 (cpup, GETHI (cpu.CY), & cpu.cu.IR, & ovf); n 3635 src/dps8/dps8_ins.c HDBGRegXW (n, "lcxn"); n 3739 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 3740 src/dps8/dps8_ins.c cpu.rX[n] = GETHI (cpu.CY); n 3742 src/dps8/dps8_ins.c HDBGRegXW (n, "ldxn"); n 3744 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 3745 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 4702 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4704 src/dps8/dps8_ins.c HDBGRegXR (n, "adlxn"); n 4707 src/dps8/dps8_ins.c cpu.rX[n] = Add18b (cpup, cpu.rX[n], GETHI (cpu.CY), 0, I_ZNC, n 4710 src/dps8/dps8_ins.c HDBGRegXW (n, "adlxn"); n 4729 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4731 src/dps8/dps8_ins.c HDBGRegXR (n, "adxn"); n 4734 src/dps8/dps8_ins.c cpu.rX[n] = Add18b (cpup, cpu.rX[n], GETHI (cpu.CY), 0, n 4738 src/dps8/dps8_ins.c HDBGRegXW (n, "adxn"); n 4788 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4790 src/dps8/dps8_ins.c HDBGRegXR (n, "asxn"); n 4793 src/dps8/dps8_ins.c word18 tmp18 = Add18b (cpup, cpu.rX[n], GETHI (cpu.CY), 0, n 4950 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4952 src/dps8/dps8_ins.c HDBGRegXR (n, "sblxn"); n 4955 src/dps8/dps8_ins.c cpu.rX[n] = Sub18b (cpup, cpu.rX[n], GETHI (cpu.CY), 1, n 4958 src/dps8/dps8_ins.c HDBGRegXW (n, "sblxn"); n 4993 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 4995 src/dps8/dps8_ins.c HDBGRegXR (n, "sbxn"); n 4998 src/dps8/dps8_ins.c cpu.rX[n] = Sub18b (cpup, cpu.rX[n], GETHI (cpu.CY), 1, n 5001 src/dps8/dps8_ins.c HDBGRegXW (n, "sbxn"); n 5049 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5051 src/dps8/dps8_ins.c HDBGRegXR (n, "ssxn"); n 5054 src/dps8/dps8_ins.c word18 tmp18 = Sub18b (cpup, cpu.rX[n], GETHI (cpu.CY), 1, n 5521 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5523 src/dps8/dps8_ins.c HDBGRegXR (n, "cmpxn"); n 5525 src/dps8/dps8_ins.c cmp18 (cpup, cpu.rX[n], GETHI (cpu.CY), &cpu.cu.IR); n 5627 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5629 src/dps8/dps8_ins.c HDBGRegXR (n, "ansxn"); n 5631 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] & GETHI (cpu.CY); n 5654 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5656 src/dps8/dps8_ins.c HDBGRegXR (n, "anxn"); n 5658 src/dps8/dps8_ins.c cpu.rX[n] &= GETHI (cpu.CY); n 5659 src/dps8/dps8_ins.c cpu.rX[n] &= MASK18; n 5661 src/dps8/dps8_ins.c HDBGRegXW (n, "anxn"); n 5664 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 5665 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 5756 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5758 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] | GETHI (cpu.CY); n 5780 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5782 src/dps8/dps8_ins.c HDBGRegXR (n, "orxn"); n 5784 src/dps8/dps8_ins.c cpu.rX[n] |= GETHI (cpu.CY); n 5785 src/dps8/dps8_ins.c cpu.rX[n] &= MASK18; n 5787 src/dps8/dps8_ins.c HDBGRegXW (n, "orxn"); n 5790 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 5791 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 5867 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5869 src/dps8/dps8_ins.c HDBGRegXR (n, "ersxn"); n 5872 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] ^ GETHI (cpu.CY); n 5894 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5896 src/dps8/dps8_ins.c HDBGRegXR (n, "erxn"); n 5898 src/dps8/dps8_ins.c cpu.rX[n] ^= GETHI (cpu.CY); n 5899 src/dps8/dps8_ins.c cpu.rX[n] &= MASK18; n 5901 src/dps8/dps8_ins.c HDBGRegXW (n, "erxn"); n 5904 src/dps8/dps8_ins.c SC_I_ZERO (cpu.rX[n] == 0); n 5905 src/dps8/dps8_ins.c SC_I_NEG (cpu.rX[n] & SIGN18); n 5965 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 5967 src/dps8/dps8_ins.c HDBGRegXR (n, "canxn"); n 5969 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] & GETHI (cpu.CY); n 5973 src/dps8/dps8_ins.c n, cpu.rX[n], (word18) (GETHI (cpu.CY) & MASK18), n 6047 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 6049 src/dps8/dps8_ins.c HDBGRegXR (n, "cnaxn"); n 6051 src/dps8/dps8_ins.c word18 tmp18 = cpu.rX[n] & ~GETHI (cpu.CY); n 6905 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n ++) n 6907 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6909 src/dps8/dps8_ins.c cpu.Ypair[0] = cpu.Yblock16[n * 2 + 0]; n 6911 src/dps8/dps8_ins.c cpu.Ypair[1] = cpu.Yblock16[n * 2 + 1]; n 6916 src/dps8/dps8_ins.c cpu.PR[n].RNR = max3 (Crr, cpu.SDW->R1, cpu.TPR.TRR); n 6918 src/dps8/dps8_ins.c cpu.PR[n].RNR = Crr; n 6919 src/dps8/dps8_ins.c cpu.PR[n].SNR = (cpu.Ypair[0] >> 18) & MASK15; n 6920 src/dps8/dps8_ins.c cpu.PR[n].WORDNO = GETHI (cpu.Ypair[1]); n 6929 src/dps8/dps8_ins.c SET_PR_BITNO (n, bitno); n 6931 src/dps8/dps8_ins.c HDBGRegPRW (n, "lpri"); n 6975 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n++) n 6977 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 6978 src/dps8/dps8_ins.c cpu.Yblock16[2 * n] = 043; n 6979 src/dps8/dps8_ins.c cpu.Yblock16[2 * n] |= ((word36) cpu.PR[n].SNR) << 18; n 6980 src/dps8/dps8_ins.c cpu.Yblock16[2 * n] |= ((word36) cpu.PR[n].RNR) << 15; n 6982 src/dps8/dps8_ins.c cpu.Yblock16[2 * n + 1] = (word36) cpu.PR[n].WORDNO << 18; n 6983 src/dps8/dps8_ins.c cpu.Yblock16[2 * n + 1] |= (word36) GET_PR_BITNO(n) << 9; n 7012 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 7013 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 7019 src/dps8/dps8_ins.c if ((cpu.PR[n].SNR & 070000) != 0 && cpu.PR[n].SNR != MASK15) n 7022 src/dps8/dps8_ins.c cpu.CY = ((word36) (GET_PR_BITNO(n) & 077)) << 30; n 7024 src/dps8/dps8_ins.c cpu.CY |= ((word36) (cpu.PR[n].SNR & 07777)) << 18; n 7025 src/dps8/dps8_ins.c cpu.CY |= cpu.PR[n].WORDNO & PAMASK; n 7041 src/dps8/dps8_ins.c uint32 n = opcode10 & 03; // get n n 7042 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 7043 src/dps8/dps8_ins.c cpu.PR[n].WORDNO += GETHI (cpu.CY); n 7044 src/dps8/dps8_ins.c cpu.PR[n].WORDNO &= MASK18; n 7045 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 7047 src/dps8/dps8_ins.c HDBGRegPRW (n, "adwpn"); n 7060 src/dps8/dps8_ins.c uint32 n = (opcode10 & MASK3) + 4U; // get n n 7061 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 7062 src/dps8/dps8_ins.c cpu.PR[n].WORDNO += GETHI (cpu.CY); n 7063 src/dps8/dps8_ins.c cpu.PR[n].WORDNO &= MASK18; n 7064 src/dps8/dps8_ins.c SET_PR_BITNO (n, 0); n 7066 src/dps8/dps8_ins.c HDBGRegPRW (n, "adwpn"); n 7387 src/dps8/dps8_ins.c for (int n=1;n<=35;n++) { n 8824 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n 8825 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8828 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = GETHI (cpu.CY); n 8862 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) (CN/2), (CN % 2) ? 5 : 0); n 8871 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = 0; n 8872 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, 0, 0); n 8879 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) ((6 * CN) / 9), n 8888 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) (CN >> 1), 0); n 8894 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = 0; n 8895 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, 0, 0); n 8897 src/dps8/dps8_ins.c HDBGRegARW (n, "aarn"); n 8902 src/dps8/dps8_ins.c HDBGRegARW (n, "aarn"); n 8922 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 8923 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8924 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = GETHI (cpu.CY); n 8926 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, getbits36_2 (cpu.CY, 18), n 8929 src/dps8/dps8_ins.c HDBGRegARW (n, "larn"); n 8939 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n += 1) n 8941 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8942 src/dps8/dps8_ins.c word36 tmp36 = cpu.Yblock8[n]; n 8943 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = getbits36_18 (tmp36, 0); n 8944 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, getbits36_2 (tmp36, 18), n 8947 src/dps8/dps8_ins.c HDBGRegARW (n, "lareg"); n 8973 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n 8974 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 8977 src/dps8/dps8_ins.c cpu.AR[n].WORDNO = GETHI (cpu.CY); n 9011 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) (CN/2), (CN % 2) ? 5 : 0); n 9025 src/dps8/dps8_ins.c SET_AR_CHAR_BITNO (n, (word2) CN, 0); n 9029 src/dps8/dps8_ins.c HDBGRegARW (n, "narn"); n 9065 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n 9066 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 9070 src/dps8/dps8_ins.c putbits36_18 (& cpu.CY, 0, cpu.AR[n].WORDNO & MASK18); n 9083 src/dps8/dps8_ins.c CN = (9 * GET_AR_CHAR (n) + GET_AR_BITNO (n) - 1) / 4; n 9090 src/dps8/dps8_ins.c CN = (9 * GET_AR_CHAR (n) + GET_AR_BITNO (n)) / 6; n 9099 src/dps8/dps8_ins.c (word3) ((GET_AR_CHAR (n) & MASK2) << 1)); n 9120 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get register # n 9121 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 9130 src/dps8/dps8_ins.c putbits36_18 (& cpu.CY, 0, cpu.AR[n].WORDNO & MASK18); n 9139 src/dps8/dps8_ins.c word3 CN = (9 * GET_AR_CHAR (n) + n 9140 src/dps8/dps8_ins.c GET_AR_BITNO (n) - 1) / 4; n 9149 src/dps8/dps8_ins.c (word3) ((GET_AR_CHAR (n) & MASK2) << 1)); n 9173 src/dps8/dps8_ins.c uint32 n = opcode10 & 07; // get n n 9174 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 9175 src/dps8/dps8_ins.c putbits36 (& cpu.CY, 0, 18, cpu.PR[n].WORDNO); n 9177 src/dps8/dps8_ins.c putbits36 (& cpu.CY, 18, 2, GET_AR_CHAR (n)); n 9178 src/dps8/dps8_ins.c putbits36 (& cpu.CY, 20, 4, GET_AR_BITNO (n)); n 9192 src/dps8/dps8_ins.c for (uint32 n = 0 ; n < 8 ; n += 1) n 9194 src/dps8/dps8_ins.c CPTUR (cptUsePRn + n); n 9196 src/dps8/dps8_ins.c putbits36 (& arx, 0, 18, cpu.PR[n].WORDNO); n 9197 src/dps8/dps8_ins.c putbits36 (& arx, 18, 2, GET_AR_CHAR (n)); n 9198 src/dps8/dps8_ins.c putbits36 (& arx, 20, 4, GET_AR_BITNO (n)); n 9199 src/dps8/dps8_ins.c cpu.Yblock8[n] = arx; n 9604 src/dps8/dps8_ins.c n 9608 src/dps8/dps8_ins.c n 9609 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 50 src/dps8/dps8_math.c long double ldexpl(long double x, int n) { n 51 src/dps8/dps8_math.c return __builtin_ldexpl(x, n); n 99 src/dps8/dps8_math.c for(int n = 70 ; n >= 0 ; n -= 1) // this also normalizes the mantissa n 102 src/dps8/dps8_math.c if (isnonzero_128 (and_128 (Mant, lshift_128 (construct_128 (0, 1), (unsigned int) n)))) n 107 src/dps8/dps8_math.c if (Mant & ((word72)1 << n)) n 151 src/dps8/dps8_math.c for(int n = 70 ; n >= 0 ; n -= 1) // this also normalizes the mantissa n 154 src/dps8/dps8_math.c if (isnonzero_128 (and_128 (Mant, lshift_128 (construct_128 (0, 1), (unsigned int) n)))) n 159 src/dps8/dps8_math.c if (Mant & ((word72)1 << n)) n 200 src/dps8/dps8_math.c for(int n = 62 ; n >= 0 && mant > 0; n -= 1) n 205 src/dps8/dps8_math.c putbits72 (& result, 71-n, 1, 1); n 320 src/dps8/dps8_math.c for(int n = 70 ; n >= 0 && mant > 0; n -= 1) n 325 src/dps8/dps8_math.c putbits72 (& result 71-n, 1, 1); n 370 src/dps8/dps8_math.c n 372 src/dps8/dps8_math.c n 407 src/dps8/dps8_math.c n 412 src/dps8/dps8_math.c n 542 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 556 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 575 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 589 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 1727 src/dps8/dps8_math.c for(int n = 0; n < shift_count; n += 1) { n 1760 src/dps8/dps8_math.c for (int n = 0 ; n < shift_count ; n += 1) { n 1861 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 1894 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 2066 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 2099 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3352 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3370 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3396 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3414 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3488 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3504 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3523 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 3539 src/dps8/dps8_math.c for (int n = 0; n < shift_count; n += 1) { n 165 src/dps8/dps8_math128.c uint128 lshift_128 (uint128 a, unsigned int n) n 172 src/dps8/dps8_math128.c if (n < 64) n 174 src/dps8/dps8_math128.c uint64_t nmask = (uint64_t) ((~(MASK64 << n))); n 177 src/dps8/dps8_math128.c uint64_t keep = (a.l >> (64 - n)) & nmask; n 180 src/dps8/dps8_math128.c uint64_t l = a.l << n; n 183 src/dps8/dps8_math128.c uint64_t h = a.h << n; n 190 src/dps8/dps8_math128.c uint64_t h = a.l << (n - 64); n 194 src/dps8/dps8_math128.c int128 lshift_s128 (int128 a, unsigned int n) n 196 src/dps8/dps8_math128.c uint128 t = lshift_128 (cast_128 (a), n); n 200 src/dps8/dps8_math128.c uint128 rshift_128 (uint128 a, unsigned int n) n 204 src/dps8/dps8_math128.c n 206 src/dps8/dps8_math128.c n 208 src/dps8/dps8_math128.c n 210 src/dps8/dps8_math128.c n 212 src/dps8/dps8_math128.c n 216 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 231 src/dps8/dps8_math128.c n 233 src/dps8/dps8_math128.c n 240 src/dps8/dps8_math128.c n 245 src/dps8/dps8_math128.c n 253 src/dps8/dps8_math128.c while (n) n 261 src/dps8/dps8_math128.c n --; n 266 src/dps8/dps8_math128.c int128 rshift_s128 (int128 a, unsigned int n) n 268 src/dps8/dps8_math128.c uint128 t = rshift_128 (cast_128 (a), n); n 275 src/dps8/dps8_math128.c uint32_t v[], int m, int n) n 289 src/dps8/dps8_math128.c for (j = 0; j < n; j++) n 304 src/dps8/dps8_math128.c uint32_t v[], int m, int n) n 306 src/dps8/dps8_math128.c mulmn (w, u, v, m, n); n 315 src/dps8/dps8_math128.c for (int j = 0; j < n; j++) n 322 src/dps8/dps8_math128.c if ((int32_t)v[n - 1] < 0) n 327 src/dps8/dps8_math128.c int t = (int) w[i + n] - (int) u[i] - b; n 328 src/dps8/dps8_math128.c w[i + n] = (uint32_t) t; n 338 src/dps8/dps8_math128.c int n; n 343 src/dps8/dps8_math128.c n = 0; n 347 src/dps8/dps8_math128.c n = n + 16; n 353 src/dps8/dps8_math128.c n = n + 8; n 359 src/dps8/dps8_math128.c n = n + 4; n 365 src/dps8/dps8_math128.c n = n + 2; n 371 src/dps8/dps8_math128.c n = n + 1; n 374 src/dps8/dps8_math128.c return n; n 381 src/dps8/dps8_math128.c int m, int n) n 390 src/dps8/dps8_math128.c if (m < n || n <= 0 || v[n-1] == 0) n 394 src/dps8/dps8_math128.c if (n == 1) n 411 src/dps8/dps8_math128.c s = nlz (v[n-1]) - 16; // 0 <= s <= 16. n 413 src/dps8/dps8_math128.c uint16_t vn [n]; n 414 src/dps8/dps8_math128.c for (i = n - 1; i > 0; i--) n 424 src/dps8/dps8_math128.c for (j = m - n; j >= 0; j--) n 427 src/dps8/dps8_math128.c qhat = (un[j+n]*b + un[j+n-1])/vn[n-1]; n 428 src/dps8/dps8_math128.c rhat = (un[j+n]*b + un[j+n-1])%vn[n-1]; n 430 src/dps8/dps8_math128.c if (qhat >= b || (unsigned)qhat*(unsigned long long)vn[n-2] > b*rhat + un[j+n-2]) n 433 src/dps8/dps8_math128.c rhat = rhat + vn[n-1]; n 439 src/dps8/dps8_math128.c for (i = 0; i < n; i++) n 446 src/dps8/dps8_math128.c t = un[j+n] - k; n 447 src/dps8/dps8_math128.c un[j+n] = (uint16_t) t; n 454 src/dps8/dps8_math128.c for (i = 0; i < n; i++) n 460 src/dps8/dps8_math128.c un[j+n] = (uint16_t) (un[j+n] + k); n 467 src/dps8/dps8_math128.c for (i = 0; i < n; i++) n 517 src/dps8/dps8_math128.c const int n = 8; n 518 src/dps8/dps8_math128.c uint16_t q[m], u[m], v[n]; n 572 src/dps8/dps8_math128.c const int n = 1; n 573 src/dps8/dps8_math128.c uint16_t q[m], u[m], v[n]; n 587 src/dps8/dps8_math128.c divmnu (q, remp, u, v, m, n); n 608 src/dps8/dps8_math128.c const int n = 2; n 609 src/dps8/dps8_math128.c uint16_t q[m], u[m], v[n], r[2]; n 624 src/dps8/dps8_math128.c divmnu (q, remp ? r : NULL, u, v, m, n); n 763 src/dps8/dps8_math128.c static void tls (uint64_t ah, uint64_t al, unsigned int n, n 767 src/dps8/dps8_math128.c uint128 r = lshift_128 (a, n); n 772 src/dps8/dps8_math128.c (unsigned long long)ah, (unsigned long long)al, (unsigned long long)n, n 778 src/dps8/dps8_math128.c static void trs (uint64_t ah, uint64_t al, unsigned int n, n 782 src/dps8/dps8_math128.c uint128 r = rshift_128 (a, n); n 787 src/dps8/dps8_math128.c (unsigned long long)ah, (unsigned long long)al, (unsigned long long)n, n 49 src/dps8/dps8_math128.h uint128 lshift_128 (uint128 a, unsigned int n); n 50 src/dps8/dps8_math128.h int128 lshift_s128 (int128 a, unsigned int n); n 51 src/dps8/dps8_math128.h uint128 rshift_128 (uint128 a, unsigned int n); n 52 src/dps8/dps8_math128.h int128 rshift_s128 (int128 a, unsigned int n); n 168 src/dps8/dps8_mgp.c int n = atoi(cptr); n 169 src/dps8/dps8_mgp.c if (n < 1 || n > N_MGP_UNITS_MAX) n 174 src/dps8/dps8_mgp.c mgp_dev.numunits = (uint32)n; n 183 src/dps8/dps8_mgp.c int n = (int)MGP_UNIT_IDX(uptr); n 185 src/dps8/dps8_mgp.c if (n < 0 || n >= N_MGP_UNITS_MAX) n 190 src/dps8/dps8_mgp.c if (mgp_state[n].device_name[1] != 0) n 192 src/dps8/dps8_mgp.c sim_printf("name : %s", mgp_state[n].device_name); n 196 src/dps8/dps8_mgp.c sim_printf("name : MGP%d", n); n 206 src/dps8/dps8_mgp.c int n = (int)MGP_UNIT_IDX(uptr); n 208 src/dps8/dps8_mgp.c if (n < 0 || n >= N_MGP_UNITS_MAX) n 215 src/dps8/dps8_mgp.c strncpy(mgp_state[n].device_name, cptr, MAX_DEV_NAME_LEN - 1); n 216 src/dps8/dps8_mgp.c mgp_state[n].device_name[MAX_DEV_NAME_LEN - 1] = 0; n 220 src/dps8/dps8_mgp.c mgp_state[n].device_name[0] = 0; n 168 src/dps8/dps8_mt.c int n = atoi (cptr); n 169 src/dps8/dps8_mt.c if (n < 0 || n > N_MTP_UNITS_MAX) n 171 src/dps8/dps8_mt.c mtp_dev.numunits = (uint32) n; n 200 src/dps8/dps8_mt.c int n = (int) atoi (cptr); n 201 src/dps8/dps8_mt.c if (n < 0 || n >= N_DEV_CODES) n 203 src/dps8/dps8_mt.c mtp_state[mtp_unit_idx].boot_drive = (uint) n; n 235 src/dps8/dps8_mt.c int n = (int) MTP_UNIT_IDX (uptr); n 236 src/dps8/dps8_mt.c if (n < 0 || n >= N_MTP_UNITS_MAX) n 238 src/dps8/dps8_mt.c sim_printf("name : %s", mtp_state [n].device_name); n 245 src/dps8/dps8_mt.c int n = (int) MTP_UNIT_IDX (uptr); n 246 src/dps8/dps8_mt.c if (n < 0 || n >= N_MTP_UNITS_MAX) n 250 src/dps8/dps8_mt.c strncpy (mtp_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 251 src/dps8/dps8_mt.c mtp_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 254 src/dps8/dps8_mt.c mtp_state[n].device_name[0] = 0; n 418 src/dps8/dps8_mt.c int n = atoi (cptr); n 419 src/dps8/dps8_mt.c if (n < 1 || n > N_MT_UNITS_MAX) n 421 src/dps8/dps8_mt.c tape_dev . numunits = (uint32) n; n 428 src/dps8/dps8_mt.c int n = (int) MT_UNIT_NUM (uptr); n 429 src/dps8/dps8_mt.c if (n < 0 || n >= N_MT_UNITS_MAX) n 431 src/dps8/dps8_mt.c if (tape_states[n].device_name[1] == 0) n 434 src/dps8/dps8_mt.c sim_printf("name : %s", tape_states[n].device_name); n 441 src/dps8/dps8_mt.c int n = (int) MT_UNIT_NUM (uptr); n 442 src/dps8/dps8_mt.c if (n < 0 || n >= N_MT_UNITS_MAX) n 446 src/dps8/dps8_mt.c strncpy (tape_states [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); n 447 src/dps8/dps8_mt.c tape_states [n] . device_name [MAX_DEV_NAME_LEN - 1] = 0; n 450 src/dps8/dps8_mt.c tape_states [n] . device_name [0] = 0; n 779 src/dps8/dps8_prt.c uint8_t n = get_BCD_char (i); n 781 src/dps8/dps8_prt.c if (n == 077) // pr2_conv_ sez ESC ESC is case shift n 791 src/dps8/dps8_prt.c else if (n >= 041 && n <= 057) n 793 src/dps8/dps8_prt.c int nchars = (n - 040) * 8; n 800 src/dps8/dps8_prt.c else if (n >= 020 && n <= 022) n 809 src/dps8/dps8_prt.c else if (n == 0) // slew 0 lines is just CR n 817 src/dps8/dps8_prt.c else if (n <= 017) n 819 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, newlines, n); n 820 src/dps8/dps8_prt.c if (n_write != n) n 828 src/dps8/dps8_prt.c sim_warn ("Printer BCD edited ESC %u. %o ignored\n", n, n); n 873 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); n 874 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, spaces, n); n 875 src/dps8/dps8_prt.c if (n_write != n) n 879 src/dps8/dps8_prt.c col += n; n 884 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); n 885 src/dps8/dps8_prt.c if (n) n 887 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, newlines, n); n 888 src/dps8/dps8_prt.c if (n_write != n) n 915 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); n 916 src/dps8/dps8_prt.c if (col < n) n 918 src/dps8/dps8_prt.c ssize_t n_write = write (prt_state[prt_unit_num].prtfile, spaces, n - col); n 919 src/dps8/dps8_prt.c if (n_write != n - col) n 923 src/dps8/dps8_prt.c col += n; n 1781 src/dps8/dps8_prt.c int n = atoi (cptr); n 1782 src/dps8/dps8_prt.c if (n < 1 || n > N_PRT_UNITS_MAX) n 1784 src/dps8/dps8_prt.c prt_dev.numunits = (uint) n; 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 1794 src/dps8/dps8_prt.c sim_printf("name : %s", prt_state[n].device_name); n 1801 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1802 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1810 src/dps8/dps8_prt.c prt_state[n].model = i; 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 1827 src/dps8/dps8_prt.c sim_printf("model : %s", model_names[prt_state[n].model]); n 1834 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1835 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1839 src/dps8/dps8_prt.c strncpy (prt_state[n].device_name, cptr, MAX_DEV_NAME_LEN - 1); n 1840 src/dps8/dps8_prt.c prt_state[n].device_name[MAX_DEV_NAME_LEN - 1] = 0; n 1844 src/dps8/dps8_prt.c prt_state[n].device_name[0] = 0; n 1974 src/dps8/dps8_prt.c int n = (int) PRT_UNIT_NUM (uptr); n 1975 src/dps8/dps8_prt.c if (n < 0 || n >= N_PRT_UNITS_MAX) n 1978 src/dps8/dps8_prt.c "Printer set ready: Invalid unit number %ld\n", (long) n); n 1979 src/dps8/dps8_prt.c sim_printf ("error: Invalid unit number %ld\n", (long) n); n 1982 src/dps8/dps8_prt.c return signal_prt_ready ((uint) n); n 617 src/dps8/dps8_scu.c int n = atoi (cptr); n 618 src/dps8/dps8_scu.c if (n < 1 || n > N_SCU_UNITS_MAX) n 620 src/dps8/dps8_scu.c scu_dev.numunits = (uint) n; n 99 src/dps8/dps8_socket_dev.c int n = atoi (cptr); n 100 src/dps8/dps8_socket_dev.c if (n < 1 || n > N_SKC_UNITS_MAX) n 102 src/dps8/dps8_socket_dev.c skc_dev.numunits = (uint32) n; n 109 src/dps8/dps8_socket_dev.c int n = (int) SKC_UNIT_IDX (uptr); n 110 src/dps8/dps8_socket_dev.c if (n < 0 || n >= N_SKC_UNITS_MAX) n 112 src/dps8/dps8_socket_dev.c if (skc_state[n].device_name[1] != 0) n 113 src/dps8/dps8_socket_dev.c sim_printf("Name: %s", skc_state[n].device_name); n 120 src/dps8/dps8_socket_dev.c int n = (int) SKC_UNIT_IDX (uptr); n 121 src/dps8/dps8_socket_dev.c if (n < 0 || n >= N_SKC_UNITS_MAX) n 125 src/dps8/dps8_socket_dev.c strncpy (skc_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); n 126 src/dps8/dps8_socket_dev.c skc_state[n].device_name[MAX_DEV_NAME_LEN-1] = 0; n 129 src/dps8/dps8_socket_dev.c skc_state[n].device_name[0] = 0; n 786 src/dps8/dps8_socket_dev.c for (uint n = 0; n < count; n ++) n 788 src/dps8/dps8_socket_dev.c uint wordno = (uint) n / 4; n 789 src/dps8/dps8_socket_dev.c uint charno = (uint) n % 4; n 790 src/dps8/dps8_socket_dev.c netdata[n] = getbits36_8 (buffer [5 + wordno], charno * 9 + 1); n 1213 src/dps8/dps8_socket_dev.c for (ssize_t n = 0; n < nread; n ++) n 1215 src/dps8/dps8_socket_dev.c uint wordno = (uint) n / 4; n 1216 src/dps8/dps8_socket_dev.c uint charno = (uint) n % 4; n 1217 src/dps8/dps8_socket_dev.c putbits36_9 (& buffer [5 + wordno], charno * 9, (word9) netdata [n]); n 1817 src/dps8/dps8_sys.c int n = 010000; //-V536 n 1820 src/dps8/dps8_sys.c n = (int) strtol (buf, NULL, 0); n 1822 src/dps8/dps8_sys.c sim_printf ("Restart entry 0%o\n", n); n 1828 src/dps8/dps8_sys.c n 1829 src/dps8/dps8_sys.c n 1840 src/dps8/dps8_sys.c cpu.restart_address = (uint) n; n 1850 src/dps8/dps8_sys.c int n = atoi (buf); n 1851 src/dps8/dps8_sys.c if (n < 1 || n > 1000) // 1 millisecond to 1 second n 1853 src/dps8/dps8_sys.c sim_printf ("POLL %d: must be 1 (1 millisecond) to 1000 (1 second)\r\n", n); n 1856 src/dps8/dps8_sys.c sim_printf ("Polling set to %d milliseconds\r\n", n); n 1857 src/dps8/dps8_sys.c sys_opts.sys_poll_interval = (uint) n; n 1865 src/dps8/dps8_sys.c int n = atoi (buf); n 1866 src/dps8/dps8_sys.c if (n < 1 || n > 1000) // 1 - slow poll every pool; 1000 - slow poll every 1000 polls n 1868 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 1871 src/dps8/dps8_sys.c sim_printf ("Slow polling set to %d polls\r\n", n); n 1872 src/dps8/dps8_sys.c sys_opts.sys_slow_poll_interval = (uint) n; n 1880 src/dps8/dps8_sys.c int n = atoi (buf); n 1881 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 1883 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 1886 src/dps8/dps8_sys.c sim_printf ("Poll check rate set to %d CPU cycles\r\n", n); n 1887 src/dps8/dps8_sys.c sys_opts.sys_poll_check_rate = (uint) n; n 2284 src/dps8/dps8_sys.c int n = lookup_book_segment (name); n 2285 src/dps8/dps8_sys.c if (n >= 0) n 2286 src/dps8/dps8_sys.c return n; n 2303 src/dps8/dps8_sys.c n = n_book_segments; n 2305 src/dps8/dps8_sys.c return n; n 2335 src/dps8/dps8_sys.c int n = n_book_components; n 2337 src/dps8/dps8_sys.c return n; n 2633 src/dps8/dps8_sys.c int n; n 2634 src/dps8/dps8_sys.c for (n = 0; n < cnt / 2; n ++) n 2636 src/dps8/dps8_sys.c if (loc[n] > best && loc[n] <= (int) offset) n 2638 src/dps8/dps8_sys.c best = loc[n]; n 2639 src/dps8/dps8_sys.c memcpy (bestLines, linenos[n], n 3732 src/dps8/dps8_sys.c int n = dbgevent_lookup ((word15) segno, (word18) offset); n 3733 src/dps8/dps8_sys.c if (n < 0) n 3738 src/dps8/dps8_sys.c for (int i = n; i < n_dbgevents - 1; i ++) n 4575 src/dps8/dps8_sys.c int n; // number alias represents .... n 4652 src/dps8/dps8_sys.c segno = cpu.PR[prt->n].SNR; n 4653 src/dps8/dps8_sys.c PRoffset = cpu.PR[prt->n].WORDNO; n 4695 src/dps8/dps8_sys.c segno = cpu.PR[prt->n].SNR; n 4696 src/dps8/dps8_sys.c offset = cpu.PR[prt->n].WORDNO; n 4763 src/dps8/dps8_sys.c for(uint n = 0 ; n < p->info->ndes; n += 1) n 4764 src/dps8/dps8_sys.c (void)fprintf(ofile, " %012llo", (unsigned long long int)val[n + 1]); n 101 src/dps8/dps8_urp.c int n = atoi (cptr); n 102 src/dps8/dps8_urp.c if (n < 1 || n > N_URP_UNITS_MAX) n 104 src/dps8/dps8_urp.c urp_dev.numunits = (uint32) n; n 110 src/dps8/dps8_urp.c int n = (int) URPUNIT_NUM (uptr); n 111 src/dps8/dps8_urp.c if (n < 0 || n >= N_URP_UNITS_MAX) n 113 src/dps8/dps8_urp.c sim_printf ("name : %s", urpState[n].deviceName); n 119 src/dps8/dps8_urp.c int n = (int) URPUNIT_NUM (uptr); n 120 src/dps8/dps8_urp.c if (n < 0 || n >= N_URP_UNITS_MAX) n 124 src/dps8/dps8_urp.c strncpy (urpState[n].deviceName, cptr, MAX_DEV_NAME_LEN - 1); n 125 src/dps8/dps8_urp.c urpState[n].deviceName[MAX_DEV_NAME_LEN - 1] = 0; n 128 src/dps8/dps8_urp.c urpState[n].deviceName [0] = 0; n 111 src/dps8/dps8_utils.c int n = (address >> 15) & 07; n 114 src/dps8/dps8_utils.c (void)sprintf (buff, " pr%d|%o", n, offset); n 123 src/dps8/dps8_utils.c for(uint n = 0 ; n < 0100 ; n++) n 124 src/dps8/dps8_utils.c if (extMods[n].mod) n 125 src/dps8/dps8_utils.c if(n == tag) n 127 src/dps8/dps8_utils.c strcpy(buff, extMods[n].mod); n 155 src/dps8/dps8_utils.c for(uint n = 0 ; n < 0100 ; n++) //-V536 n 156 src/dps8/dps8_utils.c if (extMods[n].mod) n 157 src/dps8/dps8_utils.c if(n == tag) n 159 src/dps8/dps8_utils.c strcpy(msg, extMods[n].mod); n 1579 src/dps8/dps8_utils.c int64_t n = strtoll (value, & endptr, 0); n 1587 src/dps8/dps8_utils.c if (n < p -> min || n > p -> max) n 1593 src/dps8/dps8_utils.c * result = n; n 1935 src/dps8/dps8_utils.c static void print_uint128o_r (uint128 n, char * p) n 1937 src/dps8/dps8_utils.c if (n == 0) n 1940 src/dps8/dps8_utils.c print_uint128o_r(n / 8, p); n 1944 src/dps8/dps8_utils.c s [0] = n % 8 + '0'; n 1949 src/dps8/dps8_utils.c sim_printf("%c", (int) (n%8+0x30)); n 1952 src/dps8/dps8_utils.c char * print_int128o (int128 n, char * p) n 1954 src/dps8/dps8_utils.c if (n == 0) n 1962 src/dps8/dps8_utils.c print_uint128o_r ((uint128) n, p); n 1966 src/dps8/dps8_utils.c static void print_uint128_r (uint128 n, char * p) n 1968 src/dps8/dps8_utils.c if (n == 0) n 1971 src/dps8/dps8_utils.c print_uint128_r(n / 10, p); n 1975 src/dps8/dps8_utils.c s [0] = n % 10 + '0'; n 1980 src/dps8/dps8_utils.c sim_printf("%c", (int) (n%10+0x30)); n 1983 src/dps8/dps8_utils.c void print_int128 (int128 n, char * p) n 1985 src/dps8/dps8_utils.c if (n == 0) n 1993 src/dps8/dps8_utils.c if (n < 0) n 1999 src/dps8/dps8_utils.c n = -n; n 2001 src/dps8/dps8_utils.c print_uint128_r ((uint128) n, p); n 104 src/dps8/dps8_utils.h n 107 src/dps8/dps8_utils.h n 110 src/dps8/dps8_utils.h n 114 src/dps8/dps8_utils.h n 118 src/dps8/dps8_utils.h static inline word36 getbits36(word36 x, uint i, uint n) { n 120 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)n+1; n 122 src/dps8/dps8_utils.h sim_printf ("getbits36: bad args (%012llu,i=%d,n=%d)\n", (unsigned long long)x, i, n); n 125 src/dps8/dps8_utils.h return (x >> (unsigned) shift) & ~ (~0U << n); n 315 src/dps8/dps8_utils.h static inline word36 setbits36(word36 x, uint p, uint n, word36 val) n 317 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 319 src/dps8/dps8_utils.h sim_printf ("setbits36: bad args (%012llu,pos=%d,n=%d)\n", (unsigned long long)x, p, n); n 322 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 326 src/dps8/dps8_utils.h word36 result = (x & ~ mask) | ((val&MASKBITS(n)) << (36 - p - n)); n 332 src/dps8/dps8_utils.h const int n = 1; n 333 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 338 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 348 src/dps8/dps8_utils.h const int n = 4; n 349 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 354 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 364 src/dps8/dps8_utils.h const int n = 5; n 365 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 370 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 380 src/dps8/dps8_utils.h const int n = 6; n 381 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 386 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 396 src/dps8/dps8_utils.h const int n = 8; n 397 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 402 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 412 src/dps8/dps8_utils.h const int n = 9; n 413 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 418 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 428 src/dps8/dps8_utils.h const int n = 16; n 429 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 434 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 444 src/dps8/dps8_utils.h const int n = 24; n 445 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 450 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 458 src/dps8/dps8_utils.h static inline void putbits36 (word36 * x, uint p, uint n, word36 val) n 460 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 463 src/dps8/dps8_utils.h sim_printf ("putbits36: bad args (%012llu,pos=%d,n=%d)\n", (unsigned long long)*x, p, n); n 466 src/dps8/dps8_utils.h word36 mask = ~ (~0U << n); // n low bits on n 470 src/dps8/dps8_utils.h * x = (* x & ~mask) | ((val & MASKBITS (n)) << (36 - p - n)); n 476 src/dps8/dps8_utils.h const int n = 1; n 477 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 482 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 491 src/dps8/dps8_utils.h const int n = 2; n 492 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 497 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 506 src/dps8/dps8_utils.h const int n = 3; n 507 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 512 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 521 src/dps8/dps8_utils.h const int n = 4; n 522 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 527 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 536 src/dps8/dps8_utils.h const int n = 5; n 537 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 542 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 551 src/dps8/dps8_utils.h const int n = 6; n 552 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 557 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 566 src/dps8/dps8_utils.h const int n = 7; n 567 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 572 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 581 src/dps8/dps8_utils.h const int n = 8; n 582 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 587 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 596 src/dps8/dps8_utils.h const int n = 9; n 597 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 602 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 630 src/dps8/dps8_utils.h const int n = 10; n 631 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 636 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 645 src/dps8/dps8_utils.h const int n = 12; n 646 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 651 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 660 src/dps8/dps8_utils.h const int n = 13; n 661 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 666 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 675 src/dps8/dps8_utils.h const int n = 14; n 676 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 681 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 690 src/dps8/dps8_utils.h const int n = 15; n 691 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 696 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 705 src/dps8/dps8_utils.h const int n = 16; n 706 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 711 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 720 src/dps8/dps8_utils.h const int n = 17; n 721 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 726 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 735 src/dps8/dps8_utils.h const int n = 18; n 736 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 741 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 750 src/dps8/dps8_utils.h const int n = 23; n 751 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 756 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 765 src/dps8/dps8_utils.h const int n = 24; n 766 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 771 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 780 src/dps8/dps8_utils.h const int n = 28; n 781 src/dps8/dps8_utils.h int shift = 36 - (int) p - (int) n; n 786 src/dps8/dps8_utils.h word36 mask = ~ (~0U<<n); // n low bits on n 793 src/dps8/dps8_utils.h static inline void putbits72 (word72 * x, uint p, uint n, word72 val) n 795 src/dps8/dps8_utils.h int shift = 72 - (int) p - (int) n; n 798 src/dps8/dps8_utils.h sim_printf ("putbits72: bad args (pos=%d,n=%d)\n", p, n); n 805 src/dps8/dps8_utils.h if (n >= 64) n 808 src/dps8/dps8_utils.h highmask = ~ ((~(uint64_t)0) << n); n 813 src/dps8/dps8_utils.h lowmask = ~ ((~(uint64_t)0) << n); n 818 src/dps8/dps8_utils.h * x = or_128 (and_128 (* x, notmask), and_128 (lshift_128 (val, 72 - p - n), mask)); n 820 src/dps8/dps8_utils.h word72 mask = ~ ((~(word72)0) << n); // n low bits on n 824 src/dps8/dps8_utils.h * x = (* x & ~mask) | ((val & MASKBITS72 (n)) << (72 - p - n)); n 831 src/dps8/dps8_utils.h static inline word18 getbits18 (word18 x, uint i, uint n) n 834 src/dps8/dps8_utils.h int shift = 17 - (int) i - (int) n + 1; n 837 src/dps8/dps8_utils.h sim_printf ("getbits18: bad args (%06o,i=%d,n=%d)\n", x, i, n); n 841 src/dps8/dps8_utils.h return (x >> (unsigned) shift) & ~ (~0U << n); n 846 src/dps8/dps8_utils.h static inline void putbits18 (word18 * x, uint p, uint n, word18 val) n 848 src/dps8/dps8_utils.h int shift = 18 - (int) p - (int) n; n 851 src/dps8/dps8_utils.h sim_printf ("putbits18: bad args (%06o,pos=%d,n=%d)\n", * x, p, n); n 854 src/dps8/dps8_utils.h word18 mask = ~ (~0U << n); // n low bits on n 858 src/dps8/dps8_utils.h * x = (* x & ~mask) | ((val & MASKBITS18 (n)) << (18 - p - n)); n 887 src/dps8/dps8_utils.h void print_int128 (int128 n, char * p); n 888 src/dps8/dps8_utils.h char * print_int128o (int128 n, char * p); n 98 src/dps8/hdbg.h # define HDBGFault(n, s, m, c) hdbgFault(n, s, m, c) n 99 src/dps8/panelScraper.c #define SETL(lights, light_os, from, n) \ n 100 src/dps8/panelScraper.c for (uint i = 0; i < (n); i ++) \ n 101 src/dps8/panelScraper.c lights [(light_os) + i] = !! ((from) & (1llu << ((n) - i - 1))); n 103 src/dps8/panelScraper.c #define SETLA(lights, light_os, from, n) \ n 104 src/dps8/panelScraper.c for (uint i = 0; i < (n); i ++) \ n 112 src/dps8/panelScraper.c uint n = cpu.APU_panel_scroll_select_n_sw; n 125 src/dps8/panelScraper.c SETL (bank_a, 0+3, cpu.PTWAM[n].POINTER, 15); n 126 src/dps8/panelScraper.c SETL (bank_a, 15+3, cpu.PTWAM[n].PAGENO, 12); n 127 src/dps8/panelScraper.c SETL1 (bank_a, 27+3, cpu.PTWAM[n].FE); n 128 src/dps8/panelScraper.c SETL (bank_a, 32+3, cpu.PTWAM[n].USE, 4); n 144 src/dps8/panelScraper.c SETL (bank_a, 0+3, cpu.PTWAM[n].ADDR, 18); n 145 src/dps8/panelScraper.c SETL1 (bank_a, 29+3, cpu.PTWAM[n].M); n 162 src/dps8/panelScraper.c SETL (bank_a, 0+3, cpu.SDWAM[n].POINTER, 15); n 163 src/dps8/panelScraper.c SETL1 (bank_a, 27+3, cpu.SDWAM[n].FE); n 164 src/dps8/panelScraper.c SETL (bank_a, 32+3, cpu.SDWAM[n].USE, 4); n 182 src/dps8/panelScraper.c SETL (bank_a, 0+3, cpu.SDWAM[n].ADDR, 24); n 183 src/dps8/panelScraper.c SETL (bank_a, 24+3, cpu.SDWAM[n].R1, 3); n 184 src/dps8/panelScraper.c SETL (bank_a, 27+3, cpu.SDWAM[n].R2, 3); n 185 src/dps8/panelScraper.c SETL (bank_a, 30+3, cpu.SDWAM[n].R2, 3); n 197 src/dps8/panelScraper.c SETL (bank_a, 1+3, cpu.SDWAM[n].BOUND, 14); n 198 src/dps8/panelScraper.c SETL1 (bank_a, 15+3, cpu.SDWAM[n].R); n 199 src/dps8/panelScraper.c SETL1 (bank_a, 16+3, cpu.SDWAM[n].E); n 200 src/dps8/panelScraper.c SETL1 (bank_a, 17+3, cpu.SDWAM[n].W); n 201 src/dps8/panelScraper.c SETL1 (bank_a, 18+3, cpu.SDWAM[n].P); n 202 src/dps8/panelScraper.c SETL1 (bank_a, 19+3, cpu.SDWAM[n].U); n 203 src/dps8/panelScraper.c SETL1 (bank_a, 20+3, cpu.SDWAM[n].G); n 204 src/dps8/panelScraper.c SETL (bank_a, 22+3, cpu.SDWAM[n].EB, 14); n 229 src/dps8/panelScraper.c SETL (bank_a, 1+3, cpu.SDWAM[n].BOUND, 14); n 230 src/dps8/panelScraper.c SETL1 (bank_a, 15+3, cpu.SDWAM[n].R); n 231 src/dps8/panelScraper.c SETL1 (bank_a, 16+3, cpu.SDWAM[n].E); n 232 src/dps8/panelScraper.c SETL1 (bank_a, 17+3, cpu.SDWAM[n].W); n 233 src/dps8/panelScraper.c SETL1 (bank_a, 18+3, cpu.SDWAM[n].P); n 234 src/dps8/panelScraper.c SETL1 (bank_a, 19+3, cpu.SDWAM[n].U); n 235 src/dps8/panelScraper.c SETL1 (bank_a, 20+3, cpu.SDWAM[n].G); n 236 src/dps8/panelScraper.c SETL (bank_a, 22+3, cpu.SDWAM[n].EB, 14); n 251 src/dps8/panelScraper.c SETL (bank_a, 1+3, cpu.SDWAM[n].BOUND, 14); n 252 src/dps8/panelScraper.c SETL1 (bank_a, 15+3, cpu.SDWAM[n].R); n 253 src/dps8/panelScraper.c SETL1 (bank_a, 16+3, cpu.SDWAM[n].E); n 254 src/dps8/panelScraper.c SETL1 (bank_a, 17+3, cpu.SDWAM[n].W); n 255 src/dps8/panelScraper.c SETL1 (bank_a, 18+3, cpu.SDWAM[n].P); n 256 src/dps8/panelScraper.c SETL1 (bank_a, 19+3, cpu.SDWAM[n].U); n 257 src/dps8/panelScraper.c SETL1 (bank_a, 20+3, cpu.SDWAM[n].G); n 258 src/dps8/panelScraper.c SETL (bank_a, 22+3, cpu.SDWAM[n].EB, 14); n 353 src/dps8/panelScraper.c n &= 7; n 354 src/dps8/panelScraper.c SETL (bank_a, 3+3, cpu.PAR[n].SNR, 15); n 355 src/dps8/panelScraper.c SETL (bank_a, 18+3, cpu.PAR[n].RNR, 3); n 1108 src/dps8/panelScraper.c #define nibble(bank, n) \ n 1110 src/dps8/panelScraper.c (bank [n + 0] ? 020 : 0) + \ n 1111 src/dps8/panelScraper.c (bank [n + 1] ? 010 : 0) + \ n 1112 src/dps8/panelScraper.c (bank [n + 2] ? 004 : 0) + \ n 1113 src/dps8/panelScraper.c (bank [n + 3] ? 002 : 0) + \ n 1114 src/dps8/panelScraper.c (bank [n + 4] ? 001 : 0) n 1381 src/dps8/panelScraper.c #define SETS(word, data, from, n) \ n 1382 src/dps8/panelScraper.c for (uint i = 0; i < (n); i ++) \ n 1384 src/dps8/panelScraper.c (word) |= 1llu << ((n) - 1 - i); \ n 1386 src/dps8/panelScraper.c (word) &= ~ (1llu << ((n) - 1 - i)) n 354 src/dps8/segldr.c ssize_t n = write (fd, (void *) M, wrsz); n 355 src/dps8/segldr.c if (n != wrsz) n 382 src/dps8/segldr.c ssize_t n = read (fd, (void *) M, msize); n 383 src/dps8/segldr.c if (n < 1) n 399 src/dps8/segldr.c (unsigned long long) n, n 400 src/dps8/segldr.c (unsigned long long) (n / sizeof (word36)), n 401 src/dps8/segldr.c (unsigned long long) (n / sizeof (36) / 1024)); n 133 src/dps8/ucache.c # define stats(n) args ( (long long unsigned)cpus[cpuNo].uCache.hits [n], \ n 134 src/dps8/ucache.c (long long unsigned)cpus[cpuNo].uCache.misses[n], \ n 135 src/dps8/ucache.c (long long unsigned)cpus[cpuNo].uCache.skips [n] ) n 410 src/dps8/udplib.c ssize_t n = read (udp_links [link] . sock, ppkt, pktsiz); n 411 src/dps8/udplib.c if (n < 0) n 418 src/dps8/udplib.c return (int) n; n 454 src/libsir/include/sir/helpers.h for (size_t n = 0; n < len; n++) { n 455 src/libsir/include/sir/helpers.h hash ^= (uint32_t)data[n]; n 504 src/libsir/include/sir/helpers.h char* _sir_strreplace(char *str, const char c, const char n); n 510 src/libsir/include/sir/helpers.h size_t _sir_strcreplace(char *str, const char c, const char n, int32_t max); n 52 src/libsir/include/sir/impl.h size_t n = dsize; n 60 src/libsir/include/sir/impl.h while (n-- != 0 && *dst != '\0') n 64 src/libsir/include/sir/impl.h n = dsize - dlen; n 66 src/libsir/include/sir/impl.h if (n-- == 0) n 70 src/libsir/include/sir/impl.h if (n != 0) { n 72 src/libsir/include/sir/impl.h n--; n 110 src/libsir/include/sir/platform_importc.h # define __builtin___strlcat_chk(dest, src, x, n) strlcat(dest, src, x) n 112 src/libsir/include/sir/platform_importc.h # define __builtin___strlcpy_chk(dest, src, x, n) strlcpy(dest, src, x) n 458 src/libsir/src/sirfilecache.c for (size_t n = 0; n < sfc->count; n++) { n 459 src/libsir/src/sirfilecache.c SIR_ASSERT(_sirfile_validate(sfc->files[n])); n 461 src/libsir/src/sirfilecache.c if (sfc->files[n]->id == id) { n 463 src/libsir/src/sirfilecache.c sfc->files[n]->path, sfc->files[n]->id, sfc->count - 1); n 465 src/libsir/src/sirfilecache.c _sirfile_destroy(&sfc->files[n]); n 466 src/libsir/src/sirfilecache.c _sir_fcache_shift(sfc, n); n 483 src/libsir/src/sirfilecache.c for (size_t n = idx; n < sfc->count - 1; n++) { n 484 src/libsir/src/sirfilecache.c sfc->files[n] = sfc->files[n + 1]; n 485 src/libsir/src/sirfilecache.c sfc->files[n + 1] = NULL; n 569 src/libsir/src/sirfilecache.c for (size_t n = 0; n < sfc->count; n++) { n 570 src/libsir/src/sirfilecache.c if (pred(match, sfc->files[n])) n 571 src/libsir/src/sirfilecache.c return sfc->files[n]; n 609 src/libsir/src/sirfilecache.c for (size_t n = 0; n < sfc->count; n++) { n 610 src/libsir/src/sirfilecache.c SIR_ASSERT(_sirfile_validate(sfc->files[n])); n 612 src/libsir/src/sirfilecache.c if (!_sir_bittest(sfc->files[n]->levels, level)) { n 615 src/libsir/src/sirfilecache.c level, sfc->files[n]->levels, sfc->files[n]->path, n 616 src/libsir/src/sirfilecache.c sfc->files[n]->id); n 622 src/libsir/src/sirfilecache.c if (!wrote || sfc->files[n]->opts != lastopts) { n 623 src/libsir/src/sirfilecache.c wrote = _sir_format(false, sfc->files[n]->opts, buf); n 625 src/libsir/src/sirfilecache.c lastopts = sfc->files[n]->opts; n 628 src/libsir/src/sirfilecache.c if (wrote && _sirfile_write(sfc->files[n], wrote)) { n 632 src/libsir/src/sirfilecache.c sfc->files[n]->path, sfc->files[n]->id); n 592 src/libsir/src/sirfilesystem.c for (int n = 0; n < numproc; n++) { n 593 src/libsir/src/sirfilesystem.c if (pinfo[n].pi_state == SZOMB) n 595 src/libsir/src/sirfilesystem.c if (pinfo[n].pi_pid == pid) { n 597 src/libsir/src/sirfilesystem.c if (-1 == getargs(&pinfo[n], sizeof(struct procsinfo), tmp, sizeof(tmp))) { n 332 src/libsir/src/sirhelpers.c # define _sir_explicit_memset_impl(s, c, n) memset(s, c, n) n 396 src/libsir/src/sirhelpers.c char* _sir_strreplace(char *str, const char c, const char n) { n 402 src/libsir/src/sirhelpers.c if (!c || !n) n 406 src/libsir/src/sirhelpers.c *i++ = n; n 411 src/libsir/src/sirhelpers.c size_t _sir_strcreplace(char *str, const char c, const char n, int32_t max) { n 415 src/libsir/src/sirhelpers.c if (!str || !c || !n || !max) n 419 src/libsir/src/sirhelpers.c *i++ = n; n 391 src/libsir/src/sirplugins.c for (size_t n = 0; n < spc->count; n++) { n 392 src/libsir/src/sirplugins.c if (pred(match, spc->plugins[n])) n 393 src/libsir/src/sirplugins.c return spc->plugins[n]; n 410 src/libsir/src/sirplugins.c for (size_t n = 0; n < spc->count; n++) { n 411 src/libsir/src/sirplugins.c if (spc->plugins[n]->id == id) { n 413 src/libsir/src/sirplugins.c spc->plugins[n]->path, spc->plugins[n]->id, spc->count - 1); n 415 src/libsir/src/sirplugins.c _sir_plugin_destroy(&spc->plugins[n]); n 417 src/libsir/src/sirplugins.c for (size_t i = n; i < spc->count - 1; i++) { n 468 src/libsir/src/sirplugins.c for (size_t n = 0; n < spc->count; n++) { n 469 src/libsir/src/sirplugins.c if (!_sir_bittest(spc->plugins[n]->info.levels, level)) { n 472 src/libsir/src/sirplugins.c level, spc->plugins[n]->info.levels, spc->plugins[n]->path, n 473 src/libsir/src/sirplugins.c spc->plugins[n]->id); n 479 src/libsir/src/sirplugins.c if (!wrote || spc->plugins[n]->info.opts != lastopts) { n 480 src/libsir/src/sirplugins.c wrote = _sir_format(false, spc->plugins[n]->info.opts, buf); n 482 src/libsir/src/sirplugins.c lastopts = spc->plugins[n]->info.opts; n 485 src/libsir/src/sirplugins.c if (wrote && spc->plugins[n]->iface.write(level, wrote)) { n 489 src/libsir/src/sirplugins.c " failed!", spc->plugins[n]->path, spc->plugins[n]->id); n 123 src/libsir/src/sirtextstyle.c for (size_t n = 0; n < SIR_NUMLEVELS; n++) { n 124 src/libsir/src/sirtextstyle.c (void)memcpy(&data->map[n].style, _sir_getdefstyle(data->map[n].level), n 126 src/libsir/src/sirtextstyle.c _sir_eqland(all_ok, _sir_formatstyle(*data->color_mode, &data->map[n].style, n 127 src/libsir/src/sirtextstyle.c data->map[n].str)); n 81 src/libsir/src/sirthreadpool.c for (size_t n = 0; n < num_threads; n++) { n 83 src/libsir/src/sirthreadpool.c op = pthread_create(&(*pool)->threads[n], &attr, &thread_pool_proc, *pool); n 85 src/libsir/src/sirthreadpool.c (*pool)->threads[n] = 0; n 91 src/libsir/src/sirthreadpool.c (*pool)->threads[n] = (HANDLE)_beginthreadex(NULL, 0, &thread_pool_proc, n 93 src/libsir/src/sirthreadpool.c if (!(*pool)->threads[n]) { n 155 src/libsir/src/sirthreadpool.c for (size_t n = 0; n < (*pool)->num_threads; n++) { n 156 src/libsir/src/sirthreadpool.c SIR_ASSERT(0 != (*pool)->threads[n]); n 157 src/libsir/src/sirthreadpool.c if (0 == (*pool)->threads[n]) n 159 src/libsir/src/sirthreadpool.c _sir_selflog("joining thread %zu of %zu...", n + 1, (*pool)->num_threads); n 161 src/libsir/src/sirthreadpool.c int join = pthread_join((*pool)->threads[n], NULL); n 165 src/libsir/src/sirthreadpool.c DWORD join = WaitForSingleObject((*pool)->threads[n], INFINITE); n 85 src/simh/backtrace_func.c int n = strcmp(function, BACKTRACE_MAIN); n 86 src/simh/backtrace_func.c if (n == 0) n 10659 src/simh/scp.c size_t n, ilvl; n 10715 src/simh/scp.c n = uptr? uptr - dptr->units: 0; n 10716 src/simh/scp.c (void)sprintf (buf, "%s%u", dptr->name, (int)n); n 10735 src/simh/scp.c n = 0; n 10737 src/simh/scp.c n += (n * 10) + (*htext++ - '0'); n 10739 src/simh/scp.c n == 0 || n >= VSMAX) { n 10744 src/simh/scp.c while (n > vsnum) /* Get arg pointer if not cached */ n 10746 src/simh/scp.c start = vstrings[n-1]; /* Insert selected string */ n 10795 src/simh/scp.c n = 0; n 10798 src/simh/scp.c n += (n * 10) + (*htext++ - '0'); n 10799 src/simh/scp.c if ((htext == start) || !n) { n 10804 src/simh/scp.c if (n <= topic->level) { /* Find level for new topic */ n 10805 src/simh/scp.c while (n <= topic->level) n 10809 src/simh/scp.c if (n > topic->level + 1) { /* Skipping down more than 1 */ n 10832 src/simh/scp.c size_t n = 0; n 10835 src/simh/scp.c n += (n * 10) + (*start++ - '0'); n 10836 src/simh/scp.c if (!*start || *start == '\n'|| n == 0 || n >= VSMAX) { n 10841 src/simh/scp.c while (n > vsnum) /* Get arg pointer if not cached */ n 10843 src/simh/scp.c end = vstrings[n-1]; /* Check for True */ n 10883 src/simh/scp.c newt->level = n; n 10885 src/simh/scp.c n = strlen (newt->title); n 10886 src/simh/scp.c if (n > topic->kidwid) n 10887 src/simh/scp.c topic->kidwid = n; n 10889 src/simh/scp.c n = strlen (topic->label) + strlen (nbuf) + 1; n 10890 src/simh/scp.c newt->label = (char *) malloc (n); n 106 src/simh/scp.h # define GCC_FMT_ATTR(n, m) n 110 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) ({})