From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 3717dac89a,32247abf28da27d4 X-Google-Attributes: gid3717dac89a,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Date: Fri, 30 Apr 2010 07:44:47 -0400 From: "Jerome H. Fine" Organization: Just Sufficient User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping References: <8265dgFs33U3@mid.individual.net> <4dff54d9-dfc7-4d90-9307-995e5d96e53f@y36g2000yqm.googlegroups.com> <4bd96b18$0$281$14726298@news.sunsite.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4bdac2fa$0$279$14726298@news.sunsite.dk> NNTP-Posting-Host: 206.248.171.217 X-Trace: news.sunsite.dk DXC=R;4JI=m959kHZJdbckJV8bAJTIn3eOPKWXldedQa4_jgFW[9oBnCBgiG@H8ed<Johnny Billquist wrote: > Reading manuals is always a good thing... YES!! Better more often is to check the actual code. By the way, does anyone know of a RSTS/E system which supports running RT-11 programs that would be available to me to test a few things? I am requesting the availability of software, NOT hardware. I have plenty of hardware available, but no RSTS/E disk images that I can run. I am looking for something that is easy out of the box since I want to test just a few details, in particular how the RT-11 .CHAIN EMT request is handled by the RSTS/E emulation for RT-11. If anyone has a copy of the actual source code which performs that RT-11 emulation under RSTS/E, that would probably be best. Specifically, while the RT-11 .CHAIN EMT request uses ONLY the FOUR words at user memory addresses octal 500 to 506 (that is under RT-11), it looks like RSTS/E also allows the use of the words in the common area (address at octal location 54) to specify the file to be CHAINed to. The PPN is at the first location and is the most important and some documentation suggests that when that first word is non-zero, it is used as the PPN to open the file specified by the FOUR words at 500 to 506. Can anyone confirm of deny this information? Can anyone make available or suggest where to find a RSTS/E disk image which I can use for testing the RT-11 .Chain EMT request? >>>> I remember using FORTRAN IV with VIRTUAL around 1985. The >>>> application used >>>> around 1 MB of arrays in extended memory via the MMU. Somewhere in >>>> the DECUS >>>> stuff, there is alternative code which can use on-disk data instead >>>> which is a reasonable fit >>>> when the memory is used as a small disk drive. Under RT-11, the >>>> VM: device handler >>>> worked well to reduce and actual disk drive's relatively slow >>>> transfer rates. >>> >>> I find that rather unlikely. The array indexing is still just done >>> using a 16-bit integer, which limits the size of a virtual array to >>> 65536 elements. Even with INTEGER*4, that would only become 256K. 1M >>> is just not possible to address with virtual arrays in PDP-11 >>> FORTRAN. Neither using FIV or F77. >> >> Reading through the F77 manual right now, it is a little unclear if >> multidimensional arrays are allowed to be larger. >> It might be that you can create structures the size of 1M or more >> with multidimensional arrays... >> I don't have the FIV manual nearby, so I can't check if it have >> better information, or other limits. > > Checked now (for F77). You cannot, in F77 for RSX and RSTS/E atleast, > have an array with more than 65536 elements total. No matter in how > many dimensions you cut it. So no, you cannot create a data structure > that is 1M in size under F77 for RSX or RSTS/E. I know that the F77 > for RT-11 is a separate product, so maybe it behaves differently? You might have missed the "s" at the end of the words "1 MB of arrays". There was more than one array. This was an FFT application and there was also a co-processor which did the actual calculations. So having special hardware is not new to the PDP-11. Having special features in E11 could be compared to having special hardware on a real DEC PDP-11. Making use of these special features available under E11 would not be possible for those individuals who make the decision to always use real DEC hardware. As for the maximum index allowed in both FORTRAN IV and F77, I seem to remember that under RT-11 implementations, a 16 bit index (INTEGER * 2) was not allowed to have the high order bit on, i.e. FORTRAN treated them as signed integers rather than unsigned. That is not to say that an INTEGER * 4 variable could not be used in F77 which would then allow a value somewhat over 2,000,000,000 and still be positive, however, I don't think that F77 allowed the number of elements of an array to exceed a total of 32767 whether multi-dimensional or not. I don't have the manual handy and, in any case, for something that pushes the limit of the language, I would normally look at the generated code to check for myself. As for the question about values which are still available for instructions, E11 specifically has hooks which allow a user to write a DLL that handles that opcode. In fact, any opcode can be handled by a DLL, already defined or not. The DLL would take priority and execute the instruction as per the DLL. One point is probably helpful to know. Setting the condition code bits after an instruction is emulated probably takes more of the effort than producing the correct result for the instruction, especially since the X86 instructions set rarely sets up the corresponding condition codes. But if the instruction does not need the condition code bits set, then the emulation is rather easier. In addition, the suggestion of using an IOPAGE register to trigger an operation is actually very astute. There are DLL hooks which are specifically targeted to handle the use of IOPAGE registers, EMEM.DLL being just one example which can be downloaded from dbit to have a look at the code. It is quite possible for the DLL to change any value in to PDP-11 registers or memory upon a reference to the IOPAGE register. Any complicated calculation could also be done. While it would not be my first priority (unless there was a very good reason to make it my first priority), an E11 emulation of that co-processor that I mentioned which calculates FFT values from an array in virtual (extended) memory would be very possible. Jerome Fine