i 348 src/decNumber/decNumber.c Int i=X10(hi)+lo; i 349 src/decNumber/decNumber.c if (dn->bits&DECNEG) return -i; i 350 src/decNumber/decNumber.c return i; i 748 src/decNumber/decNumber.c Int i, j; i 751 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 752 src/decNumber/decNumber.c if (a&b&1) *uc=*uc+(Unit)powers[i]; // effect AND i 761 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1105 src/decNumber/decNumber.c Int i, j; // work i 1111 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 1112 src/decNumber/decNumber.c if ((~a)&1) *uc=*uc+(Unit)powers[i]; // effect INVERT i 1119 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1705 src/decNumber/decNumber.c Int i, j; i 1707 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 1708 src/decNumber/decNumber.c if ((a|b)&1) *uc=*uc+(Unit)powers[i]; // effect OR i 1717 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1815 src/decNumber/decNumber.c Int i; // work i 2064 src/decNumber/decNumber.c for (i=1;;i++){ // for each bit [top bit ignored] i 2076 src/decNumber/decNumber.c if (i==31) break; // that was the last bit i 3088 src/decNumber/decNumber.c Int i, j; i 3090 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 3091 src/decNumber/decNumber.c if ((a^b)&1) *uc=*uc+(Unit)powers[i]; // effect XOR i 3100 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 5194 src/decNumber/decNumber.c Int i; // counter i 5201 src/decNumber/decNumber.c for (i=1;;i++){ // for each bit [top bit ignored] i 5210 src/decNumber/decNumber.c if (i==31) break; // that was the last bit i 169 src/decNumber/decNumberLocal.h # define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) //-V1003 i 170 src/decNumber/decNumberLocal.h # define ROUNDUP4(i) (((i)+3)&~3) /* special for n=4 */ i 173 src/decNumber/decNumberLocal.h # define ROUNDDOWN(i, n) (((i)/n)*n) //-V1003 i 174 src/decNumber/decNumberLocal.h # define ROUNDDOWN4(i) ((i)&~3) /* special for n=4 */ i 187 src/decNumber/decNumberLocal.h # define UBFROMUS(b, i) (uswork=(i), memcpy(b, (void *)&uswork, 2)) i 188 src/decNumber/decNumberLocal.h # define UBFROMUI(b, i) (uiwork=(i), memcpy(b, (void *)&uiwork, 4)) i 192 src/decNumber/decNumberLocal.h # define X10(i) (((i)<<1)+((i)<<3)) i 193 src/decNumber/decNumberLocal.h # define X100(i) (((i)<<2)+((i)<<5)+((i)<<6)) i 110 src/dps8/bsd_random.c register int i; i 112 src/dps8/bsd_random.c for (i = 1; i < rand_deg; i++) i 114 src/dps8/bsd_random.c state[i] = 1103515245 * state[i - 1] + 12345; i 119 src/dps8/bsd_random.c for (i = 0; i < 10 * rand_deg; i++) i 235 src/dps8/bsd_random.c long i; i 239 src/dps8/bsd_random.c i = state[0] = ( state[0] * 1103515245 + 12345 ) & 0x7fffffff; i 244 src/dps8/bsd_random.c i = ( *fptr >> 1 ) & 0x7fffffff; i 256 src/dps8/bsd_random.c return i; i 412 src/dps8/dps8.h # define Y(i) (i & MASKHI18) i 414 src/dps8/dps8.h # define OPSX(i) ((i & 0007000LLU) >> 9) i 416 src/dps8/dps8.h # define X(i) (i & 07U) i 457 src/dps8/dps8.h # define READOP(i) ((bool) (i->info->flags & \ i 464 src/dps8/dps8.h # define WRITEOP(i) ((bool) (i->info->flags & \ i 472 src/dps8/dps8.h # define RMWOP(i) ((bool) READOP(i) && WRITEOP(i)) i 474 src/dps8/dps8.h # define TRANSOP(i) ((bool) (i->info->flags & (TRANSFER_INS) )) i 256 src/dps8/dps8_absi.c for (int i = 0; i < N_ABSI_UNITS_MAX; i ++) i 257 src/dps8/dps8_absi.c absi_state[i].link = NOLINK; i 372 src/dps8/dps8_absi.c for (int i = 0; i < sz; i ++) i 374 src/dps8/dps8_absi.c fprintf (stderr, " %06o %04x ", pkt[i], pkt[i]); i 376 src/dps8/dps8_absi.c fprintf (stderr, "%c", pkt[i] & (1 << (16 - b)) ? '1' : '0'); i 117 src/dps8/dps8_addrmods.c DCDstruct * i = & cpu.currentInstruction; i 121 src/dps8/dps8_addrmods.c if (READOP (i)) i 147 src/dps8/dps8_addrmods.c if (WRITEOP (i)) i 176 src/dps8/dps8_addrmods.c if (TRANSOP (i)) i 184 src/dps8/dps8_addrmods.c if (! READOP (i) && ! WRITEOP (i) && ! TRANSOP (i) && i 185 src/dps8/dps8_addrmods.c i -> info -> flags & PREPARE_CA) i 384 src/dps8/dps8_addrmods.c DCDstruct * i = & cpu.currentInstruction; i 393 src/dps8/dps8_addrmods.c if (i -> info -> flags & NO_TAG) // for instructions line STCA/STCQ i 954 src/dps8/dps8_addrmods.c Read (cpu.TPR.CA, & cpu.ou.character_data, (i->info->flags & RMW) == \ i 145 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 146 src/dps8/dps8_append.c usages[i] = -1; i 148 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 150 src/dps8/dps8_append.c ptw_s * p = cpu.PTWAM + i; i 153 src/dps8/dps8_append.c i, p->USE, N_MODEL_WAM_ENTRIES - 1); i 156 src/dps8/dps8_append.c i, usages[p->USE], p->USE); i 157 src/dps8/dps8_append.c usages[p->USE] = i; i 159 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 161 src/dps8/dps8_append.c if (usages[i] == -1) i 162 src/dps8/dps8_append.c sim_printf ("No PTWAM had a USE of %d\n", i); i 181 src/dps8/dps8_append.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 183 src/dps8/dps8_append.c cpu.SDWAM[i].FE = 0; i 184 src/dps8/dps8_append.c L68_ (cpu.SDWAM[i].USE = (word4) i;) i 185 src/dps8/dps8_append.c DPS8M_ (cpu.SDWAM[i].USE = 0;) i 194 src/dps8/dps8_append.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 196 src/dps8/dps8_append.c cpu.PTWAM[i].FE = 0; i 197 src/dps8/dps8_append.c L68_ (cpu.PTWAM[i].USE = (word4) i;) i 198 src/dps8/dps8_append.c DPS8M_ (cpu.PTWAM[i].USE = 0;) i 1147 src/dps8/dps8_append.c DCDstruct * i = & cpu.currentInstruction; i 1161 src/dps8/dps8_append.c if (i->b29) i 1178 src/dps8/dps8_append.c nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 1179 src/dps8/dps8_append.c i->opcode == 0154 || i->opcode == 0173) && i->opcodeX) || i 1180 src/dps8/dps8_append.c ((i->opcode == 0557 || i->opcode == 0257) && ! i->opcodeX); i 1327 src/dps8/dps8_append.c i->opcode == 0610 && ! i->opcodeX) i 1330 src/dps8/dps8_append.c sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 1338 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & CALL6_INS)) i 1351 src/dps8/dps8_append.c i 1355 src/dps8/dps8_append.c i 1359 src/dps8/dps8_append.c i 1364 src/dps8/dps8_append.c (thisCycle == OPERAND_READ && (i->info->flags & TRANSFER_INS))) i 1751 src/dps8/dps8_append.c if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 1752 src/dps8/dps8_append.c || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) i 1886 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & CALL6_INS)) i 1891 src/dps8/dps8_append.c (thisCycle == OPERAND_READ && (i->info->flags & TRANSFER_INS))) i 2002 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & TSPN_INS)) i 2005 src/dps8/dps8_append.c if (i->opcode <= 0273) i 2006 src/dps8/dps8_append.c n = (i->opcode & 3); i 2008 src/dps8/dps8_append.c n = (i->opcode & 3) + 4; i 2029 src/dps8/dps8_append.c i->opcode == 0610 && ! i->opcodeX) i 1324 src/dps8/dps8_cable.c #define all(i,n) \ i 1325 src/dps8/dps8_cable.c for (uint i = 0; i < n; i ++) i 1375 src/dps8/dps8_cable.c for (int i = 0; i < N_CPU_UNITS_MAX; i++) i 1376 src/dps8/dps8_cable.c if (cpus_used[i]) i 1380 src/dps8/dps8_cable.c i + 'A'); i 1385 src/dps8/dps8_cable.c for (int i = 0; i < N_SCU_UNITS_MAX; i++) i 1386 src/dps8/dps8_cable.c if (scus_used[i]) i 1390 src/dps8/dps8_cable.c i + 'A'); i 1395 src/dps8/dps8_cable.c for (int i = 0; i < N_IOM_UNITS_MAX; i++) i 1396 src/dps8/dps8_cable.c if (ioms_used[i]) i 1400 src/dps8/dps8_cable.c i + 'A'); i 406 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) i 408 src/dps8/dps8_console.c console_state[i].io_mode = opc_no_mode; i 409 src/dps8/dps8_console.c console_state[i].tailp = console_state[i].keyboardLineBuffer; i 410 src/dps8/dps8_console.c console_state[i].readp = console_state[i].keyboardLineBuffer; i 411 src/dps8/dps8_console.c console_state[i].carrierPosition = 1; i 412 src/dps8/dps8_console.c memset (console_state[i].tabStops, 0, sizeof (console_state[i].tabStops)); i 413 src/dps8/dps8_console.c console_state[i].escapeSequence = false; i 420 src/dps8/dps8_console.c for (uint i = 0; i < opc_dev.numunits; i ++) i 422 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 426 src/dps8/dps8_console.c return (int) i; i 437 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) i 439 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 460 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) { i 461 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 467 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); i 771 src/dps8/dps8_console.c int i; i 772 src/dps8/dps8_console.c for (i = 0; i < 64; i ++) i 773 src/dps8/dps8_console.c if (bcd_code_page[i] == c) i 775 src/dps8/dps8_console.c if (i >= 64) i 778 src/dps8/dps8_console.c i = 017; //-V536 i 780 src/dps8/dps8_console.c putbits36_6 (bufp, charno * 6, (word6) i); i 983 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) i 984 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); i 1487 src/dps8/dps8_console.c i 1488 src/dps8/dps8_console.c i 1490 src/dps8/dps8_console.c i 1503 src/dps8/dps8_console.c i 1504 src/dps8/dps8_console.c i 1506 src/dps8/dps8_console.c i 1533 src/dps8/dps8_console.c for (int i = 0; i < 6; i ++) { i 1559 src/dps8/dps8_console.c for (uint i = 0; i < lp; i ++) { i 1575 src/dps8/dps8_console.c for (int i = 0; i < 4; i ++) { i 1915 src/dps8/dps8_console.c for (size_t i = 0; i < l; i ++) i 1916 src/dps8/dps8_console.c sim_putchar (str[i]); i 144 src/dps8/dps8_cpu.c for (int i = 0; i < (cpus[cpu_unit_idx].tweaks.l68_mode ? N_L68_CPU_PORTS : N_DPS8M_CPU_PORTS); i ++) i 147 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.enable [i]); i 149 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.init_enable [i]); i 151 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.assignment [i]); i 153 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.interlace [i]); i 155 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.store_size [i]); i 721 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 722 src/dps8/dps8_cpu.c if (stall_points[i].segno || stall_points[i].offset) i 724 src/dps8/dps8_cpu.c sim_printf ("%2ld %05o:%06o %6lu\n", (long)i, stall_points[i].segno, i 725 src/dps8/dps8_cpu.c stall_points[i].offset, (unsigned long)stall_points[i].time); i 774 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 887 src/dps8/dps8_cpu.c for (uint i = 0; i < MEMSIZE; i ++) i 891 src/dps8/dps8_cpu.c M[i] = (M[i] & ~(MASK36 | MEM_LOCKED)) | MEM_UNINITIALIZED; i 893 src/dps8/dps8_cpu.c M[i] = (M[i] & ~(MASK36)) | MEM_UNINITIALIZED; i 1433 src/dps8/dps8_cpu.c for (uint i = 0; i < 8; i ++) i 1436 src/dps8/dps8_cpu.c sim_msg (" %9lld\r\n", (long long int) cpus[i].instrCnt); i 1438 src/dps8/dps8_cpu.c sim_msg (" %'9lld\r\n", (long long int) cpus[i].instrCnt); i 1440 src/dps8/dps8_cpu.c cpus[i].instrCnt = 0; i 1529 src/dps8/dps8_cpu.c for (int i = 0; i < N_FAULTS; i ++) i 1530 src/dps8/dps8_cpu.c cpu.faultCnt [i] = 0; i 1539 src/dps8/dps8_cpu.c for (uint i = 0; i < N_CPU_UNITS_MAX; i ++) i 1541 src/dps8/dps8_cpu.c cpu_reset_unit_idx (i, true); i 1654 src/dps8/dps8_cpu.c for (size_t i=0; i < sizeof( pt ); i++) i 1656 src/dps8/dps8_cpu.c sim_msg ("%02x", (unsigned)(ptc[i])); i 1873 src/dps8/dps8_cpu.c i 1875 src/dps8/dps8_cpu.c i 2626 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 2627 src/dps8/dps8_cpu.c if (stall_points[i].segno && stall_points[i].segno == cpu.PPR.PSR && i 2628 src/dps8/dps8_cpu.c stall_points[i].offset && stall_points[i].offset == cpu.PPR.IC) i 2631 src/dps8/dps8_cpu.c fprintf (stderr, "%10lu %s stall %d\n", seqno (), cpunstr[current_running_cpu_idx], i); i 2634 src/dps8/dps8_cpu.c sim_usleep(stall_points[i].time); i 3174 src/dps8/dps8_cpu.c i 3176 src/dps8/dps8_cpu.c i 3178 src/dps8/dps8_cpu.c i 3214 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3215 src/dps8/dps8_cpu.c if (i->info->flags & (READ_OPERAND | STORE_OPERAND)) i 3217 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YPAIR | STORE_YPAIR)) i 3219 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK8 | STORE_YBLOCK8)) i 3221 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK16 | STORE_YBLOCK16)) i 3223 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK32 | STORE_YBLOCK32)) i 3237 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3239 src/dps8/dps8_cpu.c if (RMWOP (i)) i 3241 src/dps8/dps8_cpu.c i 3242 src/dps8/dps8_cpu.c i 3243 src/dps8/dps8_cpu.c i 3244 src/dps8/dps8_cpu.c i 3245 src/dps8/dps8_cpu.c i 3325 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3326 src/dps8/dps8_cpu.c if (RMWOP (i)) i 3760 src/dps8/dps8_cpu.c p->i = GET_I (inst); // "I" inhibit interrupt flag i 4360 src/dps8/dps8_cpu.c int32 i, j, len; i 4396 src/dps8/dps8_cpu.c for (i = j = 0; i < len; ++i) i 4398 src/dps8/dps8_cpu.c if ('\n' == buf[i]) i 4400 src/dps8/dps8_cpu.c if (i >= j) i 4402 src/dps8/dps8_cpu.c if ((i != j) || (i == 0)) i 4406 src/dps8/dps8_cpu.c current_running_cpu_idx, dptr->name, debug_type, i-j, &buf[j]); i 4409 src/dps8/dps8_cpu.c j = i + 1; i 686 src/dps8/dps8_cpu.h bool i; // interrupt inhibit bit. i 2182 src/dps8/dps8_cpu.h if ((i & 0xff) == 0) \ i 2204 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2206 src/dps8/dps8_cpu.h MEM_LOCKED_BIT) == 1 && i > 0) \ i 2208 src/dps8/dps8_cpu.h i--; \ i 2211 src/dps8/dps8_cpu.h if (i == 0) \ i 2217 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2219 src/dps8/dps8_cpu.h cpu.lockWait += (DEADLOCK_DETECT-i); \ i 2220 src/dps8/dps8_cpu.h cpu.lockWaitMax = ((DEADLOCK_DETECT-i) > cpu.lockWaitMax) ? \ i 2221 src/dps8/dps8_cpu.h (DEADLOCK_DETECT-i) : cpu.lockWaitMax; \ i 2246 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2249 src/dps8/dps8_cpu.h && i > 0) \ i 2251 src/dps8/dps8_cpu.h i--; \ i 2254 src/dps8/dps8_cpu.h if (i == 0) \ i 2260 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2262 src/dps8/dps8_cpu.h cpu.lockWait += (DEADLOCK_DETECT-i); \ i 2263 src/dps8/dps8_cpu.h cpu.lockWaitMax = ((DEADLOCK_DETECT-i) > \ i 2264 src/dps8/dps8_cpu.h cpu.lockWaitMax) ? (DEADLOCK_DETECT-i) : \ i 2297 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2299 src/dps8/dps8_cpu.h MEM_LOCKED) & MEM_LOCKED) && i > 0) \ i 2301 src/dps8/dps8_cpu.h i--; \ i 2304 src/dps8/dps8_cpu.h if (i == 0) \ i 2310 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2312 src/dps8/dps8_cpu.h cpu.lockWait += (DEADLOCK_DETECT-i); \ i 2313 src/dps8/dps8_cpu.h cpu.lockWaitMax = ((DEADLOCK_DETECT-i) > cpu.lockWaitMax) ? \ i 2314 src/dps8/dps8_cpu.h (DEADLOCK_DETECT-i) : cpu.lockWaitMax; \ i 2340 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) i 2342 src/dps8/dps8_cpu.h core_read (addr + i, data + i, ctx); i 2350 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) i 2352 src/dps8/dps8_cpu.h core_write (addr + i, data [i], ctx); i 264 src/dps8/dps8_crdpun.c for (int i = 0; i < N_PUN_UNITS_MAX; i ++) i 266 src/dps8/dps8_crdpun.c pun_state [i] . punfile_raw = -1; i 267 src/dps8/dps8_crdpun.c pun_state [i] . current_state = Idle; i 678 src/dps8/dps8_crdpun.c for (uint i = 0; i < 80; i++) i 680 src/dps8/dps8_crdpun.c sim_printf(" %04o\n", word12_buffer[i]); i 700 src/dps8/dps8_crdpun.c for (uint i = 0; i < tally; i ++) i 702 src/dps8/dps8_crdpun.c sim_printf (" %012llo\n", (unsigned long long)buffer [i]); i 215 src/dps8/dps8_crdrdr.c for (uint i = 0; i < N_RDR_UNITS_MAX; i ++) i 216 src/dps8/dps8_crdrdr.c rdr_state [i] . deckfd = -1; i 222 src/dps8/dps8_crdrdr.c i 376 src/dps8/dps8_crdrdr.c for (size_t i = 0; i < l; i ++) i 665 src/dps8/dps8_crdrdr.c for (uint i = 0; i < 80; i ++) { i 666 src/dps8/dps8_crdrdr.c if (isprint (cardImage [i])) i 667 src/dps8/dps8_crdrdr.c sim_printf ("%c", cardImage [i]); i 669 src/dps8/dps8_crdrdr.c sim_printf ("\\%03o", cardImage [i]); i 680 src/dps8/dps8_crdrdr.c for (uint i = 0; i < 27; i ++) i 681 src/dps8/dps8_crdrdr.c buffer [i] = extr36 ((uint8 *) rawCardImage, i); i 692 src/dps8/dps8_crdrdr.c i 693 src/dps8/dps8_crdrdr.c i 731 src/dps8/dps8_crdrdr.c i 732 src/dps8/dps8_crdrdr.c i 733 src/dps8/dps8_crdrdr.c i 293 src/dps8/dps8_decimal.c i 294 src/dps8/dps8_decimal.c i 335 src/dps8/dps8_decimal.c i 336 src/dps8/dps8_decimal.c i 377 src/dps8/dps8_decimal.c i 378 src/dps8/dps8_decimal.c i 456 src/dps8/dps8_decimal.c i 457 src/dps8/dps8_decimal.c i 479 src/dps8/dps8_decimal.c i 480 src/dps8/dps8_decimal.c i 519 src/dps8/dps8_decimal.c i 520 src/dps8/dps8_decimal.c i 554 src/dps8/dps8_decimal.c i 555 src/dps8/dps8_decimal.c i 579 src/dps8/dps8_decimal.c i 580 src/dps8/dps8_decimal.c i 614 src/dps8/dps8_decimal.c i 617 src/dps8/dps8_decimal.c i 638 src/dps8/dps8_decimal.c i 639 src/dps8/dps8_decimal.c i 663 src/dps8/dps8_decimal.c i 664 src/dps8/dps8_decimal.c i 677 src/dps8/dps8_decimal.c i 678 src/dps8/dps8_decimal.c i 806 src/dps8/dps8_decimal.c for (int i = 0; i < nout; i ++) { i 807 src/dps8/dps8_decimal.c if (i < justif) i 808 src/dps8/dps8_decimal.c out [i] = '0'; i 810 src/dps8/dps8_decimal.c out [i] = tmp [i - justif] + '0'; i 854 src/dps8/dps8_decimal.c i 855 src/dps8/dps8_decimal.c i 856 src/dps8/dps8_decimal.c i 858 src/dps8/dps8_decimal.c i 383 src/dps8/dps8_disk.c uint i; i 384 src/dps8/dps8_disk.c for (i = 0; i < N_DISK_TYPES; i++) i 386 src/dps8/dps8_disk.c if (strcasecmp (cptr, diskTypes[i].typename) == 0) i 389 src/dps8/dps8_disk.c if (i >= N_DISK_TYPES) i 404 src/dps8/dps8_disk.c dsk_states[diskUnitIdx].typeIdx = i; i 405 src/dps8/dps8_disk.c dsk_unit[diskUnitIdx].capac = (t_addr) diskTypes[i].capac; i 406 src/dps8/dps8_disk.c dsk_states[diskUnitIdx].tAndDCapac = tAndDCapac[i]; i 686 src/dps8/dps8_disk.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) i 689 src/dps8/dps8_disk.c pthread_mutex_init (& dsk_states[i].dsk_lock, & scu_attr); i 691 src/dps8/dps8_disk.c pthread_mutex_init (& dsk_states[i].dsk_lock, NULL); i 925 src/dps8/dps8_disk.c for (uint i = 0; i < tally; i ++) i 930 src/dps8/dps8_disk.c buffer[i] = w; i 997 src/dps8/dps8_disk.c for (uint i = 0; i < tally; i ++) i 1000 src/dps8/dps8_disk.c buffer[i]); i 574 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 575 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 579 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], p -> SNR, p -> cachedAddr + i); i 584 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 585 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 587 src/dps8/dps8_eis.c Write1 (p->cachedAddr+i, p -> cachedParagraph[i], true); i 588 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 602 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 603 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 607 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], cpu.TPR.TSR, p -> cachedAddr + i); i 612 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 613 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 615 src/dps8/dps8_eis.c Write1 (p->cachedAddr+i, p -> cachedParagraph[i], false); i 616 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 655 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 658 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], p -> SNR, paragraphAddress + i); i 675 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 678 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], cpu.TPR.TSR, paragraphAddress + i); i 683 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 684 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 817 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 821 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 825 src/dps8/dps8_eis.c __func__, data [i], p -> SNR, addressN + i); i 841 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 844 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 879 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 883 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 887 src/dps8/dps8_eis.c __func__, data [i], p -> SNR, addressN + i); i 903 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 906 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 912 src/dps8/dps8_eis.c static word9 EISget469 (int k, uint i) i 933 src/dps8/dps8_eis.c uint nChars = i + e -> CN [k - 1]; i 974 src/dps8/dps8_eis.c static void EISput469 (int k, uint i, word9 c469) i 995 src/dps8/dps8_eis.c uint nChars = i + e -> CN [k - 1]; i 1324 src/dps8/dps8_eis.c for (int i = 0; i < 3; i ++) i 1326 src/dps8/dps8_eis.c if (i < cpu.currentInstruction.info -> ndes) i 1327 src/dps8/dps8_eis.c setupOperandDescriptor (i + 1); i 1329 src/dps8/dps8_eis.c setupOperandDescriptorCache (i + 1); i 4519 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 4520 src/dps8/dps8_eis.c pg [i] = w; i 5337 src/dps8/dps8_eis.c for(int i = 0 ; i < 8 ; i += 1) i 5349 src/dps8/dps8_eis.c e->editInsertionTable[i] = entry & 0777; // keep to 9-bits i 7810 src/dps8/dps8_eis.c for (int i = 0 ; i < n2 ; i ++) i 7815 src/dps8/dps8_eis.c (word9) (res[i] - '0')); i 7818 src/dps8/dps8_eis.c EISwrite49 (& e->ADDR2, & pos, (int) dstTN, (word9) res[i]); i 8912 src/dps8/dps8_eis.c uint i; i 8913 src/dps8/dps8_eis.c for(i = 0 ; i < min(e->N1, e->N2) ; i += 1) i 8918 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "cmpb(min(e->N1, e->N2)) i %d b1 %d b2 %d\n", i, b1, b2); i 8934 src/dps8/dps8_eis.c for(; i < e->N2 ; i += 1) i 8938 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "cmpb(e->N1 < e->N2) i %d b1fill %d b2 %d\n", i, b1, b2); i 8954 src/dps8/dps8_eis.c for(; i < e->N1 ; i += 1) i 8958 src/dps8/dps8_eis.c sim_debug (DBG_TRACEEXT, & cpu_dev, "cmpb(e->N1 > e->N2) i %d b1 %d b2fill %d\n", i, b1, b2); i 9582 src/dps8/dps8_eis.c int i; i 9583 src/dps8/dps8_eis.c for (i=30;i>=0;i--) { i 9588 src/dps8/dps8_eis.c tmp[i] = (char) r + '0'; i 9604 src/dps8/dps8_eis.c int i; i 9605 src/dps8/dps8_eis.c for (i=30;i>=0;i--) { i 9606 src/dps8/dps8_eis.c tmp[i] = x%10 + '0'; i 9614 src/dps8/dps8_eis.c decNumber *op1 = decNumberFromString(&_1, tmp+i, &set); i 9652 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 9656 src/dps8/dps8_eis.c EISwrite49(&e->ADDR2, &pos, (int) dstTN, (word9) (res[i] - '0')); i 9659 src/dps8/dps8_eis.c EISwrite49(&e->ADDR2, &pos, (int) dstTN, (word9) res[i]); i 10030 src/dps8/dps8_eis.c for (int i = 0; i < n1; i++) { i 10034 src/dps8/dps8_eis.c x = add_128 (x, construct_128 (0, (uint) e->inBuffer[i])); i 10046 src/dps8/dps8_eis.c for (int i = 0; i < n1; i++) { i 10048 src/dps8/dps8_eis.c x += e->inBuffer[i]; i 10065 src/dps8/dps8_eis.c for(int i = 0; i < (int)e->N2; i++) { i 10256 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 10637 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 10704 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 10708 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 10711 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 10949 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 11016 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 11020 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11023 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11281 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 11346 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 11350 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11353 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11615 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 11619 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11622 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11921 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 11925 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11928 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 12104 src/dps8/dps8_eis.c i 12105 src/dps8/dps8_eis.c i 12117 src/dps8/dps8_eis.c i 12118 src/dps8/dps8_eis.c i 12125 src/dps8/dps8_eis.c i 12126 src/dps8/dps8_eis.c i 12127 src/dps8/dps8_eis.c i 12129 src/dps8/dps8_eis.c i 12414 src/dps8/dps8_eis.c i 12415 src/dps8/dps8_eis.c i 12439 src/dps8/dps8_eis.c i 12440 src/dps8/dps8_eis.c i 12529 src/dps8/dps8_eis.c i 12530 src/dps8/dps8_eis.c i 12535 src/dps8/dps8_eis.c i 12536 src/dps8/dps8_eis.c i 12575 src/dps8/dps8_eis.c i 12576 src/dps8/dps8_eis.c i 12600 src/dps8/dps8_eis.c i 12601 src/dps8/dps8_eis.c i 12631 src/dps8/dps8_eis.c i 12634 src/dps8/dps8_eis.c i 12659 src/dps8/dps8_eis.c i 12660 src/dps8/dps8_eis.c i 12670 src/dps8/dps8_eis.c i 12671 src/dps8/dps8_eis.c i 12698 src/dps8/dps8_eis.c i 12699 src/dps8/dps8_eis.c i 12706 src/dps8/dps8_eis.c i 12707 src/dps8/dps8_eis.c i 12725 src/dps8/dps8_eis.c i 12726 src/dps8/dps8_eis.c i 12916 src/dps8/dps8_eis.c int clz1, clz2, i; i 12917 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) i 12918 src/dps8/dps8_eis.c if (inBufferop1[i]!=0) i 12920 src/dps8/dps8_eis.c clz1 = i; i 12921 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) i 12922 src/dps8/dps8_eis.c if (e->inBuffer[i]!=0) // this still holds op2 digits i 12924 src/dps8/dps8_eis.c clz2 = i; i 13013 src/dps8/dps8_eis.c for (int i = n2; i > 0; i--) // incl.zero terminator i 13014 src/dps8/dps8_eis.c res[i] = res[i-1]; i 13058 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 13062 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 13065 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 13344 src/dps8/dps8_eis.c int clz1, clz2, i; i 13345 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) i 13346 src/dps8/dps8_eis.c if (inBufferop1[i]!=0) i 13348 src/dps8/dps8_eis.c clz1 = i; i 13349 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) i 13350 src/dps8/dps8_eis.c if (e->inBuffer[i]!=0) // this still holds op2 digits i 13352 src/dps8/dps8_eis.c clz2 = i; i 13441 src/dps8/dps8_eis.c for (int i = n3; i > 0; i--) // incl.zero terminator i 13442 src/dps8/dps8_eis.c res[i] = res[i-1]; i 13488 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 13492 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 13495 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 385 src/dps8/dps8_fnp2.c i 400 src/dps8/dps8_fnp2.c for (uint i = 0; i < 4; i ++) i 401 src/dps8/dps8_fnp2.c if (! fudp -> fnpMBXinUse [i]) i 402 src/dps8/dps8_fnp2.c return (int) i; i 518 src/dps8/dps8_fnp2.c i 520 src/dps8/dps8_fnp2.c i 521 src/dps8/dps8_fnp2.c i 523 src/dps8/dps8_fnp2.c i 531 src/dps8/dps8_fnp2.c i 533 src/dps8/dps8_fnp2.c i 534 src/dps8/dps8_fnp2.c i 536 src/dps8/dps8_fnp2.c i 542 src/dps8/dps8_fnp2.c for (uint i = 0; i < n_chars; i += 4, j++) i 545 src/dps8/dps8_fnp2.c if (i < linep->nPos) i 546 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 0, linep->buffer [i]); i 547 src/dps8/dps8_fnp2.c if (i + 1 < linep->nPos) i 548 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 9, linep->buffer [i + 1]); i 549 src/dps8/dps8_fnp2.c if (i + 2 < linep->nPos) i 550 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 18, linep->buffer [i + 2]); i 551 src/dps8/dps8_fnp2.c if (i + 3 < linep->nPos) i 552 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 27, linep->buffer [i + 3]); i 569 src/dps8/dps8_fnp2.c i 570 src/dps8/dps8_fnp2.c i 843 src/dps8/dps8_fnp2.c for(int i = 0 ; i < nSpaces ; i += 1) i 1310 src/dps8/dps8_fnp2.c i 1312 src/dps8/dps8_fnp2.c i 1328 src/dps8/dps8_fnp2.c i 1330 src/dps8/dps8_fnp2.c i 1664 src/dps8/dps8_fnp2.c i 1665 src/dps8/dps8_fnp2.c i 1666 src/dps8/dps8_fnp2.c i 1668 src/dps8/dps8_fnp2.c i 2082 src/dps8/dps8_fnp2.c for (int i = 0; i < n_fw_entries; i ++) i 2084 src/dps8/dps8_fnp2.c struct fw_entry_s * p = fw_entries + i; i 2548 src/dps8/dps8_fnp2.c for (uint i = 0; i < l; i ++) i 2549 src/dps8/dps8_fnp2.c buf[i] = a2e[msg[i]]; i 2671 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, "%c", isgraph (e2a[buf[i]]) ? e2a[buf[i]] : '.'); i 2673 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, " %02x", buf[i]); i 65 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n; i ++) i 66 src/dps8/dps8_fnp2_iomcmd.c data [i] = M [addr + i] & DMASK; i 126 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 8; i ++) i 128 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("CS mbx %d\n", i); i 130 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word1); i 132 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word2); i 134 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [0]); i 136 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [1]); i 138 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [2]); i 140 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word6); i 142 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 4; i ++) i 144 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("FNP mbx %d\n", i); i 146 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].word1); i 148 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].word2); i 150 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [0]); i 152 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [1]); i 154 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [2]); i 170 src/dps8/dps8_fnp2_iomcmd.c for (uint i=0; i < 3; i++) i 171 src/dps8/dps8_fnp2_iomcmd.c iom_direct_data_service (decoded_p->iom_unit, decoded_p->chan_num, decoded_p->smbx+COMMAND_DATA + i, & command_data [i], direct_load); i 489 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < echoTableLen; i ++) i 492 src/dps8/dps8_fnp2_iomcmd.c decoded_p->chan_num, data_addr + i, & echoTable [i], i 499 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 8; i ++) i 501 src/dps8/dps8_fnp2_iomcmd.c word36 w = echoTable [i]; i 514 src/dps8/dps8_fnp2_iomcmd.c i 517 src/dps8/dps8_fnp2_iomcmd.c i 1079 src/dps8/dps8_fnp2_iomcmd.c i 1080 src/dps8/dps8_fnp2_iomcmd.c i 1086 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < tally; i ++) i 1089 src/dps8/dps8_fnp2_iomcmd.c if (data [i] == 0x100) i 1104 src/dps8/dps8_fnp2_iomcmd.c linep->frame[linep->frameLen ++] = (uint8_t) (data [i] & 0xff); i 1135 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < tally; i ++) i 1137 src/dps8/dps8_fnp2_iomcmd.c uint byteOff = i % 4; i 1140 src/dps8/dps8_fnp2_iomcmd.c wordOff = i / 4; i 1148 src/dps8/dps8_fnp2_iomcmd.c data [i] = byte & 0377; i 1150 src/dps8/dps8_fnp2_iomcmd.c data9 [i] = (uint16_t) byte; i 1158 src/dps8/dps8_fnp2_iomcmd.c i 1160 src/dps8/dps8_fnp2_iomcmd.c i 1161 src/dps8/dps8_fnp2_iomcmd.c i 1163 src/dps8/dps8_fnp2_iomcmd.c i 1208 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < dcwCnt; i ++) i 1213 src/dps8/dps8_fnp2_iomcmd.c iom_direct_data_service (decoded_p->iom_unit, decoded_p->chan_num, dcwAddr + i, & dcw, direct_load); i 1288 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < linep->nPos; i ++) i 1290 src/dps8/dps8_fnp2_iomcmd.c if (isgraph (linep->buffer [i])) i 1291 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("%c", linep->buffer [i]); i 1293 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("\\%03o", linep->buffer [i]); i 1301 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n_chars_in_buf; i += 4) i 1304 src/dps8/dps8_fnp2_iomcmd.c if (i < n_chars_in_buf) //-V547 i 1306 src/dps8/dps8_fnp2_iomcmd.c if (i + 1 < n_chars_in_buf) i 1308 src/dps8/dps8_fnp2_iomcmd.c if (i + 2 < n_chars_in_buf) i 1310 src/dps8/dps8_fnp2_iomcmd.c if (i + 3 < n_chars_in_buf) i 1891 src/dps8/dps8_fnp2_iomcmd.c i 1892 src/dps8/dps8_fnp2_iomcmd.c i 1894 src/dps8/dps8_fnp2_iomcmd.c i 1896 src/dps8/dps8_fnp2_iomcmd.c i 1914 src/dps8/dps8_fnp2_iomcmd.c i 1915 src/dps8/dps8_fnp2_iomcmd.c i 183 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 187 src/dps8/dps8_iefp.c address + i, result [i]); i 203 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 207 src/dps8/dps8_iefp.c address + i, result [i]); i 229 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 233 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 247 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 251 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 257 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 261 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 300 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 304 src/dps8/dps8_iefp.c address + i, result [i]); i 308 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 309 src/dps8/dps8_iefp.c HDBGMRead (cpu.iefpFinalAddress + i, result [i], "Read8 ABBR"); i 320 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 324 src/dps8/dps8_iefp.c address + i, result [i]); i 328 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 329 src/dps8/dps8_iefp.c HDBGMRead (address + i, result [i], "Read8 ABS"); i 347 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 351 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 355 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 356 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result[i], "Read8 BAR"); i 369 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 373 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 377 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 378 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "Read8"); i 425 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 429 src/dps8/dps8_iefp.c address + i, result [i]); i 433 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 434 src/dps8/dps8_iefp.c HDBGMRead (cpu.iefpFinalAddress + i, result [i], "ReadPage AB"); i 445 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 449 src/dps8/dps8_iefp.c address + i, result [i]); i 453 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 454 src/dps8/dps8_iefp.c HDBGMRead (address + i, result [i], "ReadPage ABS"); i 472 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 476 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 480 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 481 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "ReadPage B"); i 495 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 499 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 503 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 504 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "ReadPage"); i 800 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 804 src/dps8/dps8_iefp.c address + i, data [i]); i 808 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 809 src/dps8/dps8_iefp.c HDBGMWrite (cpu.iefpFinalAddress + i, data [i], "Write8 ABBR"); i 820 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 824 src/dps8/dps8_iefp.c address + i, data [i]); i 828 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 829 src/dps8/dps8_iefp.c HDBGMWrite (address + i, data [i], "Write8 AB"); i 847 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 851 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 855 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 856 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "Write8 BR"); i 867 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 871 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 875 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 876 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "Write8"); i 932 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 936 src/dps8/dps8_iefp.c address + i, data [i]); i 940 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 941 src/dps8/dps8_iefp.c HDBGMWrite (cpu.iefpFinalAddress + i, data [i], "WritePage ABBR"); i 952 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 956 src/dps8/dps8_iefp.c address + i, data [i]); i 960 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 961 src/dps8/dps8_iefp.c HDBGMWrite (address + i, data [i], "WritePage AB"); i 979 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 984 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 988 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 989 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "WritePage BR"); i 999 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1003 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1007 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1008 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "WritePage"); i 90 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 94 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); i 99 src/dps8/dps8_ins.c if (! (i->info->flags & NO_TAG)) i 169 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 173 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); i 175 src/dps8/dps8_ins.c "%s a %d address %08o\n", __func__, i->b29, cpu.TPR.CA); i 180 src/dps8/dps8_ins.c if (! (i->info->flags & NO_TAG)) i 243 src/dps8/dps8_ins.c read_operand (cpu.TPR.CA, ((i->info->flags & RMW) == RMW) ? OPERAND_RMW : OPERAND_READ); i 522 src/dps8/dps8_ins.c int i; i 523 src/dps8/dps8_ins.c for (i=0; i < 11; i++) i 525 src/dps8/dps8_ins.c if (memcmp (words, rewrite_table[i].was, 8*sizeof (word36)) == 0) i 527 src/dps8/dps8_ins.c memcpy (words, rewrite_table[i].should_be, 8*sizeof (word36)); i 528 src/dps8/dps8_ins.c sim_warn("%s: scu rewrite %d: %s\n", __func__, i, rewrite_table[i].name); i 697 src/dps8/dps8_ins.c for (int i = 0; i < 8; i ++) i 699 src/dps8/dps8_ins.c words[i] = cpu.du.image[i]; i 811 src/dps8/dps8_ins.c for (int i = 0; i < 8; i ++) i 813 src/dps8/dps8_ins.c cpu.du.image[i] = words[i]; i 1204 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 1221 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 1243 src/dps8/dps8_ins.c cpu.currentInstruction.b29, cpu.currentInstruction.i, i 1262 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 2271 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 2276 src/dps8/dps8_ins.c if (i->info->ndes > 0) i 2287 src/dps8/dps8_ins.c PNL (cpu.ou.RS = (word9) i->opcode); i 2297 src/dps8/dps8_ins.c uint32 opcode10 = i->opcode10; i 2317 src/dps8/dps8_ins.c cpu.ou.opsz = (opcodes10[i->opcode10].reg_use >> 12) & 037; i 2318 src/dps8/dps8_ins.c word10 reguse = (opcodes10[i->opcode10].reg_use) & MASK10; i 3398 src/dps8/dps8_ins.c SCF (i->stiTally, cpu.CY, I_TALLY); i 3737 src/dps8/dps8_ins.c ((i->tag & 040) ? 0777000000000u : 0) | i 3738 src/dps8/dps8_ins.c ((i->tag & 020) ? 0000777000000u : 0) | i 3739 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000000777000u : 0) | i 3740 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000000777u : 0); i 3755 src/dps8/dps8_ins.c ((i->tag & 040) ? 0777000000000u : 0) | i 3756 src/dps8/dps8_ins.c ((i->tag & 020) ? 0000777000000u : 0) | i 3757 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000000777000u : 0) | i 3758 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000000777u : 0); i 3771 src/dps8/dps8_ins.c SCF (i->stiTally, cpu.CY, I_TALLY); i 3795 src/dps8/dps8_ins.c ((i->tag & 040) ? 0770000000000u : 0) | i 3796 src/dps8/dps8_ins.c ((i->tag & 020) ? 0007700000000u : 0) | i 3797 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000077000000u : 0) | i 3798 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000770000u : 0) | i 3799 src/dps8/dps8_ins.c ((i->tag & 002) ? 0000000007700u : 0) | i 3800 src/dps8/dps8_ins.c ((i->tag & 001) ? 0000000000077u : 0); i 3815 src/dps8/dps8_ins.c ((i->tag & 040) ? 0770000000000u : 0) | i 3816 src/dps8/dps8_ins.c ((i->tag & 020) ? 0007700000000u : 0) | i 3817 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000077000000u : 0) | i 3818 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000770000u : 0) | i 3819 src/dps8/dps8_ins.c ((i->tag & 002) ? 0000000007700u : 0) | i 3820 src/dps8/dps8_ins.c ((i->tag & 001) ? 0000000000077u : 0); i 6913 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 6915 src/dps8/dps8_ins.c word1 c = (i->address >> 7) & 1; i 6918 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 6930 src/dps8/dps8_ins.c uint c = (i->address >> 7) & 1; i 6931 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 6934 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 6946 src/dps8/dps8_ins.c uint c = (i->address >> 7) & 1; i 6947 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 6950 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 7072 src/dps8/dps8_ins.c switch (i->tag) i 7163 src/dps8/dps8_ins.c for (uint i = 0; i < N_HIST_SETS; i ++) i 7164 src/dps8/dps8_ins.c add_history_force (i, 0, 0); i 7177 src/dps8/dps8_ins.c for (uint i = 0; i < N_HIST_SETS; i ++) i 7178 src/dps8/dps8_ins.c add_history_force (i, MASK36, MASK36); i 7231 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7233 src/dps8/dps8_ins.c word4 m = cpu.PTWAM[i].USE; i 7234 src/dps8/dps8_ins.c cpu.PTWAM[m].POINTER = getbits36_15 (cpu.Yblock16[i], 0); i 7235 src/dps8/dps8_ins.c cpu.PTWAM[m].PAGENO = getbits36_12 (cpu.Yblock16[i], 15); i 7236 src/dps8/dps8_ins.c cpu.PTWAM[m].FE = getbits36_1 (cpu.Yblock16[i], 27); i 7247 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7249 src/dps8/dps8_ins.c word4 m = cpu.PTWAM[i].USE; i 7250 src/dps8/dps8_ins.c cpu.PTWAM[m].ADDR = getbits36_18 (cpu.Yblock16[i], 0); i 7251 src/dps8/dps8_ins.c cpu.PTWAM[m].M = getbits36_1 (cpu.Yblock16[i], 29); i 7275 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7277 src/dps8/dps8_ins.c word4 m = cpu.SDWAM[i].USE; i 7278 src/dps8/dps8_ins.c cpu.SDWAM[m].POINTER = getbits36_15 (cpu.Yblock16[i], 0); i 7279 src/dps8/dps8_ins.c cpu.SDWAM[m].FE = getbits36_1 (cpu.Yblock16[i], 27); i 7293 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7295 src/dps8/dps8_ins.c word4 m = cpu.SDWAM[i].USE; i 7323 src/dps8/dps8_ins.c uint tag = (i->tag) & MASK6; i 7610 src/dps8/dps8_ins.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 7612 src/dps8/dps8_ins.c cpu.PTWAM[i].FE = 0; i 7613 src/dps8/dps8_ins.c L68_ (cpu.PTWAM[i].USE = (word4) i;) i 7614 src/dps8/dps8_ins.c DPS8M_ (cpu.PTWAM[i].USE = 0;) i 7655 src/dps8/dps8_ins.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 7657 src/dps8/dps8_ins.c cpu.SDWAM[i].FE = 0; i 7658 src/dps8/dps8_ins.c L68_ (cpu.SDWAM[i].USE = (word4) i;) i 7659 src/dps8/dps8_ins.c DPS8M_ (cpu.SDWAM[i].USE = 0;) i 9086 src/dps8/dps8_ins.c cpu.ou.STR_OP = (is_ou && (i->info->flags & (STORE_OPERAND | STORE_YPAIR))) ? 1 : 0; i 9110 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 9116 src/dps8/dps8_ins.c word36 op = M[i->address]; i 9122 src/dps8/dps8_ins.c sim_printf ("%lld\n", (long long int) M[i->address+1]); i 9183 src/dps8/dps8_ins.c i 9245 src/dps8/dps8_ins.c i 9247 src/dps8/dps8_ins.c i 9248 src/dps8/dps8_ins.c i 9295 src/dps8/dps8_ins.c i 9300 src/dps8/dps8_ins.c i 9304 src/dps8/dps8_ins.c i 9307 src/dps8/dps8_ins.c i 993 src/dps8/dps8_iom.c int i; i 994 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 995 src/dps8/dps8_iom.c sim_printf (" %03o", p -> configSwPortAddress[i]); i 998 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 999 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortInterface[i]); i 1002 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1003 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortEnable[i]); i 1006 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1007 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortSysinitEnable[i]); i 1010 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1011 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortHalfsize[i]); i 1014 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1015 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortStoresize[i]); i 3182 src/dps8/dps8_iom.c for (int i = 0; i < 8; i ++) i 3183 src/dps8/dps8_iom.c dumpDCW (M[p->LPW_DCW_PTR - 1 + i], p->LPW_23_REL); i 3565 src/dps8/dps8_iom.c for (uint i = 0; i < N_IOM_UNITS_MAX; i++) i 3568 src/dps8/dps8_iom.c iom_chan_data_t * p = &iom_chan_data [i] [j]; i 3572 src/dps8/dps8_iom.c doPayloadChannel (i, j); i 2854 src/dps8/dps8_math.c for (uint i = 0; i < 35; i ++) { i 2859 src/dps8/dps8_math.c quot |= (1llu << (34 - i)); i 285 src/dps8/dps8_math128.c int i, j; i 287 src/dps8/dps8_math128.c for (i = 0; i < m; i++) i 288 src/dps8/dps8_math128.c w[i] = 0; i 293 src/dps8/dps8_math128.c for (i = 0; i < m; i++) i 295 src/dps8/dps8_math128.c t = (uint64_t) u[i] * (uint64_t) v[j] + (uint64_t) w[i + j] + k; i 297 src/dps8/dps8_math128.c w[i + j] = (uint32_t) t; // (i.e., t & 0xFFFF). i 326 src/dps8/dps8_math128.c for (int i = 0; i < m; i++) i 328 src/dps8/dps8_math128.c int t = (int) w[i + n] - (int) u[i] - b; i 329 src/dps8/dps8_math128.c w[i + n] = (uint32_t) t; i 390 src/dps8/dps8_math128.c int s, i, j, t, k; i 416 src/dps8/dps8_math128.c for (i = n - 1; i > 0; i--) i 417 src/dps8/dps8_math128.c vn[i] = (uint16_t) (v[i] << s) | (uint16_t) (v[i-1] >> (16-s)); i 423 src/dps8/dps8_math128.c for (i = m - 1; i > 0; i--) i 424 src/dps8/dps8_math128.c un[i] = (uint16_t) (u[i] << s) | (uint16_t) (u[i-1] >> (16-s)); i 441 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 443 src/dps8/dps8_math128.c p = (unsigned)qhat*(unsigned long long)vn[i]; i 444 src/dps8/dps8_math128.c t = (int32_t) un[i+j] - k - (int32_t) (p & 0xFFFF); i 445 src/dps8/dps8_math128.c un[i+j] = (uint16_t) t; i 456 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 458 src/dps8/dps8_math128.c t = un[i+j] + vn[i] + k; i 459 src/dps8/dps8_math128.c un[i+j] = (uint16_t) t; i 469 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 470 src/dps8/dps8_math128.c r[i] = (uint16_t) (un[i] >> s) | (uint16_t) (un[i+1] << (16-s)); i 659 src/dps8/dps8_mt.c int i; i 662 src/dps8/dps8_mt.c for (i = 1; i < N_MT_UNITS_MAX; i ++) i 664 src/dps8/dps8_mt.c rc = sim_tape_set_capac (mt_unit + i, value, cptr, desc); i 841 src/dps8/dps8_mt.c for (int i = 0; i < (int) dptr -> numunits; i ++) i 843 src/dps8/dps8_mt.c sim_tape_reset (& mt_unit [i]); i 965 src/dps8/dps8_mt.c for (int i = 0; i < N_MT_UNITS_MAX; i ++) i 967 src/dps8/dps8_mt.c mt_unit [i] . capac = 40000000; i 1073 src/dps8/dps8_mt.c uint i; i 1075 src/dps8/dps8_mt.c for (i = 0; i < tally; i ++) i 1079 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); i 1082 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); i 1091 src/dps8/dps8_mt.c i 1092 src/dps8/dps8_mt.c i 1093 src/dps8/dps8_mt.c i 1192 src/dps8/dps8_mt.c for (uint i = 0; i < tally; i ++) i 1194 src/dps8/dps8_mt.c putbits36_18 (buf + i, 0, mem [i * 2]); i 1195 src/dps8/dps8_mt.c putbits36_18 (buf + i, 18, mem [i * 2 + 1]); i 1269 src/dps8/dps8_mt.c i 1270 src/dps8/dps8_mt.c i 1271 src/dps8/dps8_mt.c i 1291 src/dps8/dps8_mt.c uint i; i 1292 src/dps8/dps8_mt.c for (i = 0; i < tally; i ++) i 1300 src/dps8/dps8_mt.c buffer [i]); i 1307 src/dps8/dps8_mt.c buffer [i]); i 1320 src/dps8/dps8_mt.c p -> tallyResidue = (word12) (tally - i); i 1412 src/dps8/dps8_mt.c for (uint i = 0; i < bufsz; i ++) i 1413 src/dps8/dps8_mt.c buffer [i] = 0; i 2418 src/dps8/dps8_mt.c int i; i 2419 src/dps8/dps8_mt.c for (i = 0; i < N_MT_UNITS_MAX; i ++) i 2421 src/dps8/dps8_mt.c if (strcmp (drive, tape_states [i] . device_name) == 0) i 2424 src/dps8/dps8_mt.c if (i >= N_MT_UNITS_MAX) i 2429 src/dps8/dps8_mt.c sim_printf ("attachTape selected unit %d\n", i); i 2430 src/dps8/dps8_mt.c loadTape ((uint) i, label, ! withring); i 2464 src/dps8/dps8_mt.c int i; i 2465 src/dps8/dps8_mt.c for (i = 0; i < N_MT_UNITS_MAX; i ++) i 2467 src/dps8/dps8_mt.c if (strcmp (drive, tape_states [i] . device_name) == 0) i 2470 src/dps8/dps8_mt.c if (i >= N_MT_UNITS_MAX) i 2475 src/dps8/dps8_mt.c unloadTape ((uint) i); i 357 src/dps8/dps8_prt.c for (int i = 0; i < N_PRT_UNITS_MAX; i ++) i 359 src/dps8/dps8_prt.c prt_state[i].prtfile = -1; i 360 src/dps8/dps8_prt.c prt_state[i].model = MODEL_1600; i 367 src/dps8/dps8_prt.c i 402 src/dps8/dps8_prt.c uint i; i 403 src/dps8/dps8_prt.c for (i = 0; i < 5; i ++) i 405 src/dps8/dps8_prt.c word9 ch = gc (b, 2 + i); i 408 src/dps8/dps8_prt.c qno[i] = (char) ch; i 415 src/dps8/dps8_prt.c for (i = 0; i < LONGEST; i ++) i 417 src/dps8/dps8_prt.c word9 ch = gc (b, 9 + i); i 422 src/dps8/dps8_prt.c name[i] = (char) ch; i 424 src/dps8/dps8_prt.c name[i] = 0; i 602 src/dps8/dps8_prt.c i 604 src/dps8/dps8_prt.c i 686 src/dps8/dps8_prt.c i 688 src/dps8/dps8_prt.c i 691 src/dps8/dps8_prt.c i 706 src/dps8/dps8_prt.c i 723 src/dps8/dps8_prt.c for (int i = 0; i < slew; i ++) i 743 src/dps8/dps8_prt.c #define get_BCD_char(i) ((uint8_t) ((buffer[i / 6] >> ((5 - i % 6) * 6)) & 077)) i 748 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 750 src/dps8/dps8_prt.c bytes[i] = (uint8_t) bcd_uc [get_BCD_char (i)]; i 768 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 770 src/dps8/dps8_prt.c uint8_t ch = get_BCD_char (i); i 781 src/dps8/dps8_prt.c i ++; i 782 src/dps8/dps8_prt.c uint8_t n = get_BCD_char (i); i 849 src/dps8/dps8_prt.c #define get_ASCII_char(i) ((uint8_t) ((buffer[i / 4] >> ((3 - i % 4) * 9)) & 0377)) i 855 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 857 src/dps8/dps8_prt.c uint8_t ch = get_ASCII_char (i); i 870 src/dps8/dps8_prt.c for (uint i = 0; i < tally * 4; i ++) i 872 src/dps8/dps8_prt.c uint8_t ch = get_ASCII_char (i); i 875 src/dps8/dps8_prt.c i ++; i 876 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 886 src/dps8/dps8_prt.c i ++; i 887 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 917 src/dps8/dps8_prt.c i ++; i 918 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 1076 src/dps8/dps8_prt.c i 1077 src/dps8/dps8_prt.c i 1083 src/dps8/dps8_prt.c i 1084 src/dps8/dps8_prt.c i 1085 src/dps8/dps8_prt.c i 1796 src/dps8/dps8_prt.c for (int i = 0; i < N_MODELS; i ++) i 1798 src/dps8/dps8_prt.c if (strcmp (cptr, model_names[i]) == 0) i 1800 src/dps8/dps8_prt.c prt_state[n].model = i; i 1870 src/dps8/dps8_prt.c for (int i = 0; i < N_PRT_UNITS_MAX; i ++) i 1872 src/dps8/dps8_prt.c if (strcmp (buf, prt_state[i].device_name) == 0) i 1874 src/dps8/dps8_prt.c if (prt_state[i].prtfile != -1) i 1876 src/dps8/dps8_prt.c close (prt_state[i].prtfile); i 1877 src/dps8/dps8_prt.c prt_state[i].prtfile = -1; i 645 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 647 src/dps8/dps8_scu.c struct ports * pp = scup -> ports + i; i 650 src/dps8/dps8_scu.c i, scup->port_enable[i] ? "ENABLE " : "DISABLE", i 657 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 661 src/dps8/dps8_scu.c sim_printf (" Cell %c\n", 'A' + i); i 663 src/dps8/dps8_scu.c scup -> exec_intr_mask [i]); i 665 src/dps8/dps8_scu.c scup -> mask_enable [i] ? "ENABLE" : "DISABLE"); i 667 src/dps8/dps8_scu.c scup -> mask_assignment [i]); i 722 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 723 src/dps8/dps8_scu.c sim_printf (" %3o", sw -> port_enable [i]); i 725 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 728 src/dps8/dps8_scu.c 'A' + i, i 729 src/dps8/dps8_scu.c sw->mask_enable[i] ? (map[sw->mask_assignment[i]]) : "Off"); i 1066 src/dps8/dps8_scu.c i 1067 src/dps8/dps8_scu.c i 1069 src/dps8/dps8_scu.c i 1095 src/dps8/dps8_scu.c i 1096 src/dps8/dps8_scu.c i 1098 src/dps8/dps8_scu.c i 1110 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 1112 src/dps8/dps8_scu.c up -> port_enable [i] = sw -> port_enable [i]; i 1115 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 1117 src/dps8/dps8_scu.c up -> mask_enable [i] = sw -> mask_enable [i]; i 1118 src/dps8/dps8_scu.c up -> mask_assignment [i] = sw -> mask_assignment [i]; i 1144 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 1147 src/dps8/dps8_scu.c up -> exec_intr_mask [i] = 037777777777; i 1348 src/dps8/dps8_scu.c for (uint i = 0; i < N_CELL_INTERRUPTS; i ++) i 1350 src/dps8/dps8_scu.c if (scu [scu_unit_idx].cells [i]) i 1351 src/dps8/dps8_scu.c buf [i] = '1'; i 1353 src/dps8/dps8_scu.c buf [i] = '0'; i 1538 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1540 src/dps8/dps8_scu.c if (getbits36_1 (rega, i)) i 1541 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i + 16] = 1; i 1550 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1552 src/dps8/dps8_scu.c if (getbits36_1 (rega, i)) i 1553 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i] = 1; i 1563 src/dps8/dps8_scu.c i 1565 src/dps8/dps8_scu.c i 1574 src/dps8/dps8_scu.c i 1576 src/dps8/dps8_scu.c i 1577 src/dps8/dps8_scu.c i 1837 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1839 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i] = i 1840 src/dps8/dps8_scu.c getbits36_1 (rega, i) ? 1 : 0; i 1841 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i + 16] = i 1842 src/dps8/dps8_scu.c getbits36_1 (regq, i) ? 1 : 0; i 1984 src/dps8/dps8_scu.c for (int i = 0; i < 2; i ++) i 1986 src/dps8/dps8_scu.c if (up -> mask_enable [i]) i 1988 src/dps8/dps8_scu.c maskab [i] = (2 << (N_SCU_PORTS - 1 - i 1989 src/dps8/dps8_scu.c up -> mask_assignment [i])) & 0777; i 1992 src/dps8/dps8_scu.c maskab [i] = 0001; i 2119 src/dps8/dps8_scu.c for (uint i = 0; i < N_CELL_INTERRUPTS; i ++) i 2121 src/dps8/dps8_scu.c word1 cell = up -> cells [i] ? 1 : 0; i 2122 src/dps8/dps8_scu.c if (i < 16) i 2123 src/dps8/dps8_scu.c putbits36_1 (rega, i, cell); i 2125 src/dps8/dps8_scu.c putbits36_1 (regq, i - 16, cell); i 2243 src/dps8/dps8_scu.c for (uint i = 0; i < N_SCU_SUBPORTS; i++) i 2245 src/dps8/dps8_scu.c portp->subport_enables [i] = !! (sub_mask & (0200u >> i)); i 2254 src/dps8/dps8_scu.c for (uint i = 0; i < N_SCU_SUBPORTS; i++) i 2256 src/dps8/dps8_scu.c portp->xipmask [i] = !! (sub_mask & (0200u >> i)); i 2257 src/dps8/dps8_scu.c if (portp->xipmask [i]) i 2259 src/dps8/dps8_scu.c val = (int) i; i 284 src/dps8/dps8_socket_dev.c for (uint i = 0; i < N_FDS; i ++) i 285 src/dps8/dps8_socket_dev.c sk_data.fd_unit[i] = -1; i 296 src/dps8/dps8_socket_dev.c for (uint i = 0; i < 8; i ++) i 297 src/dps8/dps8_socket_dev.c work[i] = ' '; i 301 src/dps8/dps8_socket_dev.c for (uint i = 0; i < l; i ++) i 302 src/dps8/dps8_socket_dev.c work[i] = str[i]; i 319 src/dps8/dps8_socket_dev.c for (uint i = 0; i < N_ERRNOS; i ++) i 321 src/dps8/dps8_socket_dev.c if (errnos[i].code == _errno) i 323 src/dps8/dps8_socket_dev.c set_error_str (error_str, errnos[i].name); i 426 src/dps8/dps8_socket_dev.c i 428 src/dps8/dps8_socket_dev.c i 429 src/dps8/dps8_socket_dev.c i 446 src/dps8/dps8_socket_dev.c for (uint i = 0; i < cnt; i ++) i 448 src/dps8/dps8_socket_dev.c uint wordno = (i+4) / 4; i 449 src/dps8/dps8_socket_dev.c uint offset = ((i+4) % 4) * 9; i 451 src/dps8/dps8_socket_dev.c name [i] = (unsigned char) (ch & 255); i 2295 src/dps8/dps8_sys.c for (int i = 0; i < n_book_segments; i ++) i 2296 src/dps8/dps8_sys.c if (strcmp (name, book_segments[i].segname) == 0) i 2297 src/dps8/dps8_sys.c return i; i 2367 src/dps8/dps8_sys.c int i; i 2369 src/dps8/dps8_sys.c for (i = 0; i < n_book_segments; i ++) i 2370 src/dps8/dps8_sys.c if (book_segments[i].segno == (int) segno) i 2373 src/dps8/dps8_sys.c if (i >= n_book_segments) i 2381 src/dps8/dps8_sys.c if (book_components[j].book_segment_number != i) i 2386 src/dps8/dps8_sys.c sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, i 2411 src/dps8/dps8_sys.c sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, i 2421 src/dps8/dps8_sys.c * compname = book_segments[i].segname; i 2424 src/dps8/dps8_sys.c sprintf (buf, "%s:+0%0o", book_segments[i].segname, i 2500 src/dps8/dps8_sys.c int i; i 2501 src/dps8/dps8_sys.c for (i = 0; i < n_book_segments; i ++) i 2502 src/dps8/dps8_sys.c if (strcmp (book_segments[i].segname, segname) == 0) i 2504 src/dps8/dps8_sys.c if (i >= n_book_segments) i 2509 src/dps8/dps8_sys.c if (book_components[j].book_segment_number != i) i 2513 src/dps8/dps8_sys.c * segno = book_segments[i].segno; i 3043 src/dps8/dps8_sys.c i 3045 src/dps8/dps8_sys.c i 3046 src/dps8/dps8_sys.c i 3049 src/dps8/dps8_sys.c i 3594 src/dps8/dps8_sys.c uint i; i 3595 src/dps8/dps8_sys.c for (i = 0; i < MEMSIZE; i ++) i 3596 src/dps8/dps8_sys.c if ((M[i] & DMASK) == value) i 3597 src/dps8/dps8_sys.c sim_msg ("%08o\n", i); i 3753 src/dps8/dps8_sys.c for (int i = n; i < n_dbgevents - 1; i ++) i 3754 src/dps8/dps8_sys.c dbgevents[i] = dbgevents[i + 1]; i 3759 src/dps8/dps8_sys.c for (int i = 0; i < n_dbgevents; i ++) i 3760 src/dps8/dps8_sys.c sim_printf (" %s %05o:%06o %s\r\n", dbgevents[i].t0 ? "T0" : " ", dbgevents[i].segno, i 3761 src/dps8/dps8_sys.c dbgevents[i].offset,dbgevents[i].tag); i 3789 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) { i 3790 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) { i 3791 src/dps8/dps8_sys.c UNIT * unitp = & mt_unit [i]; i 3839 src/dps8/dps8_sys.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) i 3840 src/dps8/dps8_sys.c if (strcmp (dsk_states[i].device_name, name) == 0) i 3843 src/dps8/dps8_sys.c return loadDisk (i, fname, ro); i 3844 src/dps8/dps8_sys.c return unloadDisk (i); i 3847 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) i 3848 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) i 3851 src/dps8/dps8_sys.c return loadTape (i, fname, ro); i 3852 src/dps8/dps8_sys.c return unloadTape (i); i 3867 src/dps8/dps8_sys.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) { i 3868 src/dps8/dps8_sys.c if (strcmp (dsk_states[i].device_name, name) == 0) { i 3869 src/dps8/dps8_sys.c return signal_disk_ready (i); i 3873 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) { i 3874 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) { i 3875 src/dps8/dps8_sys.c return signal_tape (i, 0, 020 /* tape drive to ready */); //-V536 i 4312 src/dps8/dps8_sys.c for (int i = 1; i < 21; ++i) { i 4317 src/dps8/dps8_sys.c if (rnum >= 48) rssuffix[i-1]=rnum; i 4318 src/dps8/dps8_sys.c else rssuffix[i-1]=(char)(((long)random() % 26) + 64) + rcap; i 85 src/dps8/dps8_utils.c struct opcode_s * get_iwb_info (DCDstruct * i) i 87 src/dps8/dps8_utils.c struct opcode_s * p = &opcodes10[i->opcode10]; i 46 src/dps8/dps8_utils.h struct opcode_s * get_iwb_info (DCDstruct *i); i 107 src/dps8/dps8_utils.h i 110 src/dps8/dps8_utils.h i 113 src/dps8/dps8_utils.h i 121 src/dps8/dps8_utils.h static inline word36 getbits36(word36 x, uint i, uint n) { i 123 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)n+1; i 125 src/dps8/dps8_utils.h sim_printf ("getbits36: bad args (%012llu,i=%d,n=%d)\n", (unsigned long long)x, i, n); i 131 src/dps8/dps8_utils.h static inline word1 getbits36_1 (word36 x, uint i) i 134 src/dps8/dps8_utils.h int shift = 35-(int)i; i 136 src/dps8/dps8_utils.h sim_printf ("getbits36_1: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 142 src/dps8/dps8_utils.h static inline word2 getbits36_2 (word36 x, uint i) i 145 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)2+1; i 147 src/dps8/dps8_utils.h sim_printf ("getbits36_2: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 153 src/dps8/dps8_utils.h static inline word3 getbits36_3 (word36 x, uint i) i 156 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)3+1; i 158 src/dps8/dps8_utils.h sim_printf ("getbits36_3: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 164 src/dps8/dps8_utils.h static inline word4 getbits36_4 (word36 x, uint i) i 167 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)4+1; i 169 src/dps8/dps8_utils.h sim_printf ("getbits36_4: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 175 src/dps8/dps8_utils.h static inline word5 getbits36_5 (word36 x, uint i) i 178 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)5+1; i 180 src/dps8/dps8_utils.h sim_printf ("getbits36_5: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 186 src/dps8/dps8_utils.h static inline word6 getbits36_6 (word36 x, uint i) i 189 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)6+1; i 191 src/dps8/dps8_utils.h sim_printf ("getbits36_6: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 197 src/dps8/dps8_utils.h static inline word7 getbits36_7 (word36 x, uint i) i 200 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)7+1; i 202 src/dps8/dps8_utils.h sim_printf ("getbits36_7: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 208 src/dps8/dps8_utils.h static inline word8 getbits36_8 (word36 x, uint i) i 211 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)8+1; i 213 src/dps8/dps8_utils.h sim_printf ("getbits36_8: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 219 src/dps8/dps8_utils.h static inline word9 getbits36_9 (word36 x, uint i) i 222 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)9+1; i 224 src/dps8/dps8_utils.h sim_printf ("getbits36_9: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 230 src/dps8/dps8_utils.h static inline word10 getbits36_10 (word36 x, uint i) i 233 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)10+1; i 235 src/dps8/dps8_utils.h sim_printf ("getbits36_10: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 241 src/dps8/dps8_utils.h static inline word12 getbits36_12 (word36 x, uint i) i 244 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)12+1; i 246 src/dps8/dps8_utils.h sim_printf ("getbits36_12: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 252 src/dps8/dps8_utils.h static inline word14 getbits36_14 (word36 x, uint i) i 255 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)14+1; i 257 src/dps8/dps8_utils.h sim_printf ("getbits36_14: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 263 src/dps8/dps8_utils.h static inline word15 getbits36_15 (word36 x, uint i) i 266 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)15+1; i 268 src/dps8/dps8_utils.h sim_printf ("getbits36_15: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 274 src/dps8/dps8_utils.h static inline word16 getbits36_16 (word36 x, uint i) i 277 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)16+1; i 279 src/dps8/dps8_utils.h sim_printf ("getbits36_16: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 285 src/dps8/dps8_utils.h static inline word18 getbits36_18 (word36 x, uint i) i 288 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)18+1; i 290 src/dps8/dps8_utils.h sim_printf ("getbits36_18: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 296 src/dps8/dps8_utils.h static inline word24 getbits36_24 (word36 x, uint i) i 299 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)24+1; i 301 src/dps8/dps8_utils.h sim_printf ("getbits36_24: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 307 src/dps8/dps8_utils.h static inline word28 getbits36_28 (word36 x, uint i) i 310 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)28+1; i 312 src/dps8/dps8_utils.h sim_printf ("getbits36_28: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 834 src/dps8/dps8_utils.h static inline word18 getbits18 (word18 x, uint i, uint n) i 837 src/dps8/dps8_utils.h int shift = 17 - (int) i - (int) n + 1; i 840 src/dps8/dps8_utils.h sim_printf ("getbits18: bad args (%06o,i=%d,n=%d)\n", x, i, n); i 484 src/dps8/fnpuv.c for (unsigned int i = 0; i < nbufs; i ++) i 486 src/dps8/fnpuv.c if (bufs && bufs[i].base) i 489 src/dps8/fnpuv.c FREE (bufs[i].base); i 492 src/dps8/fnpuv.c if (req->bufsml[i].base) i 495 src/dps8/fnpuv.c FREE (req->bufsml[i].base); i 527 src/dps8/fnpuv.c i 530 src/dps8/fnpuv.c i 533 src/dps8/fnpuv.c i 534 src/dps8/fnpuv.c i 535 src/dps8/fnpuv.c i 537 src/dps8/fnpuv.c i 540 src/dps8/fnpuv.c i 541 src/dps8/fnpuv.c i 542 src/dps8/fnpuv.c i 544 src/dps8/fnpuv.c i 667 src/dps8/fnpuv.c i 670 src/dps8/fnpuv.c i 673 src/dps8/fnpuv.c i 674 src/dps8/fnpuv.c i 675 src/dps8/fnpuv.c i 677 src/dps8/fnpuv.c i 680 src/dps8/fnpuv.c i 681 src/dps8/fnpuv.c i 682 src/dps8/fnpuv.c i 684 src/dps8/fnpuv.c i 1085 src/dps8/fnpuv.c for (int i = 0; i < n_fw_entries; i ++) i 1087 src/dps8/fnpuv.c struct fw_entry_s * p = fw_entries + i; i 1373 src/dps8/fnpuv.c for (uint i = 0; i > nread; i ++) i 1375 src/dps8/fnpuv.c xbufr [i * 2 + 0] = bin2hex [(buffer [i] >> 4) & 0xf]; i 1376 src/dps8/fnpuv.c xbufr [i * 2 + 1] = bin2hex [(buffer [i] >> 0) & 0xf]; i 94 src/dps8/hdbg.h # define HDBGRegXR(i, c) hdbgRegR (hreg_X0+(i), (word36) cpu.rX[i], c) i 95 src/dps8/hdbg.h # define HDBGRegXW(i, c) hdbgRegW (hreg_X0+(i), (word36) cpu.rX[i], c) i 100 src/dps8/hdbg.h # define HDBGRegPRR(i, c) hdbgPARegR (hreg_PR0+(i), & cpu.PAR[i], c) i 101 src/dps8/hdbg.h # define HDBGRegPRW(i, c) hdbgPARegW (hreg_PR0+(i), & cpu.PAR[i], c) i 102 src/dps8/hdbg.h # define HDBGRegARR(i, c) hdbgPARegR (hreg_AR0+(i), & cpu.PAR[i], c) i 103 src/dps8/hdbg.h # define HDBGRegARW(i, c) hdbgPARegW (hreg_AR0+(i), & cpu.PAR[i], c) i 105 src/dps8/hdbg.h i 106 src/dps8/hdbg.h i 110 src/dps8/hdbg.h # define HDBGIntr(i, c) hdbgIntr(i, c) i 111 src/dps8/hdbg.h # define HDBGIntrSet(i, c, s, ctx) hdbgIntrSet(i, c, s, ctx) i 217 src/dps8/libtelnet.c int i; i 224 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { i 225 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { i 226 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) i 228 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) i 243 src/dps8/libtelnet.c unsigned int i; i 246 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { i 247 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { i 248 src/dps8/libtelnet.c return telnet->q[i]; i 262 src/dps8/libtelnet.c unsigned int i; i 265 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { i 266 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { i 267 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); i 289 src/dps8/libtelnet.c if (i >= telnet->q_size) { i 739 src/dps8/libtelnet.c size_t i; i 741 src/dps8/libtelnet.c for (i = 0; i != _buffer_sizes_count; ++i) { i 742 src/dps8/libtelnet.c if (_buffer_sizes[i] == telnet->buffer_size) { i 748 src/dps8/libtelnet.c if (i >= _buffer_sizes_count - 1) { i 755 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); i 763 src/dps8/libtelnet.c telnet->buffer_size = _buffer_sizes[i + 1]; i 774 src/dps8/libtelnet.c size_t i, start; i 775 src/dps8/libtelnet.c for (i = start = 0; i != size; ++i) { i 776 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; i 783 src/dps8/libtelnet.c if (i != start) { i 786 src/dps8/libtelnet.c ev.data.size = i - start; i 793 src/dps8/libtelnet.c if (i != start) { i 796 src/dps8/libtelnet.c ev.data.size = i - start; i 811 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; i 815 src/dps8/libtelnet.c start = i; i 851 src/dps8/libtelnet.c start = i + 1; i 862 src/dps8/libtelnet.c start = i + 1; i 873 src/dps8/libtelnet.c start = i + 1; i 890 src/dps8/libtelnet.c start = i + 1; i 901 src/dps8/libtelnet.c start = i + 1; i 915 src/dps8/libtelnet.c start = i + 1; i 931 src/dps8/libtelnet.c start = i + 1; i 954 src/dps8/libtelnet.c if (telnet->state == TELNET_STATE_DATA && i != start) { i 957 src/dps8/libtelnet.c ev.data.size = i - start; i 1064 src/dps8/libtelnet.c size_t i, l; i 1066 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { i 1068 src/dps8/libtelnet.c if (buffer[i] == (char)TELNET_IAC) { i 1070 src/dps8/libtelnet.c if (i != l) { i 1071 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1073 src/dps8/libtelnet.c l = i + 1; i 1081 src/dps8/libtelnet.c if (i != l) { i 1082 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1089 src/dps8/libtelnet.c size_t i, l; i 1091 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { i 1093 src/dps8/libtelnet.c if (buffer[i] == (char)TELNET_IAC) { i 1095 src/dps8/libtelnet.c if (i != l) { i 1096 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1098 src/dps8/libtelnet.c l = i + 1; i 1105 src/dps8/libtelnet.c (buffer[i] == '\r' || buffer[i] == '\n')) { i 1107 src/dps8/libtelnet.c if (i != l) { i 1108 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1110 src/dps8/libtelnet.c l = i + 1; i 1113 src/dps8/libtelnet.c if (buffer[i] == '\r') { i 1124 src/dps8/libtelnet.c if (i != l) { i 1125 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1142 src/dps8/libtelnet.c int rs, i, l; i 1162 src/dps8/libtelnet.c for (l = i = 0; i != rs; ++i) { i 1164 src/dps8/libtelnet.c if (output[i] == (char)TELNET_IAC || output[i] == '\r' || i 1165 src/dps8/libtelnet.c output[i] == '\n') { i 1167 src/dps8/libtelnet.c if (i != l) i 1168 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); i 1169 src/dps8/libtelnet.c l = i + 1; i 1172 src/dps8/libtelnet.c if (output[i] == (char)TELNET_IAC) i 1175 src/dps8/libtelnet.c else if (output[i] == '\r') i 1178 src/dps8/libtelnet.c else if (output[i] == '\n') i 1184 src/dps8/libtelnet.c if (i != l) { i 1185 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); i 204 src/dps8/udplib.c int i; i 205 src/dps8/udplib.c for (i = 0; i < MAXLINKS; i ++) i 207 src/dps8/udplib.c if (udp_links [i] . used == 0) i 209 src/dps8/udplib.c memset (& udp_links [i], 0, sizeof (UDP_LINK)); i 210 src/dps8/udplib.c return i; i 336 src/dps8/udplib.c uint16_t i; i 352 src/dps8/udplib.c for (i = 0; i < count; i ++) i 353 src/dps8/udplib.c pkt . data [i] = htons (* pdata ++); i 430 src/dps8/udplib.c int32_t pktlen, explen, implen, i; i 505 src/dps8/udplib.c for (i = 0; i < (implen < maxbuf ? implen : maxbuf); ++ i) i 506 src/dps8/udplib.c * pdata ++ = ntohs (pkt . data [i]); i 678 src/dps8/udplib.c for (int i = 0; i < rc; i ++) i 680 src/dps8/udplib.c fprintf (stderr, " %06o %04x ", pkt [i], pkt [i]); i 682 src/dps8/udplib.c fprintf (stderr, "%c", pkt [i] & (1 << b) ? '1' : '0'); i 98 src/dps8/utarray.h unsigned i, n; /* i: index of next available slot, n: num slots */ i 112 src/dps8/utarray.h for(_ut_i=0; _ut_i < (a)->i; _ut_i++) { \ i 132 src/dps8/utarray.h if (((a)->i+by) > ((a)->n)) { \ i 133 src/dps8/utarray.h while(((a)->i+by) > ((a)->n)) { (a)->n = ((a)->n ? (2*(a)->n) : 8); } \ i 140 src/dps8/utarray.h if ((a)->icd.copy) { (a)->icd.copy( _utarray_eltptr(a,(a)->i++), p); } \ i 141 src/dps8/utarray.h else { memcpy(_utarray_eltptr(a,(a)->i++), p, (a)->icd.sz); }; \ i 145 src/dps8/utarray.h if ((a)->icd.dtor) { (a)->icd.dtor( _utarray_eltptr(a,--((a)->i))); } \ i 146 src/dps8/utarray.h else { (a)->i--; } \ i 151 src/dps8/utarray.h if ((a)->icd.init) { (a)->icd.init(_utarray_eltptr(a,(a)->i)); } \ i 152 src/dps8/utarray.h else { memset(_utarray_eltptr(a,(a)->i),0,(a)->icd.sz); } \ i 153 src/dps8/utarray.h (a)->i++; \ i 156 src/dps8/utarray.h # define utarray_len(a) ((a)->i) i 158 src/dps8/utarray.h # define utarray_eltptr(a,j) (((j) < (a)->i) ? _utarray_eltptr(a,j) : NULL) i 162 src/dps8/utarray.h if (j > (a)->i) utarray_resize(a,j); \ i 164 src/dps8/utarray.h if ((j) < (a)->i) { \ i 166 src/dps8/utarray.h ((a)->i - (j))*((a)->icd.sz)); \ i 170 src/dps8/utarray.h (a)->i++; \ i 175 src/dps8/utarray.h if (j > (a)->i) utarray_resize(a,j); \ i 177 src/dps8/utarray.h if ((j) < (a)->i) { \ i 180 src/dps8/utarray.h ((a)->i - (j))*((a)->icd.sz)); \ i 184 src/dps8/utarray.h for(_ut_i=0;_ut_i<(w)->i;_ut_i++) { \ i 191 src/dps8/utarray.h (a)->i += utarray_len(w); \ i 196 src/dps8/utarray.h if (dst->i > (size_t)(num)) { \ i 198 src/dps8/utarray.h for(_ut_i=num; _ut_i < dst->i; _ut_i++) { \ i 202 src/dps8/utarray.h } else if (dst->i < (size_t)(num)) { \ i 203 src/dps8/utarray.h utarray_reserve(dst,num-dst->i); \ i 205 src/dps8/utarray.h for(_ut_i=dst->i; _ut_i < num; _ut_i++) { \ i 209 src/dps8/utarray.h memset(_utarray_eltptr(dst,dst->i),0,(dst)->icd.sz*(num-dst->i)); \ i 212 src/dps8/utarray.h dst->i = num; \ i 226 src/dps8/utarray.h if ((a)->i > (pos+len)) { \ i 228 src/dps8/utarray.h (((a)->i)-(pos+len))*((a)->icd.sz)); \ i 230 src/dps8/utarray.h (a)->i -= (len); \ i 239 src/dps8/utarray.h if ((a)->i > 0) { \ i 242 src/dps8/utarray.h for(_ut_i=0; _ut_i < (a)->i; _ut_i++) { \ i 246 src/dps8/utarray.h (a)->i = 0; \ i 251 src/dps8/utarray.h qsort((a)->d, (a)->i, (a)->icd.sz, cmp); \ i 254 src/dps8/utarray.h # define utarray_find(a,v,cmp) bsearch((v),(a)->d,(a)->i,(a)->icd.sz,cmp) i 255 src/dps8/utarray.h # define utarray_front(a) (((a)->i) ? (_utarray_eltptr(a,0)) : NULL) i 256 src/dps8/utarray.h # define utarray_next(a,e) (((e)==NULL) ? utarray_front(a) : ((((a)->i) > (utarray_eltidx(a,e)+1)) ? _utarray_eltptr(a,utarray_eltidx(a,e)+1) : NULL)) i 258 src/dps8/utarray.h # define utarray_back(a) (((a)->i) ? (_utarray_eltptr(a,(a)->i-1)) : NULL) i 585 src/dps8/uthash.h # define MUR_GETBLOCK(p,i) p[i] i 601 src/dps8/uthash.h # define MUR_GETBLOCK(p,i) (MUR_PLUS0_ALIGNED(p) ? ((p)[i]) : \ i 87 src/dps8/uvutil.c for (unsigned int i = 0; i < nbufs; i ++) i 89 src/dps8/uvutil.c if (bufs && bufs[i].base) i 91 src/dps8/uvutil.c FREE (bufs[i].base); i 94 src/dps8/uvutil.c if (req->bufsml[i].base) i 96 src/dps8/uvutil.c FREE (req->bufsml[i].base); i 303 src/simh/linehistory.c unsigned int i = 0; i 312 src/simh/linehistory.c while (i < sizeof ( buf ) - 1) i 314 src/simh/linehistory.c if (read(ifd, buf + i, 1) != 1) i 319 src/simh/linehistory.c if (buf[i] == 'R') i 324 src/simh/linehistory.c i++; i 326 src/simh/linehistory.c buf[i] = '\0'; i 420 src/simh/linehistory.c size_t i; i 422 src/simh/linehistory.c for (i = 0; i < lc->len; i++) i 424 src/simh/linehistory.c FREE(lc->cvec[i]); i 458 src/simh/linehistory.c size_t stop = 0, i = 0; i 463 src/simh/linehistory.c if (i < lc.len) i 467 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); i 468 src/simh/linehistory.c ls->buf = lc.cvec[i]; i 489 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); i 490 src/simh/linehistory.c if (i == lc.len) i 500 src/simh/linehistory.c if (i < lc.len) i 502 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); i 811 src/simh/linehistory.c unsigned int i; i 812 src/simh/linehistory.c for (i = 0; i < l->len; i++) i 1864 src/simh/linehistory.c size_t len = 0, i = 0; i 1866 src/simh/linehistory.c while (s[i] != '\0') i 1868 src/simh/linehistory.c if (s[i] == '\033') //-V536 i 1870 src/simh/linehistory.c i = strpbrk(s + i, "m") - s + 1; //-V769 i 1875 src/simh/linehistory.c i++; i 1507 src/simh/scp.c int32 i, sw; i 1659 src/simh/scp.c for (i=0; i<argc; i++) i 1660 src/simh/scp.c targv[i] = argv[i]; i 1671 src/simh/scp.c for (i = 1; i < argc; i++) { /* loop thru args */ i 1672 src/simh/scp.c if (argv[i] == NULL) /* paranoia */ i 1676 src/simh/scp.c int onlyvers = strcmp(argv[i], "--version"); i 1699 src/simh/scp.c int longhelp = strcmp(argv[i], "--help"); i 1700 src/simh/scp.c int shorthelp = strcmp(argv[i], "-h"); i 1701 src/simh/scp.c if (shorthelp != 0) shorthelp = strcmp(argv[i], "-H"); i 1751 src/simh/scp.c if ((*argv[i] == '-') && lookswitch) { /* switch? */ i 1752 src/simh/scp.c if ((sw = get_switches (argv[i])) < 0) { i 1753 src/simh/scp.c fprintf (stderr, "Invalid switch \"%s\".\nTry \"%s -h\" for help.\n", argv[i], argv[0]); i 1761 src/simh/scp.c if ((strlen (argv[i]) + strlen (cbuf) + 3) >= sizeof(cbuf)) { i 1768 src/simh/scp.c sprintf(&cbuf[strlen(cbuf)], "%s%s%s", strchr(argv[i], ' ') ? "\"" : "", argv[i], strchr(argv[i], ' ') ? "\"" : ""); //-V755 i 1792 src/simh/scp.c for (i = 0; cmd_table[i].name; i++) { i 1793 src/simh/scp.c size_t alias_len = strlen (cmd_table[i].name); i 1808 src/simh/scp.c strcpy (cmd_name, cmd_table[i].name); i 2028 src/simh/scp.c int i, line_offset; i 2082 src/simh/scp.c for ( i = 0 ; i < cmd_cnt ; ++i ) { i 2083 src/simh/scp.c fputs (hlp_cmdp[i]->name, st); i 2090 src/simh/scp.c fprintf (st, "%*s", (int)(max_cmdname_size + 5 - strlen (hlp_cmdp[i]->name)), ""); i 2358 src/simh/scp.c int i; i 2363 src/simh/scp.c for (i=0; i<26; i++) { i 2364 src/simh/scp.c if (sim_brk_types & (1<<i)) i 2365 src/simh/scp.c fprintf (st, " -%c\n", 'A'+i); i 2504 src/simh/scp.c i 2506 src/simh/scp.c i 2650 src/simh/scp.c int32 echo, nargs, errabort, i; i 2702 src/simh/scp.c for (i=0; i<SCPE_MAX_ERR; i++) { /* replicate any on commands */ i 2703 src/simh/scp.c if (sim_on_actions[sim_do_depth-1][i]) { i 2704 src/simh/scp.c sim_on_actions[sim_do_depth][i] = (char *)malloc(1+strlen(sim_on_actions[sim_do_depth-1][i])); i 2705 src/simh/scp.c if (NULL == sim_on_actions[sim_do_depth][i]) { i 2706 src/simh/scp.c while (--i >= 0) { i 2707 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][i]); i 2708 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; i 2716 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][i], sim_on_actions[sim_do_depth-1][i]); i 2838 src/simh/scp.c for (i=0; i<SCPE_MAX_ERR; i++) { /* release any on commands */ i 2839 src/simh/scp.c FREE (sim_on_actions[sim_do_depth][i]); i 2840 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; i 2905 src/simh/scp.c int i; i 2939 src/simh/scp.c for (i=0; i<ip[1] - '0'; ++i) /* make sure we're not past the list end */ i 2940 src/simh/scp.c if (do_arg[i] == NULL) { i 2949 src/simh/scp.c for (i=1; i<=9; ++i) i 2950 src/simh/scp.c if (do_arg[i] == NULL) i 2953 src/simh/scp.c if ((sizeof(rbuf)-strlen(rbuf)) < (2 + strlen(do_arg[i]))) { i 2954 src/simh/scp.c if (strchr(do_arg[i], ' ')) { /* need to surround this argument with quotes */ i 2956 src/simh/scp.c if (strchr(do_arg[i], quote)) i 2958 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%c%s%c\"", (i != 1) ? " " : "", quote, do_arg[i], quote); i 2961 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%s", (i != 1) ? " " : "", do_arg[i]); i 3946 src/simh/scp.c uint32 i; i 3960 src/simh/scp.c for (i = 0; i < dptr->numunits; i++) { /* check units */ i 3961 src/simh/scp.c up = (dptr->units) + i; /* att or active? */ i 4960 src/simh/scp.c int32 i; i 4967 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 4975 src/simh/scp.c int32 i; i 4980 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5095 src/simh/scp.c int32 lvl, i; i 5104 src/simh/scp.c for (i=1; i<SCPE_BASE; ++i) { i 5105 src/simh/scp.c if (sim_on_actions[lvl][i]) i 5106 src/simh/scp.c fprintf(st, " on %5d %s\n", i, sim_on_actions[lvl][i]); } i 5107 src/simh/scp.c for (i=SCPE_BASE; i<=SCPE_MAX_ERR; ++i) { i 5108 src/simh/scp.c if (sim_on_actions[lvl][i]) i 5109 src/simh/scp.c fprintf(st, " on %-5s %s\n", scp_errors[i-SCPE_BASE].code, sim_on_actions[lvl][i]); } i 5123 src/simh/scp.c int32 i; i 5128 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5130 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) i 5183 src/simh/scp.c int32 i; i 5188 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5190 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) i 5336 src/simh/scp.c uint32 i; i 5339 src/simh/scp.c for (i = 0; i < start; i++) { i 5340 src/simh/scp.c if (sim_devices[i] == NULL) i 5343 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { i 5350 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 5566 src/simh/scp.c uint32 i, j; i 5575 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { /* loop thru dev */ i 5671 src/simh/scp.c uint32 i, j; i 5762 src/simh/scp.c for (i=0; addrs[i]; i++) i 5763 src/simh/scp.c sim_brk_set (addrs[i], BRK_TYP_DYN_STEPOVER, 0, NULL); i 5803 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* reposition all */ i 5891 src/simh/scp.c for (i=0; addrs[i]; i++) i 5892 src/simh/scp.c sim_brk_set (addrs[i], BRK_TYP_DYN_STEPOVER, 0, NULL); i 5913 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* flush attached files */ i 5990 src/simh/scp.c int32 i; i 6015 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6016 src/simh/scp.c sim_eval[i] = 0; i 6017 src/simh/scp.c for (i = 0, k = (t_addr) pcval; i < sim_emax; i++, k = k + dptr->aincr) { i 6018 src/simh/scp.c if ((r = dptr->examine (&sim_eval[i], k, dptr->units, SWMASK ('V')|SIM_SW_STOP)) != SCPE_OK) i 6021 src/simh/scp.c if ((r == SCPE_OK) || (i > 0)) { i 6250 src/simh/scp.c t_addr i, mask; i 6258 src/simh/scp.c for (i = low; i <= high; ) { /* all paths must incr!! */ i 6259 src/simh/scp.c reason = get_aval (i, dptr, uptr); /* get data */ i 6263 src/simh/scp.c i = i + dptr->aincr; /* sch fails, incr */ i 6266 src/simh/scp.c reason = ex_addr (ofile, flag, i, dptr, uptr); i 6270 src/simh/scp.c ex_addr (sim_log, flag, i, dptr, uptr); i 6274 src/simh/scp.c reason = dep_addr (flag, cptr, i, dptr, uptr, reason); i 6278 src/simh/scp.c i = i + (1 - reason); /* incr */ i 6533 src/simh/scp.c int32 i; i 6542 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6543 src/simh/scp.c sim_eval[i] = 0; i 6544 src/simh/scp.c for (i = 0, j = addr; i < sim_emax; i++, j = j + dptr->aincr) { i 6546 src/simh/scp.c reason = dptr->examine (&sim_eval[i], j, uptr, sim_switches); i 6562 src/simh/scp.c SZ_LOAD (sz, sim_eval[i], uptr->filebuf, loc); i 6566 src/simh/scp.c sim_fread (&sim_eval[i], sz, 1, uptr->fileref); i 6579 src/simh/scp.c sim_last_val = sim_eval[i] = sim_eval[i] & mask; i 6581 src/simh/scp.c if ((reason != SCPE_OK) && (i == 0)) i 6603 src/simh/scp.c int32 i, count, rdx; i 6634 src/simh/scp.c for (i = 0, j = addr; i < count; i++, j = j + dptr->aincr) { i 6635 src/simh/scp.c sim_eval[i] = sim_eval[i] & mask; i 6637 src/simh/scp.c r = dptr->deposit (sim_eval[i], j, uptr, sim_switches); i 6651 src/simh/scp.c SZ_STORE (sz, sim_eval[i], uptr->filebuf, loc); i 6657 src/simh/scp.c sim_fwrite (&sim_eval[i], sz, 1, uptr->fileref); i 6675 src/simh/scp.c int32 i, rdx, a, lim; i 6680 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6681 src/simh/scp.c sim_eval[i] = 0; i 6690 src/simh/scp.c for (i = a = 0; a < lim; ) { i 6692 src/simh/scp.c if ((r = fprint_sym (stdout, a, &sim_eval[i], dptr->units, sim_switches)) > 0) i 6693 src/simh/scp.c r = fprint_val (stdout, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); i 6695 src/simh/scp.c if ((r = fprint_sym (sim_log, a, &sim_eval[i], dptr->units, sim_switches)) > 0) i 6696 src/simh/scp.c r = fprint_val (sim_log, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); i 6702 src/simh/scp.c i = a / dptr->aincr; i 7145 src/simh/scp.c uint32 i; i 7155 src/simh/scp.c for (i=0; i<size; i++) i 7156 src/simh/scp.c switch ((char)iptr[i]) { i 7223 src/simh/scp.c int32 i; i 7228 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 7234 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 7256 src/simh/scp.c uint32 i, u; i 7272 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { /* base + unit#? */ i 7310 src/simh/scp.c uint32 i; i 7312 src/simh/scp.c for (i = 0; (sim_devices[i] != NULL); i++) i 7313 src/simh/scp.c if (sim_devices[i] == dptr) i 7315 src/simh/scp.c for (i = 0; i < sim_internal_device_count; i++) i 7316 src/simh/scp.c if (sim_internal_devices[i] == dptr) i 7348 src/simh/scp.c uint32 i, j; i 7352 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 7358 src/simh/scp.c for (i = 0; i<sim_internal_device_count; i++) { i 7359 src/simh/scp.c dptr = sim_internal_devices[i]; i 7389 src/simh/scp.c int32 i; i 7394 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != 0; i++) { /* all dev */ i 7806 src/simh/scp.c int32 i, updown; i 7825 src/simh/scp.c for (i=0; i<(int32)schptr->count; i++) { i 7826 src/simh/scp.c val[i] = values[i]; i 7830 src/simh/scp.c val[i] = val[i] | schptr->mask[i]; i 7834 src/simh/scp.c val[i] = val[i] & schptr->mask[i]; i 7838 src/simh/scp.c val[i] = val[i] ^ schptr->mask[i]; i 7846 src/simh/scp.c i=schptr->count-1; i 7850 src/simh/scp.c i=0; i 7852 src/simh/scp.c for (; (i>=0) && (i<(int32)schptr->count) && ret; i += updown) { i 7856 src/simh/scp.c if (val[i] != schptr->comp[i]) i 7861 src/simh/scp.c if (val[i] == schptr->comp[i]) i 7866 src/simh/scp.c if (val[i] <= schptr->comp[i]) i 7871 src/simh/scp.c if (val[i] < schptr->comp[i]) i 7876 src/simh/scp.c if (val[i] >= schptr->comp[i]) i 7881 src/simh/scp.c if (val[i] > schptr->comp[i]) i 8415 src/simh/scp.c int32 i; i 8417 src/simh/scp.c for (i=0; i<sim_brk_lnt; i++) { i 8421 src/simh/scp.c bp = sim_brk_tab[i]; i 8493 src/simh/scp.c int32 i, t; i 8512 src/simh/scp.c for (i = sim_brk_ent; i > sim_brk_ins; --i) i 8513 src/simh/scp.c sim_brk_tab[i] = sim_brk_tab[i - 1]; i 8537 src/simh/scp.c for (i = 0; i < SIM_BKPT_N_SPC; i++) i 8538 src/simh/scp.c bp->time_fired[i] = -1.0; i 8591 src/simh/scp.c int32 i; i 8620 src/simh/scp.c for (i = sim_brk_ins; i < sim_brk_ent; i++) /* shuffle remaining entries */ i 8621 src/simh/scp.c sim_brk_tab[i] = sim_brk_tab[i+1]; i 8624 src/simh/scp.c for (i = 0; i < sim_brk_ent; i++) { i 8625 src/simh/scp.c bp = sim_brk_tab[i]; i 8638 src/simh/scp.c int32 i; i 8642 src/simh/scp.c for (i = 0; i < sim_brk_ent;) { i 8643 src/simh/scp.c t_addr loc = sim_brk_tab[i]->addr; i 8645 src/simh/scp.c if ((i < sim_brk_ent) && i 8646 src/simh/scp.c (loc == sim_brk_tab[i]->addr)) i 8647 src/simh/scp.c ++i; i 8658 src/simh/scp.c int32 i, any; i 8675 src/simh/scp.c for (i = any = 0; i < 26; i++) { i 8676 src/simh/scp.c if ((bp->typ >> i) & 1) { i 8680 src/simh/scp.c fputc (i + 'A', st); i 8683 src/simh/scp.c fprintf (st, "-%c", i + 'A'); i 9009 src/simh/scp.c int32 i; i 9013 src/simh/scp.c for (i=start_rule; i<exp->size; i++) i 9014 src/simh/scp.c if (!strcmp (exp->rules[i].match_pattern, match)) i 9015 src/simh/scp.c return &exp->rules[i]; i 9023 src/simh/scp.c int32 i; i 9032 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ i 9033 src/simh/scp.c exp->rules[i] = exp->rules[i+1]; i 9057 src/simh/scp.c int32 i; i 9059 src/simh/scp.c for (i=0; i<exp->size; i++) { i 9060 src/simh/scp.c FREE (exp->rules[i].match); /* deallocate match string */ i 9061 src/simh/scp.c FREE (exp->rules[i].match_pattern); /* deallocate display format match string */ i 9062 src/simh/scp.c FREE (exp->rules[i].act); /* deallocate action */ i 9081 src/simh/scp.c int i; i 9103 src/simh/scp.c for (i=0; i<exp->size; i++) { /* Make sure this rule won't be occluded */ i 9104 src/simh/scp.c if ((0 == strcmp (match, exp->rules[i].match_pattern)) && i 9105 src/simh/scp.c (exp->rules[i].switches & EXP_TYP_PERSIST)) i 9175 src/simh/scp.c for (i=0; i<exp->size; i++) { i 9176 src/simh/scp.c uint32 compare_size = (exp->rules[i].switches & EXP_TYP_REGEX) ? MAX(10 * strlen(ep->match_pattern), 1024) : exp->rules[i].size; i 9243 src/simh/scp.c int32 i; i 9245 src/simh/scp.c for (i=0; i < exp->size; i++) i 9246 src/simh/scp.c sim_exp_show_tab (st, exp, &exp->rules[i]); i 9254 src/simh/scp.c int32 i; i 9264 src/simh/scp.c for (i=0; i < exp->size; i++) { i 9265 src/simh/scp.c ep = &exp->rules[i]; i 9322 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ i 9571 src/simh/scp.c int32 i, fields, offset; i 9579 src/simh/scp.c for (i = fields-1; i >= 0; i--) { /* print xlation, transition */ i 9580 src/simh/scp.c if (bitdefs[i].name[0] == '\0') i 9582 src/simh/scp.c if ((bitdefs[i].width == 1) && (bitdefs[i].valuenames == NULL)) { i 9583 src/simh/scp.c int off = ((after >> bitdefs[i].offset) & 1) + (((before ^ after) >> bitdefs[i].offset) & 1) * 2; i 9584 src/simh/scp.c Fprintf(stream, "%s%c ", bitdefs[i].name, debug_bstates[off]); i 9588 src/simh/scp.c mask = 0xFFFFFFFF >> (32-bitdefs[i].width); i 9589 src/simh/scp.c value = (uint32)((after >> bitdefs[i].offset) & mask); i 9590 src/simh/scp.c beforevalue = (uint32)((before >> bitdefs[i].offset) & mask); i 9595 src/simh/scp.c if (bitdefs[i].valuenames) i 9596 src/simh/scp.c Fprintf(stream, "%s=%s%s ", bitdefs[i].name, delta, bitdefs[i].valuenames[value]); i 9598 src/simh/scp.c if (bitdefs[i].format) { i 9599 src/simh/scp.c Fprintf(stream, "%s=%s", bitdefs[i].name, delta); i 9600 src/simh/scp.c Fprintf(stream, bitdefs[i].format, value); i 9604 src/simh/scp.c Fprintf(stream, "%s=%s0x%X ", bitdefs[i].name, delta, value); i 9767 src/simh/scp.c int32 i, j, len; i 9795 src/simh/scp.c for (i = j = 0; i < len; ++i) { i 9796 src/simh/scp.c if ('\n' == buf[i]) { i 9797 src/simh/scp.c if (i >= j) { i 9798 src/simh/scp.c if ((i != j) || (i == 0)) { i 9800 src/simh/scp.c fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]); i 9802 src/simh/scp.c fprintf (sim_deb, "%s%.*s\r\n", debug_prefix, i-j, &buf[j]); i 9806 src/simh/scp.c j = i + 1; i 9809 src/simh/scp.c if (i > j) { i 9811 src/simh/scp.c fprintf (sim_deb, "%.*s", i-j, &buf[j]); i 9813 src/simh/scp.c fprintf (sim_deb, "%s%.*s", debug_prefix, i-j, &buf[j]); i 9831 src/simh/scp.c unsigned int i, same, group, sidx, oidx, ridx, eidx, soff; i 9870 src/simh/scp.c for (i=same=0; i<len; i += 16) { i 9871 src/simh/scp.c if ((i > 0) && (0 == memcmp (&data[i], &data[i-16], 16))) { i 9876 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), i-1); i 9879 src/simh/scp.c group = (((len - i) > 16) ? 16 : (len - i)); i 9888 src/simh/scp.c outbuf[oidx++] = hex[(data[i+sidx]>>4)&0xf]; i 9889 src/simh/scp.c outbuf[oidx++] = hex[data[i+sidx]&0xf]; i 9890 src/simh/scp.c if (sim_isprint (data[i+sidx])) i 9891 src/simh/scp.c strbuf[soff+sidx] = data[i+sidx]; i 9895 src/simh/scp.c uint16 word = data[i+sidx] + (((uint16)data[i+sidx+1]) << 8); i 9909 src/simh/scp.c if (sim_isprint (ebcdic2ascii[data[i+sidx]])) i 9910 src/simh/scp.c ebcdicbuf[eidx++] = ebcdic2ascii[data[i+sidx]]; i 9919 src/simh/scp.c sim_debug (reason, dptr, "%04X%-48s %s%s%s\n", i, outbuf, strbuf, ebcdicbuf, rad50buf); i 9922 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), (unsigned int)(len-1)); i 10019 src/simh/scp.c size_t i; i 10024 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10025 src/simh/scp.c child = topic->children[i]; i 10143 src/simh/scp.c size_t i; i 10144 src/simh/scp.c for (i = 0; i < ilvl; i++) i 10356 src/simh/scp.c size_t i, skiplines; i 10403 src/simh/scp.c for (i =0; i < skiplines; i++) i 10424 src/simh/scp.c size_t i; i 10441 src/simh/scp.c for (i = 0; i < topic->kids; i++) i 10442 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic->children[i], ap); i 10452 src/simh/scp.c size_t i, match; i 10459 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10460 src/simh/scp.c strcpy (cbuf,topic->children[i]->title + i 10461 src/simh/scp.c ((topic->children[i]->flags & HLP_MAGIC_TOPIC)? 1 : 0)); i 10473 src/simh/scp.c return i+1; i 10477 src/simh/scp.c match = i+1; i 10494 src/simh/scp.c size_t i; i 10548 src/simh/scp.c for (i = 0; p[i]; i++ ) i 10549 src/simh/scp.c top.title[i] = (char)toupper (p[i]); i 10550 src/simh/scp.c top.title[i] = '\0'; i 10552 src/simh/scp.c strcpy (top.title+i, attach_help); i 10648 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10649 src/simh/scp.c strcpy (tbuf, topic->children[i]->title + i 10650 src/simh/scp.c ((topic->children[i]->flags & HLP_MAGIC_TOPIC)? 1 : 0)); i 310 src/simh/sim_console.c int32 i; i 313 src/simh/sim_console.c for (i = 0; show_con_tab[i].name; i++) i 314 src/simh/sim_console.c show_con_tab[i].action (st, dptr, uptr, show_con_tab[i].arg, cptr); i 397 src/simh/sim_console.c int32 i, connections; i 416 src/simh/sim_console.c for (i=connections=0; i<sim_rem_con_tmxr.lines; i++) { i 417 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 423 src/simh/sim_console.c tmxr_fconns (st, lp, i); i 424 src/simh/sim_console.c if (sim_rem_read_timeouts[i] != sim_rem_read_timeout) { i 425 src/simh/sim_console.c if (sim_rem_read_timeouts[i]) i 426 src/simh/sim_console.c fprintf (st, "Remote Console Input on connection %lu automatically continues after %lu seconds\n", (unsigned long)i, (unsigned long)sim_rem_read_timeouts[i]); i 428 src/simh/sim_console.c fprintf (st, "Remote Console Input on connection %lu does not continue automatically\n", (unsigned long)i); i 638 src/simh/sim_console.c int32 i, j, c = 0; i 652 src/simh/sim_console.c for (i=(was_active_command ? sim_rem_cmd_active_line : 0); i 653 src/simh/sim_console.c (i < sim_rem_con_tmxr.lines); i 654 src/simh/sim_console.c i++) { i 655 src/simh/sim_console.c t_bool master_session = (sim_rem_master_mode && (i == 0)); i 657 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 667 src/simh/sim_console.c (master_session && !sim_rem_single_mode[i])) { i 677 src/simh/sim_console.c i = -1; i 685 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 690 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 698 src/simh/sim_console.c if (sim_rem_single_mode[i]) { i 700 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; /* enter multi command mode */ i 708 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 710 src/simh/sim_console.c tmxr_linemsgf (lpj, "\nRemote Console %lu(%s) Entering Commands\n", (unsigned long)i, lp->ipad); i 713 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 716 src/simh/sim_console.c if (!master_session && sim_rem_read_timeouts[i]) { i 717 src/simh/sim_console.c tmxr_linemsgf (lp, "Simulation will resume automatically if input is not received in %lu seconds\n", (unsigned long)sim_rem_read_timeouts[i]); i 723 src/simh/sim_console.c if ((sim_rem_buf_ptr[i] == 0) && /* At beginning of input line */ i 733 src/simh/sim_console.c if (sim_rem_buf_ptr[i] == 0) { i 750 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 759 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 764 src/simh/sim_console.c sim_rem_read_timeouts[i] && i 765 src/simh/sim_console.c ((sim_os_msec() - read_start_time)/1000 >= sim_rem_read_timeouts[i])) { i 766 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) {/* Erase current input line */ i 768 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 770 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+80 >= sim_rem_buf_size[i]) { i 771 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 772 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 774 src/simh/sim_console.c strcpy (sim_rem_buf[i], "CONTINUE ! Automatic continue due to timeout"); i 775 src/simh/sim_console.c tmxr_linemsgf (lp, "%s\n", sim_rem_buf[i]); i 782 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; /* No longer multi-command more */ i 795 src/simh/sim_console.c if (sim_rem_buf_ptr[i] > 0) { i 797 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 802 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) { i 804 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 808 src/simh/sim_console.c if (sim_rem_buf_ptr[i] == 0) i 813 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+1 >= sim_rem_buf_size[i]) { i 814 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 815 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 817 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]++] = '\0'; i 818 src/simh/sim_console.c sim_debug (DBG_RCV, &sim_remote_console, "Got Command (%lu bytes still in buffer): %s\n", (unsigned long)tmxr_input_pending_ln (lp), sim_rem_buf[i]); i 823 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) { /* Erase current input line */ i 825 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 827 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 828 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+80 >= sim_rem_buf_size[i]) { i 829 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 830 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 832 src/simh/sim_console.c strcpy (sim_rem_buf[i], "CONTINUE ! Automatic continue before close"); i 833 src/simh/sim_console.c tmxr_linemsgf (lp, "%s\n", sim_rem_buf[i]); i 840 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+2 >= sim_rem_buf_size[i]) { i 841 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 842 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 844 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]++] = (char)c; i 845 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]] = '\0'; i 846 src/simh/sim_console.c if (((size_t)sim_rem_buf_ptr[i]) >= sizeof(cbuf)) i 851 src/simh/sim_console.c if ((!got_command) && (sim_rem_single_mode[i]) && (tmxr_input_pending_ln (lp))) { i 855 src/simh/sim_console.c } while ((!got_command) && ((!sim_rem_single_mode[i]) || c)); i 858 src/simh/sim_console.c if ((sim_rem_single_mode[i]) && !got_command) { i 861 src/simh/sim_console.c sim_printf ("Remote Console Command from %s> %s\r\n", lp->ipad, sim_rem_buf[i]); i 863 src/simh/sim_console.c if (strlen(sim_rem_buf[i]) >= sizeof(cbuf)) { i 869 src/simh/sim_console.c strcpy (cbuf, sim_rem_buf[i]); i 870 src/simh/sim_console.c sim_rem_buf_ptr[i] = 0; i 871 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]] = '\0'; i 875 src/simh/sim_console.c if (sim_rem_single_mode[i]) { i 876 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; i 887 src/simh/sim_console.c sim_rem_active_number = i; i 901 src/simh/sim_console.c sim_rem_cmd_active_line = i; i 904 src/simh/sim_console.c i = i - 1; i 911 src/simh/sim_console.c if ((cmdp = find_ctab (sim_rem_single_mode[i] ? allowed_single_remote_cmds : (master_session ? allowed_master_remote_cmds : allowed_remote_cmds), gbuf))) {/* lookup command */ i 956 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 975 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 980 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 990 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 992 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 1004 src/simh/sim_console.c sim_rem_cmd_active_line = i; i 1012 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; i 1039 src/simh/sim_console.c int32 i; i 1041 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) i 1042 src/simh/sim_console.c if (sim_rem_con_tmxr.ldsc[i].conn) i 1044 src/simh/sim_console.c if (i != sim_rem_con_tmxr.lines) i 1073 src/simh/sim_console.c int32 i; i 1076 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) { i 1077 src/simh/sim_console.c FREE (sim_rem_buf[i]); i 1078 src/simh/sim_console.c sim_rem_buf[i] = NULL; i 1079 src/simh/sim_console.c sim_rem_buf_size[i] = 0; i 1080 src/simh/sim_console.c sim_rem_buf_ptr[i] = 0; i 1081 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 1092 src/simh/sim_console.c int32 i; i 1101 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) i 1102 src/simh/sim_console.c FREE (sim_rem_buf[i]); i 1437 src/simh/sim_console.c int32 i; i 1450 src/simh/sim_console.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 1458 src/simh/sim_console.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 139 src/simh/sim_disk.c size_t i; i 141 src/simh/sim_disk.c for (i = 0; i < DKUF_N_FMT; i++) i 142 src/simh/sim_disk.c if (fmts[i].fmtval == f) { i 143 src/simh/sim_disk.c fprintf (st, "%s format", fmts[i].name); i 240 src/simh/sim_disk.c size_t i; i 251 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); i 252 src/simh/sim_disk.c if (i < tbc/ctx->xfer_element_size) /* fill */ i 253 src/simh/sim_disk.c memset (&buf[i*ctx->xfer_element_size], 0, tbc-(i*ctx->xfer_element_size)); i 256 src/simh/sim_disk.c *sectsread = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); i 340 src/simh/sim_disk.c size_t i; i 351 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); i 354 src/simh/sim_disk.c *sectswritten = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); i 640 src/simh/sim_disk.c int i; i 644 src/simh/sim_disk.c for (i=0; i<WordCount; i++) i 645 src/simh/sim_disk.c CheckSum += Buf[i]; i 1063 src/simh/sim_disk.c uint32 i; i 1065 src/simh/sim_disk.c for (i=0; i < dptr->numunits; ++i) i 1066 src/simh/sim_disk.c if (dptr->units[i].flags & UNIT_ATTABLE) i 1067 src/simh/sim_disk.c fprintf (st, " sim> ATTACH {switches} %s%lu diskfile\n", dptr->name, (unsigned long)i); i 159 src/simh/sim_fio.c int32 i; i 177 src/simh/sim_fio.c for (i = (int32)nbuf; i > 0; i--) { /* loop on buffers */ i 178 src/simh/sim_fio.c c = (i == 1)? lcnt: nelem; i 122 src/simh/sim_sock.c int i; i 125 src/simh/sim_sock.c for (i=0; (sock_errors[i].text) && (sock_errors[i].value != err); i++) i 127 src/simh/sim_sock.c if (sock_errors[i].value == err) i 128 src/simh/sim_sock.c sprintf (err_buf, "Sockets: %s error %d - %s\n", emsg, err, sock_errors[i].text); i 280 src/simh/sim_tape.c uint32 i; i 282 src/simh/sim_tape.c for (i=0; i < dptr->numunits; ++i) i 283 src/simh/sim_tape.c if (dptr->units[i].flags & UNIT_ATTABLE) i 284 src/simh/sim_tape.c fprintf (st, " sim> ATTACH {switches} %s%lu tapefile\n\n", dptr->name, (unsigned long)i); i 788 src/simh/sim_tape.c t_mtrlnt i, tbc, rbc; i 805 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ i 811 src/simh/sim_tape.c for ( ; i < rbc; i++) /* fill with 0's */ i 812 src/simh/sim_tape.c buf[i] = 0; i 852 src/simh/sim_tape.c t_mtrlnt i, rbc, tbc; i 864 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ i 867 src/simh/sim_tape.c for ( ; i < rbc; i++) /* fill with 0's */ i 868 src/simh/sim_tape.c buf[i] = 0; i 1871 src/simh/sim_tape.c size_t i; i 1909 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); i 1910 src/simh/sim_tape.c if (i == 0) /* past or at eof? */ i 1935 src/simh/sim_tape.c for (i=0; i<65535; i++) { i 1936 src/simh/sim_tape.c if (countmap[i]) { i 1937 src/simh/sim_tape.c if (i == 0) i 1938 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: summary - %u tape marks\n", countmap[i]); i 1940 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: summary - %u %d byte record%s\n", countmap[i], (int)i, (countmap[i] > 1) ? "s" : ""); i 87 src/simh/sim_timer.c uint32 i, tot, tim; i 91 src/simh/sim_timer.c for (i = 0, tot = 0; i < sleep1Samples; i++) i 96 src/simh/sim_timer.c for (i = 0, tot = 0; i < sleep1Samples; i++) i 488 src/simh/sim_tmxr.c int32 i = lp->rxbpi; i 491 src/simh/sim_tmxr.c return loop_read (lp, &(lp->rxb[i]), length); i 493 src/simh/sim_tmxr.c return sim_read_sock (lp->sock, &(lp->rxb[i]), length); i 506 src/simh/sim_tmxr.c int32 i = lp->txbpr; i 509 src/simh/sim_tmxr.c return loop_write (lp, &(lp->txb[i]), length); i 511 src/simh/sim_tmxr.c written = sim_write_sock (lp->sock, &(lp->txb[i]), length); i 662 src/simh/sim_tmxr.c int32 i; i 676 src/simh/sim_tmxr.c for (i=0; i<mp->lines; ++i) { i 678 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 768 src/simh/sim_tmxr.c int32 i, j; i 790 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { i 791 src/simh/sim_tmxr.c uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; i 840 src/simh/sim_tmxr.c i = mp->lines; /* play it safe in case lines == 0 */ i 843 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ i 845 src/simh/sim_tmxr.c i = *op++; /* get next line in list to try */ i 847 src/simh/sim_tmxr.c i = j; /* get next sequential line */ i 849 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ i 858 src/simh/sim_tmxr.c if (i >= mp->lines) { /* all busy? */ i 861 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ i 907 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 932 src/simh/sim_tmxr.c return i; i 938 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* check each line in sequence */ i 940 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ i 945 src/simh/sim_tmxr.c return i; i 998 src/simh/sim_tmxr.c return i; i 1058 src/simh/sim_tmxr.c return i; i 1493 src/simh/sim_tmxr.c int32 i, nbytes, j; i 1496 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1497 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1717 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1718 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1864 src/simh/sim_tmxr.c int32 i, nbytes; i 1867 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1868 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 2089 src/simh/sim_tmxr.c int32 i, line, nextline = -1; i 2101 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ i 2102 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2169 src/simh/sim_tmxr.c i = (int32) get_uint (cptr, 10, 1024*1024, &r); i 2170 src/simh/sim_tmxr.c if (r || (i == 0)) i 2172 src/simh/sim_tmxr.c sprintf(buffered, "%d", i); i 2317 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { i 2318 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2335 src/simh/sim_tmxr.c sprintf(lp->txlogname, "%s_%d", mp->logfiletmpl, i); i 2349 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize line buffers */ i 2350 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2404 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* close line logs */ i 2405 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2447 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ i 2448 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2461 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { //-V1008 i 2462 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2810 src/simh/sim_tmxr.c int i; i 2813 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2814 src/simh/sim_tmxr.c if (tmxr_open_devices[i] == mux) { i 2833 src/simh/sim_tmxr.c for (i=0; i<mux->lines; i++) i 2834 src/simh/sim_tmxr.c if (0 == mux->ldsc[i].send.delay) i 2835 src/simh/sim_tmxr.c mux->ldsc[i].send.delay = SEND_DEFAULT_DELAY; i 2841 src/simh/sim_tmxr.c int i, j; i 2843 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2844 src/simh/sim_tmxr.c if (tmxr_open_devices[i] == mux) { i 2845 src/simh/sim_tmxr.c for (j=i+1; j<tmxr_open_device_count; ++j) i 2856 src/simh/sim_tmxr.c int i; i 2868 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2869 src/simh/sim_tmxr.c if (tmxr_open_devices[i]->dptr == dptr) { i 2870 src/simh/sim_tmxr.c int line = (int)get_uint (cptr, 10, tmxr_open_devices[i]->lines, &r); i 2874 src/simh/sim_tmxr.c *snd = &tmxr_open_devices[i]->ldsc[line].send; i 2876 src/simh/sim_tmxr.c *exp = &tmxr_open_devices[i]->ldsc[line].expect; i 2902 src/simh/sim_tmxr.c int32 i; i 2923 src/simh/sim_tmxr.c for (i=0; i<mp->lines; i++) { i 2924 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; i 2925 src/simh/sim_tmxr.c mp->ldsc[i].expect.dbit = TMXR_DBG_EXP; i 2926 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; i 2927 src/simh/sim_tmxr.c mp->ldsc[i].send.dbit = TMXR_DBG_SEND; i 2948 src/simh/sim_tmxr.c int i, j; i 2953 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) { i 2954 src/simh/sim_tmxr.c TMXR *mp = tmxr_open_devices[i]; i 3036 src/simh/sim_tmxr.c int32 i; i 3039 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru conn */ i 3040 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 3099 src/simh/sim_tmxr.c int32 i; i 3108 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { i 3109 src/simh/sim_tmxr.c UNIT *uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; i 3110 src/simh/sim_tmxr.c UNIT *o_uptr = mp->ldsc[i].o_uptr ? mp->ldsc[i].o_uptr : mp->uptr; i 3383 src/simh/sim_tmxr.c int32 i, len; i 3418 src/simh/sim_tmxr.c for (i = 0; i < len; ++i) { i 3419 src/simh/sim_tmxr.c if (('\n' == buf[i]) && ((i == 0) || ('\r' != buf[i-1]))) { i 3424 src/simh/sim_tmxr.c while (SCPE_STALL == tmxr_putc_ln (lp, buf[i])) i 3784 src/simh/sim_tmxr.c int32 i, j, low, last; i 3800 src/simh/sim_tmxr.c i = *iptr++; /* get next line in list */ i 3802 src/simh/sim_tmxr.c i = -1; /* get "tie-off" value */ i 3804 src/simh/sim_tmxr.c if (i != last + 1) { /* end of a range? */ i 3819 src/simh/sim_tmxr.c low = i; /* start new range */ i 3822 src/simh/sim_tmxr.c last = i; /* note value for range check */ i 3837 src/simh/sim_tmxr.c int32 i, t; i 3841 src/simh/sim_tmxr.c for (i = t = 0; i < mp->lines; i++) i 3842 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3857 src/simh/sim_tmxr.c int32 i, any; i 3861 src/simh/sim_tmxr.c for (i = any = 0; i < mp->lines; i++) { i 3862 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3863 src/simh/sim_tmxr.c || mp->ldsc[i].modem_control) { i 3864 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3868 src/simh/sim_tmxr.c tmxr_fconns (st, &mp->ldsc[i], i); i 3870 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3872 src/simh/sim_tmxr.c tmxr_fstats (st, &mp->ldsc[i], i);