Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: paramucho@hotmail.com (paramucho)
Subject: Re: Access to RSTS/E IOPAGE Registers
Date: Mon, 28 Jan 2013 07:47:18 GMT	[thread overview]
Message-ID: <51062c31.1068125772@nntp.aioe.org> (raw)
In-Reply-To: kdv52o$viq$1@Iltempo.Update.UU.SE

On Sat, 26 Jan 2013 00:39:04 +0100, Johnny Billquist <bqt@softjar.se>
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 was looking for FCS source, and ended up looking at FCP source code,
>> which then rewired my tiny brain.
>
>LB:[50,10] should be where you find FCS sources, unless my brain fails me.

Thanks--at present I don't have an RSX volume with that directory
present, but there's a whole lot more zip files to check out.


>> 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'm never quite sure whether RSX supports stream files. If it did then
>> it might be possible to share text files in that manner.
>
>The answer is somewhat complex. Let's just say that it don't.
>To be a bit more specific, FCS don't, but RMS do. But almost no tools or 
>system utilities use RMS to start with, so it's a support used extremely 
>little.

I thought it was a bit like that, but I was looking through some
library modules for DECUS-C a few days ago and they talked about RSX
stream file support and some patch which was required for VMS. I
didn't go into the detail at the time.

<snip>
>> 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.


>> This code is running under an RSX emulator running under RUST/XM, so I
>> translate some info to be more meaningful in that environment.
>
>Ok. Just to make it clear. The DID should be better represented as 
>(4,4,0) here, or possibly (if you want to try to be fancy, but 
>potentially incorrect) "000000.DIR".

<snip>
>> 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.

<snip>

>> 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.

...=0
ft...$=0
meta	<entry c d e f g><.rad50 "c"><.byte ft'd'.,ft'e'$><.word f,g>

r$sftt::;type	typ	atr	rsize	maxrec
entry	tmp	var	ccr	512.	0
;
entry	doc	var	ccr	512.	0
entry	cmd	var	ccr	512.	0
entry	mac	var	ccr	512.	0
entry	for	var	ccr	512.	0
entry	ftn	var	ccr	512.	0
entry	pas	var	ccr	512.	0
entry	edt	var	ccr	512.	0
entry	odl	var	ccr	512.	0
entry	rno	var	ccr	512.	0
entry	obj	var	...	128.	0
entry	stb	var	...	128.	512.
entry	sml	fix	...	8.	512.
entry	mlb	fix	...	512.	512.
entry	olb	fix	...	8.	512.
entry	msg	fix	ccr	64.	64.
entry	jou	var	ccr	512.	0
entry	stm	stm	ccr	512.	0		; debugging
;V4
;
entry	<  >	fix	...	512.	512.
;
;entry	tsk	fix	...	512.	512.
;entry	exe	fix	...	512.	512.
;entry	sys	fix	...	512.	512.
;entry	mlb	fix	...	512.	512.

For RTX.TSK I'd do something similar for output file types, but make
it possible to do runtime definitions.

In fact the RT-11 directory structure is extensible--you can specify a
fixed number of extra words per directory entry when a volume is
initialized. I already use that to store an RSX/VMS-compatible UIC and
protection mask, along with extended date and time information. So it
wouldn't be hard to add a few more words to track record structures,
but it hasn't really proven necessary.

The RUST/XM RSX feature got very little use. I wrote it because I
enjoyed the task, and it's been useful for me for various testing
issues. It still has some problems with libraries and some more
complex I/O, but the easy stuff works.

Ian


  reply	other threads:[~2013-01-28  7:47 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-26 13:22 Access to RSTS/E IOPAGE Registers Jerome H. Fine
2012-12-26 15:35 ` Bill Gunshannon
2012-12-27  0:10   ` glen herrmannsfeldt
2012-12-27 21:13     ` Johnny Billquist
2012-12-27 21:25       ` glen herrmannsfeldt
2012-12-27 21:37         ` Johnny Billquist
2012-12-27 13:38   ` Jerome H. Fine
2012-12-27 21:16 ` Johnny Billquist
2012-12-28  6:32   ` paramucho
2012-12-28 15:01     ` Johnny Billquist
2012-12-30  2:04       ` paramucho
2012-12-30  3:25         ` Johnny Billquist
2012-12-30 18:25 ` jgharston
2012-12-30 21:44   ` Johnny Billquist
2012-12-31  0:34   ` Jerome H. Fine
2012-12-31  0:52     ` Johnny Billquist
2012-12-31 16:04     ` paramucho
2012-12-31 16:23       ` Bob Eager
2012-12-31 16:33         ` Johnny Billquist
2013-01-01  3:28         ` paramucho
2012-12-31 16:30       ` Johnny Billquist
2013-01-01  4:55         ` paramucho
2013-01-01 18:37           ` Johnny Billquist
2013-01-13  8:01             ` paramucho
2013-01-13 14:13               ` Johnny Billquist
2013-01-14  6:30                 ` paramucho
2013-01-14 11:50                   ` Johnny Billquist
2013-01-15 14:20                     ` paramucho
2013-01-15 21:10                       ` Johnny Billquist
2013-01-16  3:25                         ` Jerome H. Fine
2013-01-16  4:39                           ` Johnny Billquist
2013-01-16 13:43                         ` paramucho
2013-01-16 18:59                           ` Johnny Billquist
2013-01-17 11:56                             ` paramucho
2013-01-22  9:53                       ` Hartmut Brandt
2013-01-22 13:52                         ` Johnny Billquist
2013-01-23 14:11                           ` paramucho
2013-01-23 19:53                             ` Johnny Billquist
2013-01-25 13:43                               ` paramucho
2013-01-25 23:39                                 ` Johnny Billquist
2013-01-28  7:47                                   ` paramucho [this message]
2013-01-28 18:06                                     ` Johnny Billquist
2013-01-30 12:16                                       ` paramucho
2013-01-30 18:50                                         ` Johnny Billquist
2013-02-02 12:51                                           ` paramucho
2013-02-02 16:15                                             ` Johnny Billquist
2013-02-03 16:16                                               ` Jerome H. Fine
2013-02-04 12:03                                               ` paramucho
2013-02-04 16:58                                                 ` Johnny Billquist
2013-02-15 12:34                                                   ` paramucho
2013-02-15 13:08                                                     ` Johnny Billquist
2013-02-15 15:15                                                       ` paramucho
2013-02-15 16:04                                                         ` Johnny Billquist
2013-02-17 13:02                                                           ` paramucho
2013-02-17 13:43                                                             ` Johnny Billquist
2013-02-19 14:09                                                               ` paramucho
2013-02-20 11:18                                                                 ` paramucho
2013-02-21  0:23                                                                   ` Johnny Billquist
2013-02-21  0:22                                                                 ` Johnny Billquist
2013-02-24 14:10                                                                   ` paramucho
2013-02-24 15:00                                                                     ` Johnny Billquist
2013-03-06 15:33                                                                       ` paramucho
2013-03-06 23:51                                                                         ` Johnny Billquist
2013-03-20 10:15                                                                           ` paramucho
2013-03-20 13:01                                                                             ` Johnny Billquist
2013-03-20 21:42                                                                               ` Johnny Billquist
2013-04-14 16:48                                                                                 ` paramucho
2013-04-14 18:28                                                                                   ` Johnny Billquist
2013-04-15 10:30                                                                                     ` Johnny Billquist
2013-03-20 17:33                                                                             ` Jerome H. Fine
2013-03-25 15:55                                                                             ` paramucho
2013-03-06 15:33                                                                       ` paramucho
2013-02-24 14:12                                                                   ` paramucho
2013-01-23 14:10                         ` paramucho
2013-01-14  9:13                 ` Hartmut Brandt
2013-01-14  8:08 ` John Santos
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox