From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: ffc31,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.129.169 with SMTP id nx9mr13332590pbb.8.1326886109403; Wed, 18 Jan 2012 03:28:29 -0800 (PST) Path: lh20ni195780pbb.0!nntp.google.com!news2.google.com!goblin3!goblin2!goblin.stu.neva.ru!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Wed, 18 Jan 2012 12:28:28 +0100 Organization: Update Computer Club Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1326886108 30532 178.83.31.172 (18 Jan 2012 11:28:28 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Wed, 18 Jan 2012 11:28:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <4f175c07.15409279@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-01-18 07:03, paramucho wrote: > On Sun, 15 Jan 2012 09:37:21 -0500, "Jerome H. Fine" > wrote: > >> I have an interesting hardware question. >> >> I have been looking at the results for the program RESORC.SAV in RT-11 >> with respect the MFPT instruction. When the J11 chip is used, the value >> is 5 and the Maintenance Register at 177750 seems to determine what the >> rest of the actual hardware supports. >> >> I thought it would also be helpful for the user to know if an emulator >> is being >> used, either software or hardware, or if perhaps some other 3rd party >> hardware >> CPU. I would probably target the various 3rd party boards as far as >> hardware >> is concerned (such as QED and Mentec). For software emulators, I would >> suggest that only the high end PDP-11 processors be supported (the DEC >> CPUs which support the MFPT instruction) in order to keep things simple, >> at least initially. > > > 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. Totally agree. > In any case, an emulator is not equivalent to a processor type since > SimH and E11 support a range of PDP-11 CPUs. Also right. And each CPU behaves differently, and the emulator needs to follow that, or it is broken. > 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. Right. I just posted an outline of how RSX-11M+ detects system type. It's a combination of available information as well as CPU behavior in very weird and possibly not documented ways. > The reason I need detection is because emulators lack standard > terminal output behavior which I use during startup to detect the > clock rate of a PDP-11 (I count the number of null characters output > to the console terminal per clock tick and use a table to determine > both the clock rate and the terminal rate). The test doesn't work on > E11, SIMH or V11. Timing in general is not a good way to detect systems, but I'm sure you know that... :-) You could make the code work (sortof) on emulators by removing the dependency on the serial port. Just make a spinning loop with increments and at the next clock interrupt check how far you got. However, as emulators don't have a fixed speed, your speed detection will be rather odd on those machines anyway. > 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. Hmm. How do you use that API? Is it to tell that the emulator isn't doing anything extremely important, and can run with less CPU right now and be happy, or is this just an odd way of doing a WAIT? Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol