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.189.72 with SMTP id gg8mr7263168pbc.4.1327802661230; Sat, 28 Jan 2012 18:04:21 -0800 (PST) Path: lh20ni235683pbb.0!nntp.google.com!news2.google.com!news4.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!192.87.166.28.MISMATCH!tudelft.nl!txtfeed1.tudelft.nl!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!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: Sun, 29 Jan 2012 03:04:20 +0100 Organization: Update Computer Club Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f20c6ac$0$285$14726298@news.sunsite.dk> <4f216f80.6774499@nntp.aioe.org> <4f24a3c4$0$290$14726298@news.sunsite.dk> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1327802660 29498 178.83.31.172 (29 Jan 2012 02:04:20 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sun, 29 Jan 2012 02:04:20 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <4f24a3c4$0$290$14726298@news.sunsite.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-01-29 02:41, Jerome H. Fine wrote: > >paramucho wrote: >> >On Thu, 26 Jan 2012 15:12:29 +0100, Johnny Billquist wrote: >>>> What about RUST? Could that support a new instruction as well? >>>> >>> Already answered by Ian. And yes, in short, adding a new instruction in >>> any emulator is trivial. >>> There is no standard. We might try to make a suggestion. But that's all >>> we could do. >> We could do more if we wanted to. SimH is open source, so it is >> entirely possible to add private code. E11 supports an extension API >> which could be used to implement an API. >> >> The problem is, however, that this kind of thing isn't really worth it >> unless it's part of the standard configuration. Perhaps that could >> come later... > I was hoping to add code to RESORC.SAV in RT-11 > to support the ability to determine which, if any, emulator > was running. Johnny's preference to use an instruction > code which is presently NOT defined and in use seems > the best solution and is easily implemented for both SIMH > and Ersatz-11. Since RUST can support that as well, then > the opcode needs to be specified along with the values > to be used for the different emulators. Then as it becomes > reasonable, the extra code can be included. > > However, if no one can agree on a standard, it becomes > much less likely for this to eventually take place. It would > be helpful, therefore, if as many individuals could comment > on at least the concept, if not the actual details. I would think > that only the very few individuals who were going to actually > implement the concept need to be concerned with the details > like which instruction code is used, the table of values and > how the value is provided to the PDP-11 program. > > At the very least, is there anyone who objects or who thinks > this would be a bad idea? Ok. Here is a short suggestion for you, then: Opcode 7 is, as far as I can tell, unused. (Someone correct me if I'm wrong). I suggest we adopt this opcode as CEM (Call EMulator). It might use any registers for input and/or output, all defined by the actual function requested. When the instruction is executed on any machine not having this function, it will trap as an illegal instruction, same as always. If the machine actually understands CEM, it will start by looking at the function code in R0. If the function code is not understood, nothing will be done, and the carry will be set. If the function code is understood, the instruction will perform some action, and possibly return values in registers. The carry will be clear in this case. Other condition code flags can be used to indicate possible other errors or conditions. They will be defined for those specific functions at a later time. For now, the only defined function is: R0 = 0 - Get emulator system. If the emulator understands this instruction, it will place a code in R0 that reflects which emulator is being used. Currently defined values: 0 - Undefined 1 - SimH 2 - E11 3 - Rust There. Now all we need is for everyone to actually implement it. 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