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 rx8mr961315pbc.5.1328095394255; Wed, 01 Feb 2012 03:23:14 -0800 (PST) Path: lh20ni248238pbb.0!nntp.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Wed, 01 Feb 2012 11:22:32 GMT Organization: Aioe.org NNTP Server Message-ID: <4f291473.18988613@nntp.aioe.org> 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> <4f28b73b$0$290$14726298@news.sunsite.dk> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Tue, 31 Jan 2012 22:53:32 -0500, "Jerome H. Fine" wrote: >> >>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. The reason that it's not ideal is that it doesn't handle CPU configurations that don't have memory management, e.g. LSI's and early unmapped PDP-11s. I haven't tested it on all the different MMU configurations either. However, these days I could probably use the clock/terminal timing loop to detect an emulator more generally (it used to fail in the past because nulls were output as spaces on SimH). Once I knew I was on an emulator I might be able to come up with some basic difference between SimH and E11. I'm not sure what else is available however. Early PDP-11s leave little which is undefined (mostly because there's very little in the way of CPU registers). One might look at the handling of double bus errors, stack underflow, trace traps and the like, but all of these tests have a higher risk of ending in a pile of goo with a halted CPU. (Aside: I was checking out some potential tests tonight and noticed that SimH seems to read Ctrl-H as octal 127. I'm not sure where the conversion takes place though). >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. The advantage of the register behavior test is that it tests SimH and E11 out-of-the-box, as delivered. Any test which is based on custom versions of SimH and E11 has exactly the disadvantage that it won't test the standard deliverables, which is what most people use. Thus, it makes sense to use my register test, or something equivalent when the custom instruction/device is not present. Ian