[Simh] examine octal and ascii in SimH

Mark Pizzolato Mark at infocomm.com
Sat Feb 20 12:26:34 EST 2016


On Saturday, February 20, 2016 at 9:16 AM, Will Senn wrote:
> > On Feb 20, 2016, at 10:53 AM, Paul Koning <paulkoning at comcast.net>
> wrote:
> >
> >
> >> On Feb 20, 2016, at 11:20 AM, Will Senn <will.senn at gmail.com> wrote:
> >>
> >> In SimH:
> >>
> >> It is possible to display bytes in ASCII form:
> >> sim> e -c 1032-1034
> >> 1032:    AB
> >> 1034:    C<000>
> >>
> >> It is also possible to display words in octal:
> >> sim> e 1032-1034
> >> 1032:    041101
> >> 1034:    000103
> >>
> >> Is it possible to display bytes in octal, or bytes in both ASCII and Octal at
> the same time?
> >> 1032 101 A
> >> 1033 102 B
> >> 1034 103 C
> >> 1035 000 NUL
> >>
> >> or even just the octal bytes themselves?:
> >> 1032 101
> >> 1033 102
> >> 1034 103
> >> 1035 000
> >
> > For all these, the answer is: that's up to the individual CPU emulation.
> > Some do, some do not.  The switches used to request this are fairly
> > consistent.  You might try "e -o 1234" for example, and that may work.  Or
> > not...
> >
> > If you want it but it isn't there, you can of course add it.
> 
> Hmm. It does words not bytes in pdp-11. As for modding the sim - I'm a ways
> from being comfortable doing that just yet :)

What Paul was saying is that how the examine command is displayed is up to details implemented in individual simulators, but that there is some attempt to have switches which mean the same thing from one simulator to another.  See:
    sim> HELP EXAMINE SWITCHES
Beyond the standard switches, the PDP11 simulator interprets the -B switch to mean display bytes since the machine, although byte addressable, is a word oriented machine.  See: doc/pdp11_doc.doc for more details as well.

- Mark


More information about the Simh mailing list