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.102.69 with SMTP id fm5mr40313wib.0.1359688298667; Thu, 31 Jan 2013 19:11:38 -0800 (PST) Path: bp2ni9392wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!news.snarked.org!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!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: Mon, 28 Jan 2013 19:06:05 +0100 Organization: Update Computer Club Message-ID: References: <50f2699f.912543@nntp.aioe.org> <50f3a15f.22274290@nntp.aioe.org> <50f5628f.137262066@nntp.aioe.org> <5103ed41.658822127@nntp.aioe.org> <51028a73.830126357@nntp.aioe.org> <51062c31.1068125772@nntp.aioe.org> NNTP-Posting-Host: 74.125.57.33 Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1359396365 18643 74.125.57.33 (28 Jan 2013 18:06:05 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Mon, 28 Jan 2013 18:06:05 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <51062c31.1068125772@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2013-01-28 08:47, paramucho wrote: > On Sat, 26 Jan 2013 00:39:04 +0100, Johnny Billquist > wrote: > >>> I should have pointed out that the simple emulator I'm sketching at >>> the moment would not attempt to translate between RT-11 file >>> structures and RSX file and record structures. That's a different >>> task, and substantially more complex. >> >> I'll strip the rest of this subject, and just make this comment: >> Aha. I see. Well, sure, that is certainly doable, and a lot easier. Not >> that your files will be very useful under RSX, but you already know that. > > Er, well, hmm, sure, yikes, I guess... I mean, what you'll get are files that is essentially stream files, from RSX point of view, as that is what RT-11 produce natively. And just about nothing will be able to access those files in RSX, unless you write your own programs, or possibly use RMSCNV to convert the files to another format. (I have not found RMSCNV to be very user friendly, so I would not recommend using it, but there isn't much of anything else around either...) For files other than text files, the conversion becomes even more complex, so I won't go into that... Except of course files which actually would be fixed length 512 record files in RSX, which would be correct from the start. However, it also becomes a question of what attributes to set for the files you create from your RT-11 program... Stream, or fixed 512 byte records? >>> As you say, FIP is a a special case which is specifically written to >>> handle both file and record systems in some manner. There may well be >>> hidden little trap doors in the emulated workspace to call RTEM.TSK to >>> handle FCS. I've already noted device vector @#250 providing some kind >>> of entry point. Testing with something like a system call trace is >>> required to answer this kind of question, although an intelligent >>> PDP-11 instruction dump of FIP would also provide a number of clues. >>> (and DUMP.SAV is an example of a program which could be used >>> meaningfully in RTX.TSK). >> >> Well, since FIP is an RT-11 program to start with, why not run DUMP.SAV >> directly, and look at it? > > I don't have an RTEM kit or FIP. I'd run tests on all of it if I did. > All I've managed to find on the web is a copy of JOAT.SAV. I have FIP. Let me know if/how you'd like a copy. I also happen to have RTEM... However, I do not have a complete correct kit, so it's all in the form of bits and pieces which don't always work correctly together. >>> Sorry, poor RSX terminology again, I meant the file headers, and I >>> confess I haven't looked at how you do that under RSX because I used >>> RMS to do it under VAX/VMS. It wouldn't be a high priority for a first >>> version of RTX.TSK. >> >> The file header is actually located in INDEXF.SYS. But the way to read >> that information is through QIO. That is what IO.RAT and IO.WAT does. >> (Read/Write attributes) >> The directory file as such only holds the file name, and file id. >> Nothing more. It's just a simple mapping from name to FID. > > So that's why I remember INDEXF.SYS. I did a lot of work on this for > the VMS network and AME many years ago and sort-of half remember it > from then. Yes, it's just that you normally never read INDEXF.SYS yourself. It's done through F11ACP, using special QIO functions. >>> Yes, the trace it's reporting a world that exists somewhere between >>> the RSX app and the RUST operating system. There is no RSX file >>> structure available in RUST. RSX programs run out of RT-11 directories >>> and use files in RSX directories. I fudge the record-level >>> descriptors, based on file types. But that's a whole different story. >> >> Aha. So IO.FNA in RUST pretty much ignores the DID field then, I assume? > > Yep. > > RT-11 directories are single-directory devices on RT-11 and RUST/XM. I > have sub-directory support on RUST/SJ and when I finally port that to > RUST/XM I'll probably use the DID for something meaningful. Right. Which is why I suspected, assumed, that RUST would ignore the DID. And by the way, the way of RSX means that arbitrary subdirectory structures works just fine. The things that cause problems with subdirectory trees in RSX is actually just wildcarding, which becomes complicated... >>> Then you have things like MACRO libraries which have mixed record >>> types. >>> >>> All that said, in the example above PIP.TSK happily sends the RT-11 >>> file RUST.COM to the terminal in a coherent way. But that's the >>> exception. >> >> Hmm. What do you return back for the IO.RAT function in RUST? > > That is the right question. I fudge it according to the file type > using the following table. I forget how the table works, or if it > really works all that well. I guess STM is experimental. Ah... Well, that is a fair shortcut, I guess. Do you then also mangle the contents to match when you actually access the files? Johnny