5 static char keys
[NREGS
][GNLEN
];
8 /* map register names to [0..NREGS * 2) */
12 if (n_cp
|| !s
[1] || !s
[2])
13 return REG(s
[0], s
[1]);
14 for (i
= 0; i
< nkeys
; i
++)
15 if (keys
[i
][0] == s
[0] && !strcmp(keys
[i
], s
))
17 strcpy(keys
[nkeys
++], s
);
18 return NREGS
+ nkeys
- 1;
21 /* returns a static buffer */
22 char *map_name(int id
)
24 static char map_buf
[NMLEN
];
26 return keys
[id
- NREGS
];
27 map_buf
[0] = (id
>> 8) & 0xff;
28 map_buf
[1] = id
& 0xff;