A beginner wrote to ask: All of the following computers have the designation 80–ZX80, Z80, Z80A, TRS-80. Are programs or software usable between each of these computers? Also there is a Z80 Softcard to apply Z80 programs to the Apple II. Is it reversible?
First of all, please note the distinction between processors and computers. Z80 and Z80A are the central processors providing the brains to the TRS-80 and ZX80 computer, respectively. The 2 processors have no high level language (such as BASIC) compatibility, but do understand each other in machine language because their instruction sets are the same.
So machine language routines, or programs, written without using the operating system are usable on both machines. (The operating system controls where things are stored in memory and handles input from the keyboard and storage and output to viedo and storage.) Unfortunately, such programs are limited to computations or processing (manipulating bits), which doesn’t help beginners.
The TRS-80 and ZX80 speak similar but not identical forms of BASIC and use different character sets. Think of it as different dialects of the same language, using different alphabets. They cannot execute identical BASIC programs. To use the same programs, you must either put an interface between them that can translate or program 1 machine to translate the other’s BASIC. Alternatively, you can translate programs yourself.
If you write your own translations, watch out for instructions beyond the ability of the machine. For instance, TRS-80 can handle multiple statements per line, which the ZX80 cannot. Or one machine may not use certain commands, like IF…THEN ELSE. We’ll have an article on program translation in a later issue.
The Apple Microsoft card contains a Z80 processor which makes the Apple emulate a Z80 machine. Some but not all Z80 software will run on an Apple. In any event, the card is only usable on Apple computers.