Data File Format

Developer(s): John Andrews
Date: 1981
Type: Program
Platform(s): ZX80
Tags: Database

A format for keeping notes on tape, written for a 2K MicroAce or ZX80. The program is its own data: a table of contents in PRINT lines 100-299 lists each topic with the line number where its text starts, and the text itself sits in PRINT lines from 500 up, each block ending with GO TO 5000. RUN shows the table; enter a line number to read that block, and NEWLINE returns to the table.

The sample data (tire size and timing for a car) shows the layout; delete lines 100-115 and 500-515 to start your own file, and SAVE the program with the new lines. RUN 9000 shows how much memory is left. The article gives changes for 1K RAM.

Published in Syntax August 1981 (Data File Format).

Related Articles

Here's a program for 2K MicroAces that allows you to create indexed files on tape.

Image Gallery

Source Code

  10 PRINT ," DATA FILE"
  20 PRINT ,"  ▄▄▄▄▄▄▄"
  30 PRINT
  40 PRINT "IF PROMPT= QUOTES - KEY NEWLINE"
  50 PRINT
  60 PRINT ,"DATA LISTING"
  70 PRINT "--------------------------------"
  80 PRINT "     DATA           LINE NO."
  90 PRINT "--------------------------------"
 100 PRINT "        AUTOMOTIVE"
 110 PRINT "TIRES",,,"500"
 115 PRINT "TIMING",,,"510"
 300 INPUT A
 301 CLS
 302 GO TO A
 500 PRINT " SIZE= H78-15.  PRESSURE= 30 PSI"
 505 GO TO 5000
 510 PRINT " 3 DEGREES BTDC"
 515 GO TO 5000
4999 STOP
5000 INPUT A$
5001 IF A$="" THEN CLS
5002 GO TO 70
9000 CLS
9001 LET P=18432-PEEK(16400)-PEEK(16401)*256
9002 PRINT P;" BYTES LEFT"
9003 LET T=2048-P
9004 PRINT ,"BYTES USED= ";T
9005 STOP

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.