I guess that finding the difference on the F11 and J11 systemsOn 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.
While I agree it is not the ideal test, theAlso, 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.
Thank you very much for sharing the codeCan 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