Lines Matching defs:cpuver
399 #define MAPCPUVER(cpuver) (cpuvermap[(cpuver) - CPC_ULTRA1])
402 validargs(int cpuver, int regno)
406 cpuver -= CPC_ULTRA1;
407 if (cpuver < 0 ||
408 cpuver >= sizeof (cpuvermap) / sizeof (cpuvermap[0]))
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))
430 switch (MAPCPUVER(cpuver)) {
454 cpc_walk_names(int cpuver, int regno, void *arg,
459 if ((n = getnametable(cpuver, regno)) == NULL)
462 if (versionmatch(cpuver, regno, n))
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)) {
509 cpc_getcciname(int cpuver)
511 if (validargs(cpuver, 0))
512 switch (MAPCPUVER(cpuver)) {
533 cpc_getcpuref(int cpuver)
535 if (validargs(cpuver, 0))
536 switch (MAPCPUVER(cpuver)) {
568 cpc_getnpic(int cpuver)
573 switch (cpuver) {