SCP: Allow range/count specifier to special last value reference ($) in EXAMINE

As discussed in #343
This commit is contained in:
Mark Pizzolato 2016-09-21 13:22:49 -07:00
parent 3e4b0af18f
commit 0b0f227057

2
scp.c
View file

@ -7537,6 +7537,7 @@ else {
*lo = (t_addr) strtotv (cptr, &tptr, rdx); *lo = (t_addr) strtotv (cptr, &tptr, rdx);
if (cptr == tptr) /* error? */ if (cptr == tptr) /* error? */
return NULL; return NULL;
}
if ((*tptr == '-') || (*tptr == ':')) { /* range? */ if ((*tptr == '-') || (*tptr == ':')) { /* range? */
cptr = tptr + 1; cptr = tptr + 1;
if (dptr && sim_vm_parse_addr) /* get high */ if (dptr && sim_vm_parse_addr) /* get high */
@ -7556,7 +7557,6 @@ else {
} }
else *hi = *lo; else *hi = *lo;
} }
}
if (term && (*tptr++ != term)) if (term && (*tptr++ != term))
return NULL; return NULL;
return tptr; return tptr;