mptr 328 src/simh/scp.c t_stat show_one_mod (FILE *st, DEVICE *dptr, UNIT *uptr, MTAB *mptr, CONST char *cptr, int32 flag); mptr 2565 src/simh/scp.c MTAB *mptr; mptr 2577 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { mptr 2578 src/simh/scp.c if (!MODMASK(mptr,MTAB_VDV) && MODMASK(mptr,MTAB_VUN) && (dptr->numunits != 1)) mptr 2580 src/simh/scp.c if ((enabled_units != 1) && !(mptr->mask & MTAB_XTD)) mptr 2582 src/simh/scp.c if (mptr->mstring) { mptr 2585 src/simh/scp.c mptr->mstring, mptr 2586 src/simh/scp.c (strchr(mptr->mstring, '=')) \ mptr 2587 src/simh/scp.c ? "" : (MODMASK(mptr,MTAB_VALR) \ mptr 2588 src/simh/scp.c ? "=val" : (MODMASK(mptr,MTAB_VALO) \ mptr 2590 src/simh/scp.c if ((strlen (buf) < 30) || (NULL == mptr->help)) mptr 2591 src/simh/scp.c (void)fprintf (st, "%-30s\t%s\r\n", buf, mptr->help ? mptr->help : ""); mptr 2593 src/simh/scp.c (void)fprintf (st, "%s\r\n%-30s\t%s\r\n", buf, "", mptr->help); mptr 2640 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { mptr 2641 src/simh/scp.c if ((!MODMASK(mptr,MTAB_VUN)) && MODMASK(mptr,MTAB_XTD)) mptr 2643 src/simh/scp.c if ((NULL == mptr->valid) && MODMASK(mptr,MTAB_XTD)) mptr 2645 src/simh/scp.c if (mptr->mstring) { mptr 2648 src/simh/scp.c (dptr->numunits > 1) ? "n" : "0", mptr->mstring, mptr 2649 src/simh/scp.c (strchr(mptr->mstring, '=')) \ mptr 2650 src/simh/scp.c ? "" : (MODMASK(mptr,MTAB_VALR) \ mptr 2651 src/simh/scp.c ? "=val" : (MODMASK(mptr,MTAB_VALO) \ mptr 2654 src/simh/scp.c (strchr(mptr->mstring, '=')) \ mptr 2655 src/simh/scp.c ? "" : (mptr->help ? mptr->help : "")); mptr 2670 src/simh/scp.c MTAB *mptr; mptr 2681 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { mptr 2682 src/simh/scp.c if (!MODMASK(mptr,MTAB_VDV) && MODMASK(mptr,MTAB_VUN) && (dptr->numunits != 1)) mptr 2684 src/simh/scp.c if ((enabled_units != 1) && !(mptr->mask & MTAB_XTD)) mptr 2686 src/simh/scp.c if ((!mptr->disp) || (!mptr->pstring) || !(*mptr->pstring)) mptr 2690 src/simh/scp.c mptr->pstring, MODMASK(mptr,MTAB_SHP) ? "{=arg}" : ""); mptr 2691 src/simh/scp.c (void)fprintf (st, "%-30s\t%s\r\n", buf, mptr->help ? mptr->help : ""); mptr 2700 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { mptr 2701 src/simh/scp.c if ((!MODMASK(mptr,MTAB_VUN)) && MODMASK(mptr,MTAB_XTD)) mptr 2703 src/simh/scp.c if ((!mptr->disp) || (!mptr->pstring)) mptr 2707 src/simh/scp.c (dptr->numunits > 1) ? "n" : "0", mptr->pstring, mptr 2708 src/simh/scp.c MODMASK(mptr,MTAB_SHP) ? "=arg" : ""); mptr 2709 src/simh/scp.c (void)fprintf (st, "%-30s\t%s\r\n", buf, mptr->help ? mptr->help : ""); mptr 2902 src/simh/scp.c mptr 2903 src/simh/scp.c mptr 2904 src/simh/scp.c mptr 4214 src/simh/scp.c MTAB *mptr; mptr 4244 src/simh/scp.c for (mptr = sim_dflt_dev->modifiers; mptr->mask != 0; mptr++) { mptr 4245 src/simh/scp.c if (mptr->mstring && (MATCH_CMD (gbuf, mptr->mstring) == 0)) { mptr 4269 src/simh/scp.c for (mptr = dptr->modifiers; mptr && (mptr->mask != 0); mptr++) { mptr 4270 src/simh/scp.c if ((mptr->mstring) && /* match string */ mptr 4271 src/simh/scp.c (MATCH_CMD (gbuf, mptr->mstring) == 0)) { /* matches option? */ mptr 4272 src/simh/scp.c if (mptr->mask & MTAB_XTD) { /* extended? */ mptr 4273 src/simh/scp.c if (((lvl & mptr->mask) & ~MTAB_XTD) == 0) mptr 4277 src/simh/scp.c if (mptr->valid) { /* validation rtn? */ mptr 4278 src/simh/scp.c if (cvptr && MODMASK(mptr,MTAB_QUOTE)) { mptr 4286 src/simh/scp.c if (cvptr && MODMASK(mptr,MTAB_NC)) { mptr 4292 src/simh/scp.c r = mptr->valid (uptr, mptr->match, cvptr, mptr->desc); mptr 4296 src/simh/scp.c else if (!mptr->desc) /* value desc? */ mptr 4300 src/simh/scp.c else *((int32 *) mptr->desc) = mptr->match; mptr 4307 src/simh/scp.c if ((mptr->valid) && /* invalid? */ mptr 4308 src/simh/scp.c ((r = mptr->valid (uptr, mptr->match, cvptr, mptr->desc)) != SCPE_OK)) mptr 4310 src/simh/scp.c uptr->flags = (uptr->flags & ~(mptr->mask)) | mptr 4311 src/simh/scp.c (mptr->match & mptr->mask); /* set new value */ mptr 4316 src/simh/scp.c if (!mptr || (mptr->mask == 0)) { /* no match? */ mptr 4480 src/simh/scp.c MTAB *mptr; mptr 4511 src/simh/scp.c for (mptr = sim_dflt_dev->modifiers; mptr && (mptr->mask != 0); mptr++) { mptr 4512 src/simh/scp.c if ((((mptr->mask & MTAB_VDV) == MTAB_VDV) && mptr 4513 src/simh/scp.c (mptr->pstring && (MATCH_CMD (gbuf, mptr->pstring) == 0))) || //-V600 mptr 4514 src/simh/scp.c (!(mptr->mask & MTAB_VDV) && (mptr->mstring && (MATCH_CMD (gbuf, mptr->mstring) == 0)))) { mptr 4543 src/simh/scp.c for (mptr = dptr->modifiers; mptr && (mptr->mask != 0); mptr++) { mptr 4544 src/simh/scp.c if (((mptr->mask & MTAB_XTD)? /* right level? */ mptr 4545 src/simh/scp.c ((mptr->mask & lvl) == lvl): (MTAB_VUN & lvl)) && mptr 4546 src/simh/scp.c ((mptr->disp && mptr->pstring && /* named disp? */ mptr 4547 src/simh/scp.c (MATCH_CMD (gbuf, mptr->pstring) == 0)) mptr 4549 src/simh/scp.c if (cvptr && !MODMASK(mptr,MTAB_SHP)) mptr 4551 src/simh/scp.c show_one_mod (ofile, dptr, uptr, mptr, cvptr, 1); mptr 4555 src/simh/scp.c if (!mptr || (mptr->mask == 0)) { /* no match? */ mptr 5897 src/simh/scp.c MTAB *mptr; mptr 5902 src/simh/scp.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) { mptr 5903 src/simh/scp.c if (mptr->pstring && mptr 5904 src/simh/scp.c ((mptr->mask & MTAB_XTD)? mptr 5905 src/simh/scp.c (MODMASK(mptr,flag) && !MODMASK(mptr,MTAB_NMO)): mptr 5906 src/simh/scp.c ((MTAB_VUN == (uint32)flag) && ((uptr->flags & mptr->mask) == mptr->match)))) { mptr 5913 src/simh/scp.c r = show_one_mod (st, dptr, uptr, mptr, NULL, 0); mptr 5919 src/simh/scp.c t_stat show_one_mod (FILE *st, DEVICE *dptr, UNIT *uptr, MTAB *mptr, mptr 5924 src/simh/scp.c if (mptr->disp) mptr 5925 src/simh/scp.c r = mptr->disp (st, uptr, mptr->match, (CONST void *)(cptr? cptr: mptr->desc)); mptr 5927 src/simh/scp.c fputs (mptr->pstring, st); mptr 5928 src/simh/scp.c if ((r == SCPE_OK) && (flag && !((mptr->mask & MTAB_XTD) && MODMASK(mptr,MTAB_NMO)))) mptr 586 src/simh/sim_defs.h # define MODMASK(mptr,flag) (((mptr)->mask & (uint32)(flag)) == (uint32)(flag))/* flag mask test */ mptr 3404 src/simh/sim_tmxr.c MTAB *mptr; mptr 3406 src/simh/sim_tmxr.c for (mptr = dptr->modifiers; mptr->mask != 0; mptr++) mptr 3407 src/simh/sim_tmxr.c if (mptr->valid == &tmxr_dscln) { mptr 3409 src/simh/sim_tmxr.c fprintf (st, " sim> SET %s %s=n\r\n\r\n", dptr->name, mptr->mstring); mptr 3414 src/simh/sim_tmxr.c fprintf (st, "adding the -C switch to a %s command.\r\n\r\n", mptr->mstring); mptr 3415 src/simh/sim_tmxr.c fprintf (st, " sim> SET -C %s %s=n\r\n\r\n", dptr->name, mptr->mstring);