bc 396 src/simh/sim_tape.c static t_stat sim_tape_rdlntf (UNIT *uptr, t_mtrlnt *bc) bc 484 src/simh/sim_tape.c *bc = buffer [bufcntr++]; /* store the metadata marker value */ bc 486 src/simh/sim_tape.c if (*bc == MTR_EOM) { /* if an end-of-medium marker is seen */ bc 496 src/simh/sim_tape.c if (*bc == MTR_TMK) { /* if the value is a tape mark */ bc 501 src/simh/sim_tape.c else if (*bc == MTR_GAP) /* otherwise if the value is a full gap */ bc 504 src/simh/sim_tape.c else if (*bc == MTR_FHGAP) { /* otherwise if the value if a half gap */ bc 509 src/simh/sim_tape.c *bc = MTR_GAP; /* reset the marker */ bc 517 src/simh/sim_tape.c sbc = MTR_L (*bc); /* extract the record length */ bc 522 src/simh/sim_tape.c while (*bc == MTR_GAP && runaway_counter > 0); /* continue until data or runaway occurs */ bc 531 src/simh/sim_tape.c *bc = tpcbc; /* save rec lnt */ bc 564 src/simh/sim_tape.c *bc = sbc; /* save rec lnt */ bc 576 src/simh/sim_tape.c (long long)r, (long long)*bc, uptr->pos); bc 610 src/simh/sim_tape.c static t_stat sim_tape_rdlntr (UNIT *uptr, t_mtrlnt *bc) bc 625 src/simh/sim_tape.c *bc = 0; bc 681 src/simh/sim_tape.c *bc = buffer [--bufcntr]; /* store the metadata marker value */ bc 685 src/simh/sim_tape.c if (*bc == MTR_TMK) { /* if the marker is a tape mark */ bc 690 src/simh/sim_tape.c else if (*bc == MTR_GAP) /* otherwise if the marker is a full gap */ bc 693 src/simh/sim_tape.c else if ((*bc & MTR_M_RHGAP) == MTR_RHGAP /* otherwise if the marker */ bc 694 src/simh/sim_tape.c || *bc == MTR_RRGAP) { /* is a half gap */ bc 698 src/simh/sim_tape.c *bc = MTR_GAP; /* reset the marker */ bc 703 src/simh/sim_tape.c sbc = MTR_L (*bc); /* extract the record length */ bc 710 src/simh/sim_tape.c while (*bc == MTR_GAP && runaway_counter > 0); /* continue until data or runaway occurs */ bc 721 src/simh/sim_tape.c *bc = tpcbc; /* save rec lnt */ bc 729 src/simh/sim_tape.c if (*bc == MTR_TMK) { /* tape mark? */ bc 752 src/simh/sim_tape.c *bc = sbc; /* save rec lnt */ bc 762 src/simh/sim_tape.c (long long)r, (long long)*bc, uptr->pos); bc 787 src/simh/sim_tape.c t_stat sim_tape_rdrecf (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max) bc 803 src/simh/sim_tape.c *bc = rbc = MTR_L (tbc); /* strip error flag */ bc 823 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 826 src/simh/sim_tape.c r = sim_tape_rdrecf (uptr, buf, bc, max); bc 852 src/simh/sim_tape.c t_stat sim_tape_rdrecr (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max) bc 866 src/simh/sim_tape.c *bc = rbc = MTR_L (tbc); /* strip error flag */ bc 880 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 883 src/simh/sim_tape.c r = sim_tape_rdrecr (uptr, buf, bc, max); bc 904 src/simh/sim_tape.c t_stat sim_tape_wrrecf (UNIT *uptr, uint8 *buf, t_mtrlnt bc) bc 913 src/simh/sim_tape.c (int)(uptr-ctx->dptr->units), buf, (long long)bc); bc 915 src/simh/sim_tape.c sim_tape_data_trace(uptr, buf, bc, "Record Write", ctx->dptr->dctrl & MTSE_DBG_DAT, MTSE_DBG_STR); bc 917 src/simh/sim_tape.c sbc = MTR_L (bc); bc 928 src/simh/sim_tape.c sbc = MTR_L ((bc + 1) & ~1); /* pad odd length */ bc 931 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); bc 933 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); bc 956 src/simh/sim_tape.c t_stat sim_tape_wrrecf_a (UNIT *uptr, uint8 *buf, t_mtrlnt bc, TAPE_PCALLBACK callback) bc 959 src/simh/sim_tape.c r = sim_tape_wrrecf (uptr, buf, bc); bc 1338 src/simh/sim_tape.c t_stat sim_tape_sprecf (UNIT *uptr, t_mtrlnt *bc) bc 1343 src/simh/sim_tape.c *bc = 0; bc 1348 src/simh/sim_tape.c st = sim_tape_rdlntf (uptr, bc); /* get record length */ bc 1349 src/simh/sim_tape.c *bc = MTR_L (*bc); bc 1353 src/simh/sim_tape.c t_stat sim_tape_sprecf_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback) bc 1356 src/simh/sim_tape.c r = sim_tape_sprecf (uptr, bc); bc 1426 src/simh/sim_tape.c t_stat sim_tape_sprecr (UNIT *uptr, t_mtrlnt *bc) bc 1437 src/simh/sim_tape.c *bc = 0; bc 1440 src/simh/sim_tape.c st = sim_tape_rdlntr (uptr, bc); /* get record length */ bc 1441 src/simh/sim_tape.c *bc = MTR_L (*bc); bc 1445 src/simh/sim_tape.c t_stat sim_tape_sprecr_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback) bc 1448 src/simh/sim_tape.c r = sim_tape_sprecr (uptr, bc); bc 1888 src/simh/sim_tape.c t_tpclnt bc, last_bc = 0xFFFF; bc 1928 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); bc 1931 src/simh/sim_tape.c if (countmap[bc] == 0) bc 1933 src/simh/sim_tape.c ++countmap[bc]; bc 1936 src/simh/sim_tape.c if (bc) { bc 1938 src/simh/sim_tape.c (long long)bc, tpos); bc 1940 src/simh/sim_tape.c (void)sim_fread (recbuf, 1, bc, uptr->fileref); bc 1941 src/simh/sim_tape.c sim_data_trace(dptr, uptr, ((dptr->dctrl & MTSE_DBG_DAT) ? recbuf : NULL), "", bc, "Data Record", MTSE_DBG_STR); bc 1947 src/simh/sim_tape.c tpos = tpos + ((bc + 1) & ~1) + sizeof (t_tpclnt); bc 1948 src/simh/sim_tape.c if ((bc == 0) && (last_bc == 0)) { /* double tape mark? */ bc 1952 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 184 src/simh/sim_tape.h t_stat sim_tape_sprecr (UNIT *uptr, t_mtrlnt *bc); bc 185 src/simh/sim_tape.h t_stat sim_tape_sprecr_a (UNIT *uptr, t_mtrlnt *bc, TAPE_PCALLBACK callback);