--- title: "HEADER.BT" type: "article" slug: "header-bt" url: "http://localhost/article/header-bt/" markdown_url: "http://localhost/article/header-bt.md" published_at: "2026-11-27T10:36:04+00:00" modified_at: "2026-11-27T16:19:46+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "10 REM 20 REM NAP AUG.,10,1984 30 INK 7: POKE 23658,0: CLEAR 32764 40 LET j=32765: LET head=j+45 50 DEF FN g(x)=PEEK x+256*PEEK (x+1) 60 RESTORE 70 FOR n=0 TO 44: READ code 80 POKE (j+N),code: NEXT n 90 DATA 62,0,55,221,33,42,128,17,17,0,243,245,219,255,203,255,211,255,219,244,50,41,128,62,1,211,244,241,205,252,0,58,41,128,211,244,219,255,203,191,211,255,251,201,0 100 CLS 110 POKE head,4 120 PRINT AT 18,8;\"start the tape\"…" post_tag: - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "LKDOS" slug: "lkdos" taxonomy: "post_tag" url: "http://localhost/tag/lkdos/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 2068" slug: "ts-2068" taxonomy: "model" url: "http://localhost/model/ts-2068/" indiv: - name: "Bob Swoger (K9WVY)" slug: "bob-swoger" taxonomy: "indiv" url: "http://localhost/indiv/bob-swoger/" - name: "Nazir A. Pashtoon" slug: "nazir-a-pashtoon" taxonomy: "indiv" url: "http://localhost/indiv/nazir-a-pashtoon/" publication_r: id: 10206 title: "Nite-Times News" type: "periodical" url: "http://localhost/periodical/nite-times-news/" authors: "Nazir Pashtoon" volume: "5" issue: "2" issues_articles: - id: 39304 title: "Nite-Times News v5 n2" type: "issue" url: "http://localhost/issue/nite-times-news-v5-n2/" pages: "9" pubdate: "March - April 1991" related_articles: - id: 43729 title: "Header-Reader" type: "article" url: "http://localhost/article/header-reader/" archive_link: false --- # HEADER.BT ``` 10 REM 20 REM NAP AUG.,10,1984 30 INK 7: POKE 23658,0: CLEAR 32764 40 LET j=32765: LET head=j+45 50 DEF FN g(x)=PEEK x+256*PEEK (x+1) 60 RESTORE 70 FOR n=0 TO 44: READ code 80 POKE (j+N),code: NEXT n 90 DATA 62,0,55,221,33,42,128,17,17,0,243,245,219,255,203,255,211,255,219,244,50,41,128,62,1,211,244,241,205,252,0,58,41,128,211,244,219,255,203,191,211,255,251,201,0 100 CLS 110 POKE head,4 120 PRINT AT 18,8;"start the tape" 130 RANDOMIZE USR j 140 CLS : LET hdtype=PEEK head 150 IF hdtype=4 THEN GO TO 1000 160 LET h$="" 170 FOR n=1 TO 10 180 LET h$=h$+CHR$ PEEK (head+n) 190 NEXT n 200 PRINT "Prog. Name > ";h$: PRINT : PRINT 205 LET a=head 210 LET hdlen=FN g(a+11): LET hdadr=FN g(a+13): LET hdvars=FN g(a+15) 220 LET vars=hdlen-hdvars 230 IF hdtype THEN GO SUB 500: GO TO 1010 300 PRINT "Program is in BASIC": PRINT 310 PRINT "Program area >";hdvars;" bytes": PRINT 320 PRINT "Variables area >";vars;" bytes": PRINT 330 IF hdadr>10000 THEN PRINT "There is no autostart !": GO TO 1010 340 PRINT "Line # for autostart >";hdadr: GO TO 1010 500 LET b$="" 510 IF hdtype=1 THEN LET b$="Number array" 520 IF hdtype=2 THEN LET b$="Character array" 521 IF hdtype=3 THEN LET b$="Machine Code file" 530 PRINT "Program is a ";b$: PRINT 540 IF hdtype=3 THEN PRINT "Binary code ,start adr >";hdadr: PRINT 550 PRINT "Block length is >";hdlen;" bytes" 560 RETURN 1000 PRINT FLASH 1;AT 18,8;" This is not a tape header" 1010 PRINT FLASH 0;AT 19,1;"Are you game for another try ?(y/n)" 1020 PAUSE 0: IF INKEY$="y" THEN GO TO 100 1030 STOP 9992 RANDOMIZE USR 100: SAVE "HEADER.BT" LINE 1 9998 RANDOMIZE USR 100: LOAD "L.B1" ``` This program is part of the [LogiCall](http://localhost/product/logicall/) ensemble on Disk #1 and can also be downloaded from our BBS.