From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0a0,39746a03e4391332 X-Google-Attributes: gid10d0a0,public X-Google-Thread: 1164f8,39746a03e4391332 X-Google-Attributes: gid1164f8,public X-Google-Thread: fd705,39746a03e4391332 X-Google-Attributes: gidfd705,public X-Google-Thread: fdd80,39746a03e4391332 X-Google-Attributes: gidfdd80,public X-Google-Thread: ffc31,39746a03e4391332 X-Google-Attributes: gidffc31,public From: lasner@calzone.unc.edu (Charles Lasner) Subject: Re: Storage Computer looking for PDP-8/11 I/O Edge Connector Blocks Date: 1996/07/24 Message-ID: <4t5jlr$sr6@calzone.unc.edu> X-Deja-AN: 169923733 references: <837637154snz@p850ug1.demon.co.uk> <4slibt$c84@calzone.unc.edu> <837816814snz@p850ug1.demon.co.uk> organization: SunSITE UNC-CH newsgroups: alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11,alt.sys.pdp8,alt.folklore.computers In article <837816814snz@p850ug1.demon.co.uk>, Tony Duell wrote: >In article <4slibt$c84@calzone.unc.edu> > lasner@calzone.unc.edu "Charles Lasner" writes: > >> >AFAIK you _can_ modify standalone BRU (The RSX install-from-tape program), >> >particularly if you've got a source license _but only after you've installed >> >the OS_. It's a chicken and egg problem - you need BRU working to install >> >RSX, but you need RSX installed to modify standalone BRU. >> >> I assume you mean that you not only need RSX already running on a >> DEC-sold disk system, but also a DEC-sold tape system is what BRU is used >> from. > >AFAIK, if you have a running RSX system (on whatever sort of disk) you can use >it to modify BRU to read/write whatever sort of devices you like. You may need >a source license to get the BRU sources, though. In general, third-party devices tend to be supported by migrating away from all-DEC machines that the devices are attached to as "guests." The system gets reconfigured to require the new device and not the original DEC device, etc. If some form of interface-independent media is available, then in theory you can port an image of the system on it to be accessed from some other code perhaps for another device that is merely media-compatible, but not code compatible, etc. In the case of the PDP-8, rarely was this magtape, but often it could be paper-tape if required. In many cases, it wasn't an issue because the user already had some other low-performance but adequate device such as DECtape to get the system configuration established. A typical case would be sending the binary of an OS/8 driver on paper tape along with a disk drive and controller/interface. You read in the driver, which even on a teletype only takes a few seconds (drivers are only 128 or 256 12-bit words tops in the world of OS/8, so a device successfully achieving a working handler can have its driver punched out on a tiny piece of tape, etc.), and you now have the ability to configure a disk system from the running tape system, etc. After the system is transferred, you configure the disk system to support non-system tape handlers. Thus, you now have the ability to run from a much faster device and also access your original data from the original lower-powered configuration. Admittedly, had these configurations been configured to less than functional storage-based systems, it would be a whole lot harder, but fortunately, the systems with at least the minimum complement of storage hardware was the norm at the time, etc. > > >[PDP8 tape info deleted] > >> >Can you install OS/8 on a non-DEC disk without having it installed on >> >another system first? If so, how? >> >> Yes, using paper-tape. The early systems depended on a lot of tape > >Yes, but the paper tape reader had better be compatable with the DEC one, or >the BUILD program won't load. I could link up a Trend HSR500P to a DR8E, and >no way would OS/8 install from it. The initial load device had better >be something that the loader/installation program knows about. In the PDP-8 world, the trivial device 01 interface was generally mimicked. You are technically correct, but businesses generally decided to do it compatibly. In any case, a driver could be written to handle your version if you need it. That of course presupposes there is an otherwise running system! However, we have had systems running based merely on serial interfaces to a serving machine, so a pre-running system isn't necessarily all that hard to achieve. (Again, we are not talking about high-performance, merely the ability to get the device up. Presumably you want to use the device as part of improving the performance of the entire system, etc. > >And how do you _write_ the custom handler for the system disk? You could >use the front panel or a standalone assembler, but by that argument, you could >modify RSX11 BRU in a similar way. Writing the handler in the OS/8 world involves several steps: 1) The device ought to be attached to an already well-configured system. Thus, it's desirable to already have another disk, a decent terminal, running development software, and hopefully an LPT:. I was fortunate that early on I was granted a "real" development system, etc. In some cases, I had to walk the binary to the target system that had much more minimal hardware after developing it on the "big" machine. A good example was developing the P?S/8 system for the TD8E with MR8E-C ROM. This was accomplished on a machine which had a 10 MB hard disk (not bad for the middle '70's!) as well as TC08/TU56 DECtape. The attempt was written out on the DECtape and the tape walked to another site that had the most minimal configuration: 8K, TTY:, and a TD8E and a TU56H (one drive). The binary had to get read in on the spot using the MR8E-C ROM, and in-memory patching done to debug the code until either it worked or I had to give up and head back for the development machine. If I had it to do over again, I would have requested that the TD8E be transferred to the development machine while temporarily disabling the TC08. In any case, after a few iterations, I got P?S/8 up totally on the TD8E. From then onwards, the TD8E support was merely an ongoing part of the supported devices section, etc. 2) Regardless of where you develop it or for that matter debug it, it's a task that "separates the men from the boys" in the PDP-8 world. Writing handlers is likely the most difficult code ever done. The reason is that generally it's a job stated as nearly impossible! OS/8 handlers desire to be entirely self-contained in about 128 12-bit words. Within that environment there are two different types: non-system handlers that can use the entire 128 word space, system handlers that only get about 3/4 of the space due to a whole lot of reserved locations. Two-page handlers are allowed, but there is a lot of cross-page overhead such that you really don't get more than about 1.5 times the space you started with. Additionally, the two-page system handler has further restrictions on code placement, and also a few reserved and unavailable locations more, etc. As such, writing handlers is essentially a "no holds barred" approach. You come in ahead of time attempting to optimize the code even before you write it. You seek out situations to define nifty useful constants that are the instructions themselves, knowing that it's highly unlikely there will be room for the relative luxury of "real" constants. You start considering which bits of any constant that are essentially don't-care, thus allowing consideration of which instructions will yield effective-enough constants. For example, some registers can be guaranteed to not provide non-zero bits in bits[0-3] while you read back the low-order 8 bits into the 12-bit AC. Thus, if you need a constant 0003 to .AND. against the low-order 8 bits, it's acceptable to use the constant 0203 instead of 0003. By contrivanace, it's possible to position a certain data location at relative 0003 of the page. Thus, an AND instruction to that location is also useful as the constant 0203. Therefore, it would also be referenced as a constant 0203 besides being the normal instruction to perform that required AND operation, etc. Similarly, constants can be formed by using superfluous bits in OPR instructions. (You really have to be sure the bits are superfluous!) This is how constants such as 7600, 7700, 7740, 7750, 7760, 7770 can be formed without wasting another word, etc. Unfortunately, the small space also means a whole lot of performance compromise and/or error recovery problems. One of the worst cases is the RX diskette interface. In most instances of code, an inefficient divide routine is used based on repetitive subtraction. This is the heart of a routine used to map the disk sectors into a 2:1 interleave. (You basically divide the caller's requested logical sector by the number of sectors on each track to get a track number. However, you divide by half the number of sectors on a track and shift one bit over. In the process, the remainder includes a bit to determine the interleave, etc.) By performing the divide with an inefficient piece of code that takes the smallest amount of space, certain calls are handled inefficiently, because the diskette is rotating during the slow divide to the point that the throughput suffers on actual machines! (Note: the RX interface appears on the VT78 which is only 20-40% of the speed of the PDP-8/e. In point of fact, the original OS/8 handler for the RX01 ran at 1/13th the speed of it attached to the PDP-8/e. Even the final OS/8 handler still writes at 1/13th the speed, and this is a two-page handler, etc. The original one-page handler has been dropped, albeit largely for unrelated reasons, etc.) In P?S/8, there is a slightly different model at work: If possible, it is as desirable as in OS/8 to achieve a one-page handler. Non-system handlers have the entire one (or more) pages to themselves entirely as in OS/8, but have slightly more work to accomplish due to the handler being marginally more powerful. (Unlike OS/8's non-system handler requirement to be merely page relocatable, P?S/8's non-system handlers also have to be FIELD relocatable.) However, system handlers have to do a bit more work in a bit less space for P?S/8 than in OS/8. (Error recovery is defined to have to actually be able to attempt a recovery expected to recover! In OS/8, it's allowed, albeit a cop-out, to have a handle merely take an "error return" that is essentially a fatal and non-recoverable condition. In OS/8, the caller of the handler could opt to reissue the call, thus creating an infinite retry situation. If the handler cannot recover, this means that it hangs. In P?S/8, the retry is built into the handler. The call could contain either an automatic infinite retry situation, a manual restart after a HLT thus requiring a front panel and an operator, or an elegant mechanism leading to a screen status display and operator intervention dialogue. Each of the three choices is available depending on the overall configuration of P?S/8, etc. In any case, a handler that gives up with no possibility of error recovery is unacceptable, etc. Regardless, DEC has been guilty of distributing handlers for OS/8 that had no hope of recovery should the error return be taken, etc. This did in fact lead to loss of user data, and eventually to withdrawing at least one version of a handler written too fanatically to run in 8K instead of 12K. I can elaborate on this if anyone requests it.) (Additional note: P?S/8 system handlers have more reserved locations than OS/8 because the system is inherently a 4K system. OS/8 has the relative "luxury" of being able to reserve locations in a second field, thus the handlers aren't quite as strapped for space. I think the final tally is that the body of an OS/8 handler is about 92 words and the count for a comparable P?S/8 handler is about 86 words. In any case, neither of these cases represents an "easy" implementation!) Assuming that one page isn't enough, P?S/8 has it a whole lot easier than OS/8. OS/8 only gets an additional nearly-available page with a few restrictions. P?S/8 system handlers get an additional eight complete pages! The P?S/8 system handler for the RX01 actually fits in three pages (but includes other features that are beyond the scope of an inter-system comparison; these are optional features of P?S/8 that were implemented on the RX01, but have been left out of other devices due to either space restrictions or inapplicability, etc.). Additionally, no aspect of either performance or error recovery was compromised within this handler. Instead of using a simple but inefficient smallest-code-space divide routine, the code was replaced with an elegant speed-optimized algorithm (based on hardware EAE divide) and a second-order piece of code used for all subsequent calculations that calculates the next sector and track based on the previous sector and track by much faster means. As a result, this handler manages to run as fast as possible even on a VT78, etc. Non-system P?S/8 handlers can be as long as 32 pages, but waste is frowned on. To date, no handler has ever been written that is longer than 7 pages. Fanatic optimization is thus limited to one-page handlers, with the same zeal that is always necessary for all OS/8 handlers, etc. 3) Once you have your handler written, it's really not much work to get it where you need it. In OS/8, the handler is at most 256 12-bit words plus about 20-30 words of header info and perhaps a secondary boot piece of code meant for use in the first half of the boot record. (The handler resides in the second half in 8K systems. The job of the first half is to get both itself and the second half located where they are needed. The first half is largely reserved, so this secondary boot code is of necessity rather short, etc.) The handler could be typed into BUILD in extreme cases. BUILD can take care of the rest, as long as you have the rest of OS/8 available on either another disk device that happens to be on the machine, or available on paper-tape, or even cassettes. For myself, it's generally true that I get the device added onto an already quite viable development machine, thus, the task at hand reduces down mostly to "merely" writing the code itself! > >[Repairing RK8E's] > >> I didn't have the luxury of a logic analyser, but the problem is that a > >A logic analyser would certainly be useful, but I suspect you could manage >without one if you had to. > >> lot of the automatic operations of the RK8E are only fleeting and are > >The same is true about a lot of other boards I could mention. You can often use >hacked-together logic wired to the board under test to detect the condition >you are looking for and trigger the 'scope on it. Having a storage 'scope, or >at least one with a long-persistance phosphor helps a lot. Of course a logic >analyser with a word recogniser is even more useful. > >> hard to 'scope out. Especially when failure modes of chips still produce >> semi-plausible results. Thus, you wind up having to change a few more >> chips than more sophisticated sleuthing might allow, etc. > >OK, so you have to change a few more chips. The chips on the RK8E are cheap, >and in general easy to obtain. It's no big hassle to change a few more (even >though there's a certain satisfaction in working out the faulty component and >getting it right). Yes, we all like to guess correctly. But on the RK boards, it's a whole lot harder to remove the chips than on the other DEC boards of that era. > >> >> In any case, changing TTL on those boards is far worse a job than on >> other similar boards. The holes are rather small (no, I didn't have to > >The holes on my RK8E are no smaller than the ones on any other DEC board of >the time. DEC always used smaller holes than most other companies. Simply not true. Compare the M7104,5,6 lands with the CPU boards for example. The lands are always ripped out on an RK board that wasn't handled extra carefully compared to the other boards. > >> count them all! :-)) and forget about recovering a chip you pulled. The > >If you know the chip is dead, or it's easy to get, then you clip off the pins >and desolder them separately. But on the RK board, you really don't know if the chip is dead, so you are guessing. Generally you wind up changing 5-6 chips before finding the culprit. And each is really that much more difficult than it should be. Some of the chips aren't all that expendable, yet virtually all will get destroyed, etc. >That said, careful use of a temperature >controlled iron and a good solder sucker will get the chip out without damaging >chip or board. The tricks are : Agreed. The vacuum desolderer made it more likely to survive without pulling out lands. But still the chips have to be destroyed and removed pin by pin. >1) Resolder all the joints first Yes, unless there is enough solder present, you cannot suck out completely a scant amount that was enough for the original purpose, etc. >2) Don't be afraid of overheating the chip. Get the solder molten before you >suck Again, presupposes wanting to kill the chip, but largely not an option. >3) Break the bod between the chip and the board by pressing each pin inwards ^^^^ I assume bond >with a screwdriver before pulling the chip Often two screwdrivers or a chip puller. >4) Don't force anything. If a pin is stuck, resolder it, resuck, and try again > Exactly. They look sucked out, but aren't sometimes! >I've removed chips from various boards in the 8/e (and the peripherals), and >never had problems. A whole lot easier than on the RK boards. I have used a temperature controlled iron and a Solda-Pullit for most of the other boards with easy success; another story entirely on RK boards :-(. > >> small size is such that only a vacuum-pump-driven desolderer gets out >> enough solder that you don't ruin plate-throughs removing a (former) > >If you do rip out the plating, then you can always solder the pin on both sides >when you fit the new chip/DIL socket. True, but all too often what was done, etc. > >> chip's pins. Beyond that, the cards are also more easily damaged due to >> the smaller land size in general. (And we won't talk about cards where > >The RK8E pad size is much larger than that on modern boards. They're much >easier to work on than (say) a board from a PC. Likely, but we are comparing the boards of that era to each other. > >> the word "TOP" is ignored!) > >Well, if you misuse the hardware then you deserve problems IMHO. It doesn't say "Only put this board into the buss so that the word "TOP" can be read in the normal manner." Instead it just says "TOP." Real spectacular and sparky smoky burny things happen when you ignore this! Recovery needs a whole lot of long skinny long-run land repair. I opted to use wire-wrap wire on the one I fixed for them, etc. > >> >Provided you can get a replacement. A lot of early 1980's machines used ST506 >> >drives that are getting very hard to find nowadays. >> >> They're still out there. Certainly easier to get than RK parts! > >The RK05 _electrical and electronic_ parts are still very easy to obtain. The >local Maplin (an electronics hobbyist's shop) stocks a lot of the ones that >are commonly needed. As regards mechanical parts, the motors can be rebuilt >(I've done it), the heads are not that rare (although too rare to crash for >the fun of it), and can I am told be rebuilt, and I've never had a spindle >fail. I would claim that most RK05 faults are easy to repair, and parts are >still easy to get. > >Now, most winchesters use ASICS that you'll never be able to find. And there's >no hope of fixing a mechanical failure without a clean room. > >Some of the older winchesters, like the Micropolis 1200 in one of my >workstations (and in one of my PDP11-a-likes) use standard chips in the >electronics, at least in the most part, and are thus repairable. Unfortunately, >in this case, the servo power amp is the very rare LM379S, which is non-trivial >to get, and which seems to fail too often. > >> cjl >> >> > >-tony > cjl