One of the 8K ROM’s nicest features is its increased printing capability. We have 2 new PRINT-like commands, PRINT AT and PLOT (with its corresponding UNPLOT).
Before we can understand how to use these commands, we should look at the ZX80 display screen. Regardless of what size TV you use, your 8K machine displays 32 columns across and 22 rows down. If you think of the screen as a grid, with lines between each column and each row, the grid forms little boxes, or screen elements. You can name each box uniquely, using its column and row number, like a graph:

This picture shows the 20 boxes at the top left corner of the screen. The origin, or beginning of the grid, is at the top left corner. To use PRINT AT, you must know the column and row numbers of where you want to print. For example, to print a single character at the dead center of any line, figure out the middle column number and choose the line you want to use. Each row has 32 columns, so the exact center of the line is at 15 1/2. We can only PRINT AT complete boxes, so we must choose either 15 or 16. If we want to print the letter A in the middle of line 6, we would type:
PRINT AT 6,16;"A"
(AT is F C; hit SHIFT NL, then C.) This means print 16 positions from the left and 7 lines from the top. The first line is numbered 0, as is the first column, so line 6 is the seventh down. (Use the form PRINT AT line,column.)
Try this sample program to see how PRINT AT can move the locations of characters:
10 PRINT "ENTER THE COORDINATES FOR THE SAMPLE PHRASE. X=";
20 INPUT X
30 PRINT X
40 PRINT "Y=";
50 INPUT Y
60 PRINT Y
70 PRINT "ENTER SAMPLE PHRASE"
80 INPUT A$
90 CLS
100 PRINT AT X,Y;A$ RUN
This program asks for the coordinates you want and the words you want to print (lines 10-70). Line 80 allows you to choose the sample phrase. Line 90 clears that display from the screen. Line 100 tells the computer to print your string (the phrase you typed) at the location named by the coordinates X and Y. You can use string variables (like A$ in our example) or literal variables in PRINT AT statements. (Literal strings are those you enclose in quotation marks in PRINT statements, like PRINT “ABC”.) You can type the coordinates for X and Y as numbers (4,23 for example) or as variables (as in our sample program).
PRINT AT commands allow you to put words or characters anywhere on the display without using up lots of RAM space. To put CAT on the fifth line with blank lines above it, for example, requires five PRINT statements with the 4K ROM (4 blank PRINT lines and one PRINT “CAT”). The 8K ROM needs only one PRINT command to do this.
But PRINT AT has limitations. You cannot PRINT AT beyond the edges of the screen, so don’t ask the computer to print a character that would run over the edge. Run our sample program, changing X and Y to see which boxes are useable. You also can’t print on lines 22 and 23 (bottom two).
PLOT and UNPLOT also use individual screen elements, but smaller ones. Suppose we cut each box into 4 quarters. Each quarter is called a pixel (short for picture element). See the ZX81/8K manual, p.123, for a picture of the pixel grid. Note that the grid begins at the lower left of the screen, not the upper left.
Cutting up the boxes gives us twice as many possible rows and columns. Instead of going from 0 to 31, the columns go from 0 to 63 (giving 64 total columns). The rows now go from 0 to 43 (giving 44 total rows). So (63,43) is at the top right of the screen; (0,0) is at the bottom left.
To use a PLOT or UNPLOT command, you again specify the X- and Y-coordinates of the location. PLOT and UNPLOT use pixels instead of whole character spaces, so our X- and Y-coordinates name precisely which quarter of a character space we wish to use.
PLOT X,Y blackens the pixel at the column X and row Y. UNPLOT X,Y unblackens that same pixel, as you would expect. Use the form PLOT column,line.
You can use numbers for the coordinates, like 4,65. Or you can use numerical expressions such as 3*SQR 79 (3 times the square root of 79). You can also use numerical variables, like A or B, as we did in our PRINT AT program above.
PLOT and UNPLOT are useful for graphs of numerical functions. See the 8K ROM manual, pp.119-122, for examples of graphs.