bc 395 src/simh/sim_tape.c static t_stat sim_tape_rdlntf (UNIT *uptr, t_mtrlnt *bc) bc 483 src/simh/sim_tape.c *bc = buffer [bufcntr++]; /* store the metadata marker value */ bc 485 src/simh/sim_tape.c if (*bc == MTR_EOM) { /* if an end-of-medium marker is seen */ bc 495 src/simh/sim_tape.c if (*bc == MTR_TMK) { /* if the value is a tape mark */ bc 500 src/simh/sim_tape.c else if (*bc == MTR_GAP) /* otherwise if the value is a full gap */ bc 503 src/simh/sim_tape.c else if (*bc == MTR_FHGAP) { /* otherwise if the value if a half gap */ bc 508 src/simh/sim_tape.c *bc = MTR_GAP; /* reset the marker */ bc 516 src/simh/sim_tape.c sbc = MTR_L (*bc); /* extract the record length */ bc 521 src/simh/sim_tape.c while (*bc == MTR_GAP && runaway_counter > 0); /* continue until data or runaway occurs */ bc 530 src/simh/sim_tape.c *bc = tpcbc; /* save rec lnt */ bc 563 src/simh/sim_tape.c *bc = sbc; /* save rec lnt */ bc 574 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "rd_lnt: st: %d, lnt: %d, pos: %" T_ADDR_FMT "u\n", r, *bc, uptr->pos); bc 608 src/simh/sim_tape.c static t_stat sim_tape_rdlntr (UNIT *uptr, t_mtrlnt *bc) bc 623 src/simh/sim_tape.c *bc = 0; bc 679 src/simh/sim_tape.c *bc = buffer [--bufcntr]; /* store the metadata marker value */ bc 683 src/simh/sim_tape.c if (*bc == MTR_TMK) { /* if the marker is a tape mark */ bc 688 src/simh/sim_tape.c else if (*bc == MTR_GAP) /* otherwise if the marker is a full gap */ bc 691 src/simh/sim_tape.c else if ((*bc & MTR_M_RHGAP) == MTR_RHGAP /* otherwise if the marker */ bc 692 src/simh/sim_tape.c || *bc == MTR_RRGAP) { /* is a half gap */ bc 696 src/simh/sim_tape.c *bc = MTR_GAP; /* reset the marker */ bc 701 src/simh/sim_tape.c sbc = MTR_L (*bc); /* extract the record length */ bc 708 src/simh/sim_tape.c while (*bc == MTR_GAP && runaway_counter > 0); /* continue until data or runaway occurs */ bc 719 src/simh/sim_tape.c *bc = tpcbc; /* save rec lnt */ bc 727 src/simh/sim_tape.c if (*bc == MTR_TMK) { /* tape mark? */ bc 750 src/simh/sim_tape.c *bc = sbc; /* save rec lnt */ bc 759 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, ctx->dptr, "rd_lnt: st: %d, lnt: %d, pos: %" T_ADDR_FMT "u\n", r, *bc, uptr->pos); bc 784 src/simh/sim_tape.c t_stat sim_tape_rdrecf (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max) bc 799 src/simh/sim_tape.c *bc = rbc = MTR_L (tbc); /* strip error flag */ bc 819 src/simh/sim_tape.c t_stat sim_tape_rdrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback) bc 822 src/simh/sim_tape.c r = sim_tape_rdrecf (uptr, buf, bc, max); bc 848 src/simh/sim_tape.c t_stat sim_tape_rdrecr (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max) bc 861 src/simh/sim_tape.c *bc = rbc = MTR_L (tbc); /* strip error flag */ bc 875 src/simh/sim_tape.c t_stat sim_tape_rdrecr_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback) bc 878 src/simh/sim_tape.c r = sim_tape_rdrecr (uptr, buf, bc, max); bc 899 src/simh/sim_tape.c t_stat sim_tape_wrrecf (UNIT *uptr, uint8 *buf, t_mtrlnt bc) bc 907 src/simh/sim_tape.c sim_debug (ctx->dbit, ctx->dptr, "sim_tape_wrrecf(unit=%d, buf=%p, bc=%d)\n", (int)(uptr-ctx->dptr->units), buf, bc); bc 909 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, bc, "Record Write", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); bc 911 src/simh/sim_tape.c sbc = MTR_L (bc); bc 922 src/simh/sim_tape.c sbc = MTR_L ((bc + 1) & ~1); /* pad odd length */ bc 925 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); bc 927 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); bc 950 src/simh/sim_tape.c t_stat sim_tape_wrrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt bc, TAPE_PCALLBACK callback) bc 953 src/simh/sim_tape.c r = sim_tape_wrrecf (uptr, buf, bc); bc 1331 src/simh/sim_tape.c t_stat sim_tape_sprecf (UNIT *uptr, t_mtrlnt *bc) bc 1336 src/simh/sim_tape.c *bc = 0; bc 1341 src/simh/sim_tape.c st = sim_tape_rdlntf (uptr, bc); /* get record length */ bc 1342 src/simh/sim_tape.c *bc = MTR_L (*bc); bc 1346 src/simh/sim_tape.c t_stat sim_tape_sprecf_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback) bc 1349 src/simh/sim_tape.c r = sim_tape_sprecf (uptr, bc); bc 1418 src/simh/sim_tape.c t_stat sim_tape_sprecr (UNIT *uptr, t_mtrlnt *bc) bc 1429 src/simh/sim_tape.c *bc = 0; bc 1432 src/simh/sim_tape.c st = sim_tape_rdlntr (uptr, bc); /* get record length */ bc 1433 src/simh/sim_tape.c *bc = MTR_L (*bc); bc 1437 src/simh/sim_tape.c t_stat sim_tape_sprecr_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback) bc 1440 src/simh/sim_tape.c r = sim_tape_sprecr (uptr, bc); bc 1869 src/simh/sim_tape.c t_tpclnt bc, last_bc = 0xFFFF; bc 1909 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); bc 1912 src/simh/sim_tape.c if (countmap[bc] == 0) bc 1914 src/simh/sim_tape.c ++countmap[bc]; bc 1917 src/simh/sim_tape.c if (bc) { bc 1918 src/simh/sim_tape.c sim_debug (MTSE_DBG_STR, dptr, "tpc_map: %d byte count at pos: %" T_ADDR_FMT "u\n", bc, tpos); bc 1920 src/simh/sim_tape.c (void)sim_fread (recbuf, 1, bc, uptr->fileref); bc 1921 src/simh/sim_tape.c sim_data_trace(dptr, uptr, ((dptr->dctrl & MTSE_DBG_DAT) ? recbuf : NULL), "", bc, "Data Record", MTSE_DBG_STR); bc 1927 src/simh/sim_tape.c tpos = tpos + ((bc + 1) & ~1) + sizeof (t_tpclnt); bc 1928 src/simh/sim_tape.c if ((bc == 0) && (last_bc == 0)) { /* double tape mark? */ bc 1932 src/simh/sim_tape.c last_bc = bc; bc 160 src/simh/sim_tape.h t_stat sim_tape_rdrecf (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max); bc 161 src/simh/sim_tape.h t_stat sim_tape_rdrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback); bc 162 src/simh/sim_tape.h t_stat sim_tape_rdrecr (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max); bc 163 src/simh/sim_tape.h t_stat sim_tape_rdrecr_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback); bc 164 src/simh/sim_tape.h t_stat sim_tape_wrrecf (UNIT *uptr, uint8 *buf, t_mtrlnt bc); bc 165 src/simh/sim_tape.h t_stat sim_tape_wrrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt bc, TAPE_PCALLBACK callback); bc 174 src/simh/sim_tape.h t_stat sim_tape_sprecf (UNIT *uptr, t_mtrlnt *bc); bc 175 src/simh/sim_tape.h t_stat sim_tape_sprecf_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback); bc 182 src/simh/sim_tape.h t_stat sim_tape_sprecr (UNIT *uptr, t_mtrlnt *bc); bc 183 src/simh/sim_tape.h t_stat sim_tape_sprecr_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback);