Before I get on with it, let’s lay to rest a point of semantics regarding this machine. I’ve heard it called the PC8300, IQ8300, Power 3000, and have heard rumours about yet other names. I decided to go with the legend on the artwork of the actual PC board, with says “PC8300.” So that’s what we’ll call it from now on.
Further investigation into the PC8300 has brought to light some additional info on this truly unusual computer.
Firstly, we are virtually certain that the character patterns ARE contained in the custom logic chip. Apparently, communication to the logic chip (as for getting the character patterns during printer operations) is done by I/O. Specifically, port F6 seems to be used for this. Note that this is an EVEN-number port; apparently the ports are decoded more completely than on the machine’s ancestor.
Another new port, F5, is used for the sound commands. The other ports (tape, TV and printer) are apparently the same as on the ZX81/TS1500 family.
The design of the display system appears to preclude the use of 64K packs of any kind. (The exception might be John Oliger‘s since it allows the 48-64K block to be switched out; however, being fully decoded, it too may not work.) This is not to say that such packs might not be modifiable to work on this machine.
Several people (including myself) have tried using a TS1000 or TS1500 ROM on this machine. It works, sort of. The character set remains the same, unfortunately; so you still have goof-ball games critters instead of pound, colon, question-mark and the grey graphic square. The other grey graphics are still right-angle triangles.
More importantly, there is a problem with the display routines. Each row of characters is “tilted”, odd rows one way and even rows the other. The overall effect was described by one fellow as “flagging,” as it looks a bit like a flag in the wind. In FAST mode, it actually moves around. Very annoying, practically unusable.
We’re presently investigating the feasability of creating a “Timex-compatible” ROM that behaves just like a ZX81 except for the display routines. [I’ve gotten it to work fine in SLOW mode, but am still having trouble with FAST mode.] The prospect of a switchable ROM add-on is not out of the realm of possibility. Unfortunately, Wilf Rigter assures me that there is virtually no possibility of modifying the machine (in either hardware or software) to successfully run WRX16-based high-resolution programs. Pity.
On the other hand, “high resolution capability” is claimed for the machine. We’ll just have to wait and see what we and others can find out about this.
MORE SYSTEM VARIABLE PROBLEMS
In addition to the system variable discrepancies reported in the last issue, there are a few more that bear pointing out. The B_REG variable is now also used for some rather important flags. MODE is now used differently than before, and VERS is an important variable. What it does exactly we haven’t figured out, but it seems to be involved in knowing whether to clear memory on reset, or to leave memory alone (as when a program is present).
SOME USEFUL ROM CALLS
As indicated earlier, the PC8300 ROM is nothing like the ZX81 ROM, though it does (by sheer necessity) bear the occasional resemblance. Nonetheless, the differences are even greater than between the ZX/TS and the Spectrum. Even the “Forth-like calculator language” uses a completely different set of codes for its various commands! So even if you have Hot Z and try to make sense of the calculator routines, all you’ll get is trash.
The biggest problem hackers will have in adapting ZX81 software to this machine, is that the location of the common ROM calls is completely different than you’re used to. Here is a listing of some of the more likely routines to be useful. Addresses are in hexadecimal.
0765 BEEP 076A NOBEEP 0D00 ER_BEEP (the raucous noise on error in SLOW, or short "blip" in FAST) 12A5 SLOW 0D5E FAST 0F20 NEW 1C5E SCROLL 0A4A PRINT 1C70 CLS 143C CLEAR 1CC3 COPY 14FF UNSTACK A 1509 UNSTACK BC 140D ERROR STOP (code no. in A) 1487 PRHL (print HL as a 4-digit decimal no.)
I’ve also found the entry points of the other BASIC commands. You can do the same by referring to Ray Kingsley‘s article in SWN Vol. 2:1. You will need to know that the command token table is at 15D4 (gives the sequence of the commands in the offset table), the offset table is at 1ADE (actually starts at 1ADB for INK, PAPER and BORDER). Finally, the command parameters and addresses are given in the table at 1B02.
THE RESTARTS
As mentioned, except for RST 00h and RST 38h (defined by hardware; 00 is reset, 38 is the interrupt vector), the restarts are nothing like what you’re used to.
RST 00h is a rather fancy reset routine. How it discriminates between power-up and hitting the reset button is probably a topic for an entire article in itself.
RST 08h (formerly the error restart) is now analogous to the old RST 20. Similarly, RST 10h (formerly the print-character restart) is comparable to the old RST 18 statement parser. RST 18 is now the PRINT CHARACTER IN A restart.
RST 20h now unstacks the top floating-point entry into BC, DE and A (comparable to the old UNST routine). RST 28h is a bit of a mystery; all it does is check bit 7 of B_REG. What does this mean? That’s the mystery at this point.
Finally, RST 30h is what RST 28h is on the ZX/TS; the entry to the FP calculator. Again, however, the way the FP calculator is implemented is quite different from the ZX/TS, so you’re unlikely to find this useful until someone figures out what all the command codes are.
OTHER POINTS OF INTEREST
Aside from the tables pointed out above, here are a few more you might find interesting. 13E7 is the keyboard codes table (used in the DCOD routine). 140E are the shifted keys. 1581 are the function tokens (the first letter of each token has bit 6 high as a “start flag”). 17E5 are the report codes. 1BF4 are the FP interpreter commands jump table; this is where you’d start figuring out the FP codes. For instance, code 1 seems to be DUP, 2 appears to be 0?, etc. 1097 is a “mystery table.” Perhaps involved in PLOT (or perhaps not?). Two other mystery tables are at 1E3D and 1E61. 1900 appears to be the MUSIC lookup table. There may be other tables or patches of data (aside from FP code following RST 30h) that I haven’t isolated yet.
HARDWARE POINTS
DO NOT try to plug a Sinclair ULA into the custom chip socket of the PC8300! Disaster is almost certain; the pinouts aren’t even similar.
The clock “crystal” (located at the pin 21 end of the CPU) is the same junky 6.5 mHz. “ceramic IF filter” as used on the ZX81/TS1000 (poor frequency stability). Incidentally, these were intended for FM radios, not computers. Is it replaceble with a real crystal? Well, maybe; all three pins are used, so it’s a little dubious. This would be something for an enterprising hardware hacker to play with. If you CAN get a 6.5 mHz. crystal (perhaps as salvaged from a dead 1500) to work, you might try to find a 7.8 mHz. crystal, and replace the CPU with a Z80B. This will have two major effects, if it works: 1) the frame rate will now be 60 Hz. instead of 50 Hz., eliminating any vertical hold problems and incidentally making PAUSE time-out properly. 2) The machine will run 20% faster; this WILL bring the overall speed very close to 2 times the speed of the ZX81/TS1000! (See also below, “How Much Faster is Faster?”)
If you do a lot of hardware hacking on this machine, consider soldering a SIP (single in-line pin) header to the keyboard tails, and install a matching header to the PCB to allow easy disconnection of the keyboard.
As mentioned, I/O port decoding must be better than on the ZX/TS since it seems to allow even port addresses. This could cause trouble with some add-ons which RELY on incomplete decoding; e.g. the Zebra joystick interface. On the other hand, it opens up a lot of other neat possibilities.
AN INTERESTING MODIFICATION
Between the ROM socket and the speaker you will see a little diode, and a legend on the artwork saying “UK ONLY.” Remove the diode (or simply desolder one end). This will make the machine run at 60 Hz.! (And, incidentally, make the PAUSE command time-out correctly.)
Also, it makes the sound commands (SOUND, MUSIC, and the keyboard beeps) corresponding higher and faster; I prefer it this way, since it makes the keyboard sounds somewhat less annoying. Thanks to John Stewart at WOAI in San Antonio for pointing this out; I would have thought that this would have no effect on frame rate. This teaches one not to take ANYTHING for granted with this machine!
HOW MUCH FASTER IS FASTER?
So, if you can simply clip a diode to make the machine run at 60 Hz., why bother with Z80B’s and faster crystals? The answer has to do with the way the display is created. The Z80 itself generates the display, on both the PC8300 and on the ZX/TSs. By displaying the picture only 50 times a second instead of 60, more time is available for computing. As it turns out, the machine runs about 1.5 times faster overall at 50 Hz. compared to 60 Hz.!
This is of course true of the ZX/TS also; British games that reviewers reported as “extremely fast” are only “sort-of-fast” on American machines… because of the 50/60 Hz. question.
So if your TV/monitor doesn’t mind, LEAVE THE DIODE CONNECTED (or install one, if yours happens to have it omitted or removed). You might want to install a switch to experiment with both “modes.”
This is why I called clipping the 50/60 Hz. diode only an “interesting” modification, rather than calling it “recommended.” Clipping the diode will, indeed, make your TV or monitor happier. However, it will slow down the machine considerably, making it only slightly faster than a ZX/TS.
Notice that it still will be “slightly” faster, overall, even in 60 Hz. mode. This is primarily because the screen-handling routines no longer have to cope with that silly compressed display file. CLS and SCROLL, especially, are what they should have been all along. However, even PRINT (and of course the PRINT CHARACTER restart, RST 18) is slightly faster as a result of simplifying the display handling.
The rest of the commands, especially the floating-point commands (the arithmetic operators, functions, etc.) are about the same as the ZX/TS. After all, doing a Chebyshev polynomial takes a certain amount of time at a given clock rate, no matter how it’s re-arranged.
Will we come up with an “ultimate ZX,” complete with full ZX/TS compatibility but with greater speed, sound, colour options, and on and on? Possibly, but don’t hold your breath. If only the PC8300 had appeared in 1982, it might still be a powerful force in the Western computing community. As it stands, however, the public has been inundated with “superior” machines that no-one REALLY understands; so much that the return to “elegance in simplicity” is difficult if not impossible. Still, we’ll do what we can. Stay tuned!