i 333 src/decNumber/decNumber.c Int i=X10(hi)+lo; i 334 src/decNumber/decNumber.c if (dn->bits&DECNEG) return -i; i 335 src/decNumber/decNumber.c return i; i 733 src/decNumber/decNumber.c Int i, j; i 736 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 737 src/decNumber/decNumber.c if (a&b&1) *uc=*uc+(Unit)powers[i]; // effect AND i 746 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1089 src/decNumber/decNumber.c Int i, j; // work i 1095 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 1096 src/decNumber/decNumber.c if ((~a)&1) *uc=*uc+(Unit)powers[i]; // effect INVERT i 1103 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1689 src/decNumber/decNumber.c Int i, j; i 1691 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 1692 src/decNumber/decNumber.c if ((a|b)&1) *uc=*uc+(Unit)powers[i]; // effect OR i 1701 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1799 src/decNumber/decNumber.c Int i; // work i 2048 src/decNumber/decNumber.c for (i=1;;i++){ // for each bit [top bit ignored] i 2060 src/decNumber/decNumber.c if (i==31) break; // that was the last bit i 3072 src/decNumber/decNumber.c Int i, j; i 3074 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 3075 src/decNumber/decNumber.c if ((a^b)&1) *uc=*uc+(Unit)powers[i]; // effect XOR i 3084 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 5174 src/decNumber/decNumber.c Int i; // counter i 5181 src/decNumber/decNumber.c for (i=1;;i++){ // for each bit [top bit ignored] i 5190 src/decNumber/decNumber.c if (i==31) break; // that was the last bit i 171 src/decNumber/decNumberLocal.h # define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) //-V1003 i 172 src/decNumber/decNumberLocal.h # define ROUNDUP4(i) (((i)+3)&~3) /* special for n=4 */ i 175 src/decNumber/decNumberLocal.h # define ROUNDDOWN(i, n) (((i)/n)*n) //-V1003 i 176 src/decNumber/decNumberLocal.h # define ROUNDDOWN4(i) ((i)&~3) /* special for n=4 */ i 189 src/decNumber/decNumberLocal.h # define UBFROMUS(b, i) (uswork=(i), memcpy(b, (void *)&uswork, 2)) i 190 src/decNumber/decNumberLocal.h # define UBFROMUI(b, i) (uiwork=(i), memcpy(b, (void *)&uiwork, 4)) i 194 src/decNumber/decNumberLocal.h # define X10(i) (((i)<<1)+((i)<<3)) i 195 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 21 src/dps8/doAppendCycleABSA.h DCDstruct * i = & cpu.currentInstruction; i 29 src/dps8/doAppendCycleABSA.h if (i->b29) { i 40 src/dps8/doAppendCycleABSA.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 41 src/dps8/doAppendCycleABSA.h i->opcode == 0154 || i->opcode == 0173) && i 42 src/dps8/doAppendCycleABSA.h i->opcodeX ) || i 43 src/dps8/doAppendCycleABSA.h ((i->opcode == 0557 || i->opcode == 0257) && i 44 src/dps8/doAppendCycleABSA.h ! i->opcodeX); i 130 src/dps8/doAppendCycleABSA.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 211 src/dps8/doAppendCycleABSA.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 || \ i 212 src/dps8/doAppendCycleABSA.h (i->opcode & 0770)== 020 || (i->opcode & 0770) == 0300)) { i 19 src/dps8/doAppendCycleAPUDataRMW.h DCDstruct * i = & cpu.currentInstruction; i 27 src/dps8/doAppendCycleAPUDataRMW.h if (i->b29) { i 38 src/dps8/doAppendCycleAPUDataRMW.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 39 src/dps8/doAppendCycleAPUDataRMW.h i->opcode == 0154 || i->opcode == 0173) && i 40 src/dps8/doAppendCycleAPUDataRMW.h i->opcodeX ) || i 41 src/dps8/doAppendCycleAPUDataRMW.h ((i->opcode == 0557 || i->opcode == 0257) && i 42 src/dps8/doAppendCycleAPUDataRMW.h ! i->opcodeX); i 139 src/dps8/doAppendCycleAPUDataRMW.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 261 src/dps8/doAppendCycleAPUDataRMW.h if (i->opcodeX && ((i->opcode & 0770)== 0200 || (i->opcode & 0770) == 0220 || \ i 262 src/dps8/doAppendCycleAPUDataRMW.h (i->opcode & 0770)== 020 || (i->opcode & 0770) == 0300)) { i 19 src/dps8/doAppendCycleAPUDataRead.h DCDstruct * i = & cpu.currentInstruction; i 27 src/dps8/doAppendCycleAPUDataRead.h if (i->b29) { i 38 src/dps8/doAppendCycleAPUDataRead.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 39 src/dps8/doAppendCycleAPUDataRead.h i->opcode == 0154 || i->opcode == 0173) && i 40 src/dps8/doAppendCycleAPUDataRead.h i->opcodeX ) || i 41 src/dps8/doAppendCycleAPUDataRead.h ((i->opcode == 0557 || i->opcode == 0257) && i 42 src/dps8/doAppendCycleAPUDataRead.h ! i->opcodeX); i 134 src/dps8/doAppendCycleAPUDataRead.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 222 src/dps8/doAppendCycleAPUDataRead.h if (i->opcodeX && ((i->opcode & 0770)== 0200 || (i->opcode & 0770) == 0220 || \ i 223 src/dps8/doAppendCycleAPUDataRead.h (i->opcode & 0770)== 020 || (i->opcode & 0770) == 0300)) { i 19 src/dps8/doAppendCycleAPUDataStore.h DCDstruct * i = & cpu.currentInstruction; i 27 src/dps8/doAppendCycleAPUDataStore.h if (i->b29) { i 38 src/dps8/doAppendCycleAPUDataStore.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 39 src/dps8/doAppendCycleAPUDataStore.h i->opcode == 0154 || i->opcode == 0173) && i 40 src/dps8/doAppendCycleAPUDataStore.h i->opcodeX ) || i 41 src/dps8/doAppendCycleAPUDataStore.h ((i->opcode == 0557 || i->opcode == 0257) && i 42 src/dps8/doAppendCycleAPUDataStore.h ! i->opcodeX); i 138 src/dps8/doAppendCycleAPUDataStore.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 222 src/dps8/doAppendCycleAPUDataStore.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 223 src/dps8/doAppendCycleAPUDataStore.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 55 src/dps8/doAppendCycleIndirectWordFetch.h DCDstruct * i = & cpu.currentInstruction; i 63 src/dps8/doAppendCycleIndirectWordFetch.h if (i->b29) { i 87 src/dps8/doAppendCycleIndirectWordFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 88 src/dps8/doAppendCycleIndirectWordFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 123 src/dps8/doAppendCycleIndirectWordFetch.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 124 src/dps8/doAppendCycleIndirectWordFetch.h i->opcode == 0154 || i->opcode == 0173) && i 125 src/dps8/doAppendCycleIndirectWordFetch.h i->opcodeX ) || i 126 src/dps8/doAppendCycleIndirectWordFetch.h ((i->opcode == 0557 || i->opcode == 0257) && i 127 src/dps8/doAppendCycleIndirectWordFetch.h ! i->opcodeX); i 230 src/dps8/doAppendCycleIndirectWordFetch.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 327 src/dps8/doAppendCycleIndirectWordFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 328 src/dps8/doAppendCycleIndirectWordFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 65 src/dps8/doAppendCycleInstructionFetch.h DCDstruct * i = & cpu.currentInstruction; i 74 src/dps8/doAppendCycleInstructionFetch.h if (i->b29) { i 116 src/dps8/doAppendCycleInstructionFetch.h if (i->opcode == 0610 && ! i->opcodeX) { i 132 src/dps8/doAppendCycleInstructionFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 133 src/dps8/doAppendCycleInstructionFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 183 src/dps8/doAppendCycleInstructionFetch.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 184 src/dps8/doAppendCycleInstructionFetch.h i->opcode == 0154 || i->opcode == 0173) && i 185 src/dps8/doAppendCycleInstructionFetch.h i->opcodeX ) || i 186 src/dps8/doAppendCycleInstructionFetch.h ((i->opcode == 0557 || i->opcode == 0257) && i 187 src/dps8/doAppendCycleInstructionFetch.h ! i->opcodeX); i 281 src/dps8/doAppendCycleInstructionFetch.h if (i->opcode == 0610 && ! i->opcodeX) i 285 src/dps8/doAppendCycleInstructionFetch.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 460 src/dps8/doAppendCycleInstructionFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 //-V560 i 461 src/dps8/doAppendCycleInstructionFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 597 src/dps8/doAppendCycleInstructionFetch.h if (i->opcode == 0610 && ! i->opcodeX) { i 19 src/dps8/doAppendCycleOperandRMW.h DCDstruct * i = & cpu.currentInstruction; i 27 src/dps8/doAppendCycleOperandRMW.h if (i->b29) { i 38 src/dps8/doAppendCycleOperandRMW.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 39 src/dps8/doAppendCycleOperandRMW.h i->opcode == 0154 || i->opcode == 0173) && i 40 src/dps8/doAppendCycleOperandRMW.h i->opcodeX ) || i 41 src/dps8/doAppendCycleOperandRMW.h ((i->opcode == 0557 || i->opcode == 0257) && i 42 src/dps8/doAppendCycleOperandRMW.h ! i->opcodeX); i 139 src/dps8/doAppendCycleOperandRMW.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 261 src/dps8/doAppendCycleOperandRMW.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 262 src/dps8/doAppendCycleOperandRMW.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 60 src/dps8/doAppendCycleOperandRead.h DCDstruct * i = & cpu.currentInstruction; i 69 src/dps8/doAppendCycleOperandRead.h if (i->b29) { i 74 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TRANSFER_INS) i 76 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) i 99 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) { i 109 src/dps8/doAppendCycleOperandRead.h i 116 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TRANSFER_INS) { i 187 src/dps8/doAppendCycleOperandRead.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 188 src/dps8/doAppendCycleOperandRead.h i->opcode == 0154 || i->opcode == 0173) && i 189 src/dps8/doAppendCycleOperandRead.h i->opcodeX ) || i 190 src/dps8/doAppendCycleOperandRead.h ((i->opcode == 0557 || i->opcode == 0257) && i 191 src/dps8/doAppendCycleOperandRead.h ! i->opcodeX); i 294 src/dps8/doAppendCycleOperandRead.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 302 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) i 306 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TRANSFER_INS) i 567 src/dps8/doAppendCycleOperandRead.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 568 src/dps8/doAppendCycleOperandRead.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 705 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) i 709 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TRANSFER_INS) i 727 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TSPN_INS) { i 728 src/dps8/doAppendCycleOperandRead.h if (i->opcode <= 0273) i 729 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3); i 731 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3) + 4; i 19 src/dps8/doAppendCycleOperandStore.h DCDstruct * i = & cpu.currentInstruction; i 27 src/dps8/doAppendCycleOperandStore.h if (i->b29) { i 38 src/dps8/doAppendCycleOperandStore.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 39 src/dps8/doAppendCycleOperandStore.h i->opcode == 0154 || i->opcode == 0173) && i 40 src/dps8/doAppendCycleOperandStore.h i->opcodeX ) || i 41 src/dps8/doAppendCycleOperandStore.h ((i->opcode == 0557 || i->opcode == 0257) && i 42 src/dps8/doAppendCycleOperandStore.h ! i->opcodeX); i 133 src/dps8/doAppendCycleOperandStore.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 221 src/dps8/doAppendCycleOperandStore.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 222 src/dps8/doAppendCycleOperandStore.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 19 src/dps8/doAppendCycleRTCDOperandFetch.h DCDstruct * i = & cpu.currentInstruction; i 27 src/dps8/doAppendCycleRTCDOperandFetch.h if (i->b29) { i 38 src/dps8/doAppendCycleRTCDOperandFetch.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 39 src/dps8/doAppendCycleRTCDOperandFetch.h i->opcode == 0154 || i->opcode == 0173) && i 40 src/dps8/doAppendCycleRTCDOperandFetch.h i->opcodeX ) || i 41 src/dps8/doAppendCycleRTCDOperandFetch.h ((i->opcode == 0557 || i->opcode == 0257) && i 42 src/dps8/doAppendCycleRTCDOperandFetch.h ! i->opcodeX); i 163 src/dps8/doAppendCycleRTCDOperandFetch.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 256 src/dps8/doAppendCycleRTCDOperandFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 257 src/dps8/doAppendCycleRTCDOperandFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 435 src/dps8/dps8.h # define Y(i) (i & MASKHI18) i 437 src/dps8/dps8.h # define OPSX(i) ((i & 0007000LLU) >> 9) i 439 src/dps8/dps8.h # define X(i) (i & 07U) i 480 src/dps8/dps8.h # define READOP(i) ((bool) (i->info->flags & \ i 487 src/dps8/dps8.h # define WRITEOP(i) ((bool) (i->info->flags & \ i 495 src/dps8/dps8.h # define RMWOP(i) ((bool) READOP(i) && WRITEOP(i)) i 497 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 375 src/dps8/dps8_absi.c for (int i = 0; i < sz; i ++) i 377 src/dps8/dps8_absi.c (void)fprintf (stderr, " %06o %04x ", pkt[i], pkt[i]); i 379 src/dps8/dps8_absi.c (void)fprintf (stderr, "%c", pkt[i] & (1 << (16 - b)) ? '1' : '0'); i 114 src/dps8/dps8_addrmods.c DCDstruct * i = & cpu.currentInstruction; i 118 src/dps8/dps8_addrmods.c if (READOP (i)) i 144 src/dps8/dps8_addrmods.c if (WRITEOP (i)) i 173 src/dps8/dps8_addrmods.c if (TRANSOP (i)) i 181 src/dps8/dps8_addrmods.c if (! READOP (i) && ! WRITEOP (i) && ! TRANSOP (i) && i 182 src/dps8/dps8_addrmods.c i -> info -> flags & PREPARE_CA) i 381 src/dps8/dps8_addrmods.c DCDstruct * i = & cpu.currentInstruction; i 390 src/dps8/dps8_addrmods.c if (i -> info -> flags & NO_TAG) // for instructions line STCA/STCQ i 945 src/dps8/dps8_addrmods.c Read (cpu.TPR.CA, & cpu.ou.character_data, (i->info->flags & RMW) == \ i 142 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 143 src/dps8/dps8_append.c usages[i] = -1; i 145 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 147 src/dps8/dps8_append.c ptw_s * p = cpu.PTWAM + i; i 150 src/dps8/dps8_append.c i, p->USE, N_MODEL_WAM_ENTRIES - 1); i 153 src/dps8/dps8_append.c i, usages[p->USE], p->USE); i 154 src/dps8/dps8_append.c usages[p->USE] = i; i 156 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 158 src/dps8/dps8_append.c if (usages[i] == -1) i 159 src/dps8/dps8_append.c sim_printf ("No PTWAM had a USE of %d\n", i); i 178 src/dps8/dps8_append.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 180 src/dps8/dps8_append.c cpu.SDWAM[i].FE = 0; i 181 src/dps8/dps8_append.c L68_ (cpu.SDWAM[i].USE = (word4) i;) i 182 src/dps8/dps8_append.c DPS8M_ (cpu.SDWAM[i].USE = 0;) i 191 src/dps8/dps8_append.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 193 src/dps8/dps8_append.c cpu.PTWAM[i].FE = 0; i 194 src/dps8/dps8_append.c L68_ (cpu.PTWAM[i].USE = (word4) i;) i 195 src/dps8/dps8_append.c DPS8M_ (cpu.PTWAM[i].USE = 0;) i 1194 src/dps8/dps8_append.c DCDstruct * i = & cpu.currentInstruction; i 1208 src/dps8/dps8_append.c if (i->b29) i 1225 src/dps8/dps8_append.c nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 1226 src/dps8/dps8_append.c i->opcode == 0154 || i->opcode == 0173) && i->opcodeX) || i 1227 src/dps8/dps8_append.c ((i->opcode == 0557 || i->opcode == 0257) && ! i->opcodeX); i 1374 src/dps8/dps8_append.c i->opcode == 0610 && ! i->opcodeX) i 1377 src/dps8/dps8_append.c sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 1385 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & CALL6_INS)) i 1398 src/dps8/dps8_append.c i 1402 src/dps8/dps8_append.c i 1406 src/dps8/dps8_append.c i 1411 src/dps8/dps8_append.c (thisCycle == OPERAND_READ && (i->info->flags & TRANSFER_INS))) i 1795 src/dps8/dps8_append.c if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 1796 src/dps8/dps8_append.c || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) i 1930 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & CALL6_INS)) i 1935 src/dps8/dps8_append.c (thisCycle == OPERAND_READ && (i->info->flags & TRANSFER_INS))) i 2046 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & TSPN_INS)) i 2049 src/dps8/dps8_append.c if (i->opcode <= 0273) i 2050 src/dps8/dps8_append.c n = (i->opcode & 3); i 2052 src/dps8/dps8_append.c n = (i->opcode & 3) + 4; i 2073 src/dps8/dps8_append.c i->opcode == 0610 && ! i->opcodeX) i 1337 src/dps8/dps8_cable.c #define all(i,n) \ i 1338 src/dps8/dps8_cable.c for (uint i = 0; i < n; i ++) i 1388 src/dps8/dps8_cable.c for (int i = 0; i < N_CPU_UNITS_MAX; i++) i 1389 src/dps8/dps8_cable.c if (cpus_used[i]) i 1393 src/dps8/dps8_cable.c i + 'A'); i 1398 src/dps8/dps8_cable.c for (int i = 0; i < N_SCU_UNITS_MAX; i++) i 1399 src/dps8/dps8_cable.c if (scus_used[i]) i 1403 src/dps8/dps8_cable.c i + 'A'); i 1408 src/dps8/dps8_cable.c for (int i = 0; i < N_IOM_UNITS_MAX; i++) i 1409 src/dps8/dps8_cable.c if (ioms_used[i]) i 1413 src/dps8/dps8_cable.c i + 'A'); i 403 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) i 405 src/dps8/dps8_console.c console_state[i].io_mode = opc_no_mode; i 406 src/dps8/dps8_console.c console_state[i].tailp = console_state[i].keyboardLineBuffer; i 407 src/dps8/dps8_console.c console_state[i].readp = console_state[i].keyboardLineBuffer; i 408 src/dps8/dps8_console.c console_state[i].carrierPosition = 1; i 409 src/dps8/dps8_console.c (void)memset (console_state[i].tabStops, 0, sizeof (console_state[i].tabStops)); i 410 src/dps8/dps8_console.c console_state[i].escapeSequence = false; i 417 src/dps8/dps8_console.c for (uint i = 0; i < opc_dev.numunits; i ++) i 419 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 424 src/dps8/dps8_console.c return (int) i; i 435 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) i 437 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 458 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) { i 459 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 465 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); i 778 src/dps8/dps8_console.c int i; i 779 src/dps8/dps8_console.c for (i = 0; i < 64; i ++) i 780 src/dps8/dps8_console.c if (bcd_code_page[i] == c) i 782 src/dps8/dps8_console.c if (i >= 64) i 785 src/dps8/dps8_console.c i = 017; //-V536 i 787 src/dps8/dps8_console.c putbits36_6 (bufp, charno * 6, (word6) i); i 991 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) i 992 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); i 1504 src/dps8/dps8_console.c i 1505 src/dps8/dps8_console.c i 1507 src/dps8/dps8_console.c i 1520 src/dps8/dps8_console.c i 1521 src/dps8/dps8_console.c i 1523 src/dps8/dps8_console.c i 1550 src/dps8/dps8_console.c for (int i = 0; i < 6; i ++) { i 1576 src/dps8/dps8_console.c for (uint i = 0; i < lp; i ++) { i 1592 src/dps8/dps8_console.c for (int i = 0; i < 4; i ++) { i 1922 src/dps8/dps8_console.c for (size_t i = 0; i < l; i ++) i 1923 src/dps8/dps8_console.c sim_putchar (str[i]); i 139 src/dps8/dps8_cpu.c #define PBI_8(i) \ i 140 src/dps8/dps8_cpu.c ( ((i) & 0x80ll) ? '1' : '0' ), \ i 141 src/dps8/dps8_cpu.c ( ((i) & 0x40ll) ? '1' : '0' ), \ i 142 src/dps8/dps8_cpu.c ( ((i) & 0x20ll) ? '1' : '0' ), \ i 143 src/dps8/dps8_cpu.c ( ((i) & 0x10ll) ? '1' : '0' ), \ i 144 src/dps8/dps8_cpu.c ( ((i) & 0x08ll) ? '1' : '0' ), \ i 145 src/dps8/dps8_cpu.c ( ((i) & 0x04ll) ? '1' : '0' ), \ i 146 src/dps8/dps8_cpu.c ( ((i) & 0x02ll) ? '1' : '0' ), \ i 147 src/dps8/dps8_cpu.c ( ((i) & 0x01ll) ? '1' : '0' ) i 153 src/dps8/dps8_cpu.c #define PBI_16(i) PBI_8((i) >> 8), PBI_8(i) i 154 src/dps8/dps8_cpu.c #define PBI_32(i) PBI_16((i) >> 16), PBI_16(i) i 155 src/dps8/dps8_cpu.c #define PBI_64(i) PBI_32((i) >> 32), PBI_32(i) i 177 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 180 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.enable [i]); i 182 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.init_enable [i]); i 184 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.assignment [i]); i 186 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.interlace [i]); i 188 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.store_size [i]); i 756 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 757 src/dps8/dps8_cpu.c if (stall_points[i].segno || stall_points[i].offset) i 764 src/dps8/dps8_cpu.c (long)i, stall_points[i].segno, stall_points[i].offset, i 765 src/dps8/dps8_cpu.c (unsigned long)stall_points[i].time); i 814 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 928 src/dps8/dps8_cpu.c for (uint i = 0; i < MEMSIZE; i ++) i 932 src/dps8/dps8_cpu.c M[i] = (M[i] & ~(MASK36 | MEM_LOCKED)) | MEM_UNINITIALIZED; i 934 src/dps8/dps8_cpu.c M[i] = (M[i] & ~(MASK36)) | MEM_UNINITIALIZED; i 1468 src/dps8/dps8_cpu.c for (uint i = 0; i < 8; i ++) i 1471 src/dps8/dps8_cpu.c sim_msg (" %9lld\r\n", (long long int) cpus[i].instrCnt); i 1473 src/dps8/dps8_cpu.c sim_msg (" %'9lld\r\n", (long long int) cpus[i].instrCnt); i 1475 src/dps8/dps8_cpu.c cpus[i].instrCnt = 0; i 1560 src/dps8/dps8_cpu.c for (int i = 0; i < N_FAULTS; i ++) i 1561 src/dps8/dps8_cpu.c cpu.faultCnt [i] = 0; i 1570 src/dps8/dps8_cpu.c for (uint i = 0; i < N_CPU_UNITS_MAX; i ++) i 1572 src/dps8/dps8_cpu.c cpu_reset_unit_idx (i, true); i 1687 src/dps8/dps8_cpu.c for (size_t i=0; i < sizeof( pt ); i++) i 1689 src/dps8/dps8_cpu.c sim_msg ("%02x", (unsigned)(ptc[i])); i 1908 src/dps8/dps8_cpu.c i 1910 src/dps8/dps8_cpu.c i 2678 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 2679 src/dps8/dps8_cpu.c if (stall_points[i].segno && stall_points[i].segno == cpu.PPR.PSR && i 2680 src/dps8/dps8_cpu.c stall_points[i].offset && stall_points[i].offset == cpu.PPR.IC) i 2683 src/dps8/dps8_cpu.c (void)fprintf (stderr, "%10lu %s stall %d\n", seqno (), cpunstr[current_running_cpu_idx], i); i 2686 src/dps8/dps8_cpu.c sim_usleep(stall_points[i].time); i 3280 src/dps8/dps8_cpu.c i 3282 src/dps8/dps8_cpu.c i 3284 src/dps8/dps8_cpu.c i 3320 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3321 src/dps8/dps8_cpu.c if (i->info->flags & (READ_OPERAND | STORE_OPERAND)) i 3323 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YPAIR | STORE_YPAIR)) i 3325 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK8 | STORE_YBLOCK8)) i 3327 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK16 | STORE_YBLOCK16)) i 3329 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK32 | STORE_YBLOCK32)) i 3340 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3341 src/dps8/dps8_cpu.c if (RMWOP (i)) // ldac, ldqc, stac, stacq, snzc i 3442 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3443 src/dps8/dps8_cpu.c if (RMWOP (i)) i 3878 src/dps8/dps8_cpu.c p->i = GET_I (inst); // "I" inhibit interrupt flag i 4477 src/dps8/dps8_cpu.c int32 i, j, len; i 4513 src/dps8/dps8_cpu.c for (i = j = 0; i < len; ++i) i 4515 src/dps8/dps8_cpu.c if ('\n' == buf[i]) i 4517 src/dps8/dps8_cpu.c if (i >= j) i 4519 src/dps8/dps8_cpu.c if ((i != j) || (i == 0)) i 4523 src/dps8/dps8_cpu.c current_running_cpu_idx, dptr->name, debug_type, i-j, &buf[j]); i 4526 src/dps8/dps8_cpu.c j = i + 1; i 4980 src/dps8/dps8_cpu.c i 4981 src/dps8/dps8_cpu.c i 4982 src/dps8/dps8_cpu.c i 5016 src/dps8/dps8_cpu.c for (int i = 0; i < N_CPU_UNITS_MAX; i ++) { i 5017 src/dps8/dps8_cpu.c cpus[i].switches.FLT_BASE = 2; // Some of the UnitTests assume this i 5018 src/dps8/dps8_cpu.c cpus[i].instrCnt = 0; i 5019 src/dps8/dps8_cpu.c cpus[i].cycleCnt = 0; i 5021 src/dps8/dps8_cpu.c cpus[i].faultCnt [j] = 0; i 676 src/dps8/dps8_cpu.h bool i; // interrupt inhibit bit. i 2199 src/dps8/dps8_cpu.h if ((i & 0xff) == 0) \ i 2221 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2223 src/dps8/dps8_cpu.h MEM_LOCKED_BIT) == 1 && i > 0) \ i 2225 src/dps8/dps8_cpu.h i--; \ i 2228 src/dps8/dps8_cpu.h if (i == 0) \ i 2234 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2236 src/dps8/dps8_cpu.h (lockStatePtr)->lockWait += (DEADLOCK_DETECT-i); \ i 2237 src/dps8/dps8_cpu.h (lockStatePtr)->lockWaitMax = ((DEADLOCK_DETECT-i) > \ i 2239 src/dps8/dps8_cpu.h (DEADLOCK_DETECT-i) : (lockStatePtr)->lockWaitMax; \ i 2264 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2267 src/dps8/dps8_cpu.h && i > 0) \ i 2269 src/dps8/dps8_cpu.h i--; \ i 2272 src/dps8/dps8_cpu.h if (i == 0) \ i 2278 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2280 src/dps8/dps8_cpu.h (lockStatePtr)->lockWait += (DEADLOCK_DETECT-i); \ i 2281 src/dps8/dps8_cpu.h (lockStatePtr)->lockWaitMax = ((DEADLOCK_DETECT-i) > \ i 2282 src/dps8/dps8_cpu.h (lockStatePtr)->lockWaitMax) ? (DEADLOCK_DETECT-i) : \ i 2315 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2317 src/dps8/dps8_cpu.h MEM_LOCKED) & MEM_LOCKED) && i > 0) \ i 2319 src/dps8/dps8_cpu.h i--; \ i 2322 src/dps8/dps8_cpu.h if (i == 0) \ i 2328 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2330 src/dps8/dps8_cpu.h (lockStatePtr)->lockWait += (DEADLOCK_DETECT-i); \ i 2331 src/dps8/dps8_cpu.h (lockStatePtr)->lockWaitMax = ((DEADLOCK_DETECT-i) > \ i 2333 src/dps8/dps8_cpu.h (DEADLOCK_DETECT-i) : (lockStatePtr)->lockWaitMax; \ i 2359 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) i 2361 src/dps8/dps8_cpu.h core_read (cpup, addr + i, data + i, ctx); i 2369 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) i 2371 src/dps8/dps8_cpu.h core_write (cpup, addr + i, data [i], ctx); i 265 src/dps8/dps8_crdpun.c for (int i = 0; i < N_PUN_UNITS_MAX; i ++) i 267 src/dps8/dps8_crdpun.c pun_state [i] . punfile_raw = -1; i 268 src/dps8/dps8_crdpun.c pun_state [i] . current_state = Idle; i 679 src/dps8/dps8_crdpun.c for (uint i = 0; i < 80; i++) i 681 src/dps8/dps8_crdpun.c sim_printf(" %04o\n", word12_buffer[i]); i 701 src/dps8/dps8_crdpun.c for (uint i = 0; i < tally; i ++) i 703 src/dps8/dps8_crdpun.c sim_printf (" %012llo\n", (unsigned long long)buffer [i]); i 220 src/dps8/dps8_crdrdr.c for (uint i = 0; i < N_RDR_UNITS_MAX; i ++) i 221 src/dps8/dps8_crdrdr.c rdr_state [i] . deckfd = -1; i 227 src/dps8/dps8_crdrdr.c i 381 src/dps8/dps8_crdrdr.c for (size_t i = 0; i < l; i ++) i 674 src/dps8/dps8_crdrdr.c for (uint i = 0; i < 80; i ++) { i 675 src/dps8/dps8_crdrdr.c if (isprint (cardImage [i])) i 676 src/dps8/dps8_crdrdr.c sim_printf ("%c", cardImage [i]); i 678 src/dps8/dps8_crdrdr.c sim_printf ("\\%03o", cardImage [i]); i 688 src/dps8/dps8_crdrdr.c for (uint i = 0; i < 27; i ++) i 689 src/dps8/dps8_crdrdr.c buffer [i] = extr36 ((uint8 *) rawCardImage, i); i 700 src/dps8/dps8_crdrdr.c i 701 src/dps8/dps8_crdrdr.c i 739 src/dps8/dps8_crdrdr.c i 740 src/dps8/dps8_crdrdr.c i 741 src/dps8/dps8_crdrdr.c i 294 src/dps8/dps8_decimal.c i 295 src/dps8/dps8_decimal.c i 338 src/dps8/dps8_decimal.c i 339 src/dps8/dps8_decimal.c i 382 src/dps8/dps8_decimal.c i 383 src/dps8/dps8_decimal.c i 464 src/dps8/dps8_decimal.c i 465 src/dps8/dps8_decimal.c i 489 src/dps8/dps8_decimal.c i 490 src/dps8/dps8_decimal.c i 530 src/dps8/dps8_decimal.c i 531 src/dps8/dps8_decimal.c i 565 src/dps8/dps8_decimal.c i 566 src/dps8/dps8_decimal.c i 589 src/dps8/dps8_decimal.c i 590 src/dps8/dps8_decimal.c i 624 src/dps8/dps8_decimal.c i 627 src/dps8/dps8_decimal.c i 648 src/dps8/dps8_decimal.c i 649 src/dps8/dps8_decimal.c i 673 src/dps8/dps8_decimal.c i 674 src/dps8/dps8_decimal.c i 687 src/dps8/dps8_decimal.c i 688 src/dps8/dps8_decimal.c i 814 src/dps8/dps8_decimal.c for (int i = 0; i < nout; i ++) { i 815 src/dps8/dps8_decimal.c if (i < justif) i 816 src/dps8/dps8_decimal.c out [i] = '0'; i 818 src/dps8/dps8_decimal.c out [i] = tmp [i - justif] + '0'; i 862 src/dps8/dps8_decimal.c i 863 src/dps8/dps8_decimal.c i 864 src/dps8/dps8_decimal.c i 866 src/dps8/dps8_decimal.c i 382 src/dps8/dps8_disk.c uint i; i 383 src/dps8/dps8_disk.c for (i = 0; i < N_DISK_TYPES; i++) i 385 src/dps8/dps8_disk.c if (strcasecmp (cptr, diskTypes[i].typename) == 0) i 388 src/dps8/dps8_disk.c if (i >= N_DISK_TYPES) i 403 src/dps8/dps8_disk.c dsk_states[diskUnitIdx].typeIdx = i; i 404 src/dps8/dps8_disk.c dsk_unit[diskUnitIdx].capac = (t_addr) diskTypes[i].capac; i 405 src/dps8/dps8_disk.c dsk_states[diskUnitIdx].tAndDCapac = tAndDCapac[i]; i 684 src/dps8/dps8_disk.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) i 687 src/dps8/dps8_disk.c pthread_mutex_init (& dsk_states[i].dsk_lock, & scu_attr); i 689 src/dps8/dps8_disk.c pthread_mutex_init (& dsk_states[i].dsk_lock, NULL); i 923 src/dps8/dps8_disk.c for (uint i = 0; i < tally; i ++) i 928 src/dps8/dps8_disk.c buffer[i] = w; i 995 src/dps8/dps8_disk.c for (uint i = 0; i < tally; i ++) i 998 src/dps8/dps8_disk.c buffer[i]); i 568 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 569 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 573 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], p -> SNR, p -> cachedAddr + i); i 578 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 579 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 581 src/dps8/dps8_eis.c Write1 (cpup, p->cachedAddr+i, p -> cachedParagraph[i], true); i 582 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 596 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 597 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 601 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], cpu.TPR.TSR, p -> cachedAddr + i); i 606 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 607 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 609 src/dps8/dps8_eis.c Write1 (cpup, p->cachedAddr+i, p -> cachedParagraph[i], false); i 610 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 649 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 652 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], p -> SNR, paragraphAddress + i); i 669 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 672 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], cpu.TPR.TSR, paragraphAddress + i); i 677 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 678 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 810 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 814 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 818 src/dps8/dps8_eis.c __func__, data [i], p -> SNR, addressN + i); i 834 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 837 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 872 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 876 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 880 src/dps8/dps8_eis.c __func__, data [i], p -> SNR, addressN + i); i 896 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 899 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 905 src/dps8/dps8_eis.c static word9 EISget469 (cpu_state_t * cpup, int k, uint i) i 926 src/dps8/dps8_eis.c uint nChars = i + e -> CN [k - 1]; i 967 src/dps8/dps8_eis.c static void EISput469 (cpu_state_t * cpup, int k, uint i, word9 c469) i 988 src/dps8/dps8_eis.c uint nChars = i + e -> CN [k - 1]; i 1317 src/dps8/dps8_eis.c for (int i = 0; i < 3; i ++) i 1319 src/dps8/dps8_eis.c if (i < cpu.currentInstruction.info -> ndes) i 1320 src/dps8/dps8_eis.c setupOperandDescriptor (cpup, i + 1); i 1322 src/dps8/dps8_eis.c setupOperandDescriptorCache (cpup, i + 1); i 4558 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 4559 src/dps8/dps8_eis.c pg [i] = w; i 5378 src/dps8/dps8_eis.c for(int i = 0 ; i < 8 ; i += 1) i 5390 src/dps8/dps8_eis.c e->editInsertionTable[i] = entry & 0777; // keep to 9-bits i 7864 src/dps8/dps8_eis.c for (int i = 0 ; i < n2 ; i ++) i 7869 src/dps8/dps8_eis.c (word9) (res[i] - '0')); i 7872 src/dps8/dps8_eis.c EISwrite49 (cpup, & e->ADDR2, & pos, (int) dstTN, (word9) res[i]); i 8964 src/dps8/dps8_eis.c uint i; i 8965 src/dps8/dps8_eis.c for(i = 0 ; i < min(e->N1, e->N2) ; i += 1) i 8970 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 8986 src/dps8/dps8_eis.c for(; i < e->N2 ; i += 1) i 8990 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 9006 src/dps8/dps8_eis.c for(; i < e->N1 ; i += 1) i 9010 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 9633 src/dps8/dps8_eis.c int i; i 9634 src/dps8/dps8_eis.c for (i=30;i>=0;i--) { i 9639 src/dps8/dps8_eis.c tmp[i] = (char) r + '0'; i 9655 src/dps8/dps8_eis.c int i; i 9656 src/dps8/dps8_eis.c for (i=30;i>=0;i--) { i 9657 src/dps8/dps8_eis.c tmp[i] = x%10 + '0'; i 9665 src/dps8/dps8_eis.c decNumber *op1 = decNumberFromString(&_1, tmp+i, &set); i 9708 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 9712 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR2, &pos, (int) dstTN, (word9) (res[i] - '0')); i 9715 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR2, &pos, (int) dstTN, (word9) res[i]); i 10092 src/dps8/dps8_eis.c for (int i = 0; i < n1; i++) { i 10096 src/dps8/dps8_eis.c x = add_128 (x, construct_128 (0, (uint) e->inBuffer[i])); i 10108 src/dps8/dps8_eis.c for (int i = 0; i < n1; i++) { i 10110 src/dps8/dps8_eis.c x += e->inBuffer[i]; i 10127 src/dps8/dps8_eis.c for(int i = 0; i < (int)e->N2; i++) { i 10318 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 10709 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 10780 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 10784 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 10787 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11030 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 11101 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 11105 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11108 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11371 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 11440 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 11444 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11447 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11719 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 11723 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11726 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 12033 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 12037 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 12040 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 12220 src/dps8/dps8_eis.c i 12221 src/dps8/dps8_eis.c i 12233 src/dps8/dps8_eis.c i 12234 src/dps8/dps8_eis.c i 12241 src/dps8/dps8_eis.c i 12242 src/dps8/dps8_eis.c i 12243 src/dps8/dps8_eis.c i 12245 src/dps8/dps8_eis.c i 12527 src/dps8/dps8_eis.c i 12528 src/dps8/dps8_eis.c i 12554 src/dps8/dps8_eis.c i 12555 src/dps8/dps8_eis.c i 12645 src/dps8/dps8_eis.c i 12646 src/dps8/dps8_eis.c i 12651 src/dps8/dps8_eis.c i 12652 src/dps8/dps8_eis.c i 12691 src/dps8/dps8_eis.c i 12692 src/dps8/dps8_eis.c i 12715 src/dps8/dps8_eis.c i 12716 src/dps8/dps8_eis.c i 12746 src/dps8/dps8_eis.c i 12749 src/dps8/dps8_eis.c i 12774 src/dps8/dps8_eis.c i 12775 src/dps8/dps8_eis.c i 12788 src/dps8/dps8_eis.c i 12789 src/dps8/dps8_eis.c i 12816 src/dps8/dps8_eis.c i 12817 src/dps8/dps8_eis.c i 12824 src/dps8/dps8_eis.c i 12825 src/dps8/dps8_eis.c i 12843 src/dps8/dps8_eis.c i 12844 src/dps8/dps8_eis.c i 13034 src/dps8/dps8_eis.c int clz1, clz2, i; i 13035 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) i 13036 src/dps8/dps8_eis.c if (inBufferop1[i]!=0) i 13038 src/dps8/dps8_eis.c clz1 = i; i 13039 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) i 13040 src/dps8/dps8_eis.c if (e->inBuffer[i]!=0) // this still holds op2 digits i 13042 src/dps8/dps8_eis.c clz2 = i; i 13135 src/dps8/dps8_eis.c for (int i = n2; i > 0; i--) // incl.zero terminator i 13136 src/dps8/dps8_eis.c res[i] = res[i-1]; i 13185 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 13189 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 13192 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 13476 src/dps8/dps8_eis.c int clz1, clz2, i; i 13477 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) i 13478 src/dps8/dps8_eis.c if (inBufferop1[i]!=0) i 13480 src/dps8/dps8_eis.c clz1 = i; i 13481 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) i 13482 src/dps8/dps8_eis.c if (e->inBuffer[i]!=0) // this still holds op2 digits i 13484 src/dps8/dps8_eis.c clz2 = i; i 13580 src/dps8/dps8_eis.c for (int i = n3; i > 0; i--) // incl.zero terminator i 13581 src/dps8/dps8_eis.c res[i] = res[i-1]; i 13632 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 13636 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 13639 src/dps8/dps8_eis.c EISwrite49(cpup, &e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 380 src/dps8/dps8_fnp2.c i 395 src/dps8/dps8_fnp2.c for (uint i = 0; i < 4; i ++) i 396 src/dps8/dps8_fnp2.c if (! fudp -> fnpMBXinUse [i]) i 397 src/dps8/dps8_fnp2.c return (int) i; i 528 src/dps8/dps8_fnp2.c i 530 src/dps8/dps8_fnp2.c i 531 src/dps8/dps8_fnp2.c i 533 src/dps8/dps8_fnp2.c i 541 src/dps8/dps8_fnp2.c i 543 src/dps8/dps8_fnp2.c i 544 src/dps8/dps8_fnp2.c i 546 src/dps8/dps8_fnp2.c i 552 src/dps8/dps8_fnp2.c for (uint i = 0; i < n_chars; i += 4, j++) i 555 src/dps8/dps8_fnp2.c if (i < linep->nPos) i 556 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 0, linep->buffer [i]); i 557 src/dps8/dps8_fnp2.c if (i + 1 < linep->nPos) i 558 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 9, linep->buffer [i + 1]); i 559 src/dps8/dps8_fnp2.c if (i + 2 < linep->nPos) i 560 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 18, linep->buffer [i + 2]); i 561 src/dps8/dps8_fnp2.c if (i + 3 < linep->nPos) i 562 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 27, linep->buffer [i + 3]); i 579 src/dps8/dps8_fnp2.c i 580 src/dps8/dps8_fnp2.c i 871 src/dps8/dps8_fnp2.c for(int i = 0 ; i < nSpaces ; i += 1) i 1339 src/dps8/dps8_fnp2.c i 1341 src/dps8/dps8_fnp2.c i 1357 src/dps8/dps8_fnp2.c i 1359 src/dps8/dps8_fnp2.c i 1702 src/dps8/dps8_fnp2.c i 1703 src/dps8/dps8_fnp2.c i 1704 src/dps8/dps8_fnp2.c i 1706 src/dps8/dps8_fnp2.c i 2123 src/dps8/dps8_fnp2.c for (int i = 0; i < n_fw_entries; i ++) i 2125 src/dps8/dps8_fnp2.c struct fw_entry_s * p = fw_entries + i; i 2634 src/dps8/dps8_fnp2.c for (uint i = 0; i < l; i ++) i 2635 src/dps8/dps8_fnp2.c buf[i] = a2e[msg[i]]; i 2761 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 2763 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, " %02x", buf[i]); i 62 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n; i ++) i 63 src/dps8/dps8_fnp2_iomcmd.c data [i] = M [addr + i] & DMASK; i 123 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 8; i ++) i 125 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("CS mbx %d\n", i); i 127 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word1); i 129 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word2); i 131 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [0]); i 133 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [1]); i 135 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [2]); i 137 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word6); i 139 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 4; i ++) i 141 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("FNP mbx %d\n", i); i 143 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].word1); i 145 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].word2); i 147 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [0]); i 149 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [1]); i 151 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [2]); i 171 src/dps8/dps8_fnp2_iomcmd.c for (uint i=0; i < 3; i++) i 173 src/dps8/dps8_fnp2_iomcmd.c decoded_p->smbx+COMMAND_DATA + i, & command_data [i], direct_load); i 496 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < echoTableLen; i ++) i 499 src/dps8/dps8_fnp2_iomcmd.c decoded_p->chan_num, data_addr + i, & echoTable [i], i 506 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 8; i ++) i 508 src/dps8/dps8_fnp2_iomcmd.c word36 w = echoTable [i]; i 521 src/dps8/dps8_fnp2_iomcmd.c i 524 src/dps8/dps8_fnp2_iomcmd.c i 1121 src/dps8/dps8_fnp2_iomcmd.c i 1122 src/dps8/dps8_fnp2_iomcmd.c i 1128 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < tally; i ++) i 1131 src/dps8/dps8_fnp2_iomcmd.c if (data [i] == 0x100) i 1146 src/dps8/dps8_fnp2_iomcmd.c linep->frame[linep->frameLen ++] = (uint8_t) (data [i] & 0xff); i 1180 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < tally; i ++) i 1182 src/dps8/dps8_fnp2_iomcmd.c uint byteOff = i % 4; i 1185 src/dps8/dps8_fnp2_iomcmd.c wordOff = i / 4; i 1193 src/dps8/dps8_fnp2_iomcmd.c data [i] = byte & 0377; i 1195 src/dps8/dps8_fnp2_iomcmd.c data9 [i] = (uint16_t) byte; i 1203 src/dps8/dps8_fnp2_iomcmd.c i 1205 src/dps8/dps8_fnp2_iomcmd.c i 1206 src/dps8/dps8_fnp2_iomcmd.c i 1208 src/dps8/dps8_fnp2_iomcmd.c i 1259 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < dcwCnt; i ++) i 1264 src/dps8/dps8_fnp2_iomcmd.c iom_direct_data_service (decoded_p->iom_unit, decoded_p->chan_num, dcwAddr + i, & dcw, direct_load); i 1342 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < linep->nPos; i ++) i 1344 src/dps8/dps8_fnp2_iomcmd.c if (isgraph (linep->buffer [i])) i 1345 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("%c", linep->buffer [i]); i 1347 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("\\%03o", linep->buffer [i]); i 1355 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n_chars_in_buf; i += 4) i 1358 src/dps8/dps8_fnp2_iomcmd.c if (i < n_chars_in_buf) //-V547 i 1360 src/dps8/dps8_fnp2_iomcmd.c if (i + 1 < n_chars_in_buf) i 1362 src/dps8/dps8_fnp2_iomcmd.c if (i + 2 < n_chars_in_buf) i 1364 src/dps8/dps8_fnp2_iomcmd.c if (i + 3 < n_chars_in_buf) i 1973 src/dps8/dps8_fnp2_iomcmd.c i 1974 src/dps8/dps8_fnp2_iomcmd.c i 1976 src/dps8/dps8_fnp2_iomcmd.c i 1978 src/dps8/dps8_fnp2_iomcmd.c i 1996 src/dps8/dps8_fnp2_iomcmd.c i 1997 src/dps8/dps8_fnp2_iomcmd.c i 599 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 602 src/dps8/dps8_iefp.c address + i, result [i]); i 615 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 618 src/dps8/dps8_iefp.c address + i, result [i]); i 637 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 640 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 651 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 654 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 658 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 661 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 694 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 697 src/dps8/dps8_iefp.c address + i, result [i]); i 710 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 713 src/dps8/dps8_iefp.c address + i, result [i]); i 732 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 735 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 746 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 749 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 752 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 755 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 786 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 789 src/dps8/dps8_iefp.c address + i, result [i]); i 802 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 805 src/dps8/dps8_iefp.c address + i, result [i]); i 824 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 827 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 838 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 841 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 872 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 875 src/dps8/dps8_iefp.c address + i, result [i]); i 888 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 891 src/dps8/dps8_iefp.c address + i, result [i]); i 910 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 913 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 924 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 927 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 951 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 954 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 965 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 968 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 996 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 999 src/dps8/dps8_iefp.c address + i, result [i]); i 1012 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 1015 src/dps8/dps8_iefp.c address + i, result [i]); i 1034 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 1037 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1048 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 1051 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1089 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1093 src/dps8/dps8_iefp.c address + i, result [i]); i 1097 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1098 src/dps8/dps8_iefp.c HDBGMRead (cpu.iefpFinalAddress + i, result [i], "Read8 ABBR"); i 1109 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1113 src/dps8/dps8_iefp.c address + i, result [i]); i 1117 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1118 src/dps8/dps8_iefp.c HDBGMRead (address + i, result [i], "Read8 ABS"); i 1136 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1140 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1144 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1145 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result[i], "Read8 BAR"); i 1158 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1162 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1166 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1167 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "Read8"); i 1213 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1217 src/dps8/dps8_iefp.c address + i, result [i]); i 1221 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1222 src/dps8/dps8_iefp.c HDBGMRead (cpu.iefpFinalAddress + i, result [i], "ReadPage AB"); i 1233 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1237 src/dps8/dps8_iefp.c address + i, result [i]); i 1241 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1242 src/dps8/dps8_iefp.c HDBGMRead (address + i, result [i], "ReadPage ABS"); i 1260 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1264 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1268 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1269 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "ReadPage B"); i 1283 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1287 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1291 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1292 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "ReadPage"); i 1783 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1787 src/dps8/dps8_iefp.c address + i, data [i]); i 1791 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1792 src/dps8/dps8_iefp.c HDBGMWrite (cpu.iefpFinalAddress + i, data [i], "Write8 ABBR"); i 1803 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1807 src/dps8/dps8_iefp.c address + i, data [i]); i 1811 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1812 src/dps8/dps8_iefp.c HDBGMWrite (address + i, data [i], "Write8 AB"); i 1830 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1834 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1838 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1839 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "Write8 BR"); i 1850 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1854 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1858 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1859 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "Write8"); i 1912 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1916 src/dps8/dps8_iefp.c address + i, data [i]); i 1920 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1921 src/dps8/dps8_iefp.c HDBGMWrite (cpu.iefpFinalAddress + i, data [i], "WritePage ABBR"); i 1932 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1936 src/dps8/dps8_iefp.c address + i, data [i]); i 1940 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1941 src/dps8/dps8_iefp.c HDBGMWrite (address + i, data [i], "WritePage AB"); i 1959 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1964 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1968 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1969 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "WritePage BR"); i 1979 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1983 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1987 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1988 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "WritePage"); i 122 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 126 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); i 131 src/dps8/dps8_ins.c if (! (i->info->flags & NO_TAG)) i 201 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 205 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); i 207 src/dps8/dps8_ins.c "%s a %d address %08o\n", __func__, i->b29, cpu.TPR.CA); i 212 src/dps8/dps8_ins.c if (! (i->info->flags & NO_TAG)) i 275 src/dps8/dps8_ins.c if ((i->info->flags & RMW) == RMW) i 583 src/dps8/dps8_ins.c int i; i 584 src/dps8/dps8_ins.c for (i=0; i < 11; i++) i 586 src/dps8/dps8_ins.c if (memcmp (words, rewrite_table[i].was, 8*sizeof (word36)) == 0) i 588 src/dps8/dps8_ins.c memcpy (words, rewrite_table[i].should_be, 8*sizeof (word36)); i 589 src/dps8/dps8_ins.c sim_warn("%s: scu rewrite %d: %s\n", __func__, i, rewrite_table[i].name); i 757 src/dps8/dps8_ins.c for (int i = 0; i < 8; i ++) i 759 src/dps8/dps8_ins.c words[i] = cpu.du.image[i]; i 871 src/dps8/dps8_ins.c for (int i = 0; i < 8; i ++) i 873 src/dps8/dps8_ins.c cpu.du.image[i] = words[i]; i 1271 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 1288 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 1310 src/dps8/dps8_ins.c cpu.currentInstruction.b29, cpu.currentInstruction.i, i 1329 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 2377 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 2382 src/dps8/dps8_ins.c if (i->info->ndes > 0) i 2393 src/dps8/dps8_ins.c PNL (cpu.ou.RS = (word9) i->opcode); i 2403 src/dps8/dps8_ins.c uint32 opcode10 = i->opcode10; i 2423 src/dps8/dps8_ins.c cpu.ou.opsz = (opcodes10[i->opcode10].reg_use >> 12) & 037; i 2424 src/dps8/dps8_ins.c word10 reguse = (opcodes10[i->opcode10].reg_use) & MASK10; i 3559 src/dps8/dps8_ins.c SCF (i->stiTally, cpu.CY, I_TALLY); i 3898 src/dps8/dps8_ins.c ((i->tag & 040) ? 0777000000000u : 0) | i 3899 src/dps8/dps8_ins.c ((i->tag & 020) ? 0000777000000u : 0) | i 3900 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000000777000u : 0) | i 3901 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000000777u : 0); i 3916 src/dps8/dps8_ins.c ((i->tag & 040) ? 0777000000000u : 0) | i 3917 src/dps8/dps8_ins.c ((i->tag & 020) ? 0000777000000u : 0) | i 3918 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000000777000u : 0) | i 3919 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000000777u : 0); i 3932 src/dps8/dps8_ins.c SCF (i->stiTally, cpu.CY, I_TALLY); i 3956 src/dps8/dps8_ins.c ((i->tag & 040) ? 0770000000000u : 0) | i 3957 src/dps8/dps8_ins.c ((i->tag & 020) ? 0007700000000u : 0) | i 3958 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000077000000u : 0) | i 3959 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000770000u : 0) | i 3960 src/dps8/dps8_ins.c ((i->tag & 002) ? 0000000007700u : 0) | i 3961 src/dps8/dps8_ins.c ((i->tag & 001) ? 0000000000077u : 0); i 3976 src/dps8/dps8_ins.c ((i->tag & 040) ? 0770000000000u : 0) | i 3977 src/dps8/dps8_ins.c ((i->tag & 020) ? 0007700000000u : 0) | i 3978 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000077000000u : 0) | i 3979 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000770000u : 0) | i 3980 src/dps8/dps8_ins.c ((i->tag & 002) ? 0000000007700u : 0) | i 3981 src/dps8/dps8_ins.c ((i->tag & 001) ? 0000000000077u : 0); i 7262 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 7264 src/dps8/dps8_ins.c word1 c = (i->address >> 7) & 1; i 7267 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 7279 src/dps8/dps8_ins.c uint c = (i->address >> 7) & 1; i 7280 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 7283 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 7295 src/dps8/dps8_ins.c uint c = (i->address >> 7) & 1; i 7296 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 7299 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 7421 src/dps8/dps8_ins.c switch (i->tag) i 7512 src/dps8/dps8_ins.c for (uint i = 0; i < N_HIST_SETS; i ++) i 7513 src/dps8/dps8_ins.c add_history_force (cpup, i, 0, 0); i 7526 src/dps8/dps8_ins.c for (uint i = 0; i < N_HIST_SETS; i ++) i 7527 src/dps8/dps8_ins.c add_history_force (cpup, i, MASK36, MASK36); i 7581 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7583 src/dps8/dps8_ins.c word4 m = cpu.PTWAM[i].USE; i 7584 src/dps8/dps8_ins.c cpu.PTWAM[m].POINTER = getbits36_15 (cpu.Yblock16[i], 0); i 7585 src/dps8/dps8_ins.c cpu.PTWAM[m].PAGENO = getbits36_12 (cpu.Yblock16[i], 15); i 7586 src/dps8/dps8_ins.c cpu.PTWAM[m].FE = getbits36_1 (cpu.Yblock16[i], 27); i 7597 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7599 src/dps8/dps8_ins.c word4 m = cpu.PTWAM[i].USE; i 7600 src/dps8/dps8_ins.c cpu.PTWAM[m].ADDR = getbits36_18 (cpu.Yblock16[i], 0); i 7601 src/dps8/dps8_ins.c cpu.PTWAM[m].M = getbits36_1 (cpu.Yblock16[i], 29); i 7625 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7627 src/dps8/dps8_ins.c word4 m = cpu.SDWAM[i].USE; i 7628 src/dps8/dps8_ins.c cpu.SDWAM[m].POINTER = getbits36_15 (cpu.Yblock16[i], 0); i 7629 src/dps8/dps8_ins.c cpu.SDWAM[m].FE = getbits36_1 (cpu.Yblock16[i], 27); i 7643 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7645 src/dps8/dps8_ins.c word4 m = cpu.SDWAM[i].USE; i 7673 src/dps8/dps8_ins.c uint tag = (i->tag) & MASK6; i 7960 src/dps8/dps8_ins.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 7962 src/dps8/dps8_ins.c cpu.PTWAM[i].FE = 0; i 7963 src/dps8/dps8_ins.c L68_ (cpu.PTWAM[i].USE = (word4) i;) i 7964 src/dps8/dps8_ins.c DPS8M_ (cpu.PTWAM[i].USE = 0;) i 8006 src/dps8/dps8_ins.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 8008 src/dps8/dps8_ins.c cpu.SDWAM[i].FE = 0; i 8009 src/dps8/dps8_ins.c L68_ (cpu.SDWAM[i].USE = (word4) i;) i 8010 src/dps8/dps8_ins.c DPS8M_ (cpu.SDWAM[i].USE = 0;) i 9438 src/dps8/dps8_ins.c cpu.ou.STR_OP = (is_ou && (i->info->flags & (STORE_OPERAND | STORE_YPAIR))) ? 1 : 0; i 9462 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 9468 src/dps8/dps8_ins.c word36 op = M[i->address]; i 9474 src/dps8/dps8_ins.c sim_printf ("%lld\n", (long long int) M[i->address+1]); i 9535 src/dps8/dps8_ins.c i 9597 src/dps8/dps8_ins.c i 9599 src/dps8/dps8_ins.c i 9600 src/dps8/dps8_ins.c i 9647 src/dps8/dps8_ins.c i 9652 src/dps8/dps8_ins.c i 9656 src/dps8/dps8_ins.c i 9659 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 3208 src/dps8/dps8_iom.c for (int i = 0; i < 8; i ++) i 3209 src/dps8/dps8_iom.c dumpDCW (M[p->LPW_DCW_PTR - 1 + i], p->LPW_23_REL); i 3600 src/dps8/dps8_iom.c for (uint i = 0; i < N_IOM_UNITS_MAX; i++) i 3603 src/dps8/dps8_iom.c iom_chan_data_t * p = &iom_chan_data [i] [j]; i 3607 src/dps8/dps8_iom.c doPayloadChannel (i, j); i 2861 src/dps8/dps8_math.c for (uint i = 0; i < 35; i ++) { i 2866 src/dps8/dps8_math.c quot |= (1llu << (34 - i)); i 284 src/dps8/dps8_math128.c int i, j; i 286 src/dps8/dps8_math128.c for (i = 0; i < m; i++) i 287 src/dps8/dps8_math128.c w[i] = 0; i 292 src/dps8/dps8_math128.c for (i = 0; i < m; i++) i 294 src/dps8/dps8_math128.c t = (uint64_t) u[i] * (uint64_t) v[j] + (uint64_t) w[i + j] + k; i 296 src/dps8/dps8_math128.c w[i + j] = (uint32_t) t; // (i.e., t & 0xFFFF). i 325 src/dps8/dps8_math128.c for (int i = 0; i < m; i++) i 327 src/dps8/dps8_math128.c int t = (int) w[i + n] - (int) u[i] - b; i 328 src/dps8/dps8_math128.c w[i + n] = (uint32_t) t; i 388 src/dps8/dps8_math128.c int s, i, j, t, k; i 414 src/dps8/dps8_math128.c for (i = n - 1; i > 0; i--) i 415 src/dps8/dps8_math128.c vn[i] = (uint16_t) (v[i] << s) | (uint16_t) (v[i-1] >> (16-s)); i 421 src/dps8/dps8_math128.c for (i = m - 1; i > 0; i--) i 422 src/dps8/dps8_math128.c un[i] = (uint16_t) (u[i] << s) | (uint16_t) (u[i-1] >> (16-s)); i 439 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 441 src/dps8/dps8_math128.c p = (unsigned)qhat*(unsigned long long)vn[i]; i 442 src/dps8/dps8_math128.c t = (int32_t) un[i+j] - k - (int32_t) (p & 0xFFFF); i 443 src/dps8/dps8_math128.c un[i+j] = (uint16_t) t; i 454 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 456 src/dps8/dps8_math128.c t = un[i+j] + vn[i] + k; i 457 src/dps8/dps8_math128.c un[i+j] = (uint16_t) t; i 467 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 468 src/dps8/dps8_math128.c r[i] = (uint16_t) (un[i] >> s) | (uint16_t) (un[i+1] << (16-s)); i 124 src/dps8/dps8_mgp.c for (size_t i = 0; i < len; i++) i 125 src/dps8/dps8_mgp.c h = h * 31 + p[i]; i 885 src/dps8/dps8_mgp.c uint i, cks = 0; i 906 src/dps8/dps8_mgp.c for (i = 0; i < pklen; i++) i 908 src/dps8/dps8_mgp.c cks += pkt[i]; i 1032 src/dps8/dps8_mgp.c int i; i 1070 src/dps8/dps8_mgp.c for (i = 0; i < pklen; i++) i 1072 src/dps8/dps8_mgp.c int lh = getbits36_18 (buf[i], 0); i 1073 src/dps8/dps8_mgp.c int rh = getbits36_18 (buf[i], 18); i 1074 src/dps8/dps8_mgp.c int b0 = getbits36_9 (buf[i], 0); i 1075 src/dps8/dps8_mgp.c int b1 = getbits36_9 (buf[i], 9); i 1076 src/dps8/dps8_mgp.c int b2 = getbits36_9 (buf[i], 18); i 1077 src/dps8/dps8_mgp.c int b3 = getbits36_9 (buf[i], 27); i 1078 src/dps8/dps8_mgp.c if (i < MGP_PACKET_HEADER_SIZE) i 1081 src/dps8/dps8_mgp.c i, lh, rh, b0, b1, b2, b3); i 1133 src/dps8/dps8_mgp.c i, lh, rh, b0, b1, b2, b3, chars); i 1175 src/dps8/dps8_mgp.c for (int i = 0; i < 1000; i++) i 1214 src/dps8/dps8_mgp.c int i; i 1215 src/dps8/dps8_mgp.c for (i = 0; i < MAX_CONNS; i++) i 1217 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt == 0) i 1219 src/dps8/dps8_mgp.c return i; i 1231 src/dps8/dps8_mgp.c int i; i 1232 src/dps8/dps8_mgp.c for (i = 0; i < MAX_CONNS; i++) i 1234 src/dps8/dps8_mgp.c if ( ( mgp_dev_state.conns[i].multics_proc != 0 ) i 1235 src/dps8/dps8_mgp.c && ( mgp_dev_state.conns[i].multics_proc == remote ) i 1236 src/dps8/dps8_mgp.c && (( local == 0 ) || ( mgp_dev_state.conns[i].local_id == local )) ) i 1238 src/dps8/dps8_mgp.c return i; i 1320 src/dps8/dps8_mgp.c close_conn(int i) i 1322 src/dps8/dps8_mgp.c if (i < 0) i 1324 src/dps8/dps8_mgp.c sim_printf("%s: closing conn %d which is invalid!\n", __func__, i); i 1328 src/dps8/dps8_mgp.c __func__, i, i 1329 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].multics_proc, i 1330 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].local_id, i 1331 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].remote_addr, i 1332 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].contact_name); i 1334 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt > 0) i 1336 src/dps8/dps8_mgp.c close(mgp_dev_state.conns[i].skt); i 1339 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].multics_proc = 0; i 1340 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].local_id = 0; i 1341 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].contact_name != NULL) i 1343 src/dps8/dps8_mgp.c FREE(mgp_dev_state.conns[i].contact_name); i 1346 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].contact_name = NULL; i 1347 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].remote_addr = 0; i 1351 src/dps8/dps8_mgp.c cbridge_send_packet(int i, u_char *pkt, int len) i 1353 src/dps8/dps8_mgp.c int skt = mgp_dev_state.conns[i].skt; i 1364 src/dps8/dps8_mgp.c close_conn(i); i 1386 src/dps8/dps8_mgp.c int i = find_conn_for(p->source_process, p->destination_process); i 1387 src/dps8/dps8_mgp.c if (i < 0) i 1402 src/dps8/dps8_mgp.c i, pkt, CBRIDGE_PACKET_HEADER_SIZE + p->byte_count); i 1435 src/dps8/dps8_mgp.c char *i; i 1441 src/dps8/dps8_mgp.c i = index(net, ' '); i 1442 src/dps8/dps8_mgp.c if (i == NULL) i 1449 src/dps8/dps8_mgp.c *i = '\0'; i 1450 src/dps8/dps8_mgp.c host = i + 1; i 1451 src/dps8/dps8_mgp.c i = index(host, ' '); i 1452 src/dps8/dps8_mgp.c if (i == NULL) i 1459 src/dps8/dps8_mgp.c *i = '\0'; i 1460 src/dps8/dps8_mgp.c contact = i + 1; i 1461 src/dps8/dps8_mgp.c i = index(contact, ' '); i 1462 src/dps8/dps8_mgp.c if (i == NULL) i 1469 src/dps8/dps8_mgp.c *i = '\0'; i 1470 src/dps8/dps8_mgp.c args = i + 1; i 1541 src/dps8/dps8_mgp.c int i = cindex; i 1544 src/dps8/dps8_mgp.c __func__, i, mgp_dev_state.conns[i].multics_proc, i 1545 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].local_id, mgp_dev_state.conns[i].remote_addr, i 1546 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].contact_name); i 1581 src/dps8/dps8_mgp.c int i = find_conn_for(p->source_process, p->destination_process); i 1584 src/dps8/dps8_mgp.c __func__, p->packet_number, p->ack_number, i, i 1585 src/dps8/dps8_mgp.c i < 0 ? 0 : mgp_dev_state.conns[i].multics_proc, i 1586 src/dps8/dps8_mgp.c i < 0 ? 0 : mgp_dev_state.conns[i].local_id, i 1612 src/dps8/dps8_mgp.c rval = handle_lose(i, p, buf, words); i 1624 src/dps8/dps8_mgp.c char b[2] = { i, 0 }; i 1627 src/dps8/dps8_mgp.c __func__, i); i 1641 src/dps8/dps8_mgp.c "<%#x,%#x>\n", __func__, i, p->frame_number, p->receipt_number, i 1661 src/dps8/dps8_mgp.c i 1664 src/dps8/dps8_mgp.c i 1667 src/dps8/dps8_mgp.c i 1670 src/dps8/dps8_mgp.c i 1673 src/dps8/dps8_mgp.c i 1718 src/dps8/dps8_mgp.c uint pklen, int i) i 1730 src/dps8/dps8_mgp.c else if (i == -1) /* special case */ i 1739 src/dps8/dps8_mgp.c if (i >= 0) i 1742 src/dps8/dps8_mgp.c p->packet_number = ++mgp_dev_state.conns[i].pkt_last_sent; i 1743 src/dps8/dps8_mgp.c p->ack_number = mgp_dev_state.conns[i].pkt_last_received; i 1744 src/dps8/dps8_mgp.c p->source_process = mgp_dev_state.conns[i].local_id; i 1745 src/dps8/dps8_mgp.c p->destination_process = mgp_dev_state.conns[i].multics_proc; i 1866 src/dps8/dps8_mgp.c char *i, *rhost, *args = NULL, connect[128]; i 1869 src/dps8/dps8_mgp.c if (( i = index(rhost, '\r')) != NULL) i 1871 src/dps8/dps8_mgp.c *i = '\0'; i 1873 src/dps8/dps8_mgp.c else if (( i = index(rhost, '\n')) != NULL) i 1875 src/dps8/dps8_mgp.c *i = '\0'; i 1879 src/dps8/dps8_mgp.c if (( i = index(rhost, ' ')) != NULL) i 1881 src/dps8/dps8_mgp.c args = i + 1; i 1882 src/dps8/dps8_mgp.c *i = '\0'; i 1969 src/dps8/dps8_mgp.c int maxfd, numfds, i, sval, cnt, rval = -1; i 1985 src/dps8/dps8_mgp.c for (i = 0; i < MAX_CONNS; i++) i 1987 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt != 0) i 1989 src/dps8/dps8_mgp.c FD_SET(mgp_dev_state.conns[i].skt, &rfd); i 1991 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt > maxfd) i 1993 src/dps8/dps8_mgp.c maxfd = mgp_dev_state.conns[i].skt; i 2071 src/dps8/dps8_mgp.c for (i = mgp_dev_state.read_index + 1; i < MAX_CONNS; i++) i 2073 src/dps8/dps8_mgp.c if (FD_ISSET(mgp_dev_state.conns[i].skt, &rfd)) i 2075 src/dps8/dps8_mgp.c mgp_dev_state.read_index = i; i 2077 src/dps8/dps8_mgp.c if (( cnt = read(mgp_dev_state.conns[i].skt, i 2083 src/dps8/dps8_mgp.c __func__, i, xstrerror_l(errno), errno); i 2084 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2086 src/dps8/dps8_mgp.c close_conn(i); i 2094 src/dps8/dps8_mgp.c __func__, i); i 2095 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2097 src/dps8/dps8_mgp.c close_conn(i); i 2105 src/dps8/dps8_mgp.c __func__, cnt, i); i 2124 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2126 src/dps8/dps8_mgp.c close_conn(i); i 2131 src/dps8/dps8_mgp.c else if (( cnt = read(mgp_dev_state.conns[i].skt, cbuf, clen)) < 0) i 2136 src/dps8/dps8_mgp.c __func__, i, xstrerror_l(errno), errno); i 2137 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2139 src/dps8/dps8_mgp.c close_conn(i); i 2147 src/dps8/dps8_mgp.c __func__, cnt, clen, i); i 2154 src/dps8/dps8_mgp.c if (i == statusconn) /* No need for STATUS if we're i 2162 src/dps8/dps8_mgp.c copcode, cbuf, clen, buf, words, i); 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 843 src/dps8/dps8_mt.c for (int i = 0; i < (int) dptr -> numunits; i ++) i 845 src/dps8/dps8_mt.c sim_tape_reset (& mt_unit [i]); i 967 src/dps8/dps8_mt.c for (int i = 0; i < N_MT_UNITS_MAX; i ++) i 969 src/dps8/dps8_mt.c mt_unit [i] . capac = 40000000; i 1077 src/dps8/dps8_mt.c uint i; i 1079 src/dps8/dps8_mt.c for (i = 0; i < tally; i ++) i 1083 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); i 1086 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); i 1095 src/dps8/dps8_mt.c i 1096 src/dps8/dps8_mt.c i 1097 src/dps8/dps8_mt.c i 1196 src/dps8/dps8_mt.c for (uint i = 0; i < tally; i ++) i 1198 src/dps8/dps8_mt.c putbits36_18 (buf + i, 0, mem [i * 2]); i 1199 src/dps8/dps8_mt.c putbits36_18 (buf + i, 18, mem [i * 2 + 1]); i 1275 src/dps8/dps8_mt.c i 1276 src/dps8/dps8_mt.c i 1277 src/dps8/dps8_mt.c i 1297 src/dps8/dps8_mt.c uint i; i 1298 src/dps8/dps8_mt.c for (i = 0; i < tally; i ++) i 1306 src/dps8/dps8_mt.c buffer [i]); i 1313 src/dps8/dps8_mt.c buffer [i]); i 1326 src/dps8/dps8_mt.c p -> tallyResidue = (word12) (tally - i); i 1421 src/dps8/dps8_mt.c for (uint i = 0; i < bufsz; i ++) i 1422 src/dps8/dps8_mt.c buffer [i] = 0; i 2431 src/dps8/dps8_mt.c int i; i 2432 src/dps8/dps8_mt.c for (i = 0; i < N_MT_UNITS_MAX; i ++) i 2434 src/dps8/dps8_mt.c if (strcmp (drive, tape_states [i] . device_name) == 0) i 2437 src/dps8/dps8_mt.c if (i >= N_MT_UNITS_MAX) i 2442 src/dps8/dps8_mt.c sim_printf ("attachTape selected unit %d\n", i); i 2443 src/dps8/dps8_mt.c loadTape ((uint) i, label, ! withring); i 2477 src/dps8/dps8_mt.c int i; i 2478 src/dps8/dps8_mt.c for (i = 0; i < N_MT_UNITS_MAX; i ++) i 2480 src/dps8/dps8_mt.c if (strcmp (drive, tape_states [i] . device_name) == 0) i 2483 src/dps8/dps8_mt.c if (i >= N_MT_UNITS_MAX) i 2488 src/dps8/dps8_mt.c unloadTape ((uint) i); i 354 src/dps8/dps8_prt.c for (int i = 0; i < N_PRT_UNITS_MAX; i ++) i 356 src/dps8/dps8_prt.c prt_state[i].prtfile = -1; i 357 src/dps8/dps8_prt.c prt_state[i].model = MODEL_1600; i 364 src/dps8/dps8_prt.c i 399 src/dps8/dps8_prt.c uint i; i 400 src/dps8/dps8_prt.c for (i = 0; i < 5; i ++) i 402 src/dps8/dps8_prt.c word9 ch = gc (b, 2 + i); i 405 src/dps8/dps8_prt.c qno[i] = (char) ch; i 412 src/dps8/dps8_prt.c for (i = 0; i < LONGEST; i ++) i 414 src/dps8/dps8_prt.c word9 ch = gc (b, 9 + i); i 419 src/dps8/dps8_prt.c name[i] = (char) ch; i 421 src/dps8/dps8_prt.c name[i] = 0; i 599 src/dps8/dps8_prt.c i 601 src/dps8/dps8_prt.c i 683 src/dps8/dps8_prt.c i 685 src/dps8/dps8_prt.c i 688 src/dps8/dps8_prt.c i 703 src/dps8/dps8_prt.c i 720 src/dps8/dps8_prt.c for (int i = 0; i < slew; i ++) i 740 src/dps8/dps8_prt.c #define get_BCD_char(i) ((uint8_t) ((buffer[i / 6] >> ((5 - i % 6) * 6)) & 077)) i 745 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 747 src/dps8/dps8_prt.c bytes[i] = (uint8_t) bcd_uc [get_BCD_char (i)]; i 765 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 767 src/dps8/dps8_prt.c uint8_t ch = get_BCD_char (i); i 778 src/dps8/dps8_prt.c i ++; i 779 src/dps8/dps8_prt.c uint8_t n = get_BCD_char (i); i 846 src/dps8/dps8_prt.c #define get_ASCII_char(i) ((uint8_t) ((buffer[i / 4] >> ((3 - i % 4) * 9)) & 0377)) i 852 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 854 src/dps8/dps8_prt.c uint8_t ch = get_ASCII_char (i); i 867 src/dps8/dps8_prt.c for (uint i = 0; i < tally * 4; i ++) i 869 src/dps8/dps8_prt.c uint8_t ch = get_ASCII_char (i); i 872 src/dps8/dps8_prt.c i ++; i 873 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 883 src/dps8/dps8_prt.c i ++; i 884 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 914 src/dps8/dps8_prt.c i ++; i 915 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 1806 src/dps8/dps8_prt.c for (int i = 0; i < N_MODELS; i ++) i 1808 src/dps8/dps8_prt.c if (strcmp (cptr, model_names[i]) == 0) i 1810 src/dps8/dps8_prt.c prt_state[n].model = i; i 1905 src/dps8/dps8_prt.c for (int i = 0; i < N_PRT_UNITS_MAX; i ++) i 1907 src/dps8/dps8_prt.c if (strcmp (buf, prt_state[i].device_name) == 0) i 1909 src/dps8/dps8_prt.c if (prt_state[i].prtfile != -1) i 1911 src/dps8/dps8_prt.c close (prt_state[i].prtfile); i 1912 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 725 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 726 src/dps8/dps8_scu.c sim_printf (" %3o", sw -> port_enable [i]); i 728 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 731 src/dps8/dps8_scu.c 'A' + i, i 732 src/dps8/dps8_scu.c sw->mask_enable[i] ? (map[sw->mask_assignment[i]]) : "Off"); i 1073 src/dps8/dps8_scu.c i 1074 src/dps8/dps8_scu.c i 1076 src/dps8/dps8_scu.c i 1102 src/dps8/dps8_scu.c i 1103 src/dps8/dps8_scu.c i 1105 src/dps8/dps8_scu.c i 1118 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 1120 src/dps8/dps8_scu.c up -> port_enable [i] = sw -> port_enable [i]; i 1123 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 1125 src/dps8/dps8_scu.c up -> mask_enable [i] = sw -> mask_enable [i]; i 1126 src/dps8/dps8_scu.c up -> mask_assignment [i] = sw -> mask_assignment [i]; i 1152 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 1155 src/dps8/dps8_scu.c up -> exec_intr_mask [i] = 037777777777; i 1319 src/dps8/dps8_scu.c for (uint i = 0; i < N_CELL_INTERRUPTS; i ++) i 1321 src/dps8/dps8_scu.c if (scu [scu_unit_idx].cells [i]) i 1322 src/dps8/dps8_scu.c buf [i] = '1'; i 1324 src/dps8/dps8_scu.c buf [i] = '0'; i 1515 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1517 src/dps8/dps8_scu.c if (getbits36_1 (rega, i)) i 1518 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i + 16] = 1; i 1527 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1529 src/dps8/dps8_scu.c if (getbits36_1 (rega, i)) i 1530 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i] = 1; i 1540 src/dps8/dps8_scu.c i 1542 src/dps8/dps8_scu.c i 1551 src/dps8/dps8_scu.c i 1553 src/dps8/dps8_scu.c i 1554 src/dps8/dps8_scu.c i 1814 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1816 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i] = i 1817 src/dps8/dps8_scu.c getbits36_1 (rega, i) ? 1 : 0; i 1818 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i + 16] = i 1819 src/dps8/dps8_scu.c getbits36_1 (regq, i) ? 1 : 0; i 1960 src/dps8/dps8_scu.c for (int i = 0; i < 2; i ++) i 1962 src/dps8/dps8_scu.c if (up -> mask_enable [i]) i 1964 src/dps8/dps8_scu.c maskab [i] = (2 << (N_SCU_PORTS - 1 - i 1965 src/dps8/dps8_scu.c up -> mask_assignment [i])) & 0777; i 1968 src/dps8/dps8_scu.c maskab [i] = 0001; i 2095 src/dps8/dps8_scu.c for (uint i = 0; i < N_CELL_INTERRUPTS; i ++) i 2097 src/dps8/dps8_scu.c word1 cell = up -> cells [i] ? 1 : 0; i 2098 src/dps8/dps8_scu.c if (i < 16) i 2099 src/dps8/dps8_scu.c putbits36_1 (rega, i, cell); i 2101 src/dps8/dps8_scu.c putbits36_1 (regq, i - 16, cell); i 2221 src/dps8/dps8_scu.c for (uint i = 0; i < N_SCU_SUBPORTS; i++) i 2223 src/dps8/dps8_scu.c portp->subport_enables [i] = !! (sub_mask & (0200u >> i)); i 2232 src/dps8/dps8_scu.c for (uint i = 0; i < N_SCU_SUBPORTS; i++) i 2234 src/dps8/dps8_scu.c portp->xipmask [i] = !! (sub_mask & (0200u >> i)); i 2235 src/dps8/dps8_scu.c if (portp->xipmask [i]) i 2237 src/dps8/dps8_scu.c val = (int) i; i 281 src/dps8/dps8_socket_dev.c for (uint i = 0; i < N_FDS; i ++) i 282 src/dps8/dps8_socket_dev.c sk_data.fd_unit[i] = -1; i 293 src/dps8/dps8_socket_dev.c for (uint i = 0; i < 8; i ++) i 294 src/dps8/dps8_socket_dev.c work[i] = ' '; i 298 src/dps8/dps8_socket_dev.c for (uint i = 0; i < l; i ++) i 299 src/dps8/dps8_socket_dev.c work[i] = str[i]; i 316 src/dps8/dps8_socket_dev.c for (uint i = 0; i < N_ERRNOS; i ++) i 318 src/dps8/dps8_socket_dev.c if (errnos[i].code == _errno) i 320 src/dps8/dps8_socket_dev.c set_error_str (error_str, errnos[i].name); i 423 src/dps8/dps8_socket_dev.c i 425 src/dps8/dps8_socket_dev.c i 426 src/dps8/dps8_socket_dev.c i 443 src/dps8/dps8_socket_dev.c for (uint i = 0; i < cnt; i ++) i 445 src/dps8/dps8_socket_dev.c uint wordno = (i+4) / 4; i 446 src/dps8/dps8_socket_dev.c uint offset = ((i+4) % 4) * 9; i 448 src/dps8/dps8_socket_dev.c name [i] = (unsigned char) (ch & 255); i 2276 src/dps8/dps8_sys.c for (int i = 0; i < n_book_segments; i ++) i 2277 src/dps8/dps8_sys.c if (strcmp (name, book_segments[i].segname) == 0) i 2278 src/dps8/dps8_sys.c return i; i 2348 src/dps8/dps8_sys.c int i; i 2350 src/dps8/dps8_sys.c for (i = 0; i < n_book_segments; i ++) i 2351 src/dps8/dps8_sys.c if (book_segments[i].segno == (int) segno) i 2354 src/dps8/dps8_sys.c if (i >= n_book_segments) i 2362 src/dps8/dps8_sys.c if (book_components[j].book_segment_number != i) i 2367 src/dps8/dps8_sys.c (void)sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, i 2392 src/dps8/dps8_sys.c (void)sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, i 2402 src/dps8/dps8_sys.c * compname = book_segments[i].segname; i 2405 src/dps8/dps8_sys.c (void)sprintf (buf, "%s:+0%0o", book_segments[i].segname, i 2481 src/dps8/dps8_sys.c int i; i 2482 src/dps8/dps8_sys.c for (i = 0; i < n_book_segments; i ++) i 2483 src/dps8/dps8_sys.c if (strcmp (book_segments[i].segname, segname) == 0) i 2485 src/dps8/dps8_sys.c if (i >= n_book_segments) i 2490 src/dps8/dps8_sys.c if (book_components[j].book_segment_number != i) i 2494 src/dps8/dps8_sys.c * segno = book_segments[i].segno; i 3026 src/dps8/dps8_sys.c i 3028 src/dps8/dps8_sys.c i 3029 src/dps8/dps8_sys.c i 3032 src/dps8/dps8_sys.c i 3579 src/dps8/dps8_sys.c uint i; i 3580 src/dps8/dps8_sys.c for (i = 0; i < MEMSIZE; i ++) i 3581 src/dps8/dps8_sys.c if ((M[i] & DMASK) == value) i 3582 src/dps8/dps8_sys.c sim_msg ("%08o\n", i); i 3738 src/dps8/dps8_sys.c for (int i = n; i < n_dbgevents - 1; i ++) i 3739 src/dps8/dps8_sys.c dbgevents[i] = dbgevents[i + 1]; i 3744 src/dps8/dps8_sys.c for (int i = 0; i < n_dbgevents; i ++) i 3745 src/dps8/dps8_sys.c sim_printf (" %s %05o:%06o %s\r\n", dbgevents[i].t0 ? "T0" : " ", dbgevents[i].segno, i 3746 src/dps8/dps8_sys.c dbgevents[i].offset,dbgevents[i].tag); i 3774 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) { i 3775 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) { i 3776 src/dps8/dps8_sys.c UNIT * unitp = & mt_unit [i]; i 3824 src/dps8/dps8_sys.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) i 3825 src/dps8/dps8_sys.c if (strcmp (dsk_states[i].device_name, name) == 0) i 3828 src/dps8/dps8_sys.c return loadDisk (i, fname, ro); i 3829 src/dps8/dps8_sys.c return unloadDisk (i); i 3832 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) i 3833 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) i 3836 src/dps8/dps8_sys.c return loadTape (i, fname, ro); i 3837 src/dps8/dps8_sys.c return unloadTape (i); i 3852 src/dps8/dps8_sys.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) { i 3853 src/dps8/dps8_sys.c if (strcmp (dsk_states[i].device_name, name) == 0) { i 3854 src/dps8/dps8_sys.c return signal_disk_ready (i); i 3858 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) { i 3859 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) { i 3860 src/dps8/dps8_sys.c return signal_tape (i, 0, 020 /* tape drive to ready */); //-V536 i 4151 src/dps8/dps8_sys.c for (size_t i = 0; i < len; i++) i 4152 src/dps8/dps8_sys.c h = h * 31 + p[i]; i 4415 src/dps8/dps8_sys.c for (int i = 0; i < 1000; i++) i 4441 src/dps8/dps8_sys.c for (int i = 1; i < 21; ++i) { i 4446 src/dps8/dps8_sys.c if (rnum >= 48) rssuffix[i-1]=rnum; i 4447 src/dps8/dps8_sys.c else rssuffix[i-1]=(char)(((long)random() % 26) + 64) + rcap; i 82 src/dps8/dps8_utils.c struct opcode_s * get_iwb_info (DCDstruct * i) i 84 src/dps8/dps8_utils.c struct opcode_s * p = &opcodes10[i->opcode10]; i 43 src/dps8/dps8_utils.h struct opcode_s * get_iwb_info (DCDstruct *i); i 104 src/dps8/dps8_utils.h i 107 src/dps8/dps8_utils.h i 110 src/dps8/dps8_utils.h i 118 src/dps8/dps8_utils.h static inline word36 getbits36(word36 x, uint i, uint n) { i 120 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)n+1; i 122 src/dps8/dps8_utils.h sim_printf ("getbits36: bad args (%012llu,i=%d,n=%d)\n", (unsigned long long)x, i, n); i 128 src/dps8/dps8_utils.h static inline word1 getbits36_1 (word36 x, uint i) i 131 src/dps8/dps8_utils.h int shift = 35-(int)i; i 133 src/dps8/dps8_utils.h sim_printf ("getbits36_1: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 139 src/dps8/dps8_utils.h static inline word2 getbits36_2 (word36 x, uint i) i 142 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)2+1; i 144 src/dps8/dps8_utils.h sim_printf ("getbits36_2: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 150 src/dps8/dps8_utils.h static inline word3 getbits36_3 (word36 x, uint i) i 153 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)3+1; i 155 src/dps8/dps8_utils.h sim_printf ("getbits36_3: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 161 src/dps8/dps8_utils.h static inline word4 getbits36_4 (word36 x, uint i) i 164 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)4+1; i 166 src/dps8/dps8_utils.h sim_printf ("getbits36_4: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 172 src/dps8/dps8_utils.h static inline word5 getbits36_5 (word36 x, uint i) i 175 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)5+1; i 177 src/dps8/dps8_utils.h sim_printf ("getbits36_5: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 183 src/dps8/dps8_utils.h static inline word6 getbits36_6 (word36 x, uint i) i 186 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)6+1; i 188 src/dps8/dps8_utils.h sim_printf ("getbits36_6: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 194 src/dps8/dps8_utils.h static inline word7 getbits36_7 (word36 x, uint i) i 197 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)7+1; i 199 src/dps8/dps8_utils.h sim_printf ("getbits36_7: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 205 src/dps8/dps8_utils.h static inline word8 getbits36_8 (word36 x, uint i) i 208 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)8+1; i 210 src/dps8/dps8_utils.h sim_printf ("getbits36_8: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 216 src/dps8/dps8_utils.h static inline word9 getbits36_9 (word36 x, uint i) i 219 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)9+1; i 221 src/dps8/dps8_utils.h sim_printf ("getbits36_9: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 227 src/dps8/dps8_utils.h static inline word10 getbits36_10 (word36 x, uint i) i 230 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)10+1; i 232 src/dps8/dps8_utils.h sim_printf ("getbits36_10: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 238 src/dps8/dps8_utils.h static inline word12 getbits36_12 (word36 x, uint i) i 241 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)12+1; i 243 src/dps8/dps8_utils.h sim_printf ("getbits36_12: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 249 src/dps8/dps8_utils.h static inline word14 getbits36_14 (word36 x, uint i) i 252 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)14+1; i 254 src/dps8/dps8_utils.h sim_printf ("getbits36_14: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 260 src/dps8/dps8_utils.h static inline word15 getbits36_15 (word36 x, uint i) i 263 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)15+1; i 265 src/dps8/dps8_utils.h sim_printf ("getbits36_15: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 271 src/dps8/dps8_utils.h static inline word16 getbits36_16 (word36 x, uint i) i 274 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)16+1; i 276 src/dps8/dps8_utils.h sim_printf ("getbits36_16: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 282 src/dps8/dps8_utils.h static inline word18 getbits36_18 (word36 x, uint i) i 285 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)18+1; i 287 src/dps8/dps8_utils.h sim_printf ("getbits36_18: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 293 src/dps8/dps8_utils.h static inline word24 getbits36_24 (word36 x, uint i) i 296 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)24+1; i 298 src/dps8/dps8_utils.h sim_printf ("getbits36_24: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 304 src/dps8/dps8_utils.h static inline word28 getbits36_28 (word36 x, uint i) i 307 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)28+1; i 309 src/dps8/dps8_utils.h sim_printf ("getbits36_28: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 831 src/dps8/dps8_utils.h static inline word18 getbits18 (word18 x, uint i, uint n) i 834 src/dps8/dps8_utils.h int shift = 17 - (int) i - (int) n + 1; i 837 src/dps8/dps8_utils.h sim_printf ("getbits18: bad args (%06o,i=%d,n=%d)\n", x, i, n); i 477 src/dps8/fnpuv.c for (unsigned int i = 0; i < nbufs; i ++) i 479 src/dps8/fnpuv.c if (bufs && bufs[i].base) i 482 src/dps8/fnpuv.c FREE (bufs[i].base); i 484 src/dps8/fnpuv.c if (req->bufsml[i].base) i 487 src/dps8/fnpuv.c FREE (req->bufsml[i].base); i 1032 src/dps8/fnpuv.c for (int i = 0; i < n_fw_entries; i ++) i 1034 src/dps8/fnpuv.c struct fw_entry_s * p = fw_entries + i; i 1268 src/dps8/fnpuv.c for (uint i = 0; i > nread; i ++) i 1270 src/dps8/fnpuv.c xbufr [i * 2 + 0] = bin2hex [(buffer [i] >> 4) & 0xf]; i 1271 src/dps8/fnpuv.c xbufr [i * 2 + 1] = bin2hex [(buffer [i] >> 0) & 0xf]; i 84 src/dps8/hdbg.h # define HDBGRegXR(i, c) hdbgRegR (hreg_X0+(i), (word36) cpu.rX[i], c) i 85 src/dps8/hdbg.h # define HDBGRegXW(i, c) hdbgRegW (hreg_X0+(i), (word36) cpu.rX[i], c) i 90 src/dps8/hdbg.h # define HDBGRegPRR(i, c) hdbgPARegR (hreg_PR0+(i), & cpu.PAR[i], c) i 91 src/dps8/hdbg.h # define HDBGRegPRW(i, c) hdbgPARegW (hreg_PR0+(i), & cpu.PAR[i], c) i 92 src/dps8/hdbg.h # define HDBGRegARR(i, c) hdbgPARegR (hreg_AR0+(i), & cpu.PAR[i], c) i 93 src/dps8/hdbg.h # define HDBGRegARW(i, c) hdbgPARegW (hreg_AR0+(i), & cpu.PAR[i], c) i 96 src/dps8/hdbg.h # define HDBGIntr(i, c) hdbgIntr(i, c) i 97 src/dps8/hdbg.h # define HDBGIntrSet(i, c, s, ctx) hdbgIntrSet(i, c, s, ctx) i 206 src/dps8/libtelnet.c int i; i 213 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { i 214 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { i 215 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) i 217 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) i 232 src/dps8/libtelnet.c unsigned int i; i 235 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { i 236 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { i 237 src/dps8/libtelnet.c return telnet->q[i]; i 251 src/dps8/libtelnet.c unsigned int i; i 254 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { i 255 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { i 256 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); i 280 src/dps8/libtelnet.c if (i >= telnet->q_size) { i 733 src/dps8/libtelnet.c size_t i; i 735 src/dps8/libtelnet.c for (i = 0; i != _buffer_sizes_count; ++i) { i 736 src/dps8/libtelnet.c if (_buffer_sizes[i] == telnet->buffer_size) { i 742 src/dps8/libtelnet.c if (i >= _buffer_sizes_count - 1) { i 749 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); i 757 src/dps8/libtelnet.c telnet->buffer_size = _buffer_sizes[i + 1]; i 768 src/dps8/libtelnet.c size_t i, start; i 769 src/dps8/libtelnet.c for (i = start = 0; i != size; ++i) { i 770 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; i 777 src/dps8/libtelnet.c if (i != start) { i 780 src/dps8/libtelnet.c ev.data.size = i - start; i 787 src/dps8/libtelnet.c if (i != start) { i 790 src/dps8/libtelnet.c ev.data.size = i - start; i 805 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; i 809 src/dps8/libtelnet.c start = i; i 845 src/dps8/libtelnet.c start = i + 1; i 856 src/dps8/libtelnet.c start = i + 1; i 867 src/dps8/libtelnet.c start = i + 1; i 884 src/dps8/libtelnet.c start = i + 1; i 895 src/dps8/libtelnet.c start = i + 1; i 909 src/dps8/libtelnet.c start = i + 1; i 927 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 100 src/dps8/panelScraper.c for (uint i = 0; i < (n); i ++) \ i 101 src/dps8/panelScraper.c lights [(light_os) + i] = !! ((from) & (1llu << ((n) - i - 1))); i 104 src/dps8/panelScraper.c for (uint i = 0; i < (n); i ++) \ i 105 src/dps8/panelScraper.c lights [(light_os) + i] = !! from [i]; i 1382 src/dps8/panelScraper.c for (uint i = 0; i < (n); i ++) \ i 1383 src/dps8/panelScraper.c if (data [from + i]) \ i 1384 src/dps8/panelScraper.c (word) |= 1llu << ((n) - 1 - i); \ i 1386 src/dps8/panelScraper.c (word) &= ~ (1llu << ((n) - 1 - i)) i 207 src/dps8/udplib.c int i; i 208 src/dps8/udplib.c for (i = 0; i < MAXLINKS; i ++) i 210 src/dps8/udplib.c if (udp_links [i] . used == 0) i 212 src/dps8/udplib.c (void)memset (& udp_links [i], 0, sizeof (UDP_LINK)); i 213 src/dps8/udplib.c return i; i 344 src/dps8/udplib.c uint16_t i; i 360 src/dps8/udplib.c for (i = 0; i < count; i ++) i 361 src/dps8/udplib.c pkt . data [i] = htons (* pdata ++); i 439 src/dps8/udplib.c int32_t pktlen, explen, implen, i; i 523 src/dps8/udplib.c for (i = 0; i < (implen < maxbuf ? implen : maxbuf); ++ i) i 524 src/dps8/udplib.c * pdata ++ = ntohs (pkt . data [i]); i 698 src/dps8/udplib.c for (int i = 0; i < rc; i ++) i 700 src/dps8/udplib.c (void)fprintf (stderr, " %06o %04x ", pkt [i], pkt [i]); i 702 src/dps8/udplib.c (void)fprintf (stderr, "%c", pkt [i] & (1 << b) ? '1' : '0'); i 58 src/dps8/utfile.c for (size_t i = 0; i < len; i++) i 59 src/dps8/utfile.c h = h * 31 + p[i]; i 136 src/dps8/utfile.c for (int i = 0; i < 1000; i++) i 81 src/dps8/uvutil.c for (unsigned int i = 0; i < nbufs; i ++) i 83 src/dps8/uvutil.c if (bufs && bufs[i].base) i 85 src/dps8/uvutil.c FREE (bufs[i].base); i 88 src/dps8/uvutil.c if (req->bufsml[i].base) i 90 src/dps8/uvutil.c FREE (req->bufsml[i].base); i 369 src/libsir/src/sirhelpers.c for (unsigned long i = j = 0; str[i]; ++i) i 370 src/libsir/src/sirhelpers.c if ((i > 0 && !isspace((unsigned char)(str[i - 1]))) i 371 src/libsir/src/sirhelpers.c || !isspace((unsigned char)(str[i]))) i 372 src/libsir/src/sirhelpers.c str[j++] = str[i]; i 400 src/libsir/src/sirhelpers.c char *i = str; i 405 src/libsir/src/sirhelpers.c while ((i = strchr(i, c)) != NULL) i 406 src/libsir/src/sirhelpers.c *i++ = n; i 412 src/libsir/src/sirhelpers.c char* i = str; i 418 src/libsir/src/sirhelpers.c while (cnt < (size_t)max && (i = strchr(i, c)) != NULL) { i 419 src/libsir/src/sirhelpers.c *i++ = n; i 417 src/libsir/src/sirplugins.c for (size_t i = n; i < spc->count - 1; i++) { i 418 src/libsir/src/sirplugins.c spc->plugins[i] = spc->plugins[i + 1]; i 419 src/libsir/src/sirplugins.c spc->plugins[i + 1] = NULL; i 305 src/simh/linehistory.c unsigned int i = 0; i 314 src/simh/linehistory.c while (i < sizeof ( buf ) - 1) i 316 src/simh/linehistory.c if (read(ifd, buf + i, 1) != 1) i 321 src/simh/linehistory.c if (buf[i] == 'R') i 326 src/simh/linehistory.c i++; i 328 src/simh/linehistory.c buf[i] = '\0'; i 421 src/simh/linehistory.c size_t i; i 423 src/simh/linehistory.c for (i = 0; i < lc->len; i++) i 425 src/simh/linehistory.c FREE(lc->cvec[i]); i 459 src/simh/linehistory.c size_t stop = 0, i = 0; i 464 src/simh/linehistory.c if (i < lc.len) i 468 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); i 469 src/simh/linehistory.c ls->buf = lc.cvec[i]; i 490 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); i 491 src/simh/linehistory.c if (i == lc.len) i 501 src/simh/linehistory.c if (i < lc.len) i 503 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); i 812 src/simh/linehistory.c unsigned int i; i 813 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 1669 src/simh/scp.c int32 i, sw; i 1809 src/simh/scp.c for (i=0; i<argc; i++) i 1810 src/simh/scp.c targv[i] = argv[i]; i 1821 src/simh/scp.c for (i = 1; i < argc; i++) { /* loop thru args */ i 1822 src/simh/scp.c if (argv[i] == NULL) /* paranoia */ i 1827 src/simh/scp.c int perftestflag = strcmp(argv[i], "--perftest"); i 1830 src/simh/scp.c if (i + 1 < argc) i 1831 src/simh/scp.c testName = argv[i + 1]; i 1838 src/simh/scp.c int onlyvers = strcmp(argv[i], "--version"); i 1861 src/simh/scp.c int longhelp = strcmp(argv[i], "--help"); i 1862 src/simh/scp.c int shorthelp = strcmp(argv[i], "-h"); i 1863 src/simh/scp.c if (shorthelp != 0) shorthelp = strcmp(argv[i], "-H"); i 1913 src/simh/scp.c if ((*argv[i] == '-') && lookswitch) { /* switch? */ i 1914 src/simh/scp.c if ((sw = get_switches (argv[i])) < 0) { i 1915 src/simh/scp.c (void)fprintf (stderr, "Invalid switch \"%s\".\nTry \"%s -h\" for help.\n", argv[i], argv[0]); i 1923 src/simh/scp.c if ((strlen (argv[i]) + strlen (cbuf) + 3) >= sizeof(cbuf)) { i 1931 src/simh/scp.c strchr(argv[i], ' ') ? "\"" : "", argv[i], strchr(argv[i], ' ') ? "\"" : ""); //-V755 i 1955 src/simh/scp.c for (i = 0; cmd_table[i].name; i++) { i 1956 src/simh/scp.c size_t alias_len = strlen (cmd_table[i].name); i 1971 src/simh/scp.c strcpy (cmd_name, cmd_table[i].name); i 2191 src/simh/scp.c size_t i, line_offset; i 2245 src/simh/scp.c for ( i = 0 ; i < cmd_cnt ; ++i ) { i 2246 src/simh/scp.c fputs (hlp_cmdp[i]->name, st); i 2253 src/simh/scp.c (void)fprintf (st, "%*s", (int)(max_cmdname_size + 5 - strlen (hlp_cmdp[i]->name)), ""); i 2556 src/simh/scp.c int i; i 2561 src/simh/scp.c for (i=0; i<26; i++) { i 2562 src/simh/scp.c if (sim_brk_types & (1<<i)) i 2563 src/simh/scp.c (void)fprintf (st, " -%c\n", 'A'+i); i 2702 src/simh/scp.c i 2704 src/simh/scp.c i 2852 src/simh/scp.c int32 echo, nargs, errabort, i; i 2904 src/simh/scp.c for (i=0; i<SCPE_MAX_ERR; i++) { /* replicate any on commands */ i 2905 src/simh/scp.c if (sim_on_actions[sim_do_depth-1][i]) { i 2906 src/simh/scp.c sim_on_actions[sim_do_depth][i] = (char *)malloc(1+strlen(sim_on_actions[sim_do_depth-1][i])); i 2907 src/simh/scp.c if (NULL == sim_on_actions[sim_do_depth][i]) { i 2908 src/simh/scp.c while (--i >= 0) { i 2909 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][i]); i 2910 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; i 2918 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][i], sim_on_actions[sim_do_depth-1][i]); i 3040 src/simh/scp.c for (i=0; i<SCPE_MAX_ERR; i++) { /* release any on commands */ i 3041 src/simh/scp.c FREE (sim_on_actions[sim_do_depth][i]); i 3042 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; i 3107 src/simh/scp.c int i; i 3141 src/simh/scp.c for (i=0; i<ip[1] - '0'; ++i) /* make sure we're not past the list end */ i 3142 src/simh/scp.c if (do_arg[i] == NULL) { i 3151 src/simh/scp.c for (i=1; i<=9; ++i) i 3152 src/simh/scp.c if (do_arg[i] == NULL) i 3155 src/simh/scp.c if ((sizeof(rbuf)-strlen(rbuf)) < (2 + strlen(do_arg[i]))) { i 3156 src/simh/scp.c if (strchr(do_arg[i], ' ')) { /* need to surround this argument with quotes */ i 3158 src/simh/scp.c if (strchr(do_arg[i], quote)) i 3161 src/simh/scp.c (i != 1) ? " " : "", quote, i 3162 src/simh/scp.c do_arg[i], quote); i 3166 src/simh/scp.c (i != 1) ? " " : "", do_arg[i]); i 4184 src/simh/scp.c uint32 i; i 4198 src/simh/scp.c for (i = 0; i < dptr->numunits; i++) { /* check units */ i 4199 src/simh/scp.c up = (dptr->units) + i; /* att or active? */ i 4568 src/simh/scp.c int i, x; i 4569 src/simh/scp.c for (i=x=0; str[i]; ++i) i 4571 src/simh/scp.c if (!isspace((int)str[i]) || (i > 0 && !isspace((int)str[(int)(i-1)]))) //-V781 i 4573 src/simh/scp.c str[x++] = str[i]; i 4577 src/simh/scp.c i = -1; i 4583 src/simh/scp.c i=x; i 4587 src/simh/scp.c str[i+1] = '\0'; i 5518 src/simh/scp.c size_t i; i 5525 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5533 src/simh/scp.c int32 i; i 5538 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5653 src/simh/scp.c int32 lvl, i; i 5662 src/simh/scp.c for (i=1; i<SCPE_BASE; ++i) { i 5663 src/simh/scp.c if (sim_on_actions[lvl][i]) i 5664 src/simh/scp.c (void)fprintf(st, " on %5d %s\n", i, sim_on_actions[lvl][i]); } i 5665 src/simh/scp.c for (i=SCPE_BASE; i<=SCPE_MAX_ERR; ++i) { i 5666 src/simh/scp.c if (sim_on_actions[lvl][i]) i 5667 src/simh/scp.c (void)fprintf(st, " on %-5s %s\n", scp_errors[i-SCPE_BASE].code, sim_on_actions[lvl][i]); } i 5681 src/simh/scp.c int32 i; i 5686 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5688 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) i 5741 src/simh/scp.c int32 i; i 5746 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5748 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) i 5893 src/simh/scp.c uint32 i; i 5896 src/simh/scp.c for (i = 0; i < start; i++) { i 5897 src/simh/scp.c if (sim_devices[i] == NULL) i 5900 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { i 5907 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 6123 src/simh/scp.c uint32 i, j; i 6132 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { /* loop thru dev */ i 6229 src/simh/scp.c uint32 i, j; i 6320 src/simh/scp.c for (i=0; addrs[i]; i++) i 6321 src/simh/scp.c sim_brk_set (addrs[i], BRK_TYP_DYN_STEPOVER, 0, NULL); i 6361 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* reposition all */ i 6449 src/simh/scp.c for (i=0; addrs[i]; i++) i 6450 src/simh/scp.c sim_brk_set (addrs[i], BRK_TYP_DYN_STEPOVER, 0, NULL); i 6471 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* flush attached files */ i 6548 src/simh/scp.c int32 i; i 6573 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6574 src/simh/scp.c sim_eval[i] = 0; i 6575 src/simh/scp.c for (i = 0, k = (t_addr) pcval; i < sim_emax; i++, k = k + dptr->aincr) { i 6576 src/simh/scp.c if ((r = dptr->examine (&sim_eval[i], k, dptr->units, SWMASK ('V')|SIM_SW_STOP)) != SCPE_OK) i 6579 src/simh/scp.c if ((r == SCPE_OK) || (i > 0)) { i 6808 src/simh/scp.c t_addr i, mask; i 6816 src/simh/scp.c for (i = low; i <= high; ) { /* all paths must incr!! */ i 6817 src/simh/scp.c reason = get_aval (i, dptr, uptr); /* get data */ i 6821 src/simh/scp.c i = i + dptr->aincr; /* sch fails, incr */ i 6824 src/simh/scp.c reason = ex_addr (ofile, flag, i, dptr, uptr); i 6828 src/simh/scp.c ex_addr (sim_log, flag, i, dptr, uptr); i 6832 src/simh/scp.c reason = dep_addr (flag, cptr, i, dptr, uptr, reason); i 6836 src/simh/scp.c i = i + (1 - reason); /* incr */ i 7094 src/simh/scp.c int32 i; i 7103 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 7104 src/simh/scp.c sim_eval[i] = 0; i 7105 src/simh/scp.c for (i = 0, j = addr; i < sim_emax; i++, j = j + dptr->aincr) { i 7107 src/simh/scp.c reason = dptr->examine (&sim_eval[i], j, uptr, sim_switches); i 7123 src/simh/scp.c SZ_LOAD (sz, sim_eval[i], uptr->filebuf, loc); i 7127 src/simh/scp.c sim_fread (&sim_eval[i], sz, 1, uptr->fileref); i 7140 src/simh/scp.c sim_last_val = sim_eval[i] = sim_eval[i] & mask; i 7142 src/simh/scp.c if ((reason != SCPE_OK) && (i == 0)) i 7164 src/simh/scp.c int32 i, count, rdx; i 7195 src/simh/scp.c for (i = 0, j = addr; i < count; i++, j = j + dptr->aincr) { i 7196 src/simh/scp.c sim_eval[i] = sim_eval[i] & mask; i 7198 src/simh/scp.c r = dptr->deposit (sim_eval[i], j, uptr, sim_switches); i 7212 src/simh/scp.c SZ_STORE (sz, sim_eval[i], uptr->filebuf, loc); i 7218 src/simh/scp.c sim_fwrite (&sim_eval[i], sz, 1, uptr->fileref); i 7236 src/simh/scp.c int32 i, rdx, a, lim; i 7241 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 7242 src/simh/scp.c sim_eval[i] = 0; i 7251 src/simh/scp.c for (i = a = 0; a < lim; ) { i 7253 src/simh/scp.c if ((r = fprint_sym (stdout, a, &sim_eval[i], dptr->units, sim_switches)) > 0) i 7254 src/simh/scp.c r = fprint_val (stdout, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); i 7256 src/simh/scp.c if ((r = fprint_sym (sim_log, a, &sim_eval[i], dptr->units, sim_switches)) > 0) i 7257 src/simh/scp.c r = fprint_val (sim_log, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); i 7263 src/simh/scp.c i = a / dptr->aincr; i 7706 src/simh/scp.c size_t i; i 7716 src/simh/scp.c for (i=0; i<size; i++) i 7717 src/simh/scp.c switch ((char)iptr[i]) { i 7784 src/simh/scp.c int32 i; i 7789 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 7795 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 7817 src/simh/scp.c uint32 i, u; i 7833 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { /* base + unit#? */ i 7871 src/simh/scp.c uint32 i; i 7873 src/simh/scp.c for (i = 0; (sim_devices[i] != NULL); i++) i 7874 src/simh/scp.c if (sim_devices[i] == dptr) i 7876 src/simh/scp.c for (i = 0; i < sim_internal_device_count; i++) i 7877 src/simh/scp.c if (sim_internal_devices[i] == dptr) i 7909 src/simh/scp.c uint32 i, j; i 7913 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 7919 src/simh/scp.c for (i = 0; i<sim_internal_device_count; i++) { i 7920 src/simh/scp.c dptr = sim_internal_devices[i]; i 7950 src/simh/scp.c int32 i; i 7955 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != 0; i++) { /* all dev */ i 8373 src/simh/scp.c int32 i, updown; i 8392 src/simh/scp.c for (i=0; i<(int32)schptr->count; i++) { i 8393 src/simh/scp.c val[i] = values[i]; i 8397 src/simh/scp.c val[i] = val[i] | schptr->mask[i]; i 8401 src/simh/scp.c val[i] = val[i] & schptr->mask[i]; i 8405 src/simh/scp.c val[i] = val[i] ^ schptr->mask[i]; i 8413 src/simh/scp.c i=schptr->count-1; i 8417 src/simh/scp.c i=0; i 8419 src/simh/scp.c for (; (i>=0) && (i<(int32)schptr->count) && ret; i += updown) { i 8423 src/simh/scp.c if (val[i] != schptr->comp[i]) i 8428 src/simh/scp.c if (val[i] == schptr->comp[i]) i 8433 src/simh/scp.c if (val[i] <= schptr->comp[i]) i 8438 src/simh/scp.c if (val[i] < schptr->comp[i]) i 8443 src/simh/scp.c if (val[i] >= schptr->comp[i]) i 8448 src/simh/scp.c if (val[i] > schptr->comp[i]) i 8987 src/simh/scp.c int32 i; i 8989 src/simh/scp.c for (i=0; i<sim_brk_lnt; i++) { i 8993 src/simh/scp.c bp = sim_brk_tab[i]; i 9065 src/simh/scp.c int32 i, t; i 9084 src/simh/scp.c for (i = sim_brk_ent; i > sim_brk_ins; --i) i 9085 src/simh/scp.c sim_brk_tab[i] = sim_brk_tab[i - 1]; i 9109 src/simh/scp.c for (i = 0; i < SIM_BKPT_N_SPC; i++) i 9110 src/simh/scp.c bp->time_fired[i] = -1.0; i 9163 src/simh/scp.c int32 i; i 9192 src/simh/scp.c for (i = sim_brk_ins; i < sim_brk_ent; i++) /* shuffle remaining entries */ i 9193 src/simh/scp.c sim_brk_tab[i] = sim_brk_tab[i+1]; i 9196 src/simh/scp.c for (i = 0; i < sim_brk_ent; i++) { i 9197 src/simh/scp.c bp = sim_brk_tab[i]; i 9210 src/simh/scp.c int32 i; i 9214 src/simh/scp.c for (i = 0; i < sim_brk_ent;) { i 9215 src/simh/scp.c t_addr loc = sim_brk_tab[i]->addr; i 9217 src/simh/scp.c if ((i < sim_brk_ent) && i 9218 src/simh/scp.c (loc == sim_brk_tab[i]->addr)) i 9219 src/simh/scp.c ++i; i 9230 src/simh/scp.c int32 i, any; i 9252 src/simh/scp.c for (i = any = 0; i < 26; i++) { i 9253 src/simh/scp.c if ((bp->typ >> i) & 1) { i 9259 src/simh/scp.c fputc (i + 'A', st); } i 9263 src/simh/scp.c (void)fprintf (st, "-%c", i + 'A'); } i 9596 src/simh/scp.c size_t i; i 9600 src/simh/scp.c for (i=start_rule; i<exp->size; i++) i 9601 src/simh/scp.c if (!strcmp (exp->rules[i].match_pattern, match)) i 9602 src/simh/scp.c return &exp->rules[i]; i 9610 src/simh/scp.c size_t i; i 9619 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ i 9620 src/simh/scp.c exp->rules[i] = exp->rules[i+1]; i 9644 src/simh/scp.c int32 i; i 9646 src/simh/scp.c for (i=0; i<exp->size; i++) { i 9647 src/simh/scp.c FREE (exp->rules[i].match); /* deallocate match string */ i 9648 src/simh/scp.c FREE (exp->rules[i].match_pattern); /* deallocate display format match string */ i 9649 src/simh/scp.c FREE (exp->rules[i].act); /* deallocate action */ i 9668 src/simh/scp.c size_t i; i 9690 src/simh/scp.c for (i=0; i<exp->size; i++) { /* Make sure this rule won't be occluded */ i 9691 src/simh/scp.c if ((0 == strcmp (match, exp->rules[i].match_pattern)) && i 9692 src/simh/scp.c (exp->rules[i].switches & EXP_TYP_PERSIST)) i 9762 src/simh/scp.c for (i=0; i<exp->size; i++) { i 9763 src/simh/scp.c size_t compare_size = (exp->rules[i].switches & EXP_TYP_REGEX) ? MAX(10 * strlen(ep->match_pattern), 1024) : exp->rules[i].size; i 9836 src/simh/scp.c size_t i; i 9838 src/simh/scp.c for (i=0; i < exp->size; i++) i 9839 src/simh/scp.c sim_exp_show_tab (st, exp, &exp->rules[i]); i 9847 src/simh/scp.c size_t i; i 9860 src/simh/scp.c for (i=0; i < exp->size; i++) { i 9861 src/simh/scp.c ep = &exp->rules[i]; i 9923 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ i 10186 src/simh/scp.c int32 i, fields, offset; i 10194 src/simh/scp.c for (i = fields-1; i >= 0; i--) { /* print xlation, transition */ i 10195 src/simh/scp.c if (bitdefs[i].name[0] == '\0') i 10197 src/simh/scp.c if ((bitdefs[i].width == 1) && (bitdefs[i].valuenames == NULL)) { i 10198 src/simh/scp.c int off = ((after >> bitdefs[i].offset) & 1) + (((before ^ after) >> bitdefs[i].offset) & 1) * 2; i 10199 src/simh/scp.c (void)Fprintf(stream, "%s%c ", bitdefs[i].name, debug_bstates[off]); i 10203 src/simh/scp.c mask = 0xFFFFFFFF >> (32-bitdefs[i].width); i 10204 src/simh/scp.c value = (uint32)((after >> bitdefs[i].offset) & mask); i 10205 src/simh/scp.c beforevalue = (uint32)((before >> bitdefs[i].offset) & mask); i 10210 src/simh/scp.c if (bitdefs[i].valuenames) i 10211 src/simh/scp.c (void)Fprintf(stream, "%s=%s%s ", bitdefs[i].name, delta, bitdefs[i].valuenames[value]); i 10213 src/simh/scp.c if (bitdefs[i].format) { i 10214 src/simh/scp.c (void)Fprintf(stream, "%s=%s", bitdefs[i].name, delta); i 10215 src/simh/scp.c (void)Fprintf(stream, bitdefs[i].format, value); i 10219 src/simh/scp.c (void)Fprintf(stream, "%s=%s0x%X ", bitdefs[i].name, delta, value); i 10382 src/simh/scp.c int32 i, j, len; i 10410 src/simh/scp.c for (i = j = 0; i < len; ++i) { i 10411 src/simh/scp.c if ('\n' == buf[i]) { i 10412 src/simh/scp.c if (i >= j) { i 10413 src/simh/scp.c if ((i != j) || (i == 0)) { i 10415 src/simh/scp.c (void)fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]); i 10417 src/simh/scp.c (void)fprintf (sim_deb, "%s%.*s\r\n", debug_prefix, i-j, &buf[j]); i 10421 src/simh/scp.c j = i + 1; i 10424 src/simh/scp.c if (i > j) { i 10426 src/simh/scp.c (void)fprintf (sim_deb, "%.*s", i-j, &buf[j]); i 10428 src/simh/scp.c (void)fprintf (sim_deb, "%s%.*s", debug_prefix, i-j, &buf[j]); i 10448 src/simh/scp.c size_t i, same, group, sidx, oidx, ridx, eidx, soff; i 10487 src/simh/scp.c for (i=same=0; i<len; i += 16) { i 10488 src/simh/scp.c if ((i > 0) && (0 == memcmp (&data[i], &data[i-16], 16))) { i 10494 src/simh/scp.c i - (16*same), i 10495 src/simh/scp.c i - 1); i 10498 src/simh/scp.c group = (((len - i) > 16) ? 16 : (len - i)); i 10507 src/simh/scp.c outbuf[oidx++] = hex[(data[i+sidx]>>4)&0xf]; i 10508 src/simh/scp.c outbuf[oidx++] = hex[data[i+sidx]&0xf]; i 10509 src/simh/scp.c if (sim_isprint (data[i+sidx])) i 10510 src/simh/scp.c strbuf[soff+sidx] = data[i+sidx]; i 10514 src/simh/scp.c uint16 word = data[i+sidx] + (((uint16)data[i+sidx+1]) << 8); i 10528 src/simh/scp.c if (sim_isprint (ebcdic2ascii[data[i+sidx]])) i 10529 src/simh/scp.c ebcdicbuf[eidx++] = ebcdic2ascii[data[i+sidx]]; i 10538 src/simh/scp.c sim_debug (reason, dptr, "%04lx%-48s %s%s%s\n", i, outbuf, strbuf, ebcdicbuf, rad50buf); i 10541 src/simh/scp.c sim_debug (reason, dptr, "%04lx thru %04lx same as above\n", i-(16*same), (long unsigned int)(len-1)); i 10638 src/simh/scp.c size_t i; i 10643 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10644 src/simh/scp.c child = topic->children[i]; i 10762 src/simh/scp.c size_t i; i 10763 src/simh/scp.c for (i = 0; i < ilvl; i++) i 10975 src/simh/scp.c size_t i, skiplines; i 11026 src/simh/scp.c for (i =0; i < skiplines; i++) i 11047 src/simh/scp.c size_t i; i 11064 src/simh/scp.c for (i = 0; i < topic->kids; i++) i 11065 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic->children[i], ap); i 11075 src/simh/scp.c size_t i, match; i 11082 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 11083 src/simh/scp.c strcpy (cbuf,topic->children[i]->title + i 11084 src/simh/scp.c ((topic->children[i]->flags & HLP_MAGIC_TOPIC)? 1 : 0)); i 11096 src/simh/scp.c return i+1; i 11100 src/simh/scp.c match = i+1; i 11116 src/simh/scp.c size_t i; i 11169 src/simh/scp.c for (i = 0; p[i]; i++ ) i 11170 src/simh/scp.c top.title[i] = (char)toupper (p[i]); i 11171 src/simh/scp.c top.title[i] = '\0'; i 11173 src/simh/scp.c strcpy (top.title+i, attach_help); i 11269 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 11270 src/simh/scp.c strcpy (tbuf, topic->children[i]->title + i 11271 src/simh/scp.c ((topic->children[i]->flags & HLP_MAGIC_TOPIC)? 1 : 0)); i 312 src/simh/sim_console.c int32 i; i 315 src/simh/sim_console.c for (i = 0; show_con_tab[i].name; i++) i 316 src/simh/sim_console.c show_con_tab[i].action (st, dptr, uptr, show_con_tab[i].arg, cptr); i 399 src/simh/sim_console.c int32 i, connections; i 422 src/simh/sim_console.c for (i=connections=0; i<sim_rem_con_tmxr.lines; i++) { i 423 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 429 src/simh/sim_console.c tmxr_fconns (st, lp, i); i 430 src/simh/sim_console.c if (sim_rem_read_timeouts[i] != sim_rem_read_timeout) { i 431 src/simh/sim_console.c if (sim_rem_read_timeouts[i]) i 433 src/simh/sim_console.c (unsigned long)i, (unsigned long)sim_rem_read_timeouts[i]); i 436 src/simh/sim_console.c (unsigned long)i); i 646 src/simh/sim_console.c int32 i, j, c = 0; i 663 src/simh/sim_console.c for (i=(was_active_command ? sim_rem_cmd_active_line : 0); i 664 src/simh/sim_console.c (i < sim_rem_con_tmxr.lines); i 665 src/simh/sim_console.c i++) { i 666 src/simh/sim_console.c t_bool master_session = (sim_rem_master_mode && (i == 0)); i 668 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 678 src/simh/sim_console.c (master_session && !sim_rem_single_mode[i])) { i 688 src/simh/sim_console.c i = -1; i 696 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 701 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 709 src/simh/sim_console.c if (sim_rem_single_mode[i]) { i 711 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; /* enter multi command mode */ i 719 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 722 src/simh/sim_console.c (unsigned long)i, lp->ipad); i 725 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 728 src/simh/sim_console.c if (!master_session && sim_rem_read_timeouts[i]) { i 730 src/simh/sim_console.c (unsigned long)sim_rem_read_timeouts[i]); i 736 src/simh/sim_console.c if ((sim_rem_buf_ptr[i] == 0) && /* At beginning of input line */ i 746 src/simh/sim_console.c if (sim_rem_buf_ptr[i] == 0) { i 763 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 772 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 777 src/simh/sim_console.c sim_rem_read_timeouts[i] && i 778 src/simh/sim_console.c ((sim_os_msec() - read_start_time)/1000 >= sim_rem_read_timeouts[i])) { i 779 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) {/* Erase current input line */ i 781 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 783 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+80 >= sim_rem_buf_size[i]) { i 784 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 785 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 787 src/simh/sim_console.c strcpy (sim_rem_buf[i], "CONTINUE ! Automatic continue due to timeout"); i 788 src/simh/sim_console.c tmxr_linemsgf (lp, "%s\n", sim_rem_buf[i]); i 795 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; /* No longer multi-command more */ i 808 src/simh/sim_console.c if (sim_rem_buf_ptr[i] > 0) { i 810 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 815 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) { i 817 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 821 src/simh/sim_console.c if (sim_rem_buf_ptr[i] == 0) i 826 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+1 >= sim_rem_buf_size[i]) { i 827 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 828 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 830 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]++] = '\0'; i 833 src/simh/sim_console.c (unsigned long)tmxr_input_pending_ln (lp), sim_rem_buf[i]); i 838 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) { /* Erase current input line */ i 840 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 842 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 843 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+80 >= sim_rem_buf_size[i]) { i 844 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 845 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 847 src/simh/sim_console.c strcpy (sim_rem_buf[i], "CONTINUE ! Automatic continue before close"); i 848 src/simh/sim_console.c tmxr_linemsgf (lp, "%s\n", sim_rem_buf[i]); i 855 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+2 >= sim_rem_buf_size[i]) { i 856 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 857 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 859 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]++] = (char)c; i 860 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]] = '\0'; i 861 src/simh/sim_console.c if (((size_t)sim_rem_buf_ptr[i]) >= sizeof(cbuf)) i 866 src/simh/sim_console.c if ((!got_command) && (sim_rem_single_mode[i]) && (tmxr_input_pending_ln (lp))) { i 870 src/simh/sim_console.c } while ((!got_command) && ((!sim_rem_single_mode[i]) || c)); i 873 src/simh/sim_console.c if ((sim_rem_single_mode[i]) && !got_command) { i 876 src/simh/sim_console.c sim_printf ("Remote Console Command from %s> %s\r\n", lp->ipad, sim_rem_buf[i]); i 878 src/simh/sim_console.c if (strlen(sim_rem_buf[i]) >= sizeof(cbuf)) { i 884 src/simh/sim_console.c strcpy (cbuf, sim_rem_buf[i]); i 885 src/simh/sim_console.c sim_rem_buf_ptr[i] = 0; i 886 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]] = '\0'; i 890 src/simh/sim_console.c if (sim_rem_single_mode[i]) { i 891 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; i 902 src/simh/sim_console.c sim_rem_active_number = i; i 916 src/simh/sim_console.c sim_rem_cmd_active_line = i; i 919 src/simh/sim_console.c i = i - 1; i 927 src/simh/sim_console.c sim_rem_single_mode[i] ? allowed_single_remote_cmds : \ i 974 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 993 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 998 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 1008 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 1010 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 1022 src/simh/sim_console.c sim_rem_cmd_active_line = i; i 1030 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; i 1057 src/simh/sim_console.c int32 i; i 1059 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) i 1060 src/simh/sim_console.c if (sim_rem_con_tmxr.ldsc[i].conn) i 1062 src/simh/sim_console.c if (i != sim_rem_con_tmxr.lines) i 1091 src/simh/sim_console.c int32 i; i 1094 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) { i 1095 src/simh/sim_console.c FREE (sim_rem_buf[i]); i 1096 src/simh/sim_console.c sim_rem_buf[i] = NULL; i 1097 src/simh/sim_console.c sim_rem_buf_size[i] = 0; i 1098 src/simh/sim_console.c sim_rem_buf_ptr[i] = 0; i 1099 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 1110 src/simh/sim_console.c int32 i; i 1119 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) i 1120 src/simh/sim_console.c FREE (sim_rem_buf[i]); i 1459 src/simh/sim_console.c int32 i; i 1474 src/simh/sim_console.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 1482 src/simh/sim_console.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 143 src/simh/sim_disk.c size_t i; i 145 src/simh/sim_disk.c for (i = 0; i < DKUF_N_FMT; i++) i 146 src/simh/sim_disk.c if (fmts[i].fmtval == f) { i 147 src/simh/sim_disk.c fprintf (st, "%s format", fmts[i].name); i 244 src/simh/sim_disk.c size_t i; i 256 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); i 257 src/simh/sim_disk.c if (i < tbc/ctx->xfer_element_size) /* fill */ i 258 src/simh/sim_disk.c (void)memset (&buf[i*ctx->xfer_element_size], 0, tbc-(i*ctx->xfer_element_size)); i 261 src/simh/sim_disk.c *sectsread = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); i 346 src/simh/sim_disk.c size_t i; i 358 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); i 361 src/simh/sim_disk.c *sectswritten = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); i 650 src/simh/sim_disk.c int i; i 654 src/simh/sim_disk.c for (i=0; i<WordCount; i++) i 655 src/simh/sim_disk.c CheckSum += Buf[i]; i 1104 src/simh/sim_disk.c uint32 i; i 1106 src/simh/sim_disk.c for (i=0; i < dptr->numunits; ++i) i 1107 src/simh/sim_disk.c if (dptr->units[i].flags & UNIT_ATTABLE) i 1108 src/simh/sim_disk.c fprintf (st, " sim> ATTACH {switches} %s%lu diskfile\n", dptr->name, (unsigned long)i); i 167 src/simh/sim_fio.c int32 i; i 185 src/simh/sim_fio.c for (i = (int32)nbuf; i > 0; i--) { /* loop on buffers */ i 186 src/simh/sim_fio.c c = (i == 1)? lcnt: nelem; i 123 src/simh/sim_sock.c int i; i 126 src/simh/sim_sock.c for (i=0; (sock_errors[i].text) && (sock_errors[i].value != err); i++) i 128 src/simh/sim_sock.c if (sock_errors[i].value == err) i 129 src/simh/sim_sock.c (void)sprintf (err_buf, "Sockets: %s error %d - %s\r\n", emsg, err, sock_errors[i].text); i 281 src/simh/sim_tape.c uint32 i; i 283 src/simh/sim_tape.c for (i=0; i < dptr->numunits; ++i) i 284 src/simh/sim_tape.c if (dptr->units[i].flags & UNIT_ATTABLE) i 285 src/simh/sim_tape.c fprintf (st, " sim> ATTACH {switches} %s%lu tapefile\n\n", dptr->name, (unsigned long)i); i 791 src/simh/sim_tape.c t_mtrlnt i, tbc, rbc; i 809 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ i 815 src/simh/sim_tape.c for ( ; i < rbc; i++) /* fill with 0's */ i 816 src/simh/sim_tape.c buf[i] = 0; i 856 src/simh/sim_tape.c t_mtrlnt i, rbc, tbc; i 869 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ i 872 src/simh/sim_tape.c for ( ; i < rbc; i++) /* fill with 0's */ i 873 src/simh/sim_tape.c buf[i] = 0; i 1890 src/simh/sim_tape.c size_t i; i 1928 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); i 1929 src/simh/sim_tape.c if (i == 0) /* past or at eof? */ i 1955 src/simh/sim_tape.c for (i=0; i<65535; i++) { i 1956 src/simh/sim_tape.c if (countmap[i]) { i 1957 src/simh/sim_tape.c if (i == 0) i 1959 src/simh/sim_tape.c countmap[i]); i 1962 src/simh/sim_tape.c countmap[i], (int)i, (countmap[i] > 1) ? "s" : ""); i 91 src/simh/sim_timer.c uint32 i, tot, tim; i 95 src/simh/sim_timer.c for (i = 0, tot = 0; i < sleep1Samples; i++) i 100 src/simh/sim_timer.c for (i = 0, tot = 0; i < sleep1Samples; i++) i 496 src/simh/sim_tmxr.c int32 i = lp->rxbpi; i 499 src/simh/sim_tmxr.c return loop_read (lp, &(lp->rxb[i]), length); i 501 src/simh/sim_tmxr.c return sim_read_sock (lp->sock, &(lp->rxb[i]), length); i 514 src/simh/sim_tmxr.c int32 i = lp->txbpr; i 517 src/simh/sim_tmxr.c return loop_write (lp, &(lp->txb[i]), length); i 519 src/simh/sim_tmxr.c written = sim_write_sock (lp->sock, &(lp->txb[i]), length); i 670 src/simh/sim_tmxr.c int32 i; i 686 src/simh/sim_tmxr.c for (i=0; i<mp->lines; ++i) { i 688 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 770 src/simh/sim_tmxr.c for (size_t i = 0; i < len; i++) i 771 src/simh/sim_tmxr.c h = h * 31 + p[i]; i 803 src/simh/sim_tmxr.c int32 i, j; i 825 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { i 826 src/simh/sim_tmxr.c uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; i 873 src/simh/sim_tmxr.c for (int i = 0; i < 1000; i++) i 916 src/simh/sim_tmxr.c i = mp->lines; /* play it safe in case lines == 0 */ i 919 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ i 921 src/simh/sim_tmxr.c i = *op++; /* get next line in list to try */ i 923 src/simh/sim_tmxr.c i = j; /* get next sequential line */ i 925 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ i 934 src/simh/sim_tmxr.c if (i >= mp->lines) { /* all busy? */ i 937 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ i 983 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1008 src/simh/sim_tmxr.c return i; i 1014 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* check each line in sequence */ i 1016 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ i 1021 src/simh/sim_tmxr.c return i; i 1076 src/simh/sim_tmxr.c return i; i 1141 src/simh/sim_tmxr.c return i; i 1583 src/simh/sim_tmxr.c int32 i, nbytes, j; i 1586 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1587 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1807 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1808 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1954 src/simh/sim_tmxr.c int32 i, nbytes; i 1957 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1958 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 2179 src/simh/sim_tmxr.c int32 i, line, nextline = -1; i 2191 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ i 2192 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2259 src/simh/sim_tmxr.c i = (int32) get_uint (cptr, 10, 1024*1024, &r); i 2260 src/simh/sim_tmxr.c if (r || (i == 0)) i 2262 src/simh/sim_tmxr.c (void)sprintf(buffered, "%d", i); i 2407 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { i 2408 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2425 src/simh/sim_tmxr.c (void)sprintf(lp->txlogname, "%s_%d", mp->logfiletmpl, i); i 2439 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize line buffers */ i 2440 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2494 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* close line logs */ i 2495 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2537 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ i 2538 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2551 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { //-V1008 i 2552 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2906 src/simh/sim_tmxr.c int i; i 2909 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2910 src/simh/sim_tmxr.c if (tmxr_open_devices[i] == mux) { i 2929 src/simh/sim_tmxr.c for (i=0; i<mux->lines; i++) i 2930 src/simh/sim_tmxr.c if (0 == mux->ldsc[i].send.delay) i 2931 src/simh/sim_tmxr.c mux->ldsc[i].send.delay = SEND_DEFAULT_DELAY; i 2937 src/simh/sim_tmxr.c int i, j; i 2939 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2940 src/simh/sim_tmxr.c if (tmxr_open_devices[i] == mux) { i 2941 src/simh/sim_tmxr.c for (j=i+1; j<tmxr_open_device_count; ++j) i 2952 src/simh/sim_tmxr.c int i; i 2964 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2965 src/simh/sim_tmxr.c if (tmxr_open_devices[i]->dptr == dptr) { i 2966 src/simh/sim_tmxr.c int line = (int)get_uint (cptr, 10, tmxr_open_devices[i]->lines, &r); i 2970 src/simh/sim_tmxr.c *snd = &tmxr_open_devices[i]->ldsc[line].send; i 2972 src/simh/sim_tmxr.c *exp = &tmxr_open_devices[i]->ldsc[line].expect; i 2998 src/simh/sim_tmxr.c int32 i; i 3019 src/simh/sim_tmxr.c for (i=0; i<mp->lines; i++) { i 3020 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; i 3021 src/simh/sim_tmxr.c mp->ldsc[i].expect.dbit = TMXR_DBG_EXP; i 3022 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; i 3023 src/simh/sim_tmxr.c mp->ldsc[i].send.dbit = TMXR_DBG_SEND; i 3044 src/simh/sim_tmxr.c int i, j; i 3049 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) { i 3050 src/simh/sim_tmxr.c TMXR *mp = tmxr_open_devices[i]; i 3133 src/simh/sim_tmxr.c int32 i; i 3136 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru conn */ i 3137 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 3196 src/simh/sim_tmxr.c int32 i; i 3205 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { i 3206 src/simh/sim_tmxr.c UNIT *uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; i 3207 src/simh/sim_tmxr.c UNIT *o_uptr = mp->ldsc[i].o_uptr ? mp->ldsc[i].o_uptr : mp->uptr; i 3480 src/simh/sim_tmxr.c int32 i, len; i 3515 src/simh/sim_tmxr.c for (i = 0; i < len; ++i) { i 3516 src/simh/sim_tmxr.c if (('\n' == buf[i]) && ((i == 0) || ('\r' != buf[i-1]))) { i 3521 src/simh/sim_tmxr.c while (SCPE_STALL == tmxr_putc_ln (lp, buf[i])) i 3886 src/simh/sim_tmxr.c int32 i, j, low, last; i 3902 src/simh/sim_tmxr.c i = *iptr++; /* get next line in list */ i 3904 src/simh/sim_tmxr.c i = -1; /* get "tie-off" value */ i 3906 src/simh/sim_tmxr.c if (i != last + 1) { /* end of a range? */ i 3921 src/simh/sim_tmxr.c low = i; /* start new range */ i 3924 src/simh/sim_tmxr.c last = i; /* note value for range check */ i 3939 src/simh/sim_tmxr.c int32 i, t; i 3943 src/simh/sim_tmxr.c for (i = t = 0; i < mp->lines; i++) i 3944 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3959 src/simh/sim_tmxr.c int32 i, any; i 3963 src/simh/sim_tmxr.c for (i = any = 0; i < mp->lines; i++) { i 3964 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3965 src/simh/sim_tmxr.c || mp->ldsc[i].modem_control) { i 3966 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3970 src/simh/sim_tmxr.c tmxr_fconns (st, &mp->ldsc[i], i); i 3972 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3974 src/simh/sim_tmxr.c tmxr_fstats (st, &mp->ldsc[i], i);