← Back to Guides

Using the 1988 3D CAD Program

Version:
1.0
Last Updated
December 4, 2026

The 1988 CAD program in the library came with no instructions. This guide was worked out from its BASIC listing and by running it in MAME. Where a command has not been tried, it says so.

A chest of drawers with a mirror, drawn in perspective with hidden lines removed
The sample model on the disc, turned, put into perspective and drawn with hidden lines removed.

Starting

  1. Start the Einstein with the disc in drive 0.
  2. At the DOS prompt type XBAS.
  3. When BASIC says Ready, type RUN "CAD".

The screen clears to a red frame with two dotted lines crossing in the middle, and a > prompt at the top left. The dotted lines are the axes. Where they cross is the centre of the model's space, point 0, 0, 0.

How Commands Work

You type a command and press ENTER. Numbers and letters that go with a command come after it, separated by colons, like this:

TUBE 8:40:60:Z

Three rules save a lot of puzzling:

  • Every value a command expects must be there. Leave one out and you get NOT ENOUGH PARAMETERS.
  • A value the command does not like gives PARAMETER ERROR, and a word it does not know gives NO COMMAND.
  • Nothing is redrawn until you type DRAW. Commands change the model, and DRAW shows it.

The program is written in BASIC and takes its time. Wait for the > prompt to come back before typing the next command.

A First Model

Type these one at a time:

  1. TUBE 8:40:60:Z makes an eight sided tube, 40 units in radius and 60 long, lying along the Z axis, which points out of the screen.
  2. DRAW shows it. Seen end on it is just an octagon.
  3. ROTATE X:60 tips it 60 degrees about the X axis.
  4. ROTATE Y:20 turns it 20 degrees about the Y axis.
  5. DRAW now shows the whole tube as a wireframe.
  6. HIDE then DRAW draws it again as a solid, with the lines at the back removed.
An eight sided tube drawn with hidden lines removed
The tube after step 6.

Loading the Sample

Type DIR to list the models on the disc, then LOAD"CUPBOARD and DRAW. There is no closing quote: the program takes everything after the quote mark as the name. LOAD adds to whatever is already in memory, so type NEW first if you want a clean start.

Looking at the Model

CommandWhat It Does
DRAWClears the screen and draws the model
VIEW ZLook from the front: X across, Y up. This is how the program starts
VIEW XLook from the side: Z across, Y up
VIEW YLook from above: X across, Z up
PERSPECTurns perspective on or off. With it on, far things are drawn smaller
HIDETurns hidden line removal on or off
AXISTurns the dotted axes on or off
STATUSShows the settings, and how many faces and points are used and free
LIST 0:0:0:0:0Lists every point and face. The five values are first point, last point, first face, last face, and 1 to send the list to a printer. A 0 means from the start or to the end

VIEW only changes where you look from. ROTATE, below, changes the model itself.

Changing the Model

CommandWhat It Does
TUBE sides:radius:length:axisAdds a tube. Sides from 3 upwards, radius from 2 to 600, length from 2 to 1200 (0 makes it the same as the radius), axis X, Y or Z. TUBE 4:15:120:Y is a tall square post
MOVE x:y:zShifts by that many units each way. MOVE 60:0:0 moves right
ROTATE axis:degreesTurns about the X, Y or Z axis
SQUASH x:y:zStretches or shrinks. 1 leaves a direction alone, .5 halves it, 2 doubles it. All three must be above 0
MIRROR axisFlips the shape. X, Y or Z
COPYMakes a second copy of the shape in the same place, ready to be moved
CENTREMoves the shape so its middle is at the centre. Read from the listing, not tried
DELETE faceRemoves one face by number. Not tried
NEWClears the model and starts again
EXITLeaves the program. Not tried

Working on Part of a Model

To begin with, every command acts on the whole model. To work on one part, give a run of faces a number with DEFINE. The faces are numbered in the order they were made, and STATUS tells you how many there are.

CommandWhat It Does
DEFINE n:first:lastCalls faces first to last shape n (1 to 19) and selects it
USE nSelects shape n. USE 999 selects the whole model again
DELSHP nDeletes shape n. Not tried

The selected shape is drawn in blue and the rest in yellow. This example carries on from the eight sided tube above, which used faces 1 to 8:

  1. TUBE 4:15:120:Y adds a square post. It becomes faces 9 to 12.
  2. DEFINE 1:9:12 calls the post shape 1.
  3. MOVE 60:0:0 moves only the post.
  4. COPY makes a second post, faces 13 to 16.
  5. DEFINE 2:13:16 then MOVE -120:0:0 puts the copy on the other side.
  6. PERSPEC and DRAW.
The eight sided tube in yellow with a tall square post beside it, the selected shape in blue
Two shapes in one model. The selected one is blue.

Drawing a Face by Hand

ENTER lets you draw a flat face corner by corner in the current view. A cursor starts at the centre and its position is shown at the top of the screen.

KeyWhat It Does
X and ZMove right and left
: and /Move up and down
1 to 5Set how far each press moves
EFix a corner here. The program asks ENTER 3rd VALUE, which is the corner's depth: type a number and press ENTER, then carry on to the next corner
FFix the last corner here and finish the face

Use capital letters. ALTER uses the same keys to pick up a point that is already there and move it. It cannot be used while perspective is on, and we have not tried it.

A small triangular face drawn by hand with the ENTER command
A face drawn with ENTER.

Saving and Loading

  • SAVE"NAME saves the whole model as NAME.SHP. Up to eight letters, and no closing quote.
  • LOAD"NAME adds NAME.SHP to the model in memory.
  • DIR lists the .SHP files on drive 0.

A .SHP file is plain text: the number of points, the X, Y and Z of each point, the number of faces, then for each face how many corners it has and the number of its first point.

Limits and Things to Know

  • A model can have 1,800 points and 600 faces. Every face keeps its own corner points, so a four sided face uses four points.
  • Coordinates are whole numbers, so many small rotations in a row slowly lose accuracy.
  • If something goes badly wrong, the listing shows the program printing the error, trying to save the model as ERROR.SHP and stopping. We have not tested that rescue.
  • The listing has a DUMP command that sends a single control code. It looks like a hook for a printer screen dump, and we have not tried it.
  • ENTER and ALTER rely on CODE.OBJ, which is a replacement written by TatungBytes because the one on the disc we were sent was blank. The entry explains what it does.
  • Everything here was done in MAME, not yet on a real Einstein.
Gavin Watson
Gavin Watson

Get the Newsletter

New guides, disk images and community finds, every couple of weeks. No spam, we promise, this isn't Tatung's marketing department.
Read Past Issues
Your subscription could not be saved. Please try again.
Your subscription has been successful.

Newsletter

Subscribe to our newsletter and stay updated.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.