From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: d180ab3bd8,5e74e0b23842db90 X-Google-Attributes: gidd180ab3bd8,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.74.79 with SMTP id r15mr9909685wiv.4.1356839783501; Sat, 29 Dec 2012 19:56:23 -0800 (PST) Path: l12ni269307wiv.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!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: Access to RSTS/E IOPAGE Registers Date: Thu, 27 Dec 2012 22:37:10 +0100 Organization: Update Computer Club Message-ID: References: <50dafa16$0$291$14726298@news.sunsite.dk> NNTP-Posting-Host: host-78-78-148-79.mobileonline.telia.com Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1356644184 14628 78.78.148.79 (27 Dec 2012 21:36:24 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Thu, 27 Dec 2012 21:36:24 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-12-27 22:25, glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist wrote: > > (snip, I wrote) >>> IBM VM/CP uses the Diagnose instruction defined to be machine dependent. >>> The effects of using Diagnose on actual hardware are undefined, possibly >>> including hardware damage. (More likely, errors that would not appear >>> in normal operation. You might modify microcode, for example.) > >>> Diagnose, so machine dependent that it doesn't even have an assembler >>> mnemonic, is a privileged instruction. > > (snip) >>> I don't know how that translates to the PDP-11, but maybe it makes >>> some sense there, too. > >> Just to point out, there exists both semi-undocumented diagnostics >> instructions that might do very different things on different PDP-11s. >> Some if them do have mnemonics, but none that MACRO-11 recognizes (MED >> for example), > > There is a macro, DIAG, to generate the appropriate form of Diagnose, > for CP calls, so, even though it isn't known to assemblers as an > instruction, it can still be used like one. > > But the important thing is that the opcode is reserved. > > There is one other S/360 reserved opcode, X'00' is not implemented as > an instruction, and is supposed to stay that way. On the PDP-11, the diagnostics opcode(s) are more undefined. Some processors don't have any, others have several. And while they all fall in the same range, I believe, they are just reserved instruction traps on other processors. And might do totally different things on the ones where they do exist. So it's extremely hard to use them in any way until you've really figured out what processor you are... >> and some processors (well, only the 11/70 as far as I >> know) do have a special register holding the serial number. >> And newer processors have a type register. > > How many bits for serial number? And are they always decimal numbers? > (or octal numbers?) IBM warns that they could be hexadecimal. > (Presumably it matches the number stamped on the outside of the box.) Meh. It's just a 16-bit number (if I remember right). Even more silly is that it's taken from a set of dip switches on one CPU board, so you can just change it to anything on your machine if you want to. The type register have a bunch of unused values, as well as most machines using the J11 having a second register telling what specific model you have, where you also have a bunch of undefined bits you could play with. So it would probably make sense to stick something in where software in general wouldn't care for an emulated machine, so that code that really wants to know could figure it out, even though code not aware would believe it's just a known systems that the emulator implements without giving it away. Johnny