TS1000 Header Reader

Author(s): Cem Barut
Publication: LISTing Newsletter
Date: February 1985
Pages: 6

This program lets you scan the name you have given to your TS1000 programs. It is adapted from “Explorers Guide to the ZX81 and TS1000” by Mike Lord. This vastly underated book is probably THE most valuable addition to your TS1000 library. This unique book contains both harware and software articles, that are not published anywhere else. Explorers guide does not fit the category of a “me too” book. The descriptions of the ZX-81 display hardware/software is of such detailed nature that it is my guess that Mr. Lord either worked for Sinclair or had some contacts there. Buy it before it goes out of print.

I Have included a minimal loader program to enter the 66 byte code into the rem statement.

First create a rem statement with 66 or more spaces. Then enter enter lines 10 through 200 of listing 1. Enter the code from left to right. When you are done and sumcheck is verified to be 7620, delete lines 10 through 200.

Enter lines 20 through 110 of Listing 2. This is the program you will save and use. The program will auto run after a save and prompt you to load your tape, it will then print on the screen the title it finds.

CEM BARUT

LISTING 1

   1 REM 123456789012345678901234567890123456789012345678901234567890123456
10 FOR I=16514 TO 16579
20 INPUT A
30 POKE I,A
40 SCROLL
50 PRINT I;":";A
60 NEXT I
65 SCROLL
70 PRINT "DONE"
100 REM SUMCHECK SHOULD BE *7620*
120 PRINT "PRESS A KEY TO BEGIN SUMCHEK"
130 IF INKEY$="" THEN GOTO 130
140 FAST
150 LET SUM=0
160 FOR I=16514 TO 16579
165 LET Z=PEEK I
170 LET SUM=SUM+Z
180 NEXT I
190 SLOW
200 PRINT SUM
205   35    15    205   138   64
24    251   14    1     6     0
62    127   219   254   31    23
23    56    16    16    245   241
205   138   64    121   215   203
121   40    247   205   43    15
201   213   30    148   6     26
29    219   254   23    203   123
123   56    245   16    245   209
32    4     254   86    48    206
63    203   17    48    201   201

LISTING 2

   1 REM LN 7?LN \|'RND/ CLS :\' \.' Y[illegible]<= RETURN 3**S(( PRINT LET LN \|'RND?NOT ACS ?C RUN LN F?TAN STR$ 2=\.',1<= RETURN *ACS ??S PRINT ( PRINT SGN 4\.  RETURN ?KEXP ZACS )KTAN TAN
Listing 2, line 1: REM holding the 66 bytes of machine code (printed as keyword tokens)
Listing 2, line 1: REM holding the 66 bytes of machine code (printed as keyword tokens)
  20 RAND USR 16514
30 PRINT AT 20,0;"PRESS A KEY TO READ TAPE"
40 IF INKEY$="" THEN GOTO 40
50 CLS
60 GOTO 20
100 SAVE "H.READER"
110 GOTO 30
[illegible] HEXCODE  NAME MNEMONIC
==============================
4082 CD230F          CALL 0F23
4085 CD8A40          CALL 408A
4088 18FB            JR 4085
408A 0E01            LD C,01
408C 0600            LD B,00
408E 3E7F            LD A,7F
4090 DBFE            IN A,(FE)
4092 1F              RRA
4093 17              RLA
4094 17              RLA
4095 3810            JR C 40A7
4097 10F5            DJNZ 408E
4099 F1              POP AF
409A CD8A40          CALL 408A
409D 79              LD A,C
409E D7              RST 10H
409F CB79            BIT 7,C
40A1 28F7            JR Z 409A
40A3 CD2B0F          CALL 0F2B
40A6 C9              RET
40A7 D5              PUSH DE
40A8 1E94            LD E,94
40AA 061A            LD B,1A
40AC 1D              DEC E
40AD DBFE            IN A,(FE)
40AF 17              RLA
40B0 CB7B            BIT 7,E
40B2 7B              LD A,E
40B3 38F5            JR C 40AA
40B5 10F5            DJNZ 40AC
40B7 D1              POP DE
40B8 2004            JR NZ 40BE
40BA FE56            CP 56
40BC 30CE            JR NC 408C
40BE 3F              CCF
40BF CB11            RL C
40C1 30C9            JR NC 408C
40C3 C9              RET

from the Mile High TSUG

RALPH SMITH ALSO INDICATED A NEED FOR A CAD PROGRAM FOR 2068. DOES ONE ALREADY EXIST ? WE HAD A LONG MEETING LAST MONTH DUE TO ALL OF THE H/W AND S/W ADS AS WELL AS THE NEWSLETTERS THAT WE NEEDED TO COVER. THERE IS STILL SUPPORT OUT THERE FOR US OUT THERE. HEINZ WAS ASKED IF HE WOULD TAKE NOTES ON OUR MEETINGS AND HE AGREED. WOULD YOU BELIEVE HE SENT ME 3 TYPED SHEETS BEFORE HE LEFT FOR CHICAGO ? THANK YOU, HEINZ. WE WILL TRY TO FINISH UP BY 9:30 PM IN THE FUTURE.

Ralph – Check with Zebra Systems .

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