mirror of
https://github.com/simh/simh.git
synced 2026-01-15 08:02:40 +00:00
SCP: Fix source content address while issuing error message
This commit is contained in:
parent
926721d7c9
commit
40aa90f732
4
scp.c
4
scp.c
@ -10144,12 +10144,14 @@ for (gptr = gbuf, reason = SCPE_OK;
|
||||
else {
|
||||
highr = lowr;
|
||||
if (*tptr == '[') {
|
||||
const char *stptr = tptr;
|
||||
|
||||
if (lowr->depth <= 1)
|
||||
return sim_messagef (SCPE_ARG, "Invalid register depth specification: %s\n", tptr);
|
||||
tptr = get_range (NULL, tptr + 1, &low, &high,
|
||||
10, lowr->depth - 1, ']');
|
||||
if (tptr == NULL)
|
||||
return sim_messagef (SCPE_ARG, "Invalid register depth specification: %s\n", tptr);
|
||||
return sim_messagef (SCPE_ARG, "Invalid register depth specification: %s\n", stptr);
|
||||
}
|
||||
}
|
||||
if (*tptr && (*tptr++ != ','))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user