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.75.170 with SMTP id d10mr1329608pbw.6.1327585573947; Thu, 26 Jan 2012 05:46:13 -0800 (PST) Path: lh20ni226247pbb.0!nntp.google.com!news2.google.com!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: Thu, 26 Jan 2012 13:46:06 GMT Organization: Aioe.org NNTP Server Message-ID: <4f215614.266356@nntp.aioe.org> References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f20c6e3$0$284$14726298@news.sunsite.dk> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: yPe0Vz9rK3epnEf2vEo6yg.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 Wed, 25 Jan 2012 22:22:05 -0500, "Jerome H. Fine" wrote: > >>Modifying the MFPT instruction is not the right way to go. CPU >>software detection is a delicate business and that process should not >>be interfered with directly. >> >> >As I already answered with Johnny, I have my own >doubts for using MFPT. I do like his suggestion of a >currently illegal instruction code (a new hardware >instruction) which an actual DEC J11 chip would >need to trap. > >>In any case, an emulator is not equivalent to a processor type since >>SimH and E11 support a range of PDP-11 CPUs. >> >> >And having a new instruction would be very easy >Ersatz-11. I suspect that SIMH would also be >very easy. What about RUST? Adding a new instruction is usually trivial. >>Some CPU software detection is handled by examining CPU behavior. The >>same process can be used to detect an emulator and to determine which >>emulator is being used. >> >> >It would even be possible to tell the user details of >the emulator environment. There would need to be >some sort of standard. Any suggestions? I use the API to get the host command, create host directories, define host logical names, idle and V11 detection. I also use the API to implement a cheap network connection. I have a list of other general functions the API could handle, but it's no use just implementing a general API for a single emulator and I doubt we'll see a generic standard emerge... >>In fact, the V11 emulator has a little API which is used to pass >>information between the emulator and the system. It's used to >>relinquish control so that the emulator doesn't hog all the CPU time >>and for various other functions. It would be great if there was a >>common API for PDP-11 emulators for this kind of thing, but I'm not >>sure the motivation is there for the effort involved. >> >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. Ian