ZX80 Check Book

Developer(s): Timothy Sorber
Date: 1981
Type: Program
Platform(s): ZX80
Tags: Finance

Enter the previous balance in cents (for example 20000 for $200.00; ZX80 numbers only go up to 32767, so amounts and the balance must stay under $327.67), then for each entry choose deposit (1) or check (2), give the check number and the amount in cents. Up to ten entries fit. Choose 0 at the REGISTER prompt to show the register with the balance after each entry.

The article also gives changes for the 8K ROM. A reader later pointed out that after reloading the program you should restart it with GO TO 100, not GO TO 10, so that the saved entries are kept.

Published in Syntax July 1981 (ZX80 Check Book).

Related Articles

Program records up to 10 transactions at a time. Keep them on file by storing the program with the variables intact.

Related Content

Image Gallery

Source Code

10 DIM A(9)
20 DIM B(9)
30 FOR L=0 TO 9
40 LET A(L)=0
50 LET B(L)=0
60 NEXT L
70 PRINT "PREV BALANCE?"
80 INPUT B
90 FOR K=0 TO 9
100 PRINT "REGISTER(0), DEPOSIT(1)"
105 PRINT "OR CHECK(2)?"
110 INPUT T
120 IF T=0 THEN GO TO 220
130 PRINT "NUMBER?"
140 INPUT N
150 LET D1=T*10000+N
160 LET A(K)=D1
170 PRINT "AMOUNT?"
180 INPUT D2
190 LET B(K)=D2
200 CLS
210 NEXT K
220 CLS
230 PRINT "   ZX80 CHECK BOOK"
240 PRINT
250 PRINT "PREV BALANCE",B
255 PRINT
260 PRINT "NR","AMOUNT","BALANCE"
270 LET T1=B
280 FOR G=0 TO 9
290 LET F=A(G)/10000
300 IF F=0 THEN GO TO 440
310 IF F=1 THEN GO SUB 360
320 IF F=2 THEN GO SUB 400
330 PRINT N,A$;B(G),T1
340 NEXT G
350 STOP
351 GO TO 100
360 LET A$="+"
370 LET N=A(G)-10000
380 LET T1=T1+B(G)
390 RETURN
400 LET A$="-"
410 LET N=A(G)-20000
420 LET T1=T1-B(G)
430 RETURN
440 INPUT B$
450 IF B$="STOP" THEN STOP
460 GO TO 100

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