From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.227.40 with SMTP id rx8mr87539pbc.5.1328068434680; Tue, 31 Jan 2012 19:53:54 -0800 (PST) Path: lh20ni247124pbb.0!nntp.google.com!news2.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Tue, 31 Jan 2012 22:53:32 -0500 From: "Jerome H. Fine" Organization: Just Sufficient User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f20c6e3$0$284$14726298@news.sunsite.dk> <4f215614.266356@nntp.aioe.org> <4f24a237$0$295$14726298@news.sunsite.dk> <4f2537ed.51306295@nntp.aioe.org> In-Reply-To: <4f2537ed.51306295@nntp.aioe.org> Message-ID: <4f28b73b$0$290$14726298@news.sunsite.dk> NNTP-Posting-Host: 206.248.171.217 X-Trace: news.sunsite.dk DXC=n9<`VNikdkn`=De8eDBgc`YSB=nbEKnkkDQOmiC[g]khPPfk^U[HX;oN1>V8bAJTIn3eOPKWXldedQa4_jgFW[9oEFn_;5nRQhcd<paramucho wrote: >On Sat, 28 Jan 2012 20:34:32 -0500, "Jerome H. Fine" wrote: > >>>>paramucho wrote: >>> >>> >>>>On Wed, 25 Jan 2012 22:22:05 -0500, "Jerome H. Fine" wrote: >>> >>>>I don't think that the about properties (or at least how >>>>the PDP-11 instructions react to the above code) has >>>>been documented under Ersatz-11. I would imagine >>>>that the source code could be used under SIMH to >>>>figure out why the above code is needed. >>>> >>>>I am VERY curious!!!!!!!!! How did you figure out the >>>>code for Ersatz-11? Did John Wilson help? Does the >>>>above code still work with V6.0 of E11? >>>> >>>I didn't use the source code for SimH. It's often easier to use a >>>debugger to "read" the system behavior than it is to hunt through >>>sources. I just experimented until I found a suitable test. I also >>>tested on real F11 and J11 systems. >>> >>>The trick was to find some "undefined" behavior that didn't need >>>correction. The code above gets different results from an F11 and a >>>J11 as well as from SimH and E11. The test is far from ideal, but it >>>works well enough for my purposes. >>> >>>The test works with V6.0 of E11. >>> >>After you "found" the way that SIMH can be tested for, >>were you able to verify that from the source code. To >>say the least, the activity that you found is VERY >>unexpected!!!!!!!!! >> >The source code isn't really relevant. Just the behavior. > > I guess that finding the difference on the F11 and J11 systems was the key. >>Also, what led you to attempt to use the hardware >>in that manner. It does not seem very obvious as >>to why the hardware registers (software in the case >>of a software emulator as opposed to a real DEC >>CPU) would behave in that fashion. >> >I spent the first year or so of my PDP-11 career working almost >entirely at the switch register of an 11/20. You learn to read the >binary state of the machine as "source code". I remember once during a >switch register session looking at the clock and noticing it was >twelve midnight. The next time I looked it was eight in the morning. I >still enjoy reading binary and making sense of it. I guess others here >have had similar experiences. > >Selecting the MMU registers was initially process of elimination. >Following that, I knew that E11 doesn't actually attempt to fully >implement MMU register SR1. I started playing around on a J11 and F11 >to see what happened when I jammed those registers in an illogical >manner. After a little experimentation I found a test which came out >differently on the F11 to the J11. Then I played around with E11 and >SimH. It's not that hard, and it's not the ideal test either. > > While I agree it is not the ideal test, the fact that it works and is actually quite simple is what is important. >>Can anyone else verify what Ian found? >> >> > >RUST/SJ runs the test everytime it boots. It currently issues a >message when its booted under SimH or E11. Actually, the message is a >bit annoying and needs to be muted except in verbose boot mode. > >I also have a little ENV.SAV utility which runs the test. I'll try to >find the time to put it on my upload site (where I still have to find >the time to package and upload the RUST driver sources). > >Ian > Thank you very much for sharing the code for SIMH and E11. While I agree with Johnny that using an instruction code which is presently unused would be a clean solution, the code which you show is certainly a good substitute. Jerome Fine --------------010001060400080002010404 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit >paramucho wrote:
On Sat, 28 Jan 2012 20:34:32 -0500, "Jerome H. Fine" wrote:
>paramucho wrote:
      
>On Wed, 25 Jan 2012 22:22:05 -0500, "Jerome H. Fine" wrote:
I don't think that the about properties (or at least how
the PDP-11 instructions react to the above code) has
been documented under Ersatz-11.  I would imagine
that the source code could be used under SIMH to
figure out why the above code is needed.

I am VERY curious!!!!!!!!!  How did you figure out the
code for Ersatz-11?  Did John Wilson help?  Does the
above code still work with V6.0 of E11?
I didn't use the source code for SimH. It's often easier to use a
debugger to "read" the system behavior than it is to hunt through
sources. I just experimented until I found a suitable test. I also
tested on real F11 and J11 systems.

The trick was to find some "undefined" behavior that didn't need
correction. The code above gets different results from an F11 and a
J11 as well as from SimH and E11. The test is far from ideal, but it
works well enough for my purposes.

The test works with V6.0 of E11.
After you "found" the way that SIMH can be tested for,
were you able to verify that from the source code.  To
say the least, the activity that you found is VERY
unexpected!!!!!!!!!
The source code isn't really relevant. Just the behavior.
  
I guess that finding the difference on the F11 and J11 systems
was the key.
Also, what led you to attempt to use the hardware
in that manner.  It does not seem very obvious as
to why the hardware registers (software in the case
of a software emulator as opposed to a real DEC
CPU) would behave in that fashion.
I spent the first year or so of my PDP-11 career working almost
entirely at the switch register of an 11/20. You learn to read the
binary state of the machine as "source code". I remember once during a
switch register session looking at the clock and noticing it was
twelve midnight. The next time I looked it was eight in the morning. I
still enjoy reading binary and making sense of it. I guess others here
have had similar experiences.

Selecting the MMU registers was initially process of elimination.
Following that, I knew that E11 doesn't actually attempt to fully
implement MMU register SR1. I started playing around on a J11 and F11
to see what happened when I jammed those registers in an illogical
manner. After a little experimentation I found a test which came out
differently on the F11 to the J11. Then I played around with E11 and
SimH. It's not that hard, and it's not the ideal test either.
  
While I agree it is not the ideal test, the
fact that it works and is actually quite
simple is what is important.
Can anyone else verify what Ian found?
    

RUST/SJ runs the test everytime it boots. It currently issues a
message when its booted under SimH or E11. Actually, the message is a
bit annoying and needs to be muted except in verbose boot mode.

I also have a little ENV.SAV utility which runs the test. I'll try to
find the time to put it on my upload site (where I still have to find
the time to package and upload the RUST driver sources).

Ian
Thank you very much for sharing the code
for SIMH and E11.  While I agree with
Johnny that using an instruction code which
is presently unused would be a clean solution,
the code which you show is certainly a good
substitute.

Jerome Fine
--------------010001060400080002010404--