FASTAPE

Author(s): Tom Baker
Publication: The Data Expansion
Pub Details: The D/FW Data Expansion v4 n11 (Volume 4, Issue 11)
Date: November 1987
Pages: 26-27
ADDRESS OF CODE  - POKE 60011,address -(256*INT (address/256))
                   POKE 60012,INT (address/256)
LENGTH OF CODE   - POKE 60013,length -(256*INT (length/256))
                   POKE 60014,INT (length/256)
ALL FEATURES     - POKE 60015,F

Calculate the value of F from this table:

F TABLE

================================================================
VALUE F   CRASH ON ERROR      COLORED BORDER       COUNTDOWN
  0       NO(error message)   NO(masked border)      NO
  1       YES                 NO(masked border)      NO
  2       NO(error message)   YES                    NO
  3       YES                 YES                    NO
  4       NO(error message)   NO(masked border)      YES
  5       YES                 NO(masked border)      YES
  6       NO(error message)   YES                    YES
  7       YES                 YES                    YES
================================================================
Timer Coordinates - POKE 60007,x-coordinate
                    POKE 60008,y-coordinate
(where x is between 0-29, and y is between 0-23)

LOADING: Loading is very simple as, like the Speccy’s own commands, a header is saved with each block of code which is automatically loaded by the routines. The command RANDOMISE USR 60000 will load in the next block of code. All the other feature POKEs still apply. An extra feature which has been added is the Security option. The contents of address 60006 must be the same as when it was originally saved. If not the routines will respond with an error message or crash (as selected). This means that if you save a code block with 60006 POKEd with 100, say, someone cannot load it in who doesn’t know the number!

Simply type in the basic listing of the program and save it with SAVE “FASTAPE”. Don’t bother with an autostart LINE number, as this program merely creates and saves the FASTAPE code block for you. Just RUN it, and the program will POKE all the code into memory. Once it has been saved to tape, set the BASIC bit aside, in case you lose the code block, and use the code in your own programs.

  10 CLEAR 59999: PRINT AT 0,0;"PLEASE WAIT"
20 GO SUB 1000: BEEP .5,10: CLS
21 PRINT AT 0,0;" LOAD: USR 60000 *SAVE:USR 60003 *POKES: 60006....CODE 60007....COUNTER X COORD 60008....COUNTER Y COORD"
22 PRINT " 60015.......FLAG BYTE 60011..ADDRESS (LOW BYTE) 60012.ADDRESS (HIGH BYTE) 60013...LENGTH (LOW BYTE) 60014..LENGTH (HIGH BYTE)"
23 PRINT ''"FLAG BYTE: (1=CRASH,2=BORDER,4=COUNTER)"
30 PRINT #1;AT 1,0;"PRESS 'ENTER' TO SAVE......"
40 IF CODE INKEY$<>13 THEN GO TO 40
50 POKE 23736,181: SAVE " FLASH LOAD TSB"CODE 60000,715
60 STOP
1000 LET LINE=9000: RESTORE LINE
1010 READ A$
1015 IF A$(1)<>"*" THEN GO TO 1050
1020 LET B$="": LET A=2
1030 LET B$=B$+A$(A): LET A=A+1: IF A$(A)<>"," THEN GO TO 1030
1040 LET AS=VAL B$: LET A$=A$(A+1 TO )
1050 LET C=0: LET A=4: FOR L=1 TO VAL A$( TO 2)
1060 LET B$=""
1070 LET B$=B$+A$(A): LET A=A+1: IF A$(A)<>" " AND A$(A)<>","
THE GO TO 1070
1080 LET A=A+1: POKE AD,VAL B$: LET C=C+VAL B$: LET AD=AD+1:
PRINT AT 0,29;60715-AD,AT 2,0;"LINE :";LINE: NEXT L
1090 IF C<>VAL A$(A TO ) THEN CLS: BEEP 1,10: PRINT AT 0,0; INK
9;"DATA ERROR WITHIN LINE ";LINE;".....PLEASE CORRECT": STOP
1100 LET LINE=LINE+5: READ A$: IF A$(1)<>":" THEN GO TO 1015
1110 RETURN
FASTAPE DATA lines 9000-9045 (part 1)
FASTAPE DATA lines 9000-9045 (part 1)
FASTAPE DATA lines 9045-9999 (part 2)
FASTAPE DATA lines 9045-9999 (part 2)

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