From 9cb901866592d2abbc4fe76c79477f2df0ce0057 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 3 Apr 2015 04:42:35 -0700 Subject: [PATCH] SCP: Extend SHOW processing for default (unspecified) device to also handle global show modifiers, thus making SHOW RADIX display the radix for the default device (usually CPU). --- scp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scp.c b/scp.c index 9b39d413..35914f2f 100644 --- a/scp.c +++ b/scp.c @@ -4036,8 +4036,12 @@ else { } } } - if (!dptr) - return SCPE_NXDEV; /* no match */ + if (!dptr) { + if ((shptr = find_shtab (show_dev_tab, gbuf))) /* global match? */ + return shptr->action (ofile, sim_dflt_dev, uptr, shptr->arg, cptr); + else + return SCPE_NXDEV; /* no match */ + } } if (*cptr == 0) { /* now eol? */