1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-30 05:35:22 +00:00

PDP-11/VAX update: SHOW IOSPACE

Teach SHOW IOSPACE to output vector and BR addresses as well as CSR addresses.
This commit is contained in:
Timothe Litt
2013-07-05 00:23:33 -04:00
parent 1bfc2bc57e
commit 4497bba48f
2 changed files with 91 additions and 3 deletions

6
scp.c
View File

@@ -6098,6 +6098,8 @@ return val;
format = leading zeroes format
Outputs:
status = error status
if stream is NULL, returns length of output that would
have been generated.
*/
t_stat fprint_val (FILE *stream, t_value val, uint32 radix,
@@ -6134,6 +6136,8 @@ switch (format) {
dbuf[MAX_WIDTH - (digit * 4)] = ',';
d = d - commas;
if (width > MAX_WIDTH) {
if (!stream)
return width;
fprintf (stream, "%*s", -((int)width), dbuf);
return SCPE_OK;
}
@@ -6154,6 +6158,8 @@ switch (format) {
d = MAX_WIDTH - (ndigits + commas);
break;
}
if (!stream)
return strlen(dbuf+d);
if (fputs (&dbuf[d], stream) == EOF)
return SCPE_IOERR;
return SCPE_OK;