i 348 src/decNumber/decNumber.c Int i=X10(hi)+lo; i 349 src/decNumber/decNumber.c if (dn->bits&DECNEG) return -i; i 350 src/decNumber/decNumber.c return i; i 748 src/decNumber/decNumber.c Int i, j; i 751 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 752 src/decNumber/decNumber.c if (a&b&1) *uc=*uc+(Unit)powers[i]; // effect AND i 761 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1105 src/decNumber/decNumber.c Int i, j; // work i 1111 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 1112 src/decNumber/decNumber.c if ((~a)&1) *uc=*uc+(Unit)powers[i]; // effect INVERT i 1119 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1705 src/decNumber/decNumber.c Int i, j; i 1707 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 1708 src/decNumber/decNumber.c if ((a|b)&1) *uc=*uc+(Unit)powers[i]; // effect OR i 1717 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 1815 src/decNumber/decNumber.c Int i; // work i 2064 src/decNumber/decNumber.c for (i=1;;i++){ // for each bit [top bit ignored] i 2076 src/decNumber/decNumber.c if (i==31) break; // that was the last bit i 3088 src/decNumber/decNumber.c Int i, j; i 3090 src/decNumber/decNumber.c for (i=0; i<DECDPUN; i++) { i 3091 src/decNumber/decNumber.c if ((a^b)&1) *uc=*uc+(Unit)powers[i]; // effect XOR i 3100 src/decNumber/decNumber.c if (uc==msuc && i==msudigs-1) break; // just did final digit i 5194 src/decNumber/decNumber.c Int i; // counter i 5201 src/decNumber/decNumber.c for (i=1;;i++){ // for each bit [top bit ignored] i 5210 src/decNumber/decNumber.c if (i==31) break; // that was the last bit i 169 src/decNumber/decNumberLocal.h # define ROUNDUP(i, n) ((((i)+(n)-1)/n)*n) //-V1003 i 170 src/decNumber/decNumberLocal.h # define ROUNDUP4(i) (((i)+3)&~3) /* special for n=4 */ i 173 src/decNumber/decNumberLocal.h # define ROUNDDOWN(i, n) (((i)/n)*n) //-V1003 i 174 src/decNumber/decNumberLocal.h # define ROUNDDOWN4(i) ((i)&~3) /* special for n=4 */ i 187 src/decNumber/decNumberLocal.h # define UBFROMUS(b, i) (uswork=(i), memcpy(b, (void *)&uswork, 2)) i 188 src/decNumber/decNumberLocal.h # define UBFROMUI(b, i) (uiwork=(i), memcpy(b, (void *)&uiwork, 4)) i 192 src/decNumber/decNumberLocal.h # define X10(i) (((i)<<1)+((i)<<3)) i 193 src/decNumber/decNumberLocal.h # define X100(i) (((i)<<2)+((i)<<5)+((i)<<6)) i 110 src/dps8/bsd_random.c register int i; i 112 src/dps8/bsd_random.c for (i = 1; i < rand_deg; i++) i 114 src/dps8/bsd_random.c state[i] = 1103515245 * state[i - 1] + 12345; i 119 src/dps8/bsd_random.c for (i = 0; i < 10 * rand_deg; i++) i 235 src/dps8/bsd_random.c long i; i 239 src/dps8/bsd_random.c i = state[0] = ( state[0] * 1103515245 + 12345 ) & 0x7fffffff; i 244 src/dps8/bsd_random.c i = ( *fptr >> 1 ) & 0x7fffffff; i 256 src/dps8/bsd_random.c return i; i 24 src/dps8/doAppendCycleABSA.h DCDstruct * i = & cpu.currentInstruction; i 32 src/dps8/doAppendCycleABSA.h if (i->b29) { i 43 src/dps8/doAppendCycleABSA.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 44 src/dps8/doAppendCycleABSA.h i->opcode == 0154 || i->opcode == 0173) && i 45 src/dps8/doAppendCycleABSA.h i->opcodeX ) || i 46 src/dps8/doAppendCycleABSA.h ((i->opcode == 0557 || i->opcode == 0257) && i 47 src/dps8/doAppendCycleABSA.h ! i->opcodeX); i 133 src/dps8/doAppendCycleABSA.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 214 src/dps8/doAppendCycleABSA.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 22 src/dps8/doAppendCycleAPUDataRMW.h DCDstruct * i = & cpu.currentInstruction; i 30 src/dps8/doAppendCycleAPUDataRMW.h if (i->b29) { i 41 src/dps8/doAppendCycleAPUDataRMW.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 42 src/dps8/doAppendCycleAPUDataRMW.h i->opcode == 0154 || i->opcode == 0173) && i 43 src/dps8/doAppendCycleAPUDataRMW.h i->opcodeX ) || i 44 src/dps8/doAppendCycleAPUDataRMW.h ((i->opcode == 0557 || i->opcode == 0257) && i 45 src/dps8/doAppendCycleAPUDataRMW.h ! i->opcodeX); i 142 src/dps8/doAppendCycleAPUDataRMW.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 263 src/dps8/doAppendCycleAPUDataRMW.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 22 src/dps8/doAppendCycleAPUDataRead.h DCDstruct * i = & cpu.currentInstruction; i 30 src/dps8/doAppendCycleAPUDataRead.h if (i->b29) { i 41 src/dps8/doAppendCycleAPUDataRead.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 42 src/dps8/doAppendCycleAPUDataRead.h i->opcode == 0154 || i->opcode == 0173) && i 43 src/dps8/doAppendCycleAPUDataRead.h i->opcodeX ) || i 44 src/dps8/doAppendCycleAPUDataRead.h ((i->opcode == 0557 || i->opcode == 0257) && i 45 src/dps8/doAppendCycleAPUDataRead.h ! i->opcodeX); i 137 src/dps8/doAppendCycleAPUDataRead.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 224 src/dps8/doAppendCycleAPUDataRead.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 22 src/dps8/doAppendCycleAPUDataStore.h DCDstruct * i = & cpu.currentInstruction; i 30 src/dps8/doAppendCycleAPUDataStore.h if (i->b29) { i 41 src/dps8/doAppendCycleAPUDataStore.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 42 src/dps8/doAppendCycleAPUDataStore.h i->opcode == 0154 || i->opcode == 0173) && i 43 src/dps8/doAppendCycleAPUDataStore.h i->opcodeX ) || i 44 src/dps8/doAppendCycleAPUDataStore.h ((i->opcode == 0557 || i->opcode == 0257) && i 45 src/dps8/doAppendCycleAPUDataStore.h ! i->opcodeX); i 141 src/dps8/doAppendCycleAPUDataStore.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 224 src/dps8/doAppendCycleAPUDataStore.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 225 src/dps8/doAppendCycleAPUDataStore.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 58 src/dps8/doAppendCycleIndirectWordFetch.h DCDstruct * i = & cpu.currentInstruction; i 66 src/dps8/doAppendCycleIndirectWordFetch.h if (i->b29) { i 90 src/dps8/doAppendCycleIndirectWordFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 91 src/dps8/doAppendCycleIndirectWordFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 126 src/dps8/doAppendCycleIndirectWordFetch.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 127 src/dps8/doAppendCycleIndirectWordFetch.h i->opcode == 0154 || i->opcode == 0173) && i 128 src/dps8/doAppendCycleIndirectWordFetch.h i->opcodeX ) || i 129 src/dps8/doAppendCycleIndirectWordFetch.h ((i->opcode == 0557 || i->opcode == 0257) && i 130 src/dps8/doAppendCycleIndirectWordFetch.h ! i->opcodeX); i 233 src/dps8/doAppendCycleIndirectWordFetch.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 328 src/dps8/doAppendCycleIndirectWordFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 329 src/dps8/doAppendCycleIndirectWordFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 68 src/dps8/doAppendCycleInstructionFetch.h DCDstruct * i = & cpu.currentInstruction; i 77 src/dps8/doAppendCycleInstructionFetch.h if (i->b29) { i 117 src/dps8/doAppendCycleInstructionFetch.h if (i->opcode == 0610 && ! i->opcodeX) { i 133 src/dps8/doAppendCycleInstructionFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 134 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 459 src/dps8/doAppendCycleInstructionFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 //-V560 i 460 src/dps8/doAppendCycleInstructionFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 596 src/dps8/doAppendCycleInstructionFetch.h if (i->opcode == 0610 && ! i->opcodeX) { i 22 src/dps8/doAppendCycleOperandRMW.h DCDstruct * i = & cpu.currentInstruction; i 30 src/dps8/doAppendCycleOperandRMW.h if (i->b29) { i 41 src/dps8/doAppendCycleOperandRMW.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 42 src/dps8/doAppendCycleOperandRMW.h i->opcode == 0154 || i->opcode == 0173) && i 43 src/dps8/doAppendCycleOperandRMW.h i->opcodeX ) || i 44 src/dps8/doAppendCycleOperandRMW.h ((i->opcode == 0557 || i->opcode == 0257) && i 45 src/dps8/doAppendCycleOperandRMW.h ! i->opcodeX); i 142 src/dps8/doAppendCycleOperandRMW.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 263 src/dps8/doAppendCycleOperandRMW.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 264 src/dps8/doAppendCycleOperandRMW.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 63 src/dps8/doAppendCycleOperandRead.h DCDstruct * i = & cpu.currentInstruction; i 72 src/dps8/doAppendCycleOperandRead.h if (i->b29) { i 77 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TRANSFER_INS) i 79 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) i 102 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) { i 112 src/dps8/doAppendCycleOperandRead.h i 119 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 562 src/dps8/doAppendCycleOperandRead.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 563 src/dps8/doAppendCycleOperandRead.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 689 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & CALL6_INS) i 693 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TRANSFER_INS) i 711 src/dps8/doAppendCycleOperandRead.h if (i->info->flags & TSPN_INS) { i 712 src/dps8/doAppendCycleOperandRead.h if (i->opcode <= 0273) i 713 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3); i 715 src/dps8/doAppendCycleOperandRead.h n = (i->opcode & 3) + 4; i 22 src/dps8/doAppendCycleOperandStore.h DCDstruct * i = & cpu.currentInstruction; i 30 src/dps8/doAppendCycleOperandStore.h if (i->b29) { i 41 src/dps8/doAppendCycleOperandStore.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 42 src/dps8/doAppendCycleOperandStore.h i->opcode == 0154 || i->opcode == 0173) && i 43 src/dps8/doAppendCycleOperandStore.h i->opcodeX ) || i 44 src/dps8/doAppendCycleOperandStore.h ((i->opcode == 0557 || i->opcode == 0257) && i 45 src/dps8/doAppendCycleOperandStore.h ! i->opcodeX); i 136 src/dps8/doAppendCycleOperandStore.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 223 src/dps8/doAppendCycleOperandStore.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 224 src/dps8/doAppendCycleOperandStore.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 22 src/dps8/doAppendCycleRTCDOperandFetch.h DCDstruct * i = & cpu.currentInstruction; i 30 src/dps8/doAppendCycleRTCDOperandFetch.h if (i->b29) { i 41 src/dps8/doAppendCycleRTCDOperandFetch.h nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 42 src/dps8/doAppendCycleRTCDOperandFetch.h i->opcode == 0154 || i->opcode == 0173) && i 43 src/dps8/doAppendCycleRTCDOperandFetch.h i->opcodeX ) || i 44 src/dps8/doAppendCycleRTCDOperandFetch.h ((i->opcode == 0557 || i->opcode == 0257) && i 45 src/dps8/doAppendCycleRTCDOperandFetch.h ! i->opcodeX); i 166 src/dps8/doAppendCycleRTCDOperandFetch.h sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 258 src/dps8/doAppendCycleRTCDOperandFetch.h if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 259 src/dps8/doAppendCycleRTCDOperandFetch.h || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) { i 426 src/dps8/dps8.h # define Y(i) (i & MASKHI18) i 428 src/dps8/dps8.h # define OPSX(i) ((i & 0007000LLU) >> 9) i 430 src/dps8/dps8.h # define X(i) (i & 07U) i 471 src/dps8/dps8.h # define READOP(i) ((bool) (i->info->flags & \ i 478 src/dps8/dps8.h # define WRITEOP(i) ((bool) (i->info->flags & \ i 486 src/dps8/dps8.h # define RMWOP(i) ((bool) READOP(i) && WRITEOP(i)) i 488 src/dps8/dps8.h # define TRANSOP(i) ((bool) (i->info->flags & (TRANSFER_INS) )) i 262 src/dps8/dps8_absi.c for (int i = 0; i < N_ABSI_UNITS_MAX; i ++) i 263 src/dps8/dps8_absi.c absi_state[i].link = NOLINK; i 378 src/dps8/dps8_absi.c for (int i = 0; i < sz; i ++) i 380 src/dps8/dps8_absi.c fprintf (stderr, " %06o %04x ", pkt[i], pkt[i]); i 382 src/dps8/dps8_absi.c fprintf (stderr, "%c", pkt[i] & (1 << (16 - b)) ? '1' : '0'); i 117 src/dps8/dps8_addrmods.c DCDstruct * i = & cpu.currentInstruction; i 121 src/dps8/dps8_addrmods.c if (READOP (i)) i 147 src/dps8/dps8_addrmods.c if (WRITEOP (i)) i 176 src/dps8/dps8_addrmods.c if (TRANSOP (i)) i 184 src/dps8/dps8_addrmods.c if (! READOP (i) && ! WRITEOP (i) && ! TRANSOP (i) && i 185 src/dps8/dps8_addrmods.c i -> info -> flags & PREPARE_CA) i 384 src/dps8/dps8_addrmods.c DCDstruct * i = & cpu.currentInstruction; i 393 src/dps8/dps8_addrmods.c if (i -> info -> flags & NO_TAG) // for instructions line STCA/STCQ i 952 src/dps8/dps8_addrmods.c Read (cpu.TPR.CA, & cpu.ou.character_data, (i->info->flags & RMW) == \ i 145 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 146 src/dps8/dps8_append.c usages[i] = -1; i 148 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 150 src/dps8/dps8_append.c ptw_s * p = cpu.PTWAM + i; i 153 src/dps8/dps8_append.c i, p->USE, N_MODEL_WAM_ENTRIES - 1); i 156 src/dps8/dps8_append.c i, usages[p->USE], p->USE); i 157 src/dps8/dps8_append.c usages[p->USE] = i; i 159 src/dps8/dps8_append.c for (int i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 161 src/dps8/dps8_append.c if (usages[i] == -1) i 162 src/dps8/dps8_append.c sim_printf ("No PTWAM had a USE of %d\n", i); i 181 src/dps8/dps8_append.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 183 src/dps8/dps8_append.c cpu.SDWAM[i].FE = 0; i 184 src/dps8/dps8_append.c L68_ (cpu.SDWAM[i].USE = (word4) i;) i 185 src/dps8/dps8_append.c DPS8M_ (cpu.SDWAM[i].USE = 0;) i 194 src/dps8/dps8_append.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 196 src/dps8/dps8_append.c cpu.PTWAM[i].FE = 0; i 197 src/dps8/dps8_append.c L68_ (cpu.PTWAM[i].USE = (word4) i;) i 198 src/dps8/dps8_append.c DPS8M_ (cpu.PTWAM[i].USE = 0;) i 1199 src/dps8/dps8_append.c DCDstruct * i = & cpu.currentInstruction; i 1213 src/dps8/dps8_append.c if (i->b29) i 1230 src/dps8/dps8_append.c nomatch = ((i->opcode == 0232 || i->opcode == 0254 || i 1231 src/dps8/dps8_append.c i->opcode == 0154 || i->opcode == 0173) && i->opcodeX) || i 1232 src/dps8/dps8_append.c ((i->opcode == 0557 || i->opcode == 0257) && ! i->opcodeX); i 1379 src/dps8/dps8_append.c i->opcode == 0610 && ! i->opcodeX) i 1382 src/dps8/dps8_append.c sim_warn ("%s: lastCycle == RTCD_OPERAND_FETCH opcode %0#o\n", __func__, i->opcode); i 1390 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & CALL6_INS)) i 1403 src/dps8/dps8_append.c i 1407 src/dps8/dps8_append.c i 1411 src/dps8/dps8_append.c i 1416 src/dps8/dps8_append.c (thisCycle == OPERAND_READ && (i->info->flags & TRANSFER_INS))) i 1800 src/dps8/dps8_append.c if (i->opcodeX && ((i->opcode & 0770)== 0200|| (i->opcode & 0770) == 0220 i 1801 src/dps8/dps8_append.c || (i->opcode & 0770)== 020|| (i->opcode & 0770) == 0300)) i 1935 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & CALL6_INS)) i 1940 src/dps8/dps8_append.c (thisCycle == OPERAND_READ && (i->info->flags & TRANSFER_INS))) i 2051 src/dps8/dps8_append.c if (thisCycle == OPERAND_READ && (i->info->flags & TSPN_INS)) i 2054 src/dps8/dps8_append.c if (i->opcode <= 0273) i 2055 src/dps8/dps8_append.c n = (i->opcode & 3); i 2057 src/dps8/dps8_append.c n = (i->opcode & 3) + 4; i 2078 src/dps8/dps8_append.c i->opcode == 0610 && ! i->opcodeX) i 1360 src/dps8/dps8_cable.c #define all(i,n) \ i 1361 src/dps8/dps8_cable.c for (uint i = 0; i < n; i ++) i 1411 src/dps8/dps8_cable.c for (int i = 0; i < N_CPU_UNITS_MAX; i++) i 1412 src/dps8/dps8_cable.c if (cpus_used[i]) i 1416 src/dps8/dps8_cable.c i + 'A'); i 1421 src/dps8/dps8_cable.c for (int i = 0; i < N_SCU_UNITS_MAX; i++) i 1422 src/dps8/dps8_cable.c if (scus_used[i]) i 1426 src/dps8/dps8_cable.c i + 'A'); i 1431 src/dps8/dps8_cable.c for (int i = 0; i < N_IOM_UNITS_MAX; i++) i 1432 src/dps8/dps8_cable.c if (ioms_used[i]) i 1436 src/dps8/dps8_cable.c i + 'A'); i 406 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) i 408 src/dps8/dps8_console.c console_state[i].io_mode = opc_no_mode; i 409 src/dps8/dps8_console.c console_state[i].tailp = console_state[i].keyboardLineBuffer; i 410 src/dps8/dps8_console.c console_state[i].readp = console_state[i].keyboardLineBuffer; i 411 src/dps8/dps8_console.c console_state[i].carrierPosition = 1; i 412 src/dps8/dps8_console.c memset (console_state[i].tabStops, 0, sizeof (console_state[i].tabStops)); i 413 src/dps8/dps8_console.c console_state[i].escapeSequence = false; i 420 src/dps8/dps8_console.c for (uint i = 0; i < opc_dev.numunits; i ++) i 422 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 427 src/dps8/dps8_console.c return (int) i; i 438 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) i 440 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 461 src/dps8/dps8_console.c for (uint i = 0; i < N_OPC_UNITS_MAX; i ++) { i 462 src/dps8/dps8_console.c opc_state_t * csp = console_state + i; i 468 src/dps8/dps8_console.c sim_warn ("console_exit freeing console %u telnetp %p\r\n", i, csp->console_access.telnetp); i 772 src/dps8/dps8_console.c int i; i 773 src/dps8/dps8_console.c for (i = 0; i < 64; i ++) i 774 src/dps8/dps8_console.c if (bcd_code_page[i] == c) i 776 src/dps8/dps8_console.c if (i >= 64) i 779 src/dps8/dps8_console.c i = 017; //-V536 i 781 src/dps8/dps8_console.c putbits36_6 (bufp, charno * 6, (word6) i); i 985 src/dps8/dps8_console.c for (int i = 0; i < csp->simh_buffer_cnt; i ++) i 986 src/dps8/dps8_console.c console_putchar (conUnitIdx, (char) (csp->simh_buffer[i])); i 1495 src/dps8/dps8_console.c i 1496 src/dps8/dps8_console.c i 1498 src/dps8/dps8_console.c i 1511 src/dps8/dps8_console.c i 1512 src/dps8/dps8_console.c i 1514 src/dps8/dps8_console.c i 1541 src/dps8/dps8_console.c for (int i = 0; i < 6; i ++) { i 1567 src/dps8/dps8_console.c for (uint i = 0; i < lp; i ++) { i 1583 src/dps8/dps8_console.c for (int i = 0; i < 4; i ++) { i 1913 src/dps8/dps8_console.c for (size_t i = 0; i < l; i ++) i 1914 src/dps8/dps8_console.c sim_putchar (str[i]); i 152 src/dps8/dps8_cpu.c #define PBI_8(i) \ i 153 src/dps8/dps8_cpu.c ( ((i) & 0x80ll) ? '1' : '0' ), \ i 154 src/dps8/dps8_cpu.c ( ((i) & 0x40ll) ? '1' : '0' ), \ i 155 src/dps8/dps8_cpu.c ( ((i) & 0x20ll) ? '1' : '0' ), \ i 156 src/dps8/dps8_cpu.c ( ((i) & 0x10ll) ? '1' : '0' ), \ i 157 src/dps8/dps8_cpu.c ( ((i) & 0x08ll) ? '1' : '0' ), \ i 158 src/dps8/dps8_cpu.c ( ((i) & 0x04ll) ? '1' : '0' ), \ i 159 src/dps8/dps8_cpu.c ( ((i) & 0x02ll) ? '1' : '0' ), \ i 160 src/dps8/dps8_cpu.c ( ((i) & 0x01ll) ? '1' : '0' ) i 166 src/dps8/dps8_cpu.c #define PBI_16(i) PBI_8((i) >> 8), PBI_8(i) i 167 src/dps8/dps8_cpu.c #define PBI_32(i) PBI_16((i) >> 16), PBI_16(i) i 168 src/dps8/dps8_cpu.c #define PBI_64(i) PBI_32((i) >> 32), PBI_32(i) i 190 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 193 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.enable [i]); i 195 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.init_enable [i]); i 197 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.assignment [i]); i 199 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.interlace [i]); i 201 src/dps8/dps8_cpu.c 'A' + i, cpus[cpu_unit_idx].switches.store_size [i]); i 767 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 768 src/dps8/dps8_cpu.c if (stall_points[i].segno || stall_points[i].offset) i 770 src/dps8/dps8_cpu.c sim_printf ("%2ld %05o:%06o %6lu\n", (long)i, stall_points[i].segno, i 771 src/dps8/dps8_cpu.c stall_points[i].offset, (unsigned long)stall_points[i].time); i 820 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 933 src/dps8/dps8_cpu.c for (uint i = 0; i < MEMSIZE; i ++) i 937 src/dps8/dps8_cpu.c M[i] = (M[i] & ~(MASK36 | MEM_LOCKED)) | MEM_UNINITIALIZED; i 939 src/dps8/dps8_cpu.c M[i] = (M[i] & ~(MASK36)) | MEM_UNINITIALIZED; i 1475 src/dps8/dps8_cpu.c for (uint i = 0; i < 8; i ++) i 1478 src/dps8/dps8_cpu.c sim_msg (" %9lld\r\n", (long long int) cpus[i].instrCnt); i 1480 src/dps8/dps8_cpu.c sim_msg (" %'9lld\r\n", (long long int) cpus[i].instrCnt); i 1482 src/dps8/dps8_cpu.c cpus[i].instrCnt = 0; i 1582 src/dps8/dps8_cpu.c for (int i = 0; i < N_FAULTS; i ++) i 1583 src/dps8/dps8_cpu.c cpu.faultCnt [i] = 0; i 1592 src/dps8/dps8_cpu.c for (uint i = 0; i < N_CPU_UNITS_MAX; i ++) i 1594 src/dps8/dps8_cpu.c cpu_reset_unit_idx (i, true); i 1707 src/dps8/dps8_cpu.c for (size_t i=0; i < sizeof( pt ); i++) i 1709 src/dps8/dps8_cpu.c sim_msg ("%02x", (unsigned)(ptc[i])); i 1926 src/dps8/dps8_cpu.c i 1928 src/dps8/dps8_cpu.c i 2719 src/dps8/dps8_cpu.c for (int i = 0; i < N_STALL_POINTS; i ++) i 2720 src/dps8/dps8_cpu.c if (stall_points[i].segno && stall_points[i].segno == cpu.PPR.PSR && i 2721 src/dps8/dps8_cpu.c stall_points[i].offset && stall_points[i].offset == cpu.PPR.IC) i 2724 src/dps8/dps8_cpu.c fprintf (stderr, "%10lu %s stall %d\n", seqno (), cpunstr[current_running_cpu_idx], i); i 2727 src/dps8/dps8_cpu.c sim_usleep(stall_points[i].time); i 3322 src/dps8/dps8_cpu.c i 3324 src/dps8/dps8_cpu.c i 3326 src/dps8/dps8_cpu.c i 3362 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3363 src/dps8/dps8_cpu.c if (i->info->flags & (READ_OPERAND | STORE_OPERAND)) i 3365 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YPAIR | STORE_YPAIR)) i 3367 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK8 | STORE_YBLOCK8)) i 3369 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK16 | STORE_YBLOCK16)) i 3371 src/dps8/dps8_cpu.c else if (i->info->flags & (READ_YBLOCK32 | STORE_YBLOCK32)) i 3382 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3383 src/dps8/dps8_cpu.c if (RMWOP (i)) // ldac, ldqc, stac, stacq, snzc i 3484 src/dps8/dps8_cpu.c DCDstruct * i = & cpu.currentInstruction; i 3485 src/dps8/dps8_cpu.c if (RMWOP (i)) i 3919 src/dps8/dps8_cpu.c p->i = GET_I (inst); // "I" inhibit interrupt flag i 4519 src/dps8/dps8_cpu.c int32 i, j, len; i 4565 src/dps8/dps8_cpu.c for (i = j = 0; i < len; ++i) i 4567 src/dps8/dps8_cpu.c if ('\n' == buf[i]) i 4569 src/dps8/dps8_cpu.c if (i >= j) i 4571 src/dps8/dps8_cpu.c if ((i != j) || (i == 0)) i 4575 src/dps8/dps8_cpu.c current_running_cpu_idx, dptr->name, debug_type, i-j, &buf[j]); i 4578 src/dps8/dps8_cpu.c j = i + 1; i 5010 src/dps8/dps8_cpu.c i 5011 src/dps8/dps8_cpu.c i 5012 src/dps8/dps8_cpu.c i 685 src/dps8/dps8_cpu.h bool i; // interrupt inhibit bit. i 2186 src/dps8/dps8_cpu.h if ((i & 0xff) == 0) \ i 2208 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2210 src/dps8/dps8_cpu.h MEM_LOCKED_BIT) == 1 && i > 0) \ i 2212 src/dps8/dps8_cpu.h i--; \ i 2215 src/dps8/dps8_cpu.h if (i == 0) \ i 2221 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2223 src/dps8/dps8_cpu.h cpu.lockWait += (DEADLOCK_DETECT-i); \ i 2224 src/dps8/dps8_cpu.h cpu.lockWaitMax = ((DEADLOCK_DETECT-i) > cpu.lockWaitMax) ? \ i 2225 src/dps8/dps8_cpu.h (DEADLOCK_DETECT-i) : cpu.lockWaitMax; \ i 2250 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2253 src/dps8/dps8_cpu.h && i > 0) \ i 2255 src/dps8/dps8_cpu.h i--; \ i 2258 src/dps8/dps8_cpu.h if (i == 0) \ i 2264 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2266 src/dps8/dps8_cpu.h cpu.lockWait += (DEADLOCK_DETECT-i); \ i 2267 src/dps8/dps8_cpu.h cpu.lockWaitMax = ((DEADLOCK_DETECT-i) > \ i 2268 src/dps8/dps8_cpu.h cpu.lockWaitMax) ? (DEADLOCK_DETECT-i) : \ i 2301 src/dps8/dps8_cpu.h unsigned int i = DEADLOCK_DETECT; \ i 2303 src/dps8/dps8_cpu.h MEM_LOCKED) & MEM_LOCKED) && i > 0) \ i 2305 src/dps8/dps8_cpu.h i--; \ i 2308 src/dps8/dps8_cpu.h if (i == 0) \ i 2314 src/dps8/dps8_cpu.h if (i == DEADLOCK_DETECT) \ i 2316 src/dps8/dps8_cpu.h cpu.lockWait += (DEADLOCK_DETECT-i); \ i 2317 src/dps8/dps8_cpu.h cpu.lockWaitMax = ((DEADLOCK_DETECT-i) > cpu.lockWaitMax) ? \ i 2318 src/dps8/dps8_cpu.h (DEADLOCK_DETECT-i) : cpu.lockWaitMax; \ i 2344 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) i 2346 src/dps8/dps8_cpu.h core_read (addr + i, data + i, ctx); i 2354 src/dps8/dps8_cpu.h for (uint i = 0; i < n; i ++) i 2356 src/dps8/dps8_cpu.h core_write (addr + i, data [i], ctx); i 264 src/dps8/dps8_crdpun.c for (int i = 0; i < N_PUN_UNITS_MAX; i ++) i 266 src/dps8/dps8_crdpun.c pun_state [i] . punfile_raw = -1; i 267 src/dps8/dps8_crdpun.c pun_state [i] . current_state = Idle; i 678 src/dps8/dps8_crdpun.c for (uint i = 0; i < 80; i++) i 680 src/dps8/dps8_crdpun.c sim_printf(" %04o\n", word12_buffer[i]); i 700 src/dps8/dps8_crdpun.c for (uint i = 0; i < tally; i ++) i 702 src/dps8/dps8_crdpun.c sim_printf (" %012llo\n", (unsigned long long)buffer [i]); i 223 src/dps8/dps8_crdrdr.c for (uint i = 0; i < N_RDR_UNITS_MAX; i ++) i 224 src/dps8/dps8_crdrdr.c rdr_state [i] . deckfd = -1; i 230 src/dps8/dps8_crdrdr.c i 384 src/dps8/dps8_crdrdr.c for (size_t i = 0; i < l; i ++) i 673 src/dps8/dps8_crdrdr.c for (uint i = 0; i < 80; i ++) { i 674 src/dps8/dps8_crdrdr.c if (isprint (cardImage [i])) i 675 src/dps8/dps8_crdrdr.c sim_printf ("%c", cardImage [i]); i 677 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 293 src/dps8/dps8_decimal.c i 294 src/dps8/dps8_decimal.c i 335 src/dps8/dps8_decimal.c i 336 src/dps8/dps8_decimal.c i 377 src/dps8/dps8_decimal.c i 378 src/dps8/dps8_decimal.c i 456 src/dps8/dps8_decimal.c i 457 src/dps8/dps8_decimal.c i 479 src/dps8/dps8_decimal.c i 480 src/dps8/dps8_decimal.c i 519 src/dps8/dps8_decimal.c i 520 src/dps8/dps8_decimal.c i 554 src/dps8/dps8_decimal.c i 555 src/dps8/dps8_decimal.c i 579 src/dps8/dps8_decimal.c i 580 src/dps8/dps8_decimal.c i 614 src/dps8/dps8_decimal.c i 617 src/dps8/dps8_decimal.c i 638 src/dps8/dps8_decimal.c i 639 src/dps8/dps8_decimal.c i 663 src/dps8/dps8_decimal.c i 664 src/dps8/dps8_decimal.c i 677 src/dps8/dps8_decimal.c i 678 src/dps8/dps8_decimal.c i 806 src/dps8/dps8_decimal.c for (int i = 0; i < nout; i ++) { i 807 src/dps8/dps8_decimal.c if (i < justif) i 808 src/dps8/dps8_decimal.c out [i] = '0'; i 810 src/dps8/dps8_decimal.c out [i] = tmp [i - justif] + '0'; i 854 src/dps8/dps8_decimal.c i 855 src/dps8/dps8_decimal.c i 856 src/dps8/dps8_decimal.c i 858 src/dps8/dps8_decimal.c i 383 src/dps8/dps8_disk.c uint i; i 384 src/dps8/dps8_disk.c for (i = 0; i < N_DISK_TYPES; i++) i 386 src/dps8/dps8_disk.c if (strcasecmp (cptr, diskTypes[i].typename) == 0) i 389 src/dps8/dps8_disk.c if (i >= N_DISK_TYPES) i 404 src/dps8/dps8_disk.c dsk_states[diskUnitIdx].typeIdx = i; i 405 src/dps8/dps8_disk.c dsk_unit[diskUnitIdx].capac = (t_addr) diskTypes[i].capac; i 406 src/dps8/dps8_disk.c dsk_states[diskUnitIdx].tAndDCapac = tAndDCapac[i]; i 686 src/dps8/dps8_disk.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) i 689 src/dps8/dps8_disk.c pthread_mutex_init (& dsk_states[i].dsk_lock, & scu_attr); i 691 src/dps8/dps8_disk.c pthread_mutex_init (& dsk_states[i].dsk_lock, NULL); i 925 src/dps8/dps8_disk.c for (uint i = 0; i < tally; i ++) i 930 src/dps8/dps8_disk.c buffer[i] = w; i 997 src/dps8/dps8_disk.c for (uint i = 0; i < tally; i ++) i 1000 src/dps8/dps8_disk.c buffer[i]); i 574 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 575 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 579 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], p -> SNR, p -> cachedAddr + i); i 584 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 585 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 587 src/dps8/dps8_eis.c Write1 (p->cachedAddr+i, p -> cachedParagraph[i], true); i 588 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 602 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 603 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 607 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], cpu.TPR.TSR, p -> cachedAddr + i); i 612 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 613 src/dps8/dps8_eis.c if (p->wordDirty[i]) i 615 src/dps8/dps8_eis.c Write1 (p->cachedAddr+i, p -> cachedParagraph[i], false); i 616 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 655 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 658 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], p -> SNR, paragraphAddress + i); i 675 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 678 src/dps8/dps8_eis.c __func__, p -> cachedParagraph [i], cpu.TPR.TSR, paragraphAddress + i); i 683 src/dps8/dps8_eis.c for (uint i = 0; i < 8; i ++) i 684 src/dps8/dps8_eis.c p->wordDirty[i] = false; i 816 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 820 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 824 src/dps8/dps8_eis.c __func__, data [i], p -> SNR, addressN + i); i 840 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 843 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 878 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 882 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 886 src/dps8/dps8_eis.c __func__, data [i], p -> SNR, addressN + i); i 902 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 905 src/dps8/dps8_eis.c __func__, data [i], cpu.TPR.TSR, addressN + i); i 911 src/dps8/dps8_eis.c static word9 EISget469 (int k, uint i) i 932 src/dps8/dps8_eis.c uint nChars = i + e -> CN [k - 1]; i 973 src/dps8/dps8_eis.c static void EISput469 (int k, uint i, word9 c469) i 994 src/dps8/dps8_eis.c uint nChars = i + e -> CN [k - 1]; i 1323 src/dps8/dps8_eis.c for (int i = 0; i < 3; i ++) i 1325 src/dps8/dps8_eis.c if (i < cpu.currentInstruction.info -> ndes) i 1326 src/dps8/dps8_eis.c setupOperandDescriptor (i + 1); i 1328 src/dps8/dps8_eis.c setupOperandDescriptorCache (i + 1); i 4518 src/dps8/dps8_eis.c for (uint i = 0; i < PGSZ; i ++) i 4519 src/dps8/dps8_eis.c pg [i] = w; i 5336 src/dps8/dps8_eis.c for(int i = 0 ; i < 8 ; i += 1) i 5348 src/dps8/dps8_eis.c e->editInsertionTable[i] = entry & 0777; // keep to 9-bits i 7809 src/dps8/dps8_eis.c for (int i = 0 ; i < n2 ; i ++) i 7814 src/dps8/dps8_eis.c (word9) (res[i] - '0')); i 7817 src/dps8/dps8_eis.c EISwrite49 (& e->ADDR2, & pos, (int) dstTN, (word9) res[i]); i 8911 src/dps8/dps8_eis.c uint i; i 8912 src/dps8/dps8_eis.c for(i = 0 ; i < min(e->N1, e->N2) ; i += 1) i 8917 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 8933 src/dps8/dps8_eis.c for(; i < e->N2 ; i += 1) i 8937 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 8953 src/dps8/dps8_eis.c for(; i < e->N1 ; i += 1) i 8957 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 9581 src/dps8/dps8_eis.c int i; i 9582 src/dps8/dps8_eis.c for (i=30;i>=0;i--) { i 9587 src/dps8/dps8_eis.c tmp[i] = (char) r + '0'; i 9603 src/dps8/dps8_eis.c int i; i 9604 src/dps8/dps8_eis.c for (i=30;i>=0;i--) { i 9605 src/dps8/dps8_eis.c tmp[i] = x%10 + '0'; i 9613 src/dps8/dps8_eis.c decNumber *op1 = decNumberFromString(&_1, tmp+i, &set); i 9651 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 9655 src/dps8/dps8_eis.c EISwrite49(&e->ADDR2, &pos, (int) dstTN, (word9) (res[i] - '0')); i 9658 src/dps8/dps8_eis.c EISwrite49(&e->ADDR2, &pos, (int) dstTN, (word9) res[i]); i 10029 src/dps8/dps8_eis.c for (int i = 0; i < n1; i++) { i 10033 src/dps8/dps8_eis.c x = add_128 (x, construct_128 (0, (uint) e->inBuffer[i])); i 10045 src/dps8/dps8_eis.c for (int i = 0; i < n1; i++) { i 10047 src/dps8/dps8_eis.c x += e->inBuffer[i]; i 10064 src/dps8/dps8_eis.c for(int i = 0; i < (int)e->N2; i++) { i 10255 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 10636 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 10703 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 10707 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 10710 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 10948 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 11015 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 11019 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11022 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11280 src/dps8/dps8_eis.c for (int i=op3->digits-1;i>=0 && pr[i]==0;i--) i 11345 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 11349 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11352 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11614 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 11618 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11621 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 11920 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 11924 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 11927 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 12103 src/dps8/dps8_eis.c i 12104 src/dps8/dps8_eis.c i 12116 src/dps8/dps8_eis.c i 12117 src/dps8/dps8_eis.c i 12124 src/dps8/dps8_eis.c i 12125 src/dps8/dps8_eis.c i 12126 src/dps8/dps8_eis.c i 12128 src/dps8/dps8_eis.c i 12413 src/dps8/dps8_eis.c i 12414 src/dps8/dps8_eis.c i 12438 src/dps8/dps8_eis.c i 12439 src/dps8/dps8_eis.c i 12528 src/dps8/dps8_eis.c i 12529 src/dps8/dps8_eis.c i 12534 src/dps8/dps8_eis.c i 12535 src/dps8/dps8_eis.c i 12574 src/dps8/dps8_eis.c i 12575 src/dps8/dps8_eis.c i 12599 src/dps8/dps8_eis.c i 12600 src/dps8/dps8_eis.c i 12630 src/dps8/dps8_eis.c i 12633 src/dps8/dps8_eis.c i 12658 src/dps8/dps8_eis.c i 12659 src/dps8/dps8_eis.c i 12669 src/dps8/dps8_eis.c i 12670 src/dps8/dps8_eis.c i 12697 src/dps8/dps8_eis.c i 12698 src/dps8/dps8_eis.c i 12705 src/dps8/dps8_eis.c i 12706 src/dps8/dps8_eis.c i 12724 src/dps8/dps8_eis.c i 12725 src/dps8/dps8_eis.c i 12915 src/dps8/dps8_eis.c int clz1, clz2, i; i 12916 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) i 12917 src/dps8/dps8_eis.c if (inBufferop1[i]!=0) i 12919 src/dps8/dps8_eis.c clz1 = i; i 12920 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) i 12921 src/dps8/dps8_eis.c if (e->inBuffer[i]!=0) // this still holds op2 digits i 12923 src/dps8/dps8_eis.c clz2 = i; i 13012 src/dps8/dps8_eis.c for (int i = n2; i > 0; i--) // incl.zero terminator i 13013 src/dps8/dps8_eis.c res[i] = res[i-1]; i 13057 src/dps8/dps8_eis.c for(int i = 0 ; i < n2 ; i++) i 13061 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 13064 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 13343 src/dps8/dps8_eis.c int clz1, clz2, i; i 13344 src/dps8/dps8_eis.c for (i=0; i < op1->digits; i++) i 13345 src/dps8/dps8_eis.c if (inBufferop1[i]!=0) i 13347 src/dps8/dps8_eis.c clz1 = i; i 13348 src/dps8/dps8_eis.c for (i=0; i < op2->digits; i++) i 13349 src/dps8/dps8_eis.c if (e->inBuffer[i]!=0) // this still holds op2 digits i 13351 src/dps8/dps8_eis.c clz2 = i; i 13440 src/dps8/dps8_eis.c for (int i = n3; i > 0; i--) // incl.zero terminator i 13441 src/dps8/dps8_eis.c res[i] = res[i-1]; i 13487 src/dps8/dps8_eis.c for(int i = 0 ; i < n3 ; i++) i 13491 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) (res[i] - '0')); i 13494 src/dps8/dps8_eis.c EISwrite49(&e->ADDR3, &pos, (int) dstTN, (word9) res[i]); i 385 src/dps8/dps8_fnp2.c i 400 src/dps8/dps8_fnp2.c for (uint i = 0; i < 4; i ++) i 401 src/dps8/dps8_fnp2.c if (! fudp -> fnpMBXinUse [i]) i 402 src/dps8/dps8_fnp2.c return (int) i; i 518 src/dps8/dps8_fnp2.c i 520 src/dps8/dps8_fnp2.c i 521 src/dps8/dps8_fnp2.c i 523 src/dps8/dps8_fnp2.c i 531 src/dps8/dps8_fnp2.c i 533 src/dps8/dps8_fnp2.c i 534 src/dps8/dps8_fnp2.c i 536 src/dps8/dps8_fnp2.c i 542 src/dps8/dps8_fnp2.c for (uint i = 0; i < n_chars; i += 4, j++) i 545 src/dps8/dps8_fnp2.c if (i < linep->nPos) i 546 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 0, linep->buffer [i]); i 547 src/dps8/dps8_fnp2.c if (i + 1 < linep->nPos) i 548 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 9, linep->buffer [i + 1]); i 549 src/dps8/dps8_fnp2.c if (i + 2 < linep->nPos) i 550 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 18, linep->buffer [i + 2]); i 551 src/dps8/dps8_fnp2.c if (i + 3 < linep->nPos) i 552 src/dps8/dps8_fnp2.c l_putbits36_9 (& v, 27, linep->buffer [i + 3]); i 569 src/dps8/dps8_fnp2.c i 570 src/dps8/dps8_fnp2.c i 843 src/dps8/dps8_fnp2.c for(int i = 0 ; i < nSpaces ; i += 1) i 1310 src/dps8/dps8_fnp2.c i 1312 src/dps8/dps8_fnp2.c i 1328 src/dps8/dps8_fnp2.c i 1330 src/dps8/dps8_fnp2.c i 1664 src/dps8/dps8_fnp2.c i 1665 src/dps8/dps8_fnp2.c i 1666 src/dps8/dps8_fnp2.c i 1668 src/dps8/dps8_fnp2.c i 2082 src/dps8/dps8_fnp2.c for (int i = 0; i < n_fw_entries; i ++) i 2084 src/dps8/dps8_fnp2.c struct fw_entry_s * p = fw_entries + i; i 2548 src/dps8/dps8_fnp2.c for (uint i = 0; i < l; i ++) i 2549 src/dps8/dps8_fnp2.c buf[i] = a2e[msg[i]]; i 2671 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, "%c", isgraph (e2a[buf[i]]) ? e2a[buf[i]] : '.'); i 2673 src/dps8/dps8_fnp2.c for (int i = 0; i < nread; i ++) sim_debug (DBG_TRACE, & fnp_dev, " %02x", buf[i]); i 65 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n; i ++) i 66 src/dps8/dps8_fnp2_iomcmd.c data [i] = M [addr + i] & DMASK; i 126 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 8; i ++) i 128 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("CS mbx %d\n", i); i 130 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word1); i 132 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word2); i 134 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [0]); i 136 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [1]); i 138 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].command_data [2]); i 140 src/dps8/dps8_fnp2_iomcmd.c (long long unsigned int) mbx.dn355_sub_mbxes[i].word6); i 142 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 4; i ++) i 144 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("FNP mbx %d\n", i); i 146 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].word1); i 148 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].word2); i 150 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [0]); i 152 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [1]); i 154 src/dps8/dps8_fnp2_iomcmd.c (unsigned long long int)mbx.fnp_sub_mbxes[i].mystery [2]); i 170 src/dps8/dps8_fnp2_iomcmd.c for (uint i=0; i < 3; i++) i 171 src/dps8/dps8_fnp2_iomcmd.c iom_direct_data_service (decoded_p->iom_unit, decoded_p->chan_num, decoded_p->smbx+COMMAND_DATA + i, & command_data [i], direct_load); i 489 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < echoTableLen; i ++) i 492 src/dps8/dps8_fnp2_iomcmd.c decoded_p->chan_num, data_addr + i, & echoTable [i], i 499 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < 8; i ++) i 501 src/dps8/dps8_fnp2_iomcmd.c word36 w = echoTable [i]; i 514 src/dps8/dps8_fnp2_iomcmd.c i 517 src/dps8/dps8_fnp2_iomcmd.c i 1078 src/dps8/dps8_fnp2_iomcmd.c i 1079 src/dps8/dps8_fnp2_iomcmd.c i 1085 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < tally; i ++) i 1088 src/dps8/dps8_fnp2_iomcmd.c if (data [i] == 0x100) i 1103 src/dps8/dps8_fnp2_iomcmd.c linep->frame[linep->frameLen ++] = (uint8_t) (data [i] & 0xff); i 1134 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < tally; i ++) i 1136 src/dps8/dps8_fnp2_iomcmd.c uint byteOff = i % 4; i 1139 src/dps8/dps8_fnp2_iomcmd.c wordOff = i / 4; i 1147 src/dps8/dps8_fnp2_iomcmd.c data [i] = byte & 0377; i 1149 src/dps8/dps8_fnp2_iomcmd.c data9 [i] = (uint16_t) byte; i 1157 src/dps8/dps8_fnp2_iomcmd.c i 1159 src/dps8/dps8_fnp2_iomcmd.c i 1160 src/dps8/dps8_fnp2_iomcmd.c i 1162 src/dps8/dps8_fnp2_iomcmd.c i 1207 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < dcwCnt; i ++) i 1212 src/dps8/dps8_fnp2_iomcmd.c iom_direct_data_service (decoded_p->iom_unit, decoded_p->chan_num, dcwAddr + i, & dcw, direct_load); i 1287 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < linep->nPos; i ++) i 1289 src/dps8/dps8_fnp2_iomcmd.c if (isgraph (linep->buffer [i])) i 1290 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("%c", linep->buffer [i]); i 1292 src/dps8/dps8_fnp2_iomcmd.c sim_printf ("\\%03o", linep->buffer [i]); i 1300 src/dps8/dps8_fnp2_iomcmd.c for (uint i = 0; i < n_chars_in_buf; i += 4) i 1303 src/dps8/dps8_fnp2_iomcmd.c if (i < n_chars_in_buf) //-V547 i 1305 src/dps8/dps8_fnp2_iomcmd.c if (i + 1 < n_chars_in_buf) i 1307 src/dps8/dps8_fnp2_iomcmd.c if (i + 2 < n_chars_in_buf) i 1309 src/dps8/dps8_fnp2_iomcmd.c if (i + 3 < n_chars_in_buf) i 1890 src/dps8/dps8_fnp2_iomcmd.c i 1891 src/dps8/dps8_fnp2_iomcmd.c i 1893 src/dps8/dps8_fnp2_iomcmd.c i 1895 src/dps8/dps8_fnp2_iomcmd.c i 1913 src/dps8/dps8_fnp2_iomcmd.c i 1914 src/dps8/dps8_fnp2_iomcmd.c i 554 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 555 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: bar address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 568 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 569 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: abs address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 588 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 589 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: bar iefpFinalAddress=" "%08o readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 600 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 601 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 605 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 606 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 639 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 640 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2OperandRead (Actual) Read: bar address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 653 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 654 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2OperandRead (Actual) Read: abs address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 673 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 674 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2OperandRead (Actual) Read: bar iefpFinalAddress=" "%08o readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 685 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 686 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2OperandRead (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 689 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 690 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2OperandRead (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 721 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 722 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2OperandRMW (Actual) Read: bar address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 735 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 736 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2OperandRMW (Actual) Read: abs address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 755 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 756 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2OperandRMW (Actual) Read: bar iefpFinalAddress=" "%08o readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 767 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 768 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2OperandRMW (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 799 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 800 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2InstructionFetch (Actual) Read: bar address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 813 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 814 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2InstructionFetch (Actual) Read: abs address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 833 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 834 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2InstructionFetch (Actual) Read: bar iefpFinalAddress=" "%08o readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 845 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 846 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2InstructionFetch (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 870 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 871 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: bar iefpFinalAddress=" "%08o readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 882 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 883 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2 (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 911 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 912 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2IndirectWordFetch (Actual) Read: bar address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 925 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 926 src/dps8/dps8_iefp.c sim_debug (DBG_FINAL, & cpu_dev, "Read2IndirectWordFetch (Actual) Read: abs address=%08o" " readData=%012"PRIo64"\n", address + i, result [i]); i 945 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 946 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2IndirectWordFetch (Actual) Read: bar iefpFinalAddress=" "%08o readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 957 src/dps8/dps8_iefp.c for (uint i = 0; i < 2; i ++) i 958 src/dps8/dps8_iefp.c sim_debug (DBG_APPENDING | DBG_FINAL, & cpu_dev, "Read2IndirectWordFetch (Actual) Read: iefpFinalAddress=%08o" " readData=%012"PRIo64"\n", cpu.iefpFinalAddress + i, result [i]); i 996 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1000 src/dps8/dps8_iefp.c address + i, result [i]); i 1004 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1005 src/dps8/dps8_iefp.c HDBGMRead (cpu.iefpFinalAddress + i, result [i], "Read8 ABBR"); i 1016 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1020 src/dps8/dps8_iefp.c address + i, result [i]); i 1024 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1025 src/dps8/dps8_iefp.c HDBGMRead (address + i, result [i], "Read8 ABS"); i 1043 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1047 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1051 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1052 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result[i], "Read8 BAR"); i 1065 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1069 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1073 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1074 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "Read8"); i 1120 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1124 src/dps8/dps8_iefp.c address + i, result [i]); i 1128 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1129 src/dps8/dps8_iefp.c HDBGMRead (cpu.iefpFinalAddress + i, result [i], "ReadPage AB"); i 1140 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1144 src/dps8/dps8_iefp.c address + i, result [i]); i 1148 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1149 src/dps8/dps8_iefp.c HDBGMRead (address + i, result [i], "ReadPage ABS"); i 1167 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1171 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1175 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1176 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "ReadPage B"); i 1190 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1194 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, result [i]); i 1198 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1199 src/dps8/dps8_iefp.c HDBGAPURead (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, result [i], "ReadPage"); i 1660 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1664 src/dps8/dps8_iefp.c address + i, data [i]); i 1668 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1669 src/dps8/dps8_iefp.c HDBGMWrite (cpu.iefpFinalAddress + i, data [i], "Write8 ABBR"); i 1680 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1684 src/dps8/dps8_iefp.c address + i, data [i]); i 1688 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1689 src/dps8/dps8_iefp.c HDBGMWrite (address + i, data [i], "Write8 AB"); i 1707 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1711 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1715 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1716 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "Write8 BR"); i 1727 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1731 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1735 src/dps8/dps8_iefp.c for (uint i = 0; i < 8; i ++) i 1736 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "Write8"); i 1789 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1793 src/dps8/dps8_iefp.c address + i, data [i]); i 1797 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1798 src/dps8/dps8_iefp.c HDBGMWrite (cpu.iefpFinalAddress + i, data [i], "WritePage ABBR"); i 1809 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1813 src/dps8/dps8_iefp.c address + i, data [i]); i 1817 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1818 src/dps8/dps8_iefp.c HDBGMWrite (address + i, data [i], "WritePage AB"); i 1836 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1841 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1845 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1846 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "WritePage BR"); i 1856 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1860 src/dps8/dps8_iefp.c cpu.iefpFinalAddress + i, data [i]); i 1864 src/dps8/dps8_iefp.c for (uint i = 0; i < PGSZ; i ++) i 1865 src/dps8/dps8_iefp.c HDBGAPUWrite (cpu.TPR.TSR, cpu.TPR.CA + i, cpu.iefpFinalAddress + i, data [i], "WritePage"); i 91 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 95 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); i 100 src/dps8/dps8_ins.c if (! (i->info->flags & NO_TAG)) i 170 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 174 src/dps8/dps8_ins.c __func__, disassemble (buf, IWB_IRODD), i->info->mne, i->info->flags); i 176 src/dps8/dps8_ins.c "%s a %d address %08o\n", __func__, i->b29, cpu.TPR.CA); i 181 src/dps8/dps8_ins.c if (! (i->info->flags & NO_TAG)) i 244 src/dps8/dps8_ins.c if ((i->info->flags & RMW) == RMW) i 526 src/dps8/dps8_ins.c int i; i 527 src/dps8/dps8_ins.c for (i=0; i < 11; i++) i 529 src/dps8/dps8_ins.c if (memcmp (words, rewrite_table[i].was, 8*sizeof (word36)) == 0) i 531 src/dps8/dps8_ins.c memcpy (words, rewrite_table[i].should_be, 8*sizeof (word36)); i 532 src/dps8/dps8_ins.c sim_warn("%s: scu rewrite %d: %s\n", __func__, i, rewrite_table[i].name); i 701 src/dps8/dps8_ins.c for (int i = 0; i < 8; i ++) i 703 src/dps8/dps8_ins.c words[i] = cpu.du.image[i]; i 815 src/dps8/dps8_ins.c for (int i = 0; i < 8; i ++) i 817 src/dps8/dps8_ins.c cpu.du.image[i] = words[i]; i 1214 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 1231 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 1253 src/dps8/dps8_ins.c cpu.currentInstruction.b29, cpu.currentInstruction.i, i 1272 src/dps8/dps8_ins.c cpu.currentInstruction.i, i 2291 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 2296 src/dps8/dps8_ins.c if (i->info->ndes > 0) i 2307 src/dps8/dps8_ins.c PNL (cpu.ou.RS = (word9) i->opcode); i 2317 src/dps8/dps8_ins.c uint32 opcode10 = i->opcode10; i 2337 src/dps8/dps8_ins.c cpu.ou.opsz = (opcodes10[i->opcode10].reg_use >> 12) & 037; i 2338 src/dps8/dps8_ins.c word10 reguse = (opcodes10[i->opcode10].reg_use) & MASK10; i 3418 src/dps8/dps8_ins.c SCF (i->stiTally, cpu.CY, I_TALLY); i 3757 src/dps8/dps8_ins.c ((i->tag & 040) ? 0777000000000u : 0) | i 3758 src/dps8/dps8_ins.c ((i->tag & 020) ? 0000777000000u : 0) | i 3759 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000000777000u : 0) | i 3760 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000000777u : 0); i 3775 src/dps8/dps8_ins.c ((i->tag & 040) ? 0777000000000u : 0) | i 3776 src/dps8/dps8_ins.c ((i->tag & 020) ? 0000777000000u : 0) | i 3777 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000000777000u : 0) | i 3778 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000000777u : 0); i 3791 src/dps8/dps8_ins.c SCF (i->stiTally, cpu.CY, I_TALLY); i 3815 src/dps8/dps8_ins.c ((i->tag & 040) ? 0770000000000u : 0) | i 3816 src/dps8/dps8_ins.c ((i->tag & 020) ? 0007700000000u : 0) | i 3817 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000077000000u : 0) | i 3818 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000770000u : 0) | i 3819 src/dps8/dps8_ins.c ((i->tag & 002) ? 0000000007700u : 0) | i 3820 src/dps8/dps8_ins.c ((i->tag & 001) ? 0000000000077u : 0); i 3835 src/dps8/dps8_ins.c ((i->tag & 040) ? 0770000000000u : 0) | i 3836 src/dps8/dps8_ins.c ((i->tag & 020) ? 0007700000000u : 0) | i 3837 src/dps8/dps8_ins.c ((i->tag & 010) ? 0000077000000u : 0) | i 3838 src/dps8/dps8_ins.c ((i->tag & 004) ? 0000000770000u : 0) | i 3839 src/dps8/dps8_ins.c ((i->tag & 002) ? 0000000007700u : 0) | i 3840 src/dps8/dps8_ins.c ((i->tag & 001) ? 0000000000077u : 0); i 6932 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 6934 src/dps8/dps8_ins.c word1 c = (i->address >> 7) & 1; i 6937 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 6949 src/dps8/dps8_ins.c uint c = (i->address >> 7) & 1; i 6950 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 6953 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 6965 src/dps8/dps8_ins.c uint c = (i->address >> 7) & 1; i 6966 src/dps8/dps8_ins.c cpu.cu.delta = i->tag; i 6969 src/dps8/dps8_ins.c cpu.rX[0] = i->address; // Entire 18 bits i 7091 src/dps8/dps8_ins.c switch (i->tag) i 7182 src/dps8/dps8_ins.c for (uint i = 0; i < N_HIST_SETS; i ++) i 7183 src/dps8/dps8_ins.c add_history_force (i, 0, 0); i 7196 src/dps8/dps8_ins.c for (uint i = 0; i < N_HIST_SETS; i ++) i 7197 src/dps8/dps8_ins.c add_history_force (i, MASK36, MASK36); i 7251 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7253 src/dps8/dps8_ins.c word4 m = cpu.PTWAM[i].USE; i 7254 src/dps8/dps8_ins.c cpu.PTWAM[m].POINTER = getbits36_15 (cpu.Yblock16[i], 0); i 7255 src/dps8/dps8_ins.c cpu.PTWAM[m].PAGENO = getbits36_12 (cpu.Yblock16[i], 15); i 7256 src/dps8/dps8_ins.c cpu.PTWAM[m].FE = getbits36_1 (cpu.Yblock16[i], 27); i 7267 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7269 src/dps8/dps8_ins.c word4 m = cpu.PTWAM[i].USE; i 7270 src/dps8/dps8_ins.c cpu.PTWAM[m].ADDR = getbits36_18 (cpu.Yblock16[i], 0); i 7271 src/dps8/dps8_ins.c cpu.PTWAM[m].M = getbits36_1 (cpu.Yblock16[i], 29); i 7295 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7297 src/dps8/dps8_ins.c word4 m = cpu.SDWAM[i].USE; i 7298 src/dps8/dps8_ins.c cpu.SDWAM[m].POINTER = getbits36_15 (cpu.Yblock16[i], 0); i 7299 src/dps8/dps8_ins.c cpu.SDWAM[m].FE = getbits36_1 (cpu.Yblock16[i], 27); i 7313 src/dps8/dps8_ins.c for (uint i = 0; i < 16; i ++) i 7315 src/dps8/dps8_ins.c word4 m = cpu.SDWAM[i].USE; i 7343 src/dps8/dps8_ins.c uint tag = (i->tag) & MASK6; i 7630 src/dps8/dps8_ins.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 7632 src/dps8/dps8_ins.c cpu.PTWAM[i].FE = 0; i 7633 src/dps8/dps8_ins.c L68_ (cpu.PTWAM[i].USE = (word4) i;) i 7634 src/dps8/dps8_ins.c DPS8M_ (cpu.PTWAM[i].USE = 0;) i 7676 src/dps8/dps8_ins.c for (uint i = 0; i < N_MODEL_WAM_ENTRIES; i ++) i 7678 src/dps8/dps8_ins.c cpu.SDWAM[i].FE = 0; i 7679 src/dps8/dps8_ins.c L68_ (cpu.SDWAM[i].USE = (word4) i;) i 7680 src/dps8/dps8_ins.c DPS8M_ (cpu.SDWAM[i].USE = 0;) i 9108 src/dps8/dps8_ins.c cpu.ou.STR_OP = (is_ou && (i->info->flags & (STORE_OPERAND | STORE_YPAIR))) ? 1 : 0; i 9132 src/dps8/dps8_ins.c DCDstruct * i = & cpu.currentInstruction; i 9138 src/dps8/dps8_ins.c word36 op = M[i->address]; i 9144 src/dps8/dps8_ins.c sim_printf ("%lld\n", (long long int) M[i->address+1]); i 9205 src/dps8/dps8_ins.c i 9267 src/dps8/dps8_ins.c i 9269 src/dps8/dps8_ins.c i 9270 src/dps8/dps8_ins.c i 9317 src/dps8/dps8_ins.c i 9322 src/dps8/dps8_ins.c i 9326 src/dps8/dps8_ins.c i 9329 src/dps8/dps8_ins.c i 993 src/dps8/dps8_iom.c int i; i 994 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 995 src/dps8/dps8_iom.c sim_printf (" %03o", p -> configSwPortAddress[i]); i 998 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 999 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortInterface[i]); i 1002 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1003 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortEnable[i]); i 1006 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1007 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortSysinitEnable[i]); i 1010 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1011 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortHalfsize[i]); i 1014 src/dps8/dps8_iom.c for (i = 0; i < N_IOM_PORTS; i ++) i 1015 src/dps8/dps8_iom.c sim_printf (" %3o", p -> configSwPortStoresize[i]); i 3182 src/dps8/dps8_iom.c for (int i = 0; i < 8; i ++) i 3183 src/dps8/dps8_iom.c dumpDCW (M[p->LPW_DCW_PTR - 1 + i], p->LPW_23_REL); i 3565 src/dps8/dps8_iom.c for (uint i = 0; i < N_IOM_UNITS_MAX; i++) i 3568 src/dps8/dps8_iom.c iom_chan_data_t * p = &iom_chan_data [i] [j]; i 3572 src/dps8/dps8_iom.c doPayloadChannel (i, j); i 2854 src/dps8/dps8_math.c for (uint i = 0; i < 35; i ++) { i 2859 src/dps8/dps8_math.c quot |= (1llu << (34 - i)); i 285 src/dps8/dps8_math128.c int i, j; i 287 src/dps8/dps8_math128.c for (i = 0; i < m; i++) i 288 src/dps8/dps8_math128.c w[i] = 0; i 293 src/dps8/dps8_math128.c for (i = 0; i < m; i++) i 295 src/dps8/dps8_math128.c t = (uint64_t) u[i] * (uint64_t) v[j] + (uint64_t) w[i + j] + k; i 297 src/dps8/dps8_math128.c w[i + j] = (uint32_t) t; // (i.e., t & 0xFFFF). i 326 src/dps8/dps8_math128.c for (int i = 0; i < m; i++) i 328 src/dps8/dps8_math128.c int t = (int) w[i + n] - (int) u[i] - b; i 329 src/dps8/dps8_math128.c w[i + n] = (uint32_t) t; i 390 src/dps8/dps8_math128.c int s, i, j, t, k; i 416 src/dps8/dps8_math128.c for (i = n - 1; i > 0; i--) i 417 src/dps8/dps8_math128.c vn[i] = (uint16_t) (v[i] << s) | (uint16_t) (v[i-1] >> (16-s)); i 423 src/dps8/dps8_math128.c for (i = m - 1; i > 0; i--) i 424 src/dps8/dps8_math128.c un[i] = (uint16_t) (u[i] << s) | (uint16_t) (u[i-1] >> (16-s)); i 441 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 443 src/dps8/dps8_math128.c p = (unsigned)qhat*(unsigned long long)vn[i]; i 444 src/dps8/dps8_math128.c t = (int32_t) un[i+j] - k - (int32_t) (p & 0xFFFF); i 445 src/dps8/dps8_math128.c un[i+j] = (uint16_t) t; i 456 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 458 src/dps8/dps8_math128.c t = un[i+j] + vn[i] + k; i 459 src/dps8/dps8_math128.c un[i+j] = (uint16_t) t; i 469 src/dps8/dps8_math128.c for (i = 0; i < n; i++) i 470 src/dps8/dps8_math128.c r[i] = (uint16_t) (un[i] >> s) | (uint16_t) (un[i+1] << (16-s)); i 130 src/dps8/dps8_mgp.c for (size_t i = 0; i < len; i++) i 131 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 1174 src/dps8/dps8_mgp.c for (int i = 0; i < 1000; i++) i 1212 src/dps8/dps8_mgp.c int i; i 1213 src/dps8/dps8_mgp.c for (i = 0; i < MAX_CONNS; i++) i 1215 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt == 0) i 1217 src/dps8/dps8_mgp.c return i; i 1229 src/dps8/dps8_mgp.c int i; i 1230 src/dps8/dps8_mgp.c for (i = 0; i < MAX_CONNS; i++) i 1232 src/dps8/dps8_mgp.c if ( ( mgp_dev_state.conns[i].multics_proc != 0 ) i 1233 src/dps8/dps8_mgp.c && ( mgp_dev_state.conns[i].multics_proc == remote ) i 1234 src/dps8/dps8_mgp.c && (( local == 0 ) || ( mgp_dev_state.conns[i].local_id == local )) ) i 1236 src/dps8/dps8_mgp.c return i; i 1318 src/dps8/dps8_mgp.c close_conn(int i) i 1320 src/dps8/dps8_mgp.c if (i < 0) i 1322 src/dps8/dps8_mgp.c sim_printf("%s: closing conn %d which is invalid!\n", __func__, i); i 1326 src/dps8/dps8_mgp.c __func__, i, i 1327 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].multics_proc, i 1328 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].local_id, i 1329 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].remote_addr, i 1330 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].contact_name); i 1332 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt > 0) i 1334 src/dps8/dps8_mgp.c close(mgp_dev_state.conns[i].skt); i 1337 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].multics_proc = 0; i 1338 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].local_id = 0; i 1339 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].contact_name != NULL) i 1341 src/dps8/dps8_mgp.c FREE(mgp_dev_state.conns[i].contact_name); i 1344 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].contact_name = NULL; i 1345 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].remote_addr = 0; i 1349 src/dps8/dps8_mgp.c cbridge_send_packet(int i, u_char *pkt, int len) i 1351 src/dps8/dps8_mgp.c int skt = mgp_dev_state.conns[i].skt; i 1362 src/dps8/dps8_mgp.c close_conn(i); i 1384 src/dps8/dps8_mgp.c int i = find_conn_for(p->source_process, p->destination_process); i 1385 src/dps8/dps8_mgp.c if (i < 0) i 1400 src/dps8/dps8_mgp.c i, pkt, CBRIDGE_PACKET_HEADER_SIZE + p->byte_count); i 1433 src/dps8/dps8_mgp.c char *i; i 1439 src/dps8/dps8_mgp.c i = index(net, ' '); i 1440 src/dps8/dps8_mgp.c if (i == NULL) i 1447 src/dps8/dps8_mgp.c *i = '\0'; i 1448 src/dps8/dps8_mgp.c host = i + 1; i 1449 src/dps8/dps8_mgp.c i = index(host, ' '); i 1450 src/dps8/dps8_mgp.c if (i == NULL) i 1457 src/dps8/dps8_mgp.c *i = '\0'; i 1458 src/dps8/dps8_mgp.c contact = i + 1; i 1459 src/dps8/dps8_mgp.c i = index(contact, ' '); i 1460 src/dps8/dps8_mgp.c if (i == NULL) i 1467 src/dps8/dps8_mgp.c *i = '\0'; i 1468 src/dps8/dps8_mgp.c args = i + 1; i 1539 src/dps8/dps8_mgp.c int i = cindex; i 1542 src/dps8/dps8_mgp.c __func__, i, mgp_dev_state.conns[i].multics_proc, i 1543 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].local_id, mgp_dev_state.conns[i].remote_addr, i 1544 src/dps8/dps8_mgp.c mgp_dev_state.conns[i].contact_name); i 1579 src/dps8/dps8_mgp.c int i = find_conn_for(p->source_process, p->destination_process); i 1582 src/dps8/dps8_mgp.c __func__, p->packet_number, p->ack_number, i, i 1583 src/dps8/dps8_mgp.c i < 0 ? 0 : mgp_dev_state.conns[i].multics_proc, i 1584 src/dps8/dps8_mgp.c i < 0 ? 0 : mgp_dev_state.conns[i].local_id, i 1610 src/dps8/dps8_mgp.c rval = handle_lose(i, p, buf, words); i 1622 src/dps8/dps8_mgp.c char b[2] = { i, 0 }; i 1625 src/dps8/dps8_mgp.c __func__, i); i 1639 src/dps8/dps8_mgp.c "<%#x,%#x>\n", __func__, i, p->frame_number, p->receipt_number, i 1659 src/dps8/dps8_mgp.c i 1662 src/dps8/dps8_mgp.c i 1665 src/dps8/dps8_mgp.c i 1668 src/dps8/dps8_mgp.c i 1671 src/dps8/dps8_mgp.c i 1716 src/dps8/dps8_mgp.c uint pklen, int i) i 1728 src/dps8/dps8_mgp.c else if (i == -1) /* special case */ i 1737 src/dps8/dps8_mgp.c if (i >= 0) i 1740 src/dps8/dps8_mgp.c p->packet_number = ++mgp_dev_state.conns[i].pkt_last_sent; i 1741 src/dps8/dps8_mgp.c p->ack_number = mgp_dev_state.conns[i].pkt_last_received; i 1742 src/dps8/dps8_mgp.c p->source_process = mgp_dev_state.conns[i].local_id; i 1743 src/dps8/dps8_mgp.c p->destination_process = mgp_dev_state.conns[i].multics_proc; i 1864 src/dps8/dps8_mgp.c char *i, *rhost, *args = NULL, connect[128]; i 1867 src/dps8/dps8_mgp.c if (( i = index(rhost, '\r')) != NULL) i 1869 src/dps8/dps8_mgp.c *i = '\0'; i 1871 src/dps8/dps8_mgp.c else if (( i = index(rhost, '\n')) != NULL) i 1873 src/dps8/dps8_mgp.c *i = '\0'; i 1877 src/dps8/dps8_mgp.c if (( i = index(rhost, ' ')) != NULL) i 1879 src/dps8/dps8_mgp.c args = i + 1; i 1880 src/dps8/dps8_mgp.c *i = '\0'; i 1967 src/dps8/dps8_mgp.c int maxfd, numfds, i, sval, cnt, rval = -1; i 1983 src/dps8/dps8_mgp.c for (i = 0; i < MAX_CONNS; i++) i 1985 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt != 0) i 1987 src/dps8/dps8_mgp.c FD_SET(mgp_dev_state.conns[i].skt, &rfd); i 1989 src/dps8/dps8_mgp.c if (mgp_dev_state.conns[i].skt > maxfd) i 1991 src/dps8/dps8_mgp.c maxfd = mgp_dev_state.conns[i].skt; i 2069 src/dps8/dps8_mgp.c for (i = mgp_dev_state.read_index + 1; i < MAX_CONNS; i++) i 2071 src/dps8/dps8_mgp.c if (FD_ISSET(mgp_dev_state.conns[i].skt, &rfd)) i 2073 src/dps8/dps8_mgp.c mgp_dev_state.read_index = i; i 2075 src/dps8/dps8_mgp.c if (( cnt = read(mgp_dev_state.conns[i].skt, i 2081 src/dps8/dps8_mgp.c __func__, i, strerror(errno), errno); i 2082 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2084 src/dps8/dps8_mgp.c close_conn(i); i 2092 src/dps8/dps8_mgp.c __func__, i); i 2093 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2095 src/dps8/dps8_mgp.c close_conn(i); i 2103 src/dps8/dps8_mgp.c __func__, cnt, i); i 2122 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2124 src/dps8/dps8_mgp.c close_conn(i); i 2129 src/dps8/dps8_mgp.c else if (( cnt = read(mgp_dev_state.conns[i].skt, cbuf, clen)) < 0) i 2134 src/dps8/dps8_mgp.c __func__, i, strerror(errno), errno); i 2135 src/dps8/dps8_mgp.c FD_CLR(mgp_dev_state.conns[i].skt, &rfd); i 2137 src/dps8/dps8_mgp.c close_conn(i); i 2145 src/dps8/dps8_mgp.c __func__, cnt, clen, i); i 2152 src/dps8/dps8_mgp.c if (i == statusconn) /* No need for STATUS if we're i 2160 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 841 src/dps8/dps8_mt.c for (int i = 0; i < (int) dptr -> numunits; i ++) i 843 src/dps8/dps8_mt.c sim_tape_reset (& mt_unit [i]); i 965 src/dps8/dps8_mt.c for (int i = 0; i < N_MT_UNITS_MAX; i ++) i 967 src/dps8/dps8_mt.c mt_unit [i] . capac = 40000000; i 1073 src/dps8/dps8_mt.c uint i; i 1075 src/dps8/dps8_mt.c for (i = 0; i < tally; i ++) i 1079 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); i 1082 src/dps8/dps8_mt.c tape_statep -> tbc, & tape_statep -> words_processed, buffer + i); i 1091 src/dps8/dps8_mt.c i 1092 src/dps8/dps8_mt.c i 1093 src/dps8/dps8_mt.c i 1192 src/dps8/dps8_mt.c for (uint i = 0; i < tally; i ++) i 1194 src/dps8/dps8_mt.c putbits36_18 (buf + i, 0, mem [i * 2]); i 1195 src/dps8/dps8_mt.c putbits36_18 (buf + i, 18, mem [i * 2 + 1]); i 1269 src/dps8/dps8_mt.c i 1270 src/dps8/dps8_mt.c i 1271 src/dps8/dps8_mt.c i 1291 src/dps8/dps8_mt.c uint i; i 1292 src/dps8/dps8_mt.c for (i = 0; i < tally; i ++) i 1300 src/dps8/dps8_mt.c buffer [i]); i 1307 src/dps8/dps8_mt.c buffer [i]); i 1320 src/dps8/dps8_mt.c p -> tallyResidue = (word12) (tally - i); i 1412 src/dps8/dps8_mt.c for (uint i = 0; i < bufsz; i ++) i 1413 src/dps8/dps8_mt.c buffer [i] = 0; i 2418 src/dps8/dps8_mt.c int i; i 2419 src/dps8/dps8_mt.c for (i = 0; i < N_MT_UNITS_MAX; i ++) i 2421 src/dps8/dps8_mt.c if (strcmp (drive, tape_states [i] . device_name) == 0) i 2424 src/dps8/dps8_mt.c if (i >= N_MT_UNITS_MAX) i 2429 src/dps8/dps8_mt.c sim_printf ("attachTape selected unit %d\n", i); i 2430 src/dps8/dps8_mt.c loadTape ((uint) i, label, ! withring); i 2464 src/dps8/dps8_mt.c int i; i 2465 src/dps8/dps8_mt.c for (i = 0; i < N_MT_UNITS_MAX; i ++) i 2467 src/dps8/dps8_mt.c if (strcmp (drive, tape_states [i] . device_name) == 0) i 2470 src/dps8/dps8_mt.c if (i >= N_MT_UNITS_MAX) i 2475 src/dps8/dps8_mt.c unloadTape ((uint) i); i 357 src/dps8/dps8_prt.c for (int i = 0; i < N_PRT_UNITS_MAX; i ++) i 359 src/dps8/dps8_prt.c prt_state[i].prtfile = -1; i 360 src/dps8/dps8_prt.c prt_state[i].model = MODEL_1600; i 367 src/dps8/dps8_prt.c i 402 src/dps8/dps8_prt.c uint i; i 403 src/dps8/dps8_prt.c for (i = 0; i < 5; i ++) i 405 src/dps8/dps8_prt.c word9 ch = gc (b, 2 + i); i 408 src/dps8/dps8_prt.c qno[i] = (char) ch; i 415 src/dps8/dps8_prt.c for (i = 0; i < LONGEST; i ++) i 417 src/dps8/dps8_prt.c word9 ch = gc (b, 9 + i); i 422 src/dps8/dps8_prt.c name[i] = (char) ch; i 424 src/dps8/dps8_prt.c name[i] = 0; i 602 src/dps8/dps8_prt.c i 604 src/dps8/dps8_prt.c i 686 src/dps8/dps8_prt.c i 688 src/dps8/dps8_prt.c i 691 src/dps8/dps8_prt.c i 706 src/dps8/dps8_prt.c i 723 src/dps8/dps8_prt.c for (int i = 0; i < slew; i ++) i 743 src/dps8/dps8_prt.c #define get_BCD_char(i) ((uint8_t) ((buffer[i / 6] >> ((5 - i % 6) * 6)) & 077)) i 748 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 750 src/dps8/dps8_prt.c bytes[i] = (uint8_t) bcd_uc [get_BCD_char (i)]; i 768 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 770 src/dps8/dps8_prt.c uint8_t ch = get_BCD_char (i); i 781 src/dps8/dps8_prt.c i ++; i 782 src/dps8/dps8_prt.c uint8_t n = get_BCD_char (i); i 849 src/dps8/dps8_prt.c #define get_ASCII_char(i) ((uint8_t) ((buffer[i / 4] >> ((3 - i % 4) * 9)) & 0377)) i 855 src/dps8/dps8_prt.c for (uint i = 0; i < nchars; i ++) i 857 src/dps8/dps8_prt.c uint8_t ch = get_ASCII_char (i); i 870 src/dps8/dps8_prt.c for (uint i = 0; i < tally * 4; i ++) i 872 src/dps8/dps8_prt.c uint8_t ch = get_ASCII_char (i); i 875 src/dps8/dps8_prt.c i ++; i 876 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 886 src/dps8/dps8_prt.c i ++; i 887 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 917 src/dps8/dps8_prt.c i ++; i 918 src/dps8/dps8_prt.c uint8_t n = get_ASCII_char (i); i 1076 src/dps8/dps8_prt.c i 1077 src/dps8/dps8_prt.c i 1083 src/dps8/dps8_prt.c i 1084 src/dps8/dps8_prt.c i 1085 src/dps8/dps8_prt.c i 1796 src/dps8/dps8_prt.c for (int i = 0; i < N_MODELS; i ++) i 1798 src/dps8/dps8_prt.c if (strcmp (cptr, model_names[i]) == 0) i 1800 src/dps8/dps8_prt.c prt_state[n].model = i; i 1895 src/dps8/dps8_prt.c for (int i = 0; i < N_PRT_UNITS_MAX; i ++) i 1897 src/dps8/dps8_prt.c if (strcmp (buf, prt_state[i].device_name) == 0) i 1899 src/dps8/dps8_prt.c if (prt_state[i].prtfile != -1) i 1901 src/dps8/dps8_prt.c close (prt_state[i].prtfile); i 1902 src/dps8/dps8_prt.c prt_state[i].prtfile = -1; i 645 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 647 src/dps8/dps8_scu.c struct ports * pp = scup -> ports + i; i 650 src/dps8/dps8_scu.c i, scup->port_enable[i] ? "ENABLE " : "DISABLE", i 657 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 661 src/dps8/dps8_scu.c sim_printf (" Cell %c\n", 'A' + i); i 663 src/dps8/dps8_scu.c scup -> exec_intr_mask [i]); i 665 src/dps8/dps8_scu.c scup -> mask_enable [i] ? "ENABLE" : "DISABLE"); i 667 src/dps8/dps8_scu.c scup -> mask_assignment [i]); i 722 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 723 src/dps8/dps8_scu.c sim_printf (" %3o", sw -> port_enable [i]); i 725 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 728 src/dps8/dps8_scu.c 'A' + i, i 729 src/dps8/dps8_scu.c sw->mask_enable[i] ? (map[sw->mask_assignment[i]]) : "Off"); i 1065 src/dps8/dps8_scu.c i 1066 src/dps8/dps8_scu.c i 1068 src/dps8/dps8_scu.c i 1094 src/dps8/dps8_scu.c i 1095 src/dps8/dps8_scu.c i 1097 src/dps8/dps8_scu.c i 1109 src/dps8/dps8_scu.c for (int i = 0; i < N_SCU_PORTS; i ++) i 1111 src/dps8/dps8_scu.c up -> port_enable [i] = sw -> port_enable [i]; i 1114 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 1116 src/dps8/dps8_scu.c up -> mask_enable [i] = sw -> mask_enable [i]; i 1117 src/dps8/dps8_scu.c up -> mask_assignment [i] = sw -> mask_assignment [i]; i 1143 src/dps8/dps8_scu.c for (int i = 0; i < N_ASSIGNMENTS; i ++) i 1146 src/dps8/dps8_scu.c up -> exec_intr_mask [i] = 037777777777; i 1311 src/dps8/dps8_scu.c for (uint i = 0; i < N_CELL_INTERRUPTS; i ++) i 1313 src/dps8/dps8_scu.c if (scu [scu_unit_idx].cells [i]) i 1314 src/dps8/dps8_scu.c buf [i] = '1'; i 1316 src/dps8/dps8_scu.c buf [i] = '0'; i 1501 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1503 src/dps8/dps8_scu.c if (getbits36_1 (rega, i)) i 1504 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i + 16] = 1; i 1513 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1515 src/dps8/dps8_scu.c if (getbits36_1 (rega, i)) i 1516 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i] = 1; i 1526 src/dps8/dps8_scu.c i 1528 src/dps8/dps8_scu.c i 1537 src/dps8/dps8_scu.c i 1539 src/dps8/dps8_scu.c i 1540 src/dps8/dps8_scu.c i 1800 src/dps8/dps8_scu.c for (uint i = 0; i < 16; i ++) i 1802 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i] = i 1803 src/dps8/dps8_scu.c getbits36_1 (rega, i) ? 1 : 0; i 1804 src/dps8/dps8_scu.c scu [scu_unit_idx].cells [i + 16] = i 1805 src/dps8/dps8_scu.c getbits36_1 (regq, i) ? 1 : 0; i 1946 src/dps8/dps8_scu.c for (int i = 0; i < 2; i ++) i 1948 src/dps8/dps8_scu.c if (up -> mask_enable [i]) i 1950 src/dps8/dps8_scu.c maskab [i] = (2 << (N_SCU_PORTS - 1 - i 1951 src/dps8/dps8_scu.c up -> mask_assignment [i])) & 0777; i 1954 src/dps8/dps8_scu.c maskab [i] = 0001; i 2081 src/dps8/dps8_scu.c for (uint i = 0; i < N_CELL_INTERRUPTS; i ++) i 2083 src/dps8/dps8_scu.c word1 cell = up -> cells [i] ? 1 : 0; i 2084 src/dps8/dps8_scu.c if (i < 16) i 2085 src/dps8/dps8_scu.c putbits36_1 (rega, i, cell); i 2087 src/dps8/dps8_scu.c putbits36_1 (regq, i - 16, cell); i 2205 src/dps8/dps8_scu.c for (uint i = 0; i < N_SCU_SUBPORTS; i++) i 2207 src/dps8/dps8_scu.c portp->subport_enables [i] = !! (sub_mask & (0200u >> i)); i 2216 src/dps8/dps8_scu.c for (uint i = 0; i < N_SCU_SUBPORTS; i++) i 2218 src/dps8/dps8_scu.c portp->xipmask [i] = !! (sub_mask & (0200u >> i)); i 2219 src/dps8/dps8_scu.c if (portp->xipmask [i]) i 2221 src/dps8/dps8_scu.c val = (int) i; i 284 src/dps8/dps8_socket_dev.c for (uint i = 0; i < N_FDS; i ++) i 285 src/dps8/dps8_socket_dev.c sk_data.fd_unit[i] = -1; i 296 src/dps8/dps8_socket_dev.c for (uint i = 0; i < 8; i ++) i 297 src/dps8/dps8_socket_dev.c work[i] = ' '; i 301 src/dps8/dps8_socket_dev.c for (uint i = 0; i < l; i ++) i 302 src/dps8/dps8_socket_dev.c work[i] = str[i]; i 319 src/dps8/dps8_socket_dev.c for (uint i = 0; i < N_ERRNOS; i ++) i 321 src/dps8/dps8_socket_dev.c if (errnos[i].code == _errno) i 323 src/dps8/dps8_socket_dev.c set_error_str (error_str, errnos[i].name); i 426 src/dps8/dps8_socket_dev.c i 428 src/dps8/dps8_socket_dev.c i 429 src/dps8/dps8_socket_dev.c i 446 src/dps8/dps8_socket_dev.c for (uint i = 0; i < cnt; i ++) i 448 src/dps8/dps8_socket_dev.c uint wordno = (i+4) / 4; i 449 src/dps8/dps8_socket_dev.c uint offset = ((i+4) % 4) * 9; i 451 src/dps8/dps8_socket_dev.c name [i] = (unsigned char) (ch & 255); i 2329 src/dps8/dps8_sys.c for (int i = 0; i < n_book_segments; i ++) i 2330 src/dps8/dps8_sys.c if (strcmp (name, book_segments[i].segname) == 0) i 2331 src/dps8/dps8_sys.c return i; i 2401 src/dps8/dps8_sys.c int i; i 2403 src/dps8/dps8_sys.c for (i = 0; i < n_book_segments; i ++) i 2404 src/dps8/dps8_sys.c if (book_segments[i].segno == (int) segno) i 2407 src/dps8/dps8_sys.c if (i >= n_book_segments) i 2415 src/dps8/dps8_sys.c if (book_components[j].book_segment_number != i) i 2420 src/dps8/dps8_sys.c sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, i 2445 src/dps8/dps8_sys.c sprintf (buf, "%s:%s+0%0o", book_segments[i].segname, i 2455 src/dps8/dps8_sys.c * compname = book_segments[i].segname; i 2458 src/dps8/dps8_sys.c sprintf (buf, "%s:+0%0o", book_segments[i].segname, i 2534 src/dps8/dps8_sys.c int i; i 2535 src/dps8/dps8_sys.c for (i = 0; i < n_book_segments; i ++) i 2536 src/dps8/dps8_sys.c if (strcmp (book_segments[i].segname, segname) == 0) i 2538 src/dps8/dps8_sys.c if (i >= n_book_segments) i 2543 src/dps8/dps8_sys.c if (book_components[j].book_segment_number != i) i 2547 src/dps8/dps8_sys.c * segno = book_segments[i].segno; i 3077 src/dps8/dps8_sys.c i 3079 src/dps8/dps8_sys.c i 3080 src/dps8/dps8_sys.c i 3083 src/dps8/dps8_sys.c i 3628 src/dps8/dps8_sys.c uint i; i 3629 src/dps8/dps8_sys.c for (i = 0; i < MEMSIZE; i ++) i 3630 src/dps8/dps8_sys.c if ((M[i] & DMASK) == value) i 3631 src/dps8/dps8_sys.c sim_msg ("%08o\n", i); i 3787 src/dps8/dps8_sys.c for (int i = n; i < n_dbgevents - 1; i ++) i 3788 src/dps8/dps8_sys.c dbgevents[i] = dbgevents[i + 1]; i 3793 src/dps8/dps8_sys.c for (int i = 0; i < n_dbgevents; i ++) i 3794 src/dps8/dps8_sys.c sim_printf (" %s %05o:%06o %s\r\n", dbgevents[i].t0 ? "T0" : " ", dbgevents[i].segno, i 3795 src/dps8/dps8_sys.c dbgevents[i].offset,dbgevents[i].tag); i 3823 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) { i 3824 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) { i 3825 src/dps8/dps8_sys.c UNIT * unitp = & mt_unit [i]; i 3873 src/dps8/dps8_sys.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) i 3874 src/dps8/dps8_sys.c if (strcmp (dsk_states[i].device_name, name) == 0) i 3877 src/dps8/dps8_sys.c return loadDisk (i, fname, ro); i 3878 src/dps8/dps8_sys.c return unloadDisk (i); i 3881 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) i 3882 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) i 3885 src/dps8/dps8_sys.c return loadTape (i, fname, ro); i 3886 src/dps8/dps8_sys.c return unloadTape (i); i 3901 src/dps8/dps8_sys.c for (uint i = 0; i < N_DSK_UNITS_MAX; i ++) { i 3902 src/dps8/dps8_sys.c if (strcmp (dsk_states[i].device_name, name) == 0) { i 3903 src/dps8/dps8_sys.c return signal_disk_ready (i); i 3907 src/dps8/dps8_sys.c for (uint i = 0; i < N_MT_UNITS_MAX; i ++) { i 3908 src/dps8/dps8_sys.c if (strcmp (tape_states[i].device_name, name) == 0) { i 3909 src/dps8/dps8_sys.c return signal_tape (i, 0, 020 /* tape drive to ready */); //-V536 i 4213 src/dps8/dps8_sys.c for (size_t i = 0; i < len; i++) i 4214 src/dps8/dps8_sys.c h = h * 31 + p[i]; i 4514 src/dps8/dps8_sys.c for (int i = 0; i < 1000; i++) i 4539 src/dps8/dps8_sys.c for (int i = 1; i < 21; ++i) { i 4544 src/dps8/dps8_sys.c if (rnum >= 48) rssuffix[i-1]=rnum; i 4545 src/dps8/dps8_sys.c else rssuffix[i-1]=(char)(((long)random() % 26) + 64) + rcap; i 85 src/dps8/dps8_utils.c struct opcode_s * get_iwb_info (DCDstruct * i) i 87 src/dps8/dps8_utils.c struct opcode_s * p = &opcodes10[i->opcode10]; i 46 src/dps8/dps8_utils.h struct opcode_s * get_iwb_info (DCDstruct *i); i 107 src/dps8/dps8_utils.h i 110 src/dps8/dps8_utils.h i 113 src/dps8/dps8_utils.h i 121 src/dps8/dps8_utils.h static inline word36 getbits36(word36 x, uint i, uint n) { i 123 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)n+1; i 125 src/dps8/dps8_utils.h sim_printf ("getbits36: bad args (%012llu,i=%d,n=%d)\n", (unsigned long long)x, i, n); i 131 src/dps8/dps8_utils.h static inline word1 getbits36_1 (word36 x, uint i) i 134 src/dps8/dps8_utils.h int shift = 35-(int)i; i 136 src/dps8/dps8_utils.h sim_printf ("getbits36_1: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 142 src/dps8/dps8_utils.h static inline word2 getbits36_2 (word36 x, uint i) i 145 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)2+1; i 147 src/dps8/dps8_utils.h sim_printf ("getbits36_2: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 153 src/dps8/dps8_utils.h static inline word3 getbits36_3 (word36 x, uint i) i 156 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)3+1; i 158 src/dps8/dps8_utils.h sim_printf ("getbits36_3: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 164 src/dps8/dps8_utils.h static inline word4 getbits36_4 (word36 x, uint i) i 167 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)4+1; i 169 src/dps8/dps8_utils.h sim_printf ("getbits36_4: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 175 src/dps8/dps8_utils.h static inline word5 getbits36_5 (word36 x, uint i) i 178 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)5+1; i 180 src/dps8/dps8_utils.h sim_printf ("getbits36_5: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 186 src/dps8/dps8_utils.h static inline word6 getbits36_6 (word36 x, uint i) i 189 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)6+1; i 191 src/dps8/dps8_utils.h sim_printf ("getbits36_6: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 197 src/dps8/dps8_utils.h static inline word7 getbits36_7 (word36 x, uint i) i 200 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)7+1; i 202 src/dps8/dps8_utils.h sim_printf ("getbits36_7: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 208 src/dps8/dps8_utils.h static inline word8 getbits36_8 (word36 x, uint i) i 211 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)8+1; i 213 src/dps8/dps8_utils.h sim_printf ("getbits36_8: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 219 src/dps8/dps8_utils.h static inline word9 getbits36_9 (word36 x, uint i) i 222 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)9+1; i 224 src/dps8/dps8_utils.h sim_printf ("getbits36_9: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 230 src/dps8/dps8_utils.h static inline word10 getbits36_10 (word36 x, uint i) i 233 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)10+1; i 235 src/dps8/dps8_utils.h sim_printf ("getbits36_10: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 241 src/dps8/dps8_utils.h static inline word12 getbits36_12 (word36 x, uint i) i 244 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)12+1; i 246 src/dps8/dps8_utils.h sim_printf ("getbits36_12: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 252 src/dps8/dps8_utils.h static inline word14 getbits36_14 (word36 x, uint i) i 255 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)14+1; i 257 src/dps8/dps8_utils.h sim_printf ("getbits36_14: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 263 src/dps8/dps8_utils.h static inline word15 getbits36_15 (word36 x, uint i) i 266 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)15+1; i 268 src/dps8/dps8_utils.h sim_printf ("getbits36_15: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 274 src/dps8/dps8_utils.h static inline word16 getbits36_16 (word36 x, uint i) i 277 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)16+1; i 279 src/dps8/dps8_utils.h sim_printf ("getbits36_16: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 285 src/dps8/dps8_utils.h static inline word18 getbits36_18 (word36 x, uint i) i 288 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)18+1; i 290 src/dps8/dps8_utils.h sim_printf ("getbits36_18: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 296 src/dps8/dps8_utils.h static inline word24 getbits36_24 (word36 x, uint i) i 299 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)24+1; i 301 src/dps8/dps8_utils.h sim_printf ("getbits36_24: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 307 src/dps8/dps8_utils.h static inline word28 getbits36_28 (word36 x, uint i) i 310 src/dps8/dps8_utils.h int shift = 35-(int)i-(int)28+1; i 312 src/dps8/dps8_utils.h sim_printf ("getbits36_28: bad args (%012llu,i=%d)\n", (unsigned long long)x, i); i 834 src/dps8/dps8_utils.h static inline word18 getbits18 (word18 x, uint i, uint n) i 837 src/dps8/dps8_utils.h int shift = 17 - (int) i - (int) n + 1; i 840 src/dps8/dps8_utils.h sim_printf ("getbits18: bad args (%06o,i=%d,n=%d)\n", x, i, n); i 484 src/dps8/fnpuv.c for (unsigned int i = 0; i < nbufs; i ++) i 486 src/dps8/fnpuv.c if (bufs && bufs[i].base) i 489 src/dps8/fnpuv.c FREE (bufs[i].base); i 492 src/dps8/fnpuv.c if (req->bufsml[i].base) i 495 src/dps8/fnpuv.c FREE (req->bufsml[i].base); i 527 src/dps8/fnpuv.c i 530 src/dps8/fnpuv.c i 533 src/dps8/fnpuv.c i 534 src/dps8/fnpuv.c i 535 src/dps8/fnpuv.c i 537 src/dps8/fnpuv.c i 540 src/dps8/fnpuv.c i 541 src/dps8/fnpuv.c i 542 src/dps8/fnpuv.c i 544 src/dps8/fnpuv.c i 667 src/dps8/fnpuv.c i 670 src/dps8/fnpuv.c i 673 src/dps8/fnpuv.c i 674 src/dps8/fnpuv.c i 675 src/dps8/fnpuv.c i 677 src/dps8/fnpuv.c i 680 src/dps8/fnpuv.c i 681 src/dps8/fnpuv.c i 682 src/dps8/fnpuv.c i 684 src/dps8/fnpuv.c i 1085 src/dps8/fnpuv.c for (int i = 0; i < n_fw_entries; i ++) i 1087 src/dps8/fnpuv.c struct fw_entry_s * p = fw_entries + i; i 1373 src/dps8/fnpuv.c for (uint i = 0; i > nread; i ++) i 1375 src/dps8/fnpuv.c xbufr [i * 2 + 0] = bin2hex [(buffer [i] >> 4) & 0xf]; i 1376 src/dps8/fnpuv.c xbufr [i * 2 + 1] = bin2hex [(buffer [i] >> 0) & 0xf]; i 94 src/dps8/hdbg.h # define HDBGRegXR(i, c) hdbgRegR (hreg_X0+(i), (word36) cpu.rX[i], c) i 95 src/dps8/hdbg.h # define HDBGRegXW(i, c) hdbgRegW (hreg_X0+(i), (word36) cpu.rX[i], c) i 100 src/dps8/hdbg.h # define HDBGRegPRR(i, c) hdbgPARegR (hreg_PR0+(i), & cpu.PAR[i], c) i 101 src/dps8/hdbg.h # define HDBGRegPRW(i, c) hdbgPARegW (hreg_PR0+(i), & cpu.PAR[i], c) i 102 src/dps8/hdbg.h # define HDBGRegARR(i, c) hdbgPARegR (hreg_AR0+(i), & cpu.PAR[i], c) i 103 src/dps8/hdbg.h # define HDBGRegARW(i, c) hdbgPARegW (hreg_AR0+(i), & cpu.PAR[i], c) i 105 src/dps8/hdbg.h i 106 src/dps8/hdbg.h i 110 src/dps8/hdbg.h # define HDBGIntr(i, c) hdbgIntr(i, c) i 111 src/dps8/hdbg.h # define HDBGIntrSet(i, c, s, ctx) hdbgIntrSet(i, c, s, ctx) i 219 src/dps8/libtelnet.c int i; i 226 src/dps8/libtelnet.c for (i = 0; telnet->telopts[i].telopt != -1; ++i) { i 227 src/dps8/libtelnet.c if (telnet->telopts[i].telopt == telopt) { i 228 src/dps8/libtelnet.c if (us && telnet->telopts[i].us == TELNET_WILL) i 230 src/dps8/libtelnet.c else if (!us && telnet->telopts[i].him == TELNET_DO) i 245 src/dps8/libtelnet.c unsigned int i; i 248 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { i 249 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { i 250 src/dps8/libtelnet.c return telnet->q[i]; i 264 src/dps8/libtelnet.c unsigned int i; i 267 src/dps8/libtelnet.c for (i = 0; i != telnet->q_cnt; ++i) { i 268 src/dps8/libtelnet.c if (telnet->q[i].telopt == telopt) { i 269 src/dps8/libtelnet.c telnet->q[i].state = (unsigned char) Q_MAKE(us,him); i 293 src/dps8/libtelnet.c if (i >= telnet->q_size) { i 747 src/dps8/libtelnet.c size_t i; i 749 src/dps8/libtelnet.c for (i = 0; i != _buffer_sizes_count; ++i) { i 750 src/dps8/libtelnet.c if (_buffer_sizes[i] == telnet->buffer_size) { i 756 src/dps8/libtelnet.c if (i >= _buffer_sizes_count - 1) { i 763 src/dps8/libtelnet.c new_buffer = (char *)realloc(telnet->buffer, _buffer_sizes[i + 1]); i 771 src/dps8/libtelnet.c telnet->buffer_size = _buffer_sizes[i + 1]; i 782 src/dps8/libtelnet.c size_t i, start; i 783 src/dps8/libtelnet.c for (i = start = 0; i != size; ++i) { i 784 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; i 791 src/dps8/libtelnet.c if (i != start) { i 794 src/dps8/libtelnet.c ev.data.size = i - start; i 801 src/dps8/libtelnet.c if (i != start) { i 804 src/dps8/libtelnet.c ev.data.size = i - start; i 819 src/dps8/libtelnet.c byte = (unsigned char) buffer[i]; i 823 src/dps8/libtelnet.c start = i; i 859 src/dps8/libtelnet.c start = i + 1; i 870 src/dps8/libtelnet.c start = i + 1; i 881 src/dps8/libtelnet.c start = i + 1; i 898 src/dps8/libtelnet.c start = i + 1; i 909 src/dps8/libtelnet.c start = i + 1; i 923 src/dps8/libtelnet.c start = i + 1; i 941 src/dps8/libtelnet.c start = i + 1; i 969 src/dps8/libtelnet.c if (telnet->state == TELNET_STATE_DATA && i != start) { i 972 src/dps8/libtelnet.c ev.data.size = i - start; i 1079 src/dps8/libtelnet.c size_t i, l; i 1081 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { i 1083 src/dps8/libtelnet.c if (buffer[i] == (char)TELNET_IAC) { i 1085 src/dps8/libtelnet.c if (i != l) { i 1086 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1088 src/dps8/libtelnet.c l = i + 1; i 1096 src/dps8/libtelnet.c if (i != l) { i 1097 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1104 src/dps8/libtelnet.c size_t i, l; i 1106 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { i 1108 src/dps8/libtelnet.c if (buffer[i] == (char)TELNET_IAC) { i 1110 src/dps8/libtelnet.c if (i != l) { i 1111 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1113 src/dps8/libtelnet.c l = i + 1; i 1120 src/dps8/libtelnet.c (buffer[i] == '\r' || buffer[i] == '\n')) { i 1122 src/dps8/libtelnet.c if (i != l) { i 1123 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1125 src/dps8/libtelnet.c l = i + 1; i 1128 src/dps8/libtelnet.c if (buffer[i] == '\r') { i 1139 src/dps8/libtelnet.c if (i != l) { i 1140 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); i 1157 src/dps8/libtelnet.c int rs, i, l; i 1177 src/dps8/libtelnet.c for (l = i = 0; i != rs; ++i) { i 1179 src/dps8/libtelnet.c if (output[i] == (char)TELNET_IAC || output[i] == '\r' || i 1180 src/dps8/libtelnet.c output[i] == '\n') { i 1182 src/dps8/libtelnet.c if (i != l) i 1183 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); i 1184 src/dps8/libtelnet.c l = i + 1; i 1187 src/dps8/libtelnet.c if (output[i] == (char)TELNET_IAC) i 1190 src/dps8/libtelnet.c else if (output[i] == '\r') i 1193 src/dps8/libtelnet.c else if (output[i] == '\n') i 1199 src/dps8/libtelnet.c if (i != l) { i 1200 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); i 204 src/dps8/udplib.c int i; i 205 src/dps8/udplib.c for (i = 0; i < MAXLINKS; i ++) i 207 src/dps8/udplib.c if (udp_links [i] . used == 0) i 209 src/dps8/udplib.c memset (& udp_links [i], 0, sizeof (UDP_LINK)); i 210 src/dps8/udplib.c return i; i 336 src/dps8/udplib.c uint16_t i; i 352 src/dps8/udplib.c for (i = 0; i < count; i ++) i 353 src/dps8/udplib.c pkt . data [i] = htons (* pdata ++); i 430 src/dps8/udplib.c int32_t pktlen, explen, implen, i; i 505 src/dps8/udplib.c for (i = 0; i < (implen < maxbuf ? implen : maxbuf); ++ i) i 506 src/dps8/udplib.c * pdata ++ = ntohs (pkt . data [i]); i 678 src/dps8/udplib.c for (int i = 0; i < rc; i ++) i 680 src/dps8/udplib.c fprintf (stderr, " %06o %04x ", pkt [i], pkt [i]); i 682 src/dps8/udplib.c fprintf (stderr, "%c", pkt [i] & (1 << b) ? '1' : '0'); i 98 src/dps8/utarray.h unsigned i, n; /* i: index of next available slot, n: num slots */ i 112 src/dps8/utarray.h for(_ut_i=0; _ut_i < (a)->i; _ut_i++) { \ i 132 src/dps8/utarray.h if (((a)->i+by) > ((a)->n)) { \ i 133 src/dps8/utarray.h while(((a)->i+by) > ((a)->n)) { (a)->n = ((a)->n ? (2*(a)->n) : 8); } \ i 140 src/dps8/utarray.h if ((a)->icd.copy) { (a)->icd.copy( _utarray_eltptr(a,(a)->i++), p); } \ i 141 src/dps8/utarray.h else { memcpy(_utarray_eltptr(a,(a)->i++), p, (a)->icd.sz); }; \ i 145 src/dps8/utarray.h if ((a)->icd.dtor) { (a)->icd.dtor( _utarray_eltptr(a,--((a)->i))); } \ i 146 src/dps8/utarray.h else { (a)->i--; } \ i 151 src/dps8/utarray.h if ((a)->icd.init) { (a)->icd.init(_utarray_eltptr(a,(a)->i)); } \ i 152 src/dps8/utarray.h else { memset(_utarray_eltptr(a,(a)->i),0,(a)->icd.sz); } \ i 153 src/dps8/utarray.h (a)->i++; \ i 156 src/dps8/utarray.h # define utarray_len(a) ((a)->i) i 158 src/dps8/utarray.h # define utarray_eltptr(a,j) (((j) < (a)->i) ? _utarray_eltptr(a,j) : NULL) i 162 src/dps8/utarray.h if (j > (a)->i) utarray_resize(a,j); \ i 164 src/dps8/utarray.h if ((j) < (a)->i) { \ i 166 src/dps8/utarray.h ((a)->i - (j))*((a)->icd.sz)); \ i 170 src/dps8/utarray.h (a)->i++; \ i 175 src/dps8/utarray.h if (j > (a)->i) utarray_resize(a,j); \ i 177 src/dps8/utarray.h if ((j) < (a)->i) { \ i 180 src/dps8/utarray.h ((a)->i - (j))*((a)->icd.sz)); \ i 184 src/dps8/utarray.h for(_ut_i=0;_ut_i<(w)->i;_ut_i++) { \ i 191 src/dps8/utarray.h (a)->i += utarray_len(w); \ i 196 src/dps8/utarray.h if (dst->i > (size_t)(num)) { \ i 198 src/dps8/utarray.h for(_ut_i=num; _ut_i < dst->i; _ut_i++) { \ i 202 src/dps8/utarray.h } else if (dst->i < (size_t)(num)) { \ i 203 src/dps8/utarray.h utarray_reserve(dst,num-dst->i); \ i 205 src/dps8/utarray.h for(_ut_i=dst->i; _ut_i < num; _ut_i++) { \ i 209 src/dps8/utarray.h memset(_utarray_eltptr(dst,dst->i),0,(dst)->icd.sz*(num-dst->i)); \ i 212 src/dps8/utarray.h dst->i = num; \ i 226 src/dps8/utarray.h if ((a)->i > (pos+len)) { \ i 228 src/dps8/utarray.h (((a)->i)-(pos+len))*((a)->icd.sz)); \ i 230 src/dps8/utarray.h (a)->i -= (len); \ i 239 src/dps8/utarray.h if ((a)->i > 0) { \ i 242 src/dps8/utarray.h for(_ut_i=0; _ut_i < (a)->i; _ut_i++) { \ i 246 src/dps8/utarray.h (a)->i = 0; \ i 251 src/dps8/utarray.h qsort((a)->d, (a)->i, (a)->icd.sz, cmp); \ i 254 src/dps8/utarray.h # define utarray_find(a,v,cmp) bsearch((v),(a)->d,(a)->i,(a)->icd.sz,cmp) i 255 src/dps8/utarray.h # define utarray_front(a) (((a)->i) ? (_utarray_eltptr(a,0)) : NULL) i 256 src/dps8/utarray.h # define utarray_next(a,e) (((e)==NULL) ? utarray_front(a) : ((((a)->i) > (utarray_eltidx(a,e)+1)) ? _utarray_eltptr(a,utarray_eltidx(a,e)+1) : NULL)) i 258 src/dps8/utarray.h # define utarray_back(a) (((a)->i) ? (_utarray_eltptr(a,(a)->i-1)) : NULL) i 74 src/dps8/utfile.c for (size_t i = 0; i < len; i++) i 75 src/dps8/utfile.c h = h * 31 + p[i]; i 168 src/dps8/utfile.c for (int i = 0; i < 1000; i++) i 585 src/dps8/uthash.h # define MUR_GETBLOCK(p,i) p[i] i 601 src/dps8/uthash.h # define MUR_GETBLOCK(p,i) (MUR_PLUS0_ALIGNED(p) ? ((p)[i]) : \ i 87 src/dps8/uvutil.c for (unsigned int i = 0; i < nbufs; i ++) i 89 src/dps8/uvutil.c if (bufs && bufs[i].base) i 91 src/dps8/uvutil.c FREE (bufs[i].base); i 94 src/dps8/uvutil.c if (req->bufsml[i].base) i 96 src/dps8/uvutil.c FREE (req->bufsml[i].base); i 298 src/simh/linehistory.c unsigned int i = 0; i 307 src/simh/linehistory.c while (i < sizeof ( buf ) - 1) i 309 src/simh/linehistory.c if (read(ifd, buf + i, 1) != 1) i 314 src/simh/linehistory.c if (buf[i] == 'R') i 319 src/simh/linehistory.c i++; i 321 src/simh/linehistory.c buf[i] = '\0'; i 415 src/simh/linehistory.c size_t i; i 417 src/simh/linehistory.c for (i = 0; i < lc->len; i++) i 419 src/simh/linehistory.c FREE(lc->cvec[i]); i 453 src/simh/linehistory.c size_t stop = 0, i = 0; i 458 src/simh/linehistory.c if (i < lc.len) i 462 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); i 463 src/simh/linehistory.c ls->buf = lc.cvec[i]; i 484 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); i 485 src/simh/linehistory.c if (i == lc.len) i 495 src/simh/linehistory.c if (i < lc.len) i 497 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); i 806 src/simh/linehistory.c unsigned int i; i 807 src/simh/linehistory.c for (i = 0; i < l->len; i++) i 1859 src/simh/linehistory.c size_t len = 0, i = 0; i 1861 src/simh/linehistory.c while (s[i] != '\0') i 1863 src/simh/linehistory.c if (s[i] == '\033') //-V536 i 1865 src/simh/linehistory.c i = strpbrk(s + i, "m") - s + 1; //-V769 i 1870 src/simh/linehistory.c i++; i 1508 src/simh/scp.c int32 i, sw; i 1660 src/simh/scp.c for (i=0; i<argc; i++) i 1661 src/simh/scp.c targv[i] = argv[i]; i 1672 src/simh/scp.c for (i = 1; i < argc; i++) { /* loop thru args */ i 1673 src/simh/scp.c if (argv[i] == NULL) /* paranoia */ i 1677 src/simh/scp.c int onlyvers = strcmp(argv[i], "--version"); i 1700 src/simh/scp.c int longhelp = strcmp(argv[i], "--help"); i 1701 src/simh/scp.c int shorthelp = strcmp(argv[i], "-h"); i 1702 src/simh/scp.c if (shorthelp != 0) shorthelp = strcmp(argv[i], "-H"); i 1752 src/simh/scp.c if ((*argv[i] == '-') && lookswitch) { /* switch? */ i 1753 src/simh/scp.c if ((sw = get_switches (argv[i])) < 0) { i 1754 src/simh/scp.c fprintf (stderr, "Invalid switch \"%s\".\nTry \"%s -h\" for help.\n", argv[i], argv[0]); i 1762 src/simh/scp.c if ((strlen (argv[i]) + strlen (cbuf) + 3) >= sizeof(cbuf)) { i 1769 src/simh/scp.c sprintf(&cbuf[strlen(cbuf)], "%s%s%s", strchr(argv[i], ' ') ? "\"" : "", argv[i], strchr(argv[i], ' ') ? "\"" : ""); //-V755 i 1793 src/simh/scp.c for (i = 0; cmd_table[i].name; i++) { i 1794 src/simh/scp.c size_t alias_len = strlen (cmd_table[i].name); i 1809 src/simh/scp.c strcpy (cmd_name, cmd_table[i].name); i 2029 src/simh/scp.c int i, line_offset; i 2083 src/simh/scp.c for ( i = 0 ; i < cmd_cnt ; ++i ) { i 2084 src/simh/scp.c fputs (hlp_cmdp[i]->name, st); i 2091 src/simh/scp.c fprintf (st, "%*s", (int)(max_cmdname_size + 5 - strlen (hlp_cmdp[i]->name)), ""); i 2359 src/simh/scp.c int i; i 2364 src/simh/scp.c for (i=0; i<26; i++) { i 2365 src/simh/scp.c if (sim_brk_types & (1<<i)) i 2366 src/simh/scp.c fprintf (st, " -%c\n", 'A'+i); i 2505 src/simh/scp.c i 2507 src/simh/scp.c i 2651 src/simh/scp.c int32 echo, nargs, errabort, i; i 2703 src/simh/scp.c for (i=0; i<SCPE_MAX_ERR; i++) { /* replicate any on commands */ i 2704 src/simh/scp.c if (sim_on_actions[sim_do_depth-1][i]) { i 2705 src/simh/scp.c sim_on_actions[sim_do_depth][i] = (char *)malloc(1+strlen(sim_on_actions[sim_do_depth-1][i])); i 2706 src/simh/scp.c if (NULL == sim_on_actions[sim_do_depth][i]) { i 2707 src/simh/scp.c while (--i >= 0) { i 2708 src/simh/scp.c FREE(sim_on_actions[sim_do_depth][i]); i 2709 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; i 2717 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][i], sim_on_actions[sim_do_depth-1][i]); i 2839 src/simh/scp.c for (i=0; i<SCPE_MAX_ERR; i++) { /* release any on commands */ i 2840 src/simh/scp.c FREE (sim_on_actions[sim_do_depth][i]); i 2841 src/simh/scp.c sim_on_actions[sim_do_depth][i] = NULL; i 2906 src/simh/scp.c int i; i 2940 src/simh/scp.c for (i=0; i<ip[1] - '0'; ++i) /* make sure we're not past the list end */ i 2941 src/simh/scp.c if (do_arg[i] == NULL) { i 2950 src/simh/scp.c for (i=1; i<=9; ++i) i 2951 src/simh/scp.c if (do_arg[i] == NULL) i 2954 src/simh/scp.c if ((sizeof(rbuf)-strlen(rbuf)) < (2 + strlen(do_arg[i]))) { i 2955 src/simh/scp.c if (strchr(do_arg[i], ' ')) { /* need to surround this argument with quotes */ i 2957 src/simh/scp.c if (strchr(do_arg[i], quote)) i 2959 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%c%s%c\"", (i != 1) ? " " : "", quote, do_arg[i], quote); i 2962 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%s", (i != 1) ? " " : "", do_arg[i]); i 3947 src/simh/scp.c uint32 i; i 3961 src/simh/scp.c for (i = 0; i < dptr->numunits; i++) { /* check units */ i 3962 src/simh/scp.c up = (dptr->units) + i; /* att or active? */ i 4331 src/simh/scp.c int i, x; i 4332 src/simh/scp.c for (i=x=0; str[i]; ++i) i 4334 src/simh/scp.c if (!isspace(str[i]) || (i > 0 && !isspace(str[i-1]))) //-V781 i 4336 src/simh/scp.c str[x++] = str[i]; i 4340 src/simh/scp.c i = -1; i 4346 src/simh/scp.c i=x; i 4350 src/simh/scp.c str[i+1] = '\0'; i 5173 src/simh/scp.c int32 i; i 5180 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5188 src/simh/scp.c int32 i; i 5193 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5308 src/simh/scp.c int32 lvl, i; i 5317 src/simh/scp.c for (i=1; i<SCPE_BASE; ++i) { i 5318 src/simh/scp.c if (sim_on_actions[lvl][i]) i 5319 src/simh/scp.c fprintf(st, " on %5d %s\n", i, sim_on_actions[lvl][i]); } i 5320 src/simh/scp.c for (i=SCPE_BASE; i<=SCPE_MAX_ERR; ++i) { i 5321 src/simh/scp.c if (sim_on_actions[lvl][i]) i 5322 src/simh/scp.c fprintf(st, " on %-5s %s\n", scp_errors[i-SCPE_BASE].code, sim_on_actions[lvl][i]); } i 5336 src/simh/scp.c int32 i; i 5341 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5343 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) i 5396 src/simh/scp.c int32 i; i 5401 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) i 5403 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) i 5549 src/simh/scp.c uint32 i; i 5552 src/simh/scp.c for (i = 0; i < start; i++) { i 5553 src/simh/scp.c if (sim_devices[i] == NULL) i 5556 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { i 5563 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 5779 src/simh/scp.c uint32 i, j; i 5788 src/simh/scp.c for (i = start; (dptr = sim_devices[i]) != NULL; i++) { /* loop thru dev */ i 5884 src/simh/scp.c uint32 i, j; i 5975 src/simh/scp.c for (i=0; addrs[i]; i++) i 5976 src/simh/scp.c sim_brk_set (addrs[i], BRK_TYP_DYN_STEPOVER, 0, NULL); i 6016 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* reposition all */ i 6104 src/simh/scp.c for (i=0; addrs[i]; i++) i 6105 src/simh/scp.c sim_brk_set (addrs[i], BRK_TYP_DYN_STEPOVER, 0, NULL); i 6126 src/simh/scp.c for (i = 1; (dptr = sim_devices[i]) != NULL; i++) { /* flush attached files */ i 6203 src/simh/scp.c int32 i; i 6228 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6229 src/simh/scp.c sim_eval[i] = 0; i 6230 src/simh/scp.c for (i = 0, k = (t_addr) pcval; i < sim_emax; i++, k = k + dptr->aincr) { i 6231 src/simh/scp.c if ((r = dptr->examine (&sim_eval[i], k, dptr->units, SWMASK ('V')|SIM_SW_STOP)) != SCPE_OK) i 6234 src/simh/scp.c if ((r == SCPE_OK) || (i > 0)) { i 6463 src/simh/scp.c t_addr i, mask; i 6471 src/simh/scp.c for (i = low; i <= high; ) { /* all paths must incr!! */ i 6472 src/simh/scp.c reason = get_aval (i, dptr, uptr); /* get data */ i 6476 src/simh/scp.c i = i + dptr->aincr; /* sch fails, incr */ i 6479 src/simh/scp.c reason = ex_addr (ofile, flag, i, dptr, uptr); i 6483 src/simh/scp.c ex_addr (sim_log, flag, i, dptr, uptr); i 6487 src/simh/scp.c reason = dep_addr (flag, cptr, i, dptr, uptr, reason); i 6491 src/simh/scp.c i = i + (1 - reason); /* incr */ i 6746 src/simh/scp.c int32 i; i 6755 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6756 src/simh/scp.c sim_eval[i] = 0; i 6757 src/simh/scp.c for (i = 0, j = addr; i < sim_emax; i++, j = j + dptr->aincr) { i 6759 src/simh/scp.c reason = dptr->examine (&sim_eval[i], j, uptr, sim_switches); i 6775 src/simh/scp.c SZ_LOAD (sz, sim_eval[i], uptr->filebuf, loc); i 6779 src/simh/scp.c sim_fread (&sim_eval[i], sz, 1, uptr->fileref); i 6792 src/simh/scp.c sim_last_val = sim_eval[i] = sim_eval[i] & mask; i 6794 src/simh/scp.c if ((reason != SCPE_OK) && (i == 0)) i 6816 src/simh/scp.c int32 i, count, rdx; i 6847 src/simh/scp.c for (i = 0, j = addr; i < count; i++, j = j + dptr->aincr) { i 6848 src/simh/scp.c sim_eval[i] = sim_eval[i] & mask; i 6850 src/simh/scp.c r = dptr->deposit (sim_eval[i], j, uptr, sim_switches); i 6864 src/simh/scp.c SZ_STORE (sz, sim_eval[i], uptr->filebuf, loc); i 6870 src/simh/scp.c sim_fwrite (&sim_eval[i], sz, 1, uptr->fileref); i 6888 src/simh/scp.c int32 i, rdx, a, lim; i 6893 src/simh/scp.c for (i = 0; i < sim_emax; i++) i 6894 src/simh/scp.c sim_eval[i] = 0; i 6903 src/simh/scp.c for (i = a = 0; a < lim; ) { i 6905 src/simh/scp.c if ((r = fprint_sym (stdout, a, &sim_eval[i], dptr->units, sim_switches)) > 0) i 6906 src/simh/scp.c r = fprint_val (stdout, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); i 6908 src/simh/scp.c if ((r = fprint_sym (sim_log, a, &sim_eval[i], dptr->units, sim_switches)) > 0) i 6909 src/simh/scp.c r = fprint_val (sim_log, sim_eval[i], rdx, dptr->dwidth, PV_RZRO); i 6915 src/simh/scp.c i = a / dptr->aincr; i 7358 src/simh/scp.c uint32 i; i 7368 src/simh/scp.c for (i=0; i<size; i++) i 7369 src/simh/scp.c switch ((char)iptr[i]) { i 7436 src/simh/scp.c int32 i; i 7441 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 7447 src/simh/scp.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 7469 src/simh/scp.c uint32 i, u; i 7485 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { /* base + unit#? */ i 7523 src/simh/scp.c uint32 i; i 7525 src/simh/scp.c for (i = 0; (sim_devices[i] != NULL); i++) i 7526 src/simh/scp.c if (sim_devices[i] == dptr) i 7528 src/simh/scp.c for (i = 0; i < sim_internal_device_count; i++) i 7529 src/simh/scp.c if (sim_internal_devices[i] == dptr) i 7561 src/simh/scp.c uint32 i, j; i 7565 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 7571 src/simh/scp.c for (i = 0; i<sim_internal_device_count; i++) { i 7572 src/simh/scp.c dptr = sim_internal_devices[i]; i 7602 src/simh/scp.c int32 i; i 7607 src/simh/scp.c for (i = 0; (dptr = sim_devices[i]) != 0; i++) { /* all dev */ i 8019 src/simh/scp.c int32 i, updown; i 8038 src/simh/scp.c for (i=0; i<(int32)schptr->count; i++) { i 8039 src/simh/scp.c val[i] = values[i]; i 8043 src/simh/scp.c val[i] = val[i] | schptr->mask[i]; i 8047 src/simh/scp.c val[i] = val[i] & schptr->mask[i]; i 8051 src/simh/scp.c val[i] = val[i] ^ schptr->mask[i]; i 8059 src/simh/scp.c i=schptr->count-1; i 8063 src/simh/scp.c i=0; i 8065 src/simh/scp.c for (; (i>=0) && (i<(int32)schptr->count) && ret; i += updown) { i 8069 src/simh/scp.c if (val[i] != schptr->comp[i]) i 8074 src/simh/scp.c if (val[i] == schptr->comp[i]) i 8079 src/simh/scp.c if (val[i] <= schptr->comp[i]) i 8084 src/simh/scp.c if (val[i] < schptr->comp[i]) i 8089 src/simh/scp.c if (val[i] >= schptr->comp[i]) i 8094 src/simh/scp.c if (val[i] > schptr->comp[i]) i 8628 src/simh/scp.c int32 i; i 8630 src/simh/scp.c for (i=0; i<sim_brk_lnt; i++) { i 8634 src/simh/scp.c bp = sim_brk_tab[i]; i 8706 src/simh/scp.c int32 i, t; i 8725 src/simh/scp.c for (i = sim_brk_ent; i > sim_brk_ins; --i) i 8726 src/simh/scp.c sim_brk_tab[i] = sim_brk_tab[i - 1]; i 8750 src/simh/scp.c for (i = 0; i < SIM_BKPT_N_SPC; i++) i 8751 src/simh/scp.c bp->time_fired[i] = -1.0; i 8804 src/simh/scp.c int32 i; i 8833 src/simh/scp.c for (i = sim_brk_ins; i < sim_brk_ent; i++) /* shuffle remaining entries */ i 8834 src/simh/scp.c sim_brk_tab[i] = sim_brk_tab[i+1]; i 8837 src/simh/scp.c for (i = 0; i < sim_brk_ent; i++) { i 8838 src/simh/scp.c bp = sim_brk_tab[i]; i 8851 src/simh/scp.c int32 i; i 8855 src/simh/scp.c for (i = 0; i < sim_brk_ent;) { i 8856 src/simh/scp.c t_addr loc = sim_brk_tab[i]->addr; i 8858 src/simh/scp.c if ((i < sim_brk_ent) && i 8859 src/simh/scp.c (loc == sim_brk_tab[i]->addr)) i 8860 src/simh/scp.c ++i; i 8871 src/simh/scp.c int32 i, any; i 8888 src/simh/scp.c for (i = any = 0; i < 26; i++) { i 8889 src/simh/scp.c if ((bp->typ >> i) & 1) { i 8893 src/simh/scp.c fputc (i + 'A', st); i 8896 src/simh/scp.c fprintf (st, "-%c", i + 'A'); i 9222 src/simh/scp.c int32 i; i 9226 src/simh/scp.c for (i=start_rule; i<exp->size; i++) i 9227 src/simh/scp.c if (!strcmp (exp->rules[i].match_pattern, match)) i 9228 src/simh/scp.c return &exp->rules[i]; i 9236 src/simh/scp.c int32 i; i 9245 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ i 9246 src/simh/scp.c exp->rules[i] = exp->rules[i+1]; i 9270 src/simh/scp.c int32 i; i 9272 src/simh/scp.c for (i=0; i<exp->size; i++) { i 9273 src/simh/scp.c FREE (exp->rules[i].match); /* deallocate match string */ i 9274 src/simh/scp.c FREE (exp->rules[i].match_pattern); /* deallocate display format match string */ i 9275 src/simh/scp.c FREE (exp->rules[i].act); /* deallocate action */ i 9294 src/simh/scp.c int i; i 9316 src/simh/scp.c for (i=0; i<exp->size; i++) { /* Make sure this rule won't be occluded */ i 9317 src/simh/scp.c if ((0 == strcmp (match, exp->rules[i].match_pattern)) && i 9318 src/simh/scp.c (exp->rules[i].switches & EXP_TYP_PERSIST)) i 9388 src/simh/scp.c for (i=0; i<exp->size; i++) { i 9389 src/simh/scp.c uint32 compare_size = (exp->rules[i].switches & EXP_TYP_REGEX) ? MAX(10 * strlen(ep->match_pattern), 1024) : exp->rules[i].size; i 9456 src/simh/scp.c int32 i; i 9458 src/simh/scp.c for (i=0; i < exp->size; i++) i 9459 src/simh/scp.c sim_exp_show_tab (st, exp, &exp->rules[i]); i 9467 src/simh/scp.c int32 i; i 9477 src/simh/scp.c for (i=0; i < exp->size; i++) { i 9478 src/simh/scp.c ep = &exp->rules[i]; i 9535 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ i 9805 src/simh/scp.c int32 i, fields, offset; i 9813 src/simh/scp.c for (i = fields-1; i >= 0; i--) { /* print xlation, transition */ i 9814 src/simh/scp.c if (bitdefs[i].name[0] == '\0') i 9816 src/simh/scp.c if ((bitdefs[i].width == 1) && (bitdefs[i].valuenames == NULL)) { i 9817 src/simh/scp.c int off = ((after >> bitdefs[i].offset) & 1) + (((before ^ after) >> bitdefs[i].offset) & 1) * 2; i 9818 src/simh/scp.c Fprintf(stream, "%s%c ", bitdefs[i].name, debug_bstates[off]); i 9822 src/simh/scp.c mask = 0xFFFFFFFF >> (32-bitdefs[i].width); i 9823 src/simh/scp.c value = (uint32)((after >> bitdefs[i].offset) & mask); i 9824 src/simh/scp.c beforevalue = (uint32)((before >> bitdefs[i].offset) & mask); i 9829 src/simh/scp.c if (bitdefs[i].valuenames) i 9830 src/simh/scp.c Fprintf(stream, "%s=%s%s ", bitdefs[i].name, delta, bitdefs[i].valuenames[value]); i 9832 src/simh/scp.c if (bitdefs[i].format) { i 9833 src/simh/scp.c Fprintf(stream, "%s=%s", bitdefs[i].name, delta); i 9834 src/simh/scp.c Fprintf(stream, bitdefs[i].format, value); i 9838 src/simh/scp.c Fprintf(stream, "%s=%s0x%X ", bitdefs[i].name, delta, value); i 10001 src/simh/scp.c int32 i, j, len; i 10029 src/simh/scp.c for (i = j = 0; i < len; ++i) { i 10030 src/simh/scp.c if ('\n' == buf[i]) { i 10031 src/simh/scp.c if (i >= j) { i 10032 src/simh/scp.c if ((i != j) || (i == 0)) { i 10034 src/simh/scp.c fprintf (sim_deb, "%.*s\r\n", i-j, &buf[j]); i 10036 src/simh/scp.c fprintf (sim_deb, "%s%.*s\r\n", debug_prefix, i-j, &buf[j]); i 10040 src/simh/scp.c j = i + 1; i 10043 src/simh/scp.c if (i > j) { i 10045 src/simh/scp.c fprintf (sim_deb, "%.*s", i-j, &buf[j]); i 10047 src/simh/scp.c fprintf (sim_deb, "%s%.*s", debug_prefix, i-j, &buf[j]); i 10065 src/simh/scp.c unsigned int i, same, group, sidx, oidx, ridx, eidx, soff; i 10104 src/simh/scp.c for (i=same=0; i<len; i += 16) { i 10105 src/simh/scp.c if ((i > 0) && (0 == memcmp (&data[i], &data[i-16], 16))) { i 10110 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), i-1); i 10113 src/simh/scp.c group = (((len - i) > 16) ? 16 : (len - i)); i 10122 src/simh/scp.c outbuf[oidx++] = hex[(data[i+sidx]>>4)&0xf]; i 10123 src/simh/scp.c outbuf[oidx++] = hex[data[i+sidx]&0xf]; i 10124 src/simh/scp.c if (sim_isprint (data[i+sidx])) i 10125 src/simh/scp.c strbuf[soff+sidx] = data[i+sidx]; i 10129 src/simh/scp.c uint16 word = data[i+sidx] + (((uint16)data[i+sidx+1]) << 8); i 10143 src/simh/scp.c if (sim_isprint (ebcdic2ascii[data[i+sidx]])) i 10144 src/simh/scp.c ebcdicbuf[eidx++] = ebcdic2ascii[data[i+sidx]]; i 10153 src/simh/scp.c sim_debug (reason, dptr, "%04X%-48s %s%s%s\n", i, outbuf, strbuf, ebcdicbuf, rad50buf); i 10156 src/simh/scp.c sim_debug (reason, dptr, "%04X thru %04X same as above\n", i-(16*same), (unsigned int)(len-1)); i 10253 src/simh/scp.c size_t i; i 10258 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10259 src/simh/scp.c child = topic->children[i]; i 10377 src/simh/scp.c size_t i; i 10378 src/simh/scp.c for (i = 0; i < ilvl; i++) i 10590 src/simh/scp.c size_t i, skiplines; i 10637 src/simh/scp.c for (i =0; i < skiplines; i++) i 10658 src/simh/scp.c size_t i; i 10675 src/simh/scp.c for (i = 0; i < topic->kids; i++) i 10676 src/simh/scp.c displayFlatHelp (st, dptr, uptr, flag, topic->children[i], ap); i 10686 src/simh/scp.c size_t i, match; i 10693 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10694 src/simh/scp.c strcpy (cbuf,topic->children[i]->title + i 10695 src/simh/scp.c ((topic->children[i]->flags & HLP_MAGIC_TOPIC)? 1 : 0)); i 10707 src/simh/scp.c return i+1; i 10711 src/simh/scp.c match = i+1; i 10728 src/simh/scp.c size_t i; i 10782 src/simh/scp.c for (i = 0; p[i]; i++ ) i 10783 src/simh/scp.c top.title[i] = (char)toupper (p[i]); i 10784 src/simh/scp.c top.title[i] = '\0'; i 10786 src/simh/scp.c strcpy (top.title+i, attach_help); i 10882 src/simh/scp.c for (i = 0; i < topic->kids; i++) { i 10883 src/simh/scp.c strcpy (tbuf, topic->children[i]->title + i 10884 src/simh/scp.c ((topic->children[i]->flags & HLP_MAGIC_TOPIC)? 1 : 0)); i 310 src/simh/sim_console.c int32 i; i 313 src/simh/sim_console.c for (i = 0; show_con_tab[i].name; i++) i 314 src/simh/sim_console.c show_con_tab[i].action (st, dptr, uptr, show_con_tab[i].arg, cptr); i 397 src/simh/sim_console.c int32 i, connections; i 416 src/simh/sim_console.c for (i=connections=0; i<sim_rem_con_tmxr.lines; i++) { i 417 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 423 src/simh/sim_console.c tmxr_fconns (st, lp, i); i 424 src/simh/sim_console.c if (sim_rem_read_timeouts[i] != sim_rem_read_timeout) { i 425 src/simh/sim_console.c if (sim_rem_read_timeouts[i]) i 426 src/simh/sim_console.c fprintf (st, "Remote Console Input on connection %lu automatically continues after %lu seconds\n", (unsigned long)i, (unsigned long)sim_rem_read_timeouts[i]); i 428 src/simh/sim_console.c fprintf (st, "Remote Console Input on connection %lu does not continue automatically\n", (unsigned long)i); i 638 src/simh/sim_console.c int32 i, j, c = 0; i 652 src/simh/sim_console.c for (i=(was_active_command ? sim_rem_cmd_active_line : 0); i 653 src/simh/sim_console.c (i < sim_rem_con_tmxr.lines); i 654 src/simh/sim_console.c i++) { i 655 src/simh/sim_console.c t_bool master_session = (sim_rem_master_mode && (i == 0)); i 657 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 667 src/simh/sim_console.c (master_session && !sim_rem_single_mode[i])) { i 677 src/simh/sim_console.c i = -1; i 685 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 690 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 698 src/simh/sim_console.c if (sim_rem_single_mode[i]) { i 700 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; /* enter multi command mode */ i 708 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 710 src/simh/sim_console.c tmxr_linemsgf (lpj, "\nRemote Console %lu(%s) Entering Commands\n", (unsigned long)i, lp->ipad); i 713 src/simh/sim_console.c lp = &sim_rem_con_tmxr.ldsc[i]; i 716 src/simh/sim_console.c if (!master_session && sim_rem_read_timeouts[i]) { i 717 src/simh/sim_console.c tmxr_linemsgf (lp, "Simulation will resume automatically if input is not received in %lu seconds\n", (unsigned long)sim_rem_read_timeouts[i]); i 723 src/simh/sim_console.c if ((sim_rem_buf_ptr[i] == 0) && /* At beginning of input line */ i 733 src/simh/sim_console.c if (sim_rem_buf_ptr[i] == 0) { i 750 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 759 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 764 src/simh/sim_console.c sim_rem_read_timeouts[i] && i 765 src/simh/sim_console.c ((sim_os_msec() - read_start_time)/1000 >= sim_rem_read_timeouts[i])) { i 766 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) {/* Erase current input line */ i 768 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 770 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+80 >= sim_rem_buf_size[i]) { i 771 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 772 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 774 src/simh/sim_console.c strcpy (sim_rem_buf[i], "CONTINUE ! Automatic continue due to timeout"); i 775 src/simh/sim_console.c tmxr_linemsgf (lp, "%s\n", sim_rem_buf[i]); i 782 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; /* No longer multi-command more */ i 795 src/simh/sim_console.c if (sim_rem_buf_ptr[i] > 0) { i 797 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 802 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) { i 804 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 808 src/simh/sim_console.c if (sim_rem_buf_ptr[i] == 0) i 813 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+1 >= sim_rem_buf_size[i]) { i 814 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 815 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 817 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]++] = '\0'; i 818 src/simh/sim_console.c sim_debug (DBG_RCV, &sim_remote_console, "Got Command (%lu bytes still in buffer): %s\n", (unsigned long)tmxr_input_pending_ln (lp), sim_rem_buf[i]); i 823 src/simh/sim_console.c while (sim_rem_buf_ptr[i] > 0) { /* Erase current input line */ i 825 src/simh/sim_console.c --sim_rem_buf_ptr[i]; i 827 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 828 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+80 >= sim_rem_buf_size[i]) { i 829 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 830 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 832 src/simh/sim_console.c strcpy (sim_rem_buf[i], "CONTINUE ! Automatic continue before close"); i 833 src/simh/sim_console.c tmxr_linemsgf (lp, "%s\n", sim_rem_buf[i]); i 840 src/simh/sim_console.c if (sim_rem_buf_ptr[i]+2 >= sim_rem_buf_size[i]) { i 841 src/simh/sim_console.c sim_rem_buf_size[i] += 1024; i 842 src/simh/sim_console.c sim_rem_buf[i] = (char *)realloc (sim_rem_buf[i], sim_rem_buf_size[i]); i 844 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]++] = (char)c; i 845 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]] = '\0'; i 846 src/simh/sim_console.c if (((size_t)sim_rem_buf_ptr[i]) >= sizeof(cbuf)) i 851 src/simh/sim_console.c if ((!got_command) && (sim_rem_single_mode[i]) && (tmxr_input_pending_ln (lp))) { i 855 src/simh/sim_console.c } while ((!got_command) && ((!sim_rem_single_mode[i]) || c)); i 858 src/simh/sim_console.c if ((sim_rem_single_mode[i]) && !got_command) { i 861 src/simh/sim_console.c sim_printf ("Remote Console Command from %s> %s\r\n", lp->ipad, sim_rem_buf[i]); i 863 src/simh/sim_console.c if (strlen(sim_rem_buf[i]) >= sizeof(cbuf)) { i 869 src/simh/sim_console.c strcpy (cbuf, sim_rem_buf[i]); i 870 src/simh/sim_console.c sim_rem_buf_ptr[i] = 0; i 871 src/simh/sim_console.c sim_rem_buf[i][sim_rem_buf_ptr[i]] = '\0'; i 875 src/simh/sim_console.c if (sim_rem_single_mode[i]) { i 876 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; i 887 src/simh/sim_console.c sim_rem_active_number = i; i 901 src/simh/sim_console.c sim_rem_cmd_active_line = i; i 904 src/simh/sim_console.c i = i - 1; i 911 src/simh/sim_console.c if ((cmdp = find_ctab (sim_rem_single_mode[i] ? allowed_single_remote_cmds : (master_session ? allowed_master_remote_cmds : allowed_remote_cmds), gbuf))) {/* lookup command */ i 956 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 975 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 980 src/simh/sim_console.c if ((i == j) || (!lpj->conn)) i 990 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 992 src/simh/sim_console.c if (!sim_rem_single_mode[i]) { i 1004 src/simh/sim_console.c sim_rem_cmd_active_line = i; i 1012 src/simh/sim_console.c sim_rem_single_mode[i] = FALSE; i 1039 src/simh/sim_console.c int32 i; i 1041 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) i 1042 src/simh/sim_console.c if (sim_rem_con_tmxr.ldsc[i].conn) i 1044 src/simh/sim_console.c if (i != sim_rem_con_tmxr.lines) i 1073 src/simh/sim_console.c int32 i; i 1076 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) { i 1077 src/simh/sim_console.c FREE (sim_rem_buf[i]); i 1078 src/simh/sim_console.c sim_rem_buf[i] = NULL; i 1079 src/simh/sim_console.c sim_rem_buf_size[i] = 0; i 1080 src/simh/sim_console.c sim_rem_buf_ptr[i] = 0; i 1081 src/simh/sim_console.c sim_rem_single_mode[i] = TRUE; i 1092 src/simh/sim_console.c int32 i; i 1101 src/simh/sim_console.c for (i=0; i<sim_rem_con_tmxr.lines; i++) i 1102 src/simh/sim_console.c FREE (sim_rem_buf[i]); i 1458 src/simh/sim_console.c int32 i; i 1471 src/simh/sim_console.c for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { i 1479 src/simh/sim_console.c for (i = 0; sim_internal_device_count && (dptr = sim_internal_devices[i]); ++i) { i 139 src/simh/sim_disk.c size_t i; i 141 src/simh/sim_disk.c for (i = 0; i < DKUF_N_FMT; i++) i 142 src/simh/sim_disk.c if (fmts[i].fmtval == f) { i 143 src/simh/sim_disk.c fprintf (st, "%s format", fmts[i].name); i 240 src/simh/sim_disk.c size_t i; i 251 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); i 252 src/simh/sim_disk.c if (i < tbc/ctx->xfer_element_size) /* fill */ i 253 src/simh/sim_disk.c memset (&buf[i*ctx->xfer_element_size], 0, tbc-(i*ctx->xfer_element_size)); i 256 src/simh/sim_disk.c *sectsread = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); i 340 src/simh/sim_disk.c size_t i; i 351 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); i 354 src/simh/sim_disk.c *sectswritten = (t_seccnt)((i*ctx->xfer_element_size+ctx->sector_size-1)/ctx->sector_size); i 640 src/simh/sim_disk.c int i; i 644 src/simh/sim_disk.c for (i=0; i<WordCount; i++) i 645 src/simh/sim_disk.c CheckSum += Buf[i]; i 1063 src/simh/sim_disk.c uint32 i; i 1065 src/simh/sim_disk.c for (i=0; i < dptr->numunits; ++i) i 1066 src/simh/sim_disk.c if (dptr->units[i].flags & UNIT_ATTABLE) i 1067 src/simh/sim_disk.c fprintf (st, " sim> ATTACH {switches} %s%lu diskfile\n", dptr->name, (unsigned long)i); i 159 src/simh/sim_fio.c int32 i; i 177 src/simh/sim_fio.c for (i = (int32)nbuf; i > 0; i--) { /* loop on buffers */ i 178 src/simh/sim_fio.c c = (i == 1)? lcnt: nelem; i 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 sprintf (err_buf, "Sockets: %s error %d - %s\n", emsg, err, sock_errors[i].text); i 280 src/simh/sim_tape.c uint32 i; i 282 src/simh/sim_tape.c for (i=0; i < dptr->numunits; ++i) i 283 src/simh/sim_tape.c if (dptr->units[i].flags & UNIT_ATTABLE) i 284 src/simh/sim_tape.c fprintf (st, " sim> ATTACH {switches} %s%lu tapefile\n\n", dptr->name, (unsigned long)i); i 788 src/simh/sim_tape.c t_mtrlnt i, tbc, rbc; i 805 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ i 811 src/simh/sim_tape.c for ( ; i < rbc; i++) /* fill with 0's */ i 812 src/simh/sim_tape.c buf[i] = 0; i 852 src/simh/sim_tape.c t_mtrlnt i, rbc, tbc; i 864 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ i 867 src/simh/sim_tape.c for ( ; i < rbc; i++) /* fill with 0's */ i 868 src/simh/sim_tape.c buf[i] = 0; i 1871 src/simh/sim_tape.c size_t i; i 1909 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); i 1910 src/simh/sim_tape.c if (i == 0) /* past or at eof? */ i 1935 src/simh/sim_tape.c for (i=0; i<65535; i++) { i 1936 src/simh/sim_tape.c if (countmap[i]) { i 1937 src/simh/sim_tape.c if (i == 0) i 1938 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: summary - %u tape marks\n", countmap[i]); i 1940 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: summary - %u %d byte record%s\n", countmap[i], (int)i, (countmap[i] > 1) ? "s" : ""); i 98 src/simh/sim_timer.c uint32 i, tot, tim; i 102 src/simh/sim_timer.c for (i = 0, tot = 0; i < sleep1Samples; i++) i 107 src/simh/sim_timer.c for (i = 0, tot = 0; i < sleep1Samples; i++) i 505 src/simh/sim_tmxr.c int32 i = lp->rxbpi; i 508 src/simh/sim_tmxr.c return loop_read (lp, &(lp->rxb[i]), length); i 510 src/simh/sim_tmxr.c return sim_read_sock (lp->sock, &(lp->rxb[i]), length); i 523 src/simh/sim_tmxr.c int32 i = lp->txbpr; i 526 src/simh/sim_tmxr.c return loop_write (lp, &(lp->txb[i]), length); i 528 src/simh/sim_tmxr.c written = sim_write_sock (lp->sock, &(lp->txb[i]), length); i 679 src/simh/sim_tmxr.c int32 i; i 693 src/simh/sim_tmxr.c for (i=0; i<mp->lines; ++i) { i 695 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 771 src/simh/sim_tmxr.c for (size_t i = 0; i < len; i++) i 772 src/simh/sim_tmxr.c h = h * 31 + p[i]; i 804 src/simh/sim_tmxr.c int32 i, j; i 829 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { i 830 src/simh/sim_tmxr.c uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; i 892 src/simh/sim_tmxr.c for (int i = 0; i < 1000; i++) i 934 src/simh/sim_tmxr.c i = mp->lines; /* play it safe in case lines == 0 */ i 937 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ i 939 src/simh/sim_tmxr.c i = *op++; /* get next line in list to try */ i 941 src/simh/sim_tmxr.c i = j; /* get next sequential line */ i 943 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ i 952 src/simh/sim_tmxr.c if (i >= mp->lines) { /* all busy? */ i 955 src/simh/sim_tmxr.c for (j = 0; j < mp->lines; j++, i++) { /* find next avail line */ i 1001 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1026 src/simh/sim_tmxr.c return i; i 1032 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* check each line in sequence */ i 1034 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get pointer to line descriptor */ i 1039 src/simh/sim_tmxr.c return i; i 1092 src/simh/sim_tmxr.c return i; i 1152 src/simh/sim_tmxr.c return i; i 1587 src/simh/sim_tmxr.c int32 i, nbytes, j; i 1590 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1591 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1811 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1812 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 1958 src/simh/sim_tmxr.c int32 i, nbytes; i 1961 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru lines */ i 1962 src/simh/sim_tmxr.c lp = mp->ldsc + i; /* get line desc */ i 2183 src/simh/sim_tmxr.c int32 i, line, nextline = -1; i 2195 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ i 2196 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2263 src/simh/sim_tmxr.c i = (int32) get_uint (cptr, 10, 1024*1024, &r); i 2264 src/simh/sim_tmxr.c if (r || (i == 0)) i 2266 src/simh/sim_tmxr.c sprintf(buffered, "%d", i); i 2411 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { i 2412 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2429 src/simh/sim_tmxr.c sprintf(lp->txlogname, "%s_%d", mp->logfiletmpl, i); i 2443 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize line buffers */ i 2444 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2498 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* close line logs */ i 2499 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2541 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* initialize lines */ i 2542 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2555 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { //-V1008 i 2556 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 2904 src/simh/sim_tmxr.c int i; i 2907 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2908 src/simh/sim_tmxr.c if (tmxr_open_devices[i] == mux) { i 2927 src/simh/sim_tmxr.c for (i=0; i<mux->lines; i++) i 2928 src/simh/sim_tmxr.c if (0 == mux->ldsc[i].send.delay) i 2929 src/simh/sim_tmxr.c mux->ldsc[i].send.delay = SEND_DEFAULT_DELAY; i 2935 src/simh/sim_tmxr.c int i, j; i 2937 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2938 src/simh/sim_tmxr.c if (tmxr_open_devices[i] == mux) { i 2939 src/simh/sim_tmxr.c for (j=i+1; j<tmxr_open_device_count; ++j) i 2950 src/simh/sim_tmxr.c int i; i 2962 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) i 2963 src/simh/sim_tmxr.c if (tmxr_open_devices[i]->dptr == dptr) { i 2964 src/simh/sim_tmxr.c int line = (int)get_uint (cptr, 10, tmxr_open_devices[i]->lines, &r); i 2968 src/simh/sim_tmxr.c *snd = &tmxr_open_devices[i]->ldsc[line].send; i 2970 src/simh/sim_tmxr.c *exp = &tmxr_open_devices[i]->ldsc[line].expect; i 2996 src/simh/sim_tmxr.c int32 i; i 3017 src/simh/sim_tmxr.c for (i=0; i<mp->lines; i++) { i 3018 src/simh/sim_tmxr.c mp->ldsc[i].expect.dptr = mp->dptr; i 3019 src/simh/sim_tmxr.c mp->ldsc[i].expect.dbit = TMXR_DBG_EXP; i 3020 src/simh/sim_tmxr.c mp->ldsc[i].send.dptr = mp->dptr; i 3021 src/simh/sim_tmxr.c mp->ldsc[i].send.dbit = TMXR_DBG_SEND; i 3042 src/simh/sim_tmxr.c int i, j; i 3047 src/simh/sim_tmxr.c for (i=0; i<tmxr_open_device_count; ++i) { i 3048 src/simh/sim_tmxr.c TMXR *mp = tmxr_open_devices[i]; i 3130 src/simh/sim_tmxr.c int32 i; i 3133 src/simh/sim_tmxr.c for (i = 0; i < mp->lines; i++) { /* loop thru conn */ i 3134 src/simh/sim_tmxr.c lp = mp->ldsc + i; i 3193 src/simh/sim_tmxr.c int32 i; i 3202 src/simh/sim_tmxr.c for (i=0; i < mp->lines; i++) { i 3203 src/simh/sim_tmxr.c UNIT *uptr = mp->ldsc[i].uptr ? mp->ldsc[i].uptr : mp->uptr; i 3204 src/simh/sim_tmxr.c UNIT *o_uptr = mp->ldsc[i].o_uptr ? mp->ldsc[i].o_uptr : mp->uptr; i 3477 src/simh/sim_tmxr.c int32 i, len; i 3512 src/simh/sim_tmxr.c for (i = 0; i < len; ++i) { i 3513 src/simh/sim_tmxr.c if (('\n' == buf[i]) && ((i == 0) || ('\r' != buf[i-1]))) { i 3518 src/simh/sim_tmxr.c while (SCPE_STALL == tmxr_putc_ln (lp, buf[i])) i 3883 src/simh/sim_tmxr.c int32 i, j, low, last; i 3899 src/simh/sim_tmxr.c i = *iptr++; /* get next line in list */ i 3901 src/simh/sim_tmxr.c i = -1; /* get "tie-off" value */ i 3903 src/simh/sim_tmxr.c if (i != last + 1) { /* end of a range? */ i 3918 src/simh/sim_tmxr.c low = i; /* start new range */ i 3921 src/simh/sim_tmxr.c last = i; /* note value for range check */ i 3936 src/simh/sim_tmxr.c int32 i, t; i 3940 src/simh/sim_tmxr.c for (i = t = 0; i < mp->lines; i++) i 3941 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3956 src/simh/sim_tmxr.c int32 i, any; i 3960 src/simh/sim_tmxr.c for (i = any = 0; i < mp->lines; i++) { i 3961 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3962 src/simh/sim_tmxr.c || mp->ldsc[i].modem_control) { i 3963 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3967 src/simh/sim_tmxr.c tmxr_fconns (st, &mp->ldsc[i], i); i 3969 src/simh/sim_tmxr.c if ((mp->ldsc[i].sock != 0) i 3971 src/simh/sim_tmxr.c tmxr_fstats (st, &mp->ldsc[i], i);