Lines Matching defs:regno
402 validargs(int cpuver, int regno)
404 if (regno < 0 || regno > 1)
415 versionmatch(int cpuver, int regno, const struct nametable *n)
417 if (!validargs(cpuver, regno) || n->ver != MAPCPUVER(cpuver))
423 getnametable(int cpuver, int regno)
427 if (!validargs(cpuver, regno))
432 n = US12_names[regno];
435 n = US3_names[regno];
438 n = US3_PLUS_names[regno];
441 n = US3_I_names[regno];
444 n = US4_PLUS_names[regno];
454 cpc_walk_names(int cpuver, int regno, void *arg,
459 if ((n = getnametable(cpuver, regno)) == NULL)
462 if (versionmatch(cpuver, regno, n))
463 action(arg, regno, n->name, n->bits);
467 __cpc_reg_to_name(int cpuver, int regno, uint8_t bits)
471 if ((n = getnametable(cpuver, regno)) == NULL)
474 if (bits == n->bits && versionmatch(cpuver, regno, n))
483 __cpc_name_to_reg(int cpuver, int regno, const char *name, uint8_t *bits)
489 if ((n = getnametable(cpuver, regno)) == NULL || name == NULL)
494 versionmatch(cpuver, regno, n)) {