Home » CEEFAX disks » telesoftware11.adl » 02-12-88/T\SWR22

02-12-88/T\SWR22

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » CEEFAX disks » telesoftware11.adl
Filename: 02-12-88/T\SWR22
Read OK:
File size: 1B2B bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
Mastering Sideways ROM & RAM - Module 22 - RFS cartridges
---------------------------------------------------------

  The RFS language rom introduced in Module 21 can be modified to
auto-boot from any rom socket. The method used to achieve this uses an
"illegal" interception of service call &FE and it is not fully
compatible with a 6502 second processor. In spite of this it can be
quite a useful modification to make to the RFS service call
interpreter for software stored in rom cartridges. A rom cartridge
formatted with the program AUTORFS will always boot itself when the
Break key is pressed.

  Language roms in low priority sockets are usually entered by typing
a * command which is compared with the rom's title string and the rom
is selected with Osbyte &8E when a match is found (see Module 17). The
service call interpreter in the program AUTORFS does not intercept
service call 4 to select the language in this way. Instead it
intercepts service call &FE as shown in figure 22.1. If you have been
following the course you will know that service call &FE is issued by
the MOS on both hard and soft reset and can be intercepted for illegal
purposes as long as the registers are restored after the illegal
activity (see module 12).




 .service
         PHA              \ store accumulator
         CMP #&FE         \ is this service call &FE?
         BNE trythirteen  \ if not branch to RFS interpreter
         TXA
         PHA              \ store X
         TYA
         PHA              \ store Y
         LDA #&FC         \ Osbyte &FC
         LDX &F4          \ load X with this rom number
         LDY #0           \ and make this rom number
         JSR &FFF4        \ the current language after reset
         PLA              \ pull Y
         TAY              \ restore Y
         PLA              \ pull X
         TAX              \ restore X
         PLA              \ retore A
         RTS              \ and return
.trythirteen

Figure 22.1  Intercepting service call &FE.
-----------  ------------------------------




  The rom interpreter intercepts service call &FE and uses Osbyte &FC
to write the number of the rom to be entered following a soft reset
(Break). Using Osbyte &FC in this way stores the number of the rom
cartridge in location &28C. The rom whose number is stored in this
location is entered following a soft reset or a BRK (error). The RFS
rom cartridge will be entered after pressing the Break key as long as
BASIC is the highest priority language. When you write programs to be
stored in RFS rom cartridges there is no need to trap the Break key
because AUTORFS will do this for you.

  If the AUTORFS rom image is installed in socket &0F and the programs
stored in the RFS disable the Escape key then it is difficult to stop
the software running. Pressing Break, Ctrl+Break and Shift+Break will
all boot the RFS software. Shift+Break will attempt to boot a disc but
the rom will still boot afterwards. Software formatted in this way can
be permanently installed in socket &0F of a computer which is
dedicated to a well defined task such as controling laboratory
equipment. Installing the software in socket &0F also gives some
limited Tube compatibility and the language will boot in a 6502 second
processor after Ctrl+Break.

  The program AUTORFS must be used with the formatting program RFSGEN
and whatever programs you want to store in the RFS. These programs are
used to create the RFS rom image and detailed instructions on using
them were included in Module 18. AUTORFS was written to be used with
the supplied demonstration program DEMO. If you want to use it with
any other program you will need to alter the command string in lines
1160 to 1180.





   10 REM: AUTORFS
   20 MODE7
   30 HIMEM=&3C00
   40 diff=&8000-HIMEM
   50 H%=HIMEM
   60 romnumber=&F4
   70 phrom=&F5
   80 rompoint=&F6
   90 breakv=&202
  100 osbyte=&FFF4
  110 FOR pass = 0 TO 2 STEP 2
  120 P%=HIMEM
  130 [       OPT pass
  140         JMP language+diff
  150         JMP service+diff
  160         OPT FNequb(&C2)
  170         OPT FNequb((copyright+diff) MOD 256)
  180         BRK
  190         OPT FNequs("AUTORFS")
  200 .copyright
  210         BRK
  220         OPT FNequs("(C) Gordon Horsington 1987")
  230         BRK
  240 .service
  250         PHA
  260         CMP #&FE
  270         BNE trythirteen
  280         TXA
  290         PHA
  300         TYA
  310         PHA
  320         LDA #&FC
  330         LDX romnumber
  340         LDY #0
  350         JSR osbyte
  360         PLA
  370         TAY
  380         PLA
  390         TAX
  400         PLA
  410         RTS
  420 .trythirteen
  430         CMP #13
  440         BNE fourteen
  450         TYA
  460         EOR #&F
  470         CMP romnumber
  480         BCC out
  490         LDA #(lastbyte+diff) MOD 256
  500         STA rompoint
  510         LDA #(lastbyte+diff) DIV 256
  520         STA rompoint+1
  530         LDA romnumber
  540         EOR #&F
  550         STA phrom
  560 .exit
  570         PLA
  580         LDA #0
  590         RTS
  600 .fourteen
  610         CMP #14
  620         BNE out
  630         LDA phrom
  640         EOR #&F
  650         CMP romnumber
  660         BNE out
  670         LDY #0
  680         LDA (rompoint),Y
  690         TAY
  700         INC rompoint
  710         BNE exit
  720         INC rompoint+1
  730         JMP exit+diff
  740 .out
  750         PLA
  760         RTS
  770 .language
  780         CLI           \ Enable interupt requests
  790         LDX #&FF
  800         TXS           \ Reset stack
  810         LDA #(basic+diff) MOD 256
  820         STA breakv
  830         LDA #(basic+diff) DIV 256
  840         STA breakv+1
  850         LDA #&8D
  860         JSR osbyte    \ *ROM
  870         LDA #&8B
  880         LDX #1
  890         LDY #0
  900         JSR osbyte    \ *OPT1,0
  910         LDA #&0F
  920         LDX #0
  930         JSR osbyte    \ Flush all buffers
  940         LDA #&FF
  950         PHA
  960 .keyboard
  970         PLA
  980         TAX
  990         INX
 1000         TXA
 1010         PHA
 1020         LDY rfscomm+diff,X
 1030         BEQ basic
 1040         LDA #&8A
 1050         LDX #0
 1060         JSR osbyte
 1070         JMP keyboard+diff
 1080 .basic
 1090         LDA #&BB
 1100         LDX #0
 1110         LDY #&FF
 1120         JSR osbyte    \ Find BASIC
 1130         LDA #&8E
 1140         JMP osbyte    \ Enter BASIC
 1150 .rfscomm
 1160         OPT FNequs("CHAIN""DEMO""")
 1170         OPT FNequb(&0D)
 1180         BRK
 1190 .lastbyte
 1200 ]
 1210 NEXT
 1220 O%=lastbyte
 1230 CHAIN"RFSGEN"
 1240 DEFFNequb(byte)
 1250 ?P%=byte
 1260 P%=P%+1
 1270 =pass
 1280 DEFFNequw(word)
 1290 ?P%=word MOD 256
 1300 P%?1=word DIV 256
 1310 P%=P%+2
 1320 =pass
 1330 DEFFNequd(double)
 1340 !P%=double
 1350 P%=P%+4
 1360 =pass
 1370 DEFFNequs(string$)
 1380 $P%=string$
 1390 P%=P%+LEN(string$)
 1400 =pass
00000000  4d 61 73 74 65 72 69 6e  67 20 53 69 64 65 77 61  |Mastering Sidewa|
00000010  79 73 20 52 4f 4d 20 26  20 52 41 4d 20 2d 20 4d  |ys ROM & RAM - M|
00000020  6f 64 75 6c 65 20 32 32  20 2d 20 52 46 53 20 63  |odule 22 - RFS c|
00000030  61 72 74 72 69 64 67 65  73 0d 2d 2d 2d 2d 2d 2d  |artridges.------|
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000070  2d 2d 2d 0d 0d 20 20 54  68 65 20 52 46 53 20 6c  |---..  The RFS l|
00000080  61 6e 67 75 61 67 65 20  72 6f 6d 20 69 6e 74 72  |anguage rom intr|
00000090  6f 64 75 63 65 64 20 69  6e 20 4d 6f 64 75 6c 65  |oduced in Module|
000000a0  20 32 31 20 63 61 6e 20  62 65 20 6d 6f 64 69 66  | 21 can be modif|
000000b0  69 65 64 20 74 6f 0d 61  75 74 6f 2d 62 6f 6f 74  |ied to.auto-boot|
000000c0  20 66 72 6f 6d 20 61 6e  79 20 72 6f 6d 20 73 6f  | from any rom so|
000000d0  63 6b 65 74 2e 20 54 68  65 20 6d 65 74 68 6f 64  |cket. The method|
000000e0  20 75 73 65 64 20 74 6f  20 61 63 68 69 65 76 65  | used to achieve|
000000f0  20 74 68 69 73 20 75 73  65 73 20 61 6e 0d 22 69  | this uses an."i|
00000100  6c 6c 65 67 61 6c 22 20  69 6e 74 65 72 63 65 70  |llegal" intercep|
00000110  74 69 6f 6e 20 6f 66 20  73 65 72 76 69 63 65 20  |tion of service |
00000120  63 61 6c 6c 20 26 46 45  20 61 6e 64 20 69 74 20  |call &FE and it |
00000130  69 73 20 6e 6f 74 20 66  75 6c 6c 79 0d 63 6f 6d  |is not fully.com|
00000140  70 61 74 69 62 6c 65 20  77 69 74 68 20 61 20 36  |patible with a 6|
00000150  35 30 32 20 73 65 63 6f  6e 64 20 70 72 6f 63 65  |502 second proce|
00000160  73 73 6f 72 2e 20 49 6e  20 73 70 69 74 65 20 6f  |ssor. In spite o|
00000170  66 20 74 68 69 73 20 69  74 20 63 61 6e 20 62 65  |f this it can be|
00000180  0d 71 75 69 74 65 20 61  20 75 73 65 66 75 6c 20  |.quite a useful |
00000190  6d 6f 64 69 66 69 63 61  74 69 6f 6e 20 74 6f 20  |modification to |
000001a0  6d 61 6b 65 20 74 6f 20  74 68 65 20 52 46 53 20  |make to the RFS |
000001b0  73 65 72 76 69 63 65 20  63 61 6c 6c 0d 69 6e 74  |service call.int|
000001c0  65 72 70 72 65 74 65 72  20 66 6f 72 20 73 6f 66  |erpreter for sof|
000001d0  74 77 61 72 65 20 73 74  6f 72 65 64 20 69 6e 20  |tware stored in |
000001e0  72 6f 6d 20 63 61 72 74  72 69 64 67 65 73 2e 20  |rom cartridges. |
000001f0  41 20 72 6f 6d 20 63 61  72 74 72 69 64 67 65 0d  |A rom cartridge.|
00000200  66 6f 72 6d 61 74 74 65  64 20 77 69 74 68 20 74  |formatted with t|
00000210  68 65 20 70 72 6f 67 72  61 6d 20 41 55 54 4f 52  |he program AUTOR|
00000220  46 53 20 77 69 6c 6c 20  61 6c 77 61 79 73 20 62  |FS will always b|
00000230  6f 6f 74 20 69 74 73 65  6c 66 20 77 68 65 6e 20  |oot itself when |
00000240  74 68 65 0d 42 72 65 61  6b 20 6b 65 79 20 69 73  |the.Break key is|
00000250  20 70 72 65 73 73 65 64  2e 0d 0d 20 20 4c 61 6e  | pressed...  Lan|
00000260  67 75 61 67 65 20 72 6f  6d 73 20 69 6e 20 6c 6f  |guage roms in lo|
00000270  77 20 70 72 69 6f 72 69  74 79 20 73 6f 63 6b 65  |w priority socke|
00000280  74 73 20 61 72 65 20 75  73 75 61 6c 6c 79 20 65  |ts are usually e|
00000290  6e 74 65 72 65 64 20 62  79 20 74 79 70 69 6e 67  |ntered by typing|
000002a0  0d 61 20 2a 20 63 6f 6d  6d 61 6e 64 20 77 68 69  |.a * command whi|
000002b0  63 68 20 69 73 20 63 6f  6d 70 61 72 65 64 20 77  |ch is compared w|
000002c0  69 74 68 20 74 68 65 20  72 6f 6d 27 73 20 74 69  |ith the rom's ti|
000002d0  74 6c 65 20 73 74 72 69  6e 67 20 61 6e 64 20 74  |tle string and t|
000002e0  68 65 20 72 6f 6d 0d 69  73 20 73 65 6c 65 63 74  |he rom.is select|
000002f0  65 64 20 77 69 74 68 20  4f 73 62 79 74 65 20 26  |ed with Osbyte &|
00000300  38 45 20 77 68 65 6e 20  61 20 6d 61 74 63 68 20  |8E when a match |
00000310  69 73 20 66 6f 75 6e 64  20 28 73 65 65 20 4d 6f  |is found (see Mo|
00000320  64 75 6c 65 20 31 37 29  2e 20 54 68 65 0d 73 65  |dule 17). The.se|
00000330  72 76 69 63 65 20 63 61  6c 6c 20 69 6e 74 65 72  |rvice call inter|
00000340  70 72 65 74 65 72 20 69  6e 20 74 68 65 20 70 72  |preter in the pr|
00000350  6f 67 72 61 6d 20 41 55  54 4f 52 46 53 20 64 6f  |ogram AUTORFS do|
00000360  65 73 20 6e 6f 74 20 69  6e 74 65 72 63 65 70 74  |es not intercept|
00000370  0d 73 65 72 76 69 63 65  20 63 61 6c 6c 20 34 20  |.service call 4 |
00000380  74 6f 20 73 65 6c 65 63  74 20 74 68 65 20 6c 61  |to select the la|
00000390  6e 67 75 61 67 65 20 69  6e 20 74 68 69 73 20 77  |nguage in this w|
000003a0  61 79 2e 20 49 6e 73 74  65 61 64 20 69 74 0d 69  |ay. Instead it.i|
000003b0  6e 74 65 72 63 65 70 74  73 20 73 65 72 76 69 63  |ntercepts servic|
000003c0  65 20 63 61 6c 6c 20 26  46 45 20 61 73 20 73 68  |e call &FE as sh|
000003d0  6f 77 6e 20 69 6e 20 66  69 67 75 72 65 20 32 32  |own in figure 22|
000003e0  2e 31 2e 20 49 66 20 79  6f 75 20 68 61 76 65 20  |.1. If you have |
000003f0  62 65 65 6e 0d 66 6f 6c  6c 6f 77 69 6e 67 20 74  |been.following t|
00000400  68 65 20 63 6f 75 72 73  65 20 79 6f 75 20 77 69  |he course you wi|
00000410  6c 6c 20 6b 6e 6f 77 20  74 68 61 74 20 73 65 72  |ll know that ser|
00000420  76 69 63 65 20 63 61 6c  6c 20 26 46 45 20 69 73  |vice call &FE is|
00000430  20 69 73 73 75 65 64 20  62 79 0d 74 68 65 20 4d  | issued by.the M|
00000440  4f 53 20 6f 6e 20 62 6f  74 68 20 68 61 72 64 20  |OS on both hard |
00000450  61 6e 64 20 73 6f 66 74  20 72 65 73 65 74 20 61  |and soft reset a|
00000460  6e 64 20 63 61 6e 20 62  65 20 69 6e 74 65 72 63  |nd can be interc|
00000470  65 70 74 65 64 20 66 6f  72 20 69 6c 6c 65 67 61  |epted for illega|
00000480  6c 0d 70 75 72 70 6f 73  65 73 20 61 73 20 6c 6f  |l.purposes as lo|
00000490  6e 67 20 61 73 20 74 68  65 20 72 65 67 69 73 74  |ng as the regist|
000004a0  65 72 73 20 61 72 65 20  72 65 73 74 6f 72 65 64  |ers are restored|
000004b0  20 61 66 74 65 72 20 74  68 65 20 69 6c 6c 65 67  | after the illeg|
000004c0  61 6c 0d 61 63 74 69 76  69 74 79 20 28 73 65 65  |al.activity (see|
000004d0  20 6d 6f 64 75 6c 65 20  31 32 29 2e 0d 0d 0d 0d  | module 12).....|
000004e0  0d 20 2e 73 65 72 76 69  63 65 0d 20 20 20 20 20  |. .service.     |
000004f0  20 20 20 20 50 48 41 20  20 20 20 20 20 20 20 20  |    PHA         |
00000500  20 20 20 20 20 5c 20 73  74 6f 72 65 20 61 63 63  |     \ store acc|
00000510  75 6d 75 6c 61 74 6f 72  0d 20 20 20 20 20 20 20  |umulator.       |
00000520  20 20 43 4d 50 20 23 26  46 45 20 20 20 20 20 20  |  CMP #&FE      |
00000530  20 20 20 5c 20 69 73 20  74 68 69 73 20 73 65 72  |   \ is this ser|
00000540  76 69 63 65 20 63 61 6c  6c 20 26 46 45 3f 0d 20  |vice call &FE?. |
00000550  20 20 20 20 20 20 20 20  42 4e 45 20 74 72 79 74  |        BNE tryt|
00000560  68 69 72 74 65 65 6e 20  20 5c 20 69 66 20 6e 6f  |hirteen  \ if no|
00000570  74 20 62 72 61 6e 63 68  20 74 6f 20 52 46 53 20  |t branch to RFS |
00000580  69 6e 74 65 72 70 72 65  74 65 72 0d 20 20 20 20  |interpreter.    |
00000590  20 20 20 20 20 54 58 41  0d 20 20 20 20 20 20 20  |     TXA.       |
000005a0  20 20 50 48 41 20 20 20  20 20 20 20 20 20 20 20  |  PHA           |
000005b0  20 20 20 5c 20 73 74 6f  72 65 20 58 0d 20 20 20  |   \ store X.   |
000005c0  20 20 20 20 20 20 54 59  41 0d 20 20 20 20 20 20  |      TYA.      |
000005d0  20 20 20 50 48 41 20 20  20 20 20 20 20 20 20 20  |   PHA          |
000005e0  20 20 20 20 5c 20 73 74  6f 72 65 20 59 0d 20 20  |    \ store Y.  |
000005f0  20 20 20 20 20 20 20 4c  44 41 20 23 26 46 43 20  |       LDA #&FC |
00000600  20 20 20 20 20 20 20 20  5c 20 4f 73 62 79 74 65  |        \ Osbyte|
00000610  20 26 46 43 0d 20 20 20  20 20 20 20 20 20 4c 44  | &FC.         LD|
00000620  58 20 26 46 34 20 20 20  20 20 20 20 20 20 20 5c  |X &F4          \|
00000630  20 6c 6f 61 64 20 58 20  77 69 74 68 20 74 68 69  | load X with thi|
00000640  73 20 72 6f 6d 20 6e 75  6d 62 65 72 0d 20 20 20  |s rom number.   |
00000650  20 20 20 20 20 20 4c 44  59 20 23 30 20 20 20 20  |      LDY #0    |
00000660  20 20 20 20 20 20 20 5c  20 61 6e 64 20 6d 61 6b  |       \ and mak|
00000670  65 20 74 68 69 73 20 72  6f 6d 20 6e 75 6d 62 65  |e this rom numbe|
00000680  72 0d 20 20 20 20 20 20  20 20 20 4a 53 52 20 26  |r.         JSR &|
00000690  46 46 46 34 20 20 20 20  20 20 20 20 5c 20 74 68  |FFF4        \ th|
000006a0  65 20 63 75 72 72 65 6e  74 20 6c 61 6e 67 75 61  |e current langua|
000006b0  67 65 20 61 66 74 65 72  20 72 65 73 65 74 0d 20  |ge after reset. |
000006c0  20 20 20 20 20 20 20 20  50 4c 41 20 20 20 20 20  |        PLA     |
000006d0  20 20 20 20 20 20 20 20  20 5c 20 70 75 6c 6c 20  |         \ pull |
000006e0  59 0d 20 20 20 20 20 20  20 20 20 54 41 59 20 20  |Y.         TAY  |
000006f0  20 20 20 20 20 20 20 20  20 20 20 20 5c 20 72 65  |            \ re|
00000700  73 74 6f 72 65 20 59 0d  20 20 20 20 20 20 20 20  |store Y.        |
00000710  20 50 4c 41 20 20 20 20  20 20 20 20 20 20 20 20  | PLA            |
00000720  20 20 5c 20 70 75 6c 6c  20 58 0d 20 20 20 20 20  |  \ pull X.     |
00000730  20 20 20 20 54 41 58 20  20 20 20 20 20 20 20 20  |    TAX         |
00000740  20 20 20 20 20 5c 20 72  65 73 74 6f 72 65 20 58  |     \ restore X|
00000750  0d 20 20 20 20 20 20 20  20 20 50 4c 41 20 20 20  |.         PLA   |
00000760  20 20 20 20 20 20 20 20  20 20 20 5c 20 72 65 74  |           \ ret|
00000770  6f 72 65 20 41 0d 20 20  20 20 20 20 20 20 20 52  |ore A.         R|
00000780  54 53 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |TS              |
00000790  5c 20 61 6e 64 20 72 65  74 75 72 6e 0d 2e 74 72  |\ and return..tr|
000007a0  79 74 68 69 72 74 65 65  6e 0d 0d 46 69 67 75 72  |ythirteen..Figur|
000007b0  65 20 32 32 2e 31 20 20  49 6e 74 65 72 63 65 70  |e 22.1  Intercep|
000007c0  74 69 6e 67 20 73 65 72  76 69 63 65 20 63 61 6c  |ting service cal|
000007d0  6c 20 26 46 45 2e 0d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |l &FE..---------|
000007e0  2d 2d 20 20 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |--  ------------|
000007f0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000800  2d 2d 0d 0d 0d 0d 0d 20  20 54 68 65 20 72 6f 6d  |--.....  The rom|
00000810  20 69 6e 74 65 72 70 72  65 74 65 72 20 69 6e 74  | interpreter int|
00000820  65 72 63 65 70 74 73 20  73 65 72 76 69 63 65 20  |ercepts service |
00000830  63 61 6c 6c 20 26 46 45  20 61 6e 64 20 75 73 65  |call &FE and use|
00000840  73 20 4f 73 62 79 74 65  20 26 46 43 0d 74 6f 20  |s Osbyte &FC.to |
00000850  77 72 69 74 65 20 74 68  65 20 6e 75 6d 62 65 72  |write the number|
00000860  20 6f 66 20 74 68 65 20  72 6f 6d 20 74 6f 20 62  | of the rom to b|
00000870  65 20 65 6e 74 65 72 65  64 20 66 6f 6c 6c 6f 77  |e entered follow|
00000880  69 6e 67 20 61 20 73 6f  66 74 20 72 65 73 65 74  |ing a soft reset|
00000890  0d 28 42 72 65 61 6b 29  2e 20 55 73 69 6e 67 20  |.(Break). Using |
000008a0  4f 73 62 79 74 65 20 26  46 43 20 69 6e 20 74 68  |Osbyte &FC in th|
000008b0  69 73 20 77 61 79 20 73  74 6f 72 65 73 20 74 68  |is way stores th|
000008c0  65 20 6e 75 6d 62 65 72  20 6f 66 20 74 68 65 20  |e number of the |
000008d0  72 6f 6d 0d 63 61 72 74  72 69 64 67 65 20 69 6e  |rom.cartridge in|
000008e0  20 6c 6f 63 61 74 69 6f  6e 20 26 32 38 43 2e 20  | location &28C. |
000008f0  54 68 65 20 72 6f 6d 20  77 68 6f 73 65 20 6e 75  |The rom whose nu|
00000900  6d 62 65 72 20 69 73 20  73 74 6f 72 65 64 20 69  |mber is stored i|
00000910  6e 20 74 68 69 73 0d 6c  6f 63 61 74 69 6f 6e 20  |n this.location |
00000920  69 73 20 65 6e 74 65 72  65 64 20 66 6f 6c 6c 6f  |is entered follo|
00000930  77 69 6e 67 20 61 20 73  6f 66 74 20 72 65 73 65  |wing a soft rese|
00000940  74 20 6f 72 20 61 20 42  52 4b 20 28 65 72 72 6f  |t or a BRK (erro|
00000950  72 29 2e 20 54 68 65 20  52 46 53 0d 72 6f 6d 20  |r). The RFS.rom |
00000960  63 61 72 74 72 69 64 67  65 20 77 69 6c 6c 20 62  |cartridge will b|
00000970  65 20 65 6e 74 65 72 65  64 20 61 66 74 65 72 20  |e entered after |
00000980  70 72 65 73 73 69 6e 67  20 74 68 65 20 42 72 65  |pressing the Bre|
00000990  61 6b 20 6b 65 79 20 61  73 20 6c 6f 6e 67 20 61  |ak key as long a|
000009a0  73 0d 42 41 53 49 43 20  69 73 20 74 68 65 20 68  |s.BASIC is the h|
000009b0  69 67 68 65 73 74 20 70  72 69 6f 72 69 74 79 20  |ighest priority |
000009c0  6c 61 6e 67 75 61 67 65  2e 20 57 68 65 6e 20 79  |language. When y|
000009d0  6f 75 20 77 72 69 74 65  20 70 72 6f 67 72 61 6d  |ou write program|
000009e0  73 20 74 6f 20 62 65 0d  73 74 6f 72 65 64 20 69  |s to be.stored i|
000009f0  6e 20 52 46 53 20 72 6f  6d 20 63 61 72 74 72 69  |n RFS rom cartri|
00000a00  64 67 65 73 20 74 68 65  72 65 20 69 73 20 6e 6f  |dges there is no|
00000a10  20 6e 65 65 64 20 74 6f  20 74 72 61 70 20 74 68  | need to trap th|
00000a20  65 20 42 72 65 61 6b 20  6b 65 79 0d 62 65 63 61  |e Break key.beca|
00000a30  75 73 65 20 41 55 54 4f  52 46 53 20 77 69 6c 6c  |use AUTORFS will|
00000a40  20 64 6f 20 74 68 69 73  20 66 6f 72 20 79 6f 75  | do this for you|
00000a50  2e 0d 0d 20 20 49 66 20  74 68 65 20 41 55 54 4f  |...  If the AUTO|
00000a60  52 46 53 20 72 6f 6d 20  69 6d 61 67 65 20 69 73  |RFS rom image is|
00000a70  20 69 6e 73 74 61 6c 6c  65 64 20 69 6e 20 73 6f  | installed in so|
00000a80  63 6b 65 74 20 26 30 46  20 61 6e 64 20 74 68 65  |cket &0F and the|
00000a90  20 70 72 6f 67 72 61 6d  73 0d 73 74 6f 72 65 64  | programs.stored|
00000aa0  20 69 6e 20 74 68 65 20  52 46 53 20 64 69 73 61  | in the RFS disa|
00000ab0  62 6c 65 20 74 68 65 20  45 73 63 61 70 65 20 6b  |ble the Escape k|
00000ac0  65 79 20 74 68 65 6e 20  69 74 20 69 73 20 64 69  |ey then it is di|
00000ad0  66 66 69 63 75 6c 74 20  74 6f 20 73 74 6f 70 0d  |fficult to stop.|
00000ae0  74 68 65 20 73 6f 66 74  77 61 72 65 20 72 75 6e  |the software run|
00000af0  6e 69 6e 67 2e 20 50 72  65 73 73 69 6e 67 20 42  |ning. Pressing B|
00000b00  72 65 61 6b 2c 20 43 74  72 6c 2b 42 72 65 61 6b  |reak, Ctrl+Break|
00000b10  20 61 6e 64 20 53 68 69  66 74 2b 42 72 65 61 6b  | and Shift+Break|
00000b20  20 77 69 6c 6c 0d 61 6c  6c 20 62 6f 6f 74 20 74  | will.all boot t|
00000b30  68 65 20 52 46 53 20 73  6f 66 74 77 61 72 65 2e  |he RFS software.|
00000b40  20 53 68 69 66 74 2b 42  72 65 61 6b 20 77 69 6c  | Shift+Break wil|
00000b50  6c 20 61 74 74 65 6d 70  74 20 74 6f 20 62 6f 6f  |l attempt to boo|
00000b60  74 20 61 20 64 69 73 63  20 62 75 74 0d 74 68 65  |t a disc but.the|
00000b70  20 72 6f 6d 20 77 69 6c  6c 20 73 74 69 6c 6c 20  | rom will still |
00000b80  62 6f 6f 74 20 61 66 74  65 72 77 61 72 64 73 2e  |boot afterwards.|
00000b90  20 53 6f 66 74 77 61 72  65 20 66 6f 72 6d 61 74  | Software format|
00000ba0  74 65 64 20 69 6e 20 74  68 69 73 20 77 61 79 20  |ted in this way |
00000bb0  63 61 6e 0d 62 65 20 70  65 72 6d 61 6e 65 6e 74  |can.be permanent|
00000bc0  6c 79 20 69 6e 73 74 61  6c 6c 65 64 20 69 6e 20  |ly installed in |
00000bd0  73 6f 63 6b 65 74 20 26  30 46 20 6f 66 20 61 20  |socket &0F of a |
00000be0  63 6f 6d 70 75 74 65 72  20 77 68 69 63 68 20 69  |computer which i|
00000bf0  73 0d 64 65 64 69 63 61  74 65 64 20 74 6f 20 61  |s.dedicated to a|
00000c00  20 77 65 6c 6c 20 64 65  66 69 6e 65 64 20 74 61  | well defined ta|
00000c10  73 6b 20 73 75 63 68 20  61 73 20 63 6f 6e 74 72  |sk such as contr|
00000c20  6f 6c 69 6e 67 20 6c 61  62 6f 72 61 74 6f 72 79  |oling laboratory|
00000c30  0d 65 71 75 69 70 6d 65  6e 74 2e 20 49 6e 73 74  |.equipment. Inst|
00000c40  61 6c 6c 69 6e 67 20 74  68 65 20 73 6f 66 74 77  |alling the softw|
00000c50  61 72 65 20 69 6e 20 73  6f 63 6b 65 74 20 26 30  |are in socket &0|
00000c60  46 20 61 6c 73 6f 20 67  69 76 65 73 20 73 6f 6d  |F also gives som|
00000c70  65 0d 6c 69 6d 69 74 65  64 20 54 75 62 65 20 63  |e.limited Tube c|
00000c80  6f 6d 70 61 74 69 62 69  6c 69 74 79 20 61 6e 64  |ompatibility and|
00000c90  20 74 68 65 20 6c 61 6e  67 75 61 67 65 20 77 69  | the language wi|
00000ca0  6c 6c 20 62 6f 6f 74 20  69 6e 20 61 20 36 35 30  |ll boot in a 650|
00000cb0  32 20 73 65 63 6f 6e 64  0d 70 72 6f 63 65 73 73  |2 second.process|
00000cc0  6f 72 20 61 66 74 65 72  20 43 74 72 6c 2b 42 72  |or after Ctrl+Br|
00000cd0  65 61 6b 2e 0d 0d 20 20  54 68 65 20 70 72 6f 67  |eak...  The prog|
00000ce0  72 61 6d 20 41 55 54 4f  52 46 53 20 6d 75 73 74  |ram AUTORFS must|
00000cf0  20 62 65 20 75 73 65 64  20 77 69 74 68 20 74 68  | be used with th|
00000d00  65 20 66 6f 72 6d 61 74  74 69 6e 67 20 70 72 6f  |e formatting pro|
00000d10  67 72 61 6d 20 52 46 53  47 45 4e 0d 61 6e 64 20  |gram RFSGEN.and |
00000d20  77 68 61 74 65 76 65 72  20 70 72 6f 67 72 61 6d  |whatever program|
00000d30  73 20 79 6f 75 20 77 61  6e 74 20 74 6f 20 73 74  |s you want to st|
00000d40  6f 72 65 20 69 6e 20 74  68 65 20 52 46 53 2e 20  |ore in the RFS. |
00000d50  54 68 65 73 65 20 70 72  6f 67 72 61 6d 73 20 61  |These programs a|
00000d60  72 65 0d 75 73 65 64 20  74 6f 20 63 72 65 61 74  |re.used to creat|
00000d70  65 20 74 68 65 20 52 46  53 20 72 6f 6d 20 69 6d  |e the RFS rom im|
00000d80  61 67 65 20 61 6e 64 20  64 65 74 61 69 6c 65 64  |age and detailed|
00000d90  20 69 6e 73 74 72 75 63  74 69 6f 6e 73 20 6f 6e  | instructions on|
00000da0  20 75 73 69 6e 67 0d 74  68 65 6d 20 77 65 72 65  | using.them were|
00000db0  20 69 6e 63 6c 75 64 65  64 20 69 6e 20 4d 6f 64  | included in Mod|
00000dc0  75 6c 65 20 31 38 2e 20  41 55 54 4f 52 46 53 20  |ule 18. AUTORFS |
00000dd0  77 61 73 20 77 72 69 74  74 65 6e 20 74 6f 20 62  |was written to b|
00000de0  65 20 75 73 65 64 20 77  69 74 68 0d 74 68 65 20  |e used with.the |
00000df0  73 75 70 70 6c 69 65 64  20 64 65 6d 6f 6e 73 74  |supplied demonst|
00000e00  72 61 74 69 6f 6e 20 70  72 6f 67 72 61 6d 20 44  |ration program D|
00000e10  45 4d 4f 2e 20 49 66 20  79 6f 75 20 77 61 6e 74  |EMO. If you want|
00000e20  20 74 6f 20 75 73 65 20  69 74 20 77 69 74 68 0d  | to use it with.|
00000e30  61 6e 79 20 6f 74 68 65  72 20 70 72 6f 67 72 61  |any other progra|
00000e40  6d 20 79 6f 75 20 77 69  6c 6c 20 6e 65 65 64 20  |m you will need |
00000e50  74 6f 20 61 6c 74 65 72  20 74 68 65 20 63 6f 6d  |to alter the com|
00000e60  6d 61 6e 64 20 73 74 72  69 6e 67 20 69 6e 20 6c  |mand string in l|
00000e70  69 6e 65 73 0d 31 31 36  30 20 74 6f 20 31 31 38  |ines.1160 to 118|
00000e80  30 2e 0d 0d 0d 0d 0d 0d  20 20 20 31 30 20 52 45  |0.......   10 RE|
00000e90  4d 3a 20 41 55 54 4f 52  46 53 0d 20 20 20 32 30  |M: AUTORFS.   20|
00000ea0  20 4d 4f 44 45 37 0d 20  20 20 33 30 20 48 49 4d  | MODE7.   30 HIM|
00000eb0  45 4d 3d 26 33 43 30 30  0d 20 20 20 34 30 20 64  |EM=&3C00.   40 d|
00000ec0  69 66 66 3d 26 38 30 30  30 2d 48 49 4d 45 4d 0d  |iff=&8000-HIMEM.|
00000ed0  20 20 20 35 30 20 48 25  3d 48 49 4d 45 4d 0d 20  |   50 H%=HIMEM. |
00000ee0  20 20 36 30 20 72 6f 6d  6e 75 6d 62 65 72 3d 26  |  60 romnumber=&|
00000ef0  46 34 0d 20 20 20 37 30  20 70 68 72 6f 6d 3d 26  |F4.   70 phrom=&|
00000f00  46 35 0d 20 20 20 38 30  20 72 6f 6d 70 6f 69 6e  |F5.   80 rompoin|
00000f10  74 3d 26 46 36 0d 20 20  20 39 30 20 62 72 65 61  |t=&F6.   90 brea|
00000f20  6b 76 3d 26 32 30 32 0d  20 20 31 30 30 20 6f 73  |kv=&202.  100 os|
00000f30  62 79 74 65 3d 26 46 46  46 34 0d 20 20 31 31 30  |byte=&FFF4.  110|
00000f40  20 46 4f 52 20 70 61 73  73 20 3d 20 30 20 54 4f  | FOR pass = 0 TO|
00000f50  20 32 20 53 54 45 50 20  32 0d 20 20 31 32 30 20  | 2 STEP 2.  120 |
00000f60  50 25 3d 48 49 4d 45 4d  0d 20 20 31 33 30 20 5b  |P%=HIMEM.  130 [|
00000f70  20 20 20 20 20 20 20 4f  50 54 20 70 61 73 73 0d  |       OPT pass.|
00000f80  20 20 31 34 30 20 20 20  20 20 20 20 20 20 4a 4d  |  140         JM|
00000f90  50 20 6c 61 6e 67 75 61  67 65 2b 64 69 66 66 0d  |P language+diff.|
00000fa0  20 20 31 35 30 20 20 20  20 20 20 20 20 20 4a 4d  |  150         JM|
00000fb0  50 20 73 65 72 76 69 63  65 2b 64 69 66 66 0d 20  |P service+diff. |
00000fc0  20 31 36 30 20 20 20 20  20 20 20 20 20 4f 50 54  | 160         OPT|
00000fd0  20 46 4e 65 71 75 62 28  26 43 32 29 0d 20 20 31  | FNequb(&C2).  1|
00000fe0  37 30 20 20 20 20 20 20  20 20 20 4f 50 54 20 46  |70         OPT F|
00000ff0  4e 65 71 75 62 28 28 63  6f 70 79 72 69 67 68 74  |Nequb((copyright|
00001000  2b 64 69 66 66 29 20 4d  4f 44 20 32 35 36 29 0d  |+diff) MOD 256).|
00001010  20 20 31 38 30 20 20 20  20 20 20 20 20 20 42 52  |  180         BR|
00001020  4b 0d 20 20 31 39 30 20  20 20 20 20 20 20 20 20  |K.  190         |
00001030  4f 50 54 20 46 4e 65 71  75 73 28 22 41 55 54 4f  |OPT FNequs("AUTO|
00001040  52 46 53 22 29 0d 20 20  32 30 30 20 2e 63 6f 70  |RFS").  200 .cop|
00001050  79 72 69 67 68 74 0d 20  20 32 31 30 20 20 20 20  |yright.  210    |
00001060  20 20 20 20 20 42 52 4b  0d 20 20 32 32 30 20 20  |     BRK.  220  |
00001070  20 20 20 20 20 20 20 4f  50 54 20 46 4e 65 71 75  |       OPT FNequ|
00001080  73 28 22 28 43 29 20 47  6f 72 64 6f 6e 20 48 6f  |s("(C) Gordon Ho|
00001090  72 73 69 6e 67 74 6f 6e  20 31 39 38 37 22 29 0d  |rsington 1987").|
000010a0  20 20 32 33 30 20 20 20  20 20 20 20 20 20 42 52  |  230         BR|
000010b0  4b 0d 20 20 32 34 30 20  2e 73 65 72 76 69 63 65  |K.  240 .service|
000010c0  0d 20 20 32 35 30 20 20  20 20 20 20 20 20 20 50  |.  250         P|
000010d0  48 41 0d 20 20 32 36 30  20 20 20 20 20 20 20 20  |HA.  260        |
000010e0  20 43 4d 50 20 23 26 46  45 0d 20 20 32 37 30 20  | CMP #&FE.  270 |
000010f0  20 20 20 20 20 20 20 20  42 4e 45 20 74 72 79 74  |        BNE tryt|
00001100  68 69 72 74 65 65 6e 0d  20 20 32 38 30 20 20 20  |hirteen.  280   |
00001110  20 20 20 20 20 20 54 58  41 0d 20 20 32 39 30 20  |      TXA.  290 |
00001120  20 20 20 20 20 20 20 20  50 48 41 0d 20 20 33 30  |        PHA.  30|
00001130  30 20 20 20 20 20 20 20  20 20 54 59 41 0d 20 20  |0         TYA.  |
00001140  33 31 30 20 20 20 20 20  20 20 20 20 50 48 41 0d  |310         PHA.|
00001150  20 20 33 32 30 20 20 20  20 20 20 20 20 20 4c 44  |  320         LD|
00001160  41 20 23 26 46 43 0d 20  20 33 33 30 20 20 20 20  |A #&FC.  330    |
00001170  20 20 20 20 20 4c 44 58  20 72 6f 6d 6e 75 6d 62  |     LDX romnumb|
00001180  65 72 0d 20 20 33 34 30  20 20 20 20 20 20 20 20  |er.  340        |
00001190  20 4c 44 59 20 23 30 0d  20 20 33 35 30 20 20 20  | LDY #0.  350   |
000011a0  20 20 20 20 20 20 4a 53  52 20 6f 73 62 79 74 65  |      JSR osbyte|
000011b0  0d 20 20 33 36 30 20 20  20 20 20 20 20 20 20 50  |.  360         P|
000011c0  4c 41 0d 20 20 33 37 30  20 20 20 20 20 20 20 20  |LA.  370        |
000011d0  20 54 41 59 0d 20 20 33  38 30 20 20 20 20 20 20  | TAY.  380      |
000011e0  20 20 20 50 4c 41 0d 20  20 33 39 30 20 20 20 20  |   PLA.  390    |
000011f0  20 20 20 20 20 54 41 58  0d 20 20 34 30 30 20 20  |     TAX.  400  |
00001200  20 20 20 20 20 20 20 50  4c 41 0d 20 20 34 31 30  |       PLA.  410|
00001210  20 20 20 20 20 20 20 20  20 52 54 53 0d 20 20 34  |         RTS.  4|
00001220  32 30 20 2e 74 72 79 74  68 69 72 74 65 65 6e 0d  |20 .trythirteen.|
00001230  20 20 34 33 30 20 20 20  20 20 20 20 20 20 43 4d  |  430         CM|
00001240  50 20 23 31 33 0d 20 20  34 34 30 20 20 20 20 20  |P #13.  440     |
00001250  20 20 20 20 42 4e 45 20  66 6f 75 72 74 65 65 6e  |    BNE fourteen|
00001260  0d 20 20 34 35 30 20 20  20 20 20 20 20 20 20 54  |.  450         T|
00001270  59 41 0d 20 20 34 36 30  20 20 20 20 20 20 20 20  |YA.  460        |
00001280  20 45 4f 52 20 23 26 46  0d 20 20 34 37 30 20 20  | EOR #&F.  470  |
00001290  20 20 20 20 20 20 20 43  4d 50 20 72 6f 6d 6e 75  |       CMP romnu|
000012a0  6d 62 65 72 0d 20 20 34  38 30 20 20 20 20 20 20  |mber.  480      |
000012b0  20 20 20 42 43 43 20 6f  75 74 0d 20 20 34 39 30  |   BCC out.  490|
000012c0  20 20 20 20 20 20 20 20  20 4c 44 41 20 23 28 6c  |         LDA #(l|
000012d0  61 73 74 62 79 74 65 2b  64 69 66 66 29 20 4d 4f  |astbyte+diff) MO|
000012e0  44 20 32 35 36 0d 20 20  35 30 30 20 20 20 20 20  |D 256.  500     |
000012f0  20 20 20 20 53 54 41 20  72 6f 6d 70 6f 69 6e 74  |    STA rompoint|
00001300  0d 20 20 35 31 30 20 20  20 20 20 20 20 20 20 4c  |.  510         L|
00001310  44 41 20 23 28 6c 61 73  74 62 79 74 65 2b 64 69  |DA #(lastbyte+di|
00001320  66 66 29 20 44 49 56 20  32 35 36 0d 20 20 35 32  |ff) DIV 256.  52|
00001330  30 20 20 20 20 20 20 20  20 20 53 54 41 20 72 6f  |0         STA ro|
00001340  6d 70 6f 69 6e 74 2b 31  0d 20 20 35 33 30 20 20  |mpoint+1.  530  |
00001350  20 20 20 20 20 20 20 4c  44 41 20 72 6f 6d 6e 75  |       LDA romnu|
00001360  6d 62 65 72 0d 20 20 35  34 30 20 20 20 20 20 20  |mber.  540      |
00001370  20 20 20 45 4f 52 20 23  26 46 0d 20 20 35 35 30  |   EOR #&F.  550|
00001380  20 20 20 20 20 20 20 20  20 53 54 41 20 70 68 72  |         STA phr|
00001390  6f 6d 0d 20 20 35 36 30  20 2e 65 78 69 74 0d 20  |om.  560 .exit. |
000013a0  20 35 37 30 20 20 20 20  20 20 20 20 20 50 4c 41  | 570         PLA|
000013b0  0d 20 20 35 38 30 20 20  20 20 20 20 20 20 20 4c  |.  580         L|
000013c0  44 41 20 23 30 0d 20 20  35 39 30 20 20 20 20 20  |DA #0.  590     |
000013d0  20 20 20 20 52 54 53 0d  20 20 36 30 30 20 2e 66  |    RTS.  600 .f|
000013e0  6f 75 72 74 65 65 6e 0d  20 20 36 31 30 20 20 20  |ourteen.  610   |
000013f0  20 20 20 20 20 20 43 4d  50 20 23 31 34 0d 20 20  |      CMP #14.  |
00001400  36 32 30 20 20 20 20 20  20 20 20 20 42 4e 45 20  |620         BNE |
00001410  6f 75 74 0d 20 20 36 33  30 20 20 20 20 20 20 20  |out.  630       |
00001420  20 20 4c 44 41 20 70 68  72 6f 6d 0d 20 20 36 34  |  LDA phrom.  64|
00001430  30 20 20 20 20 20 20 20  20 20 45 4f 52 20 23 26  |0         EOR #&|
00001440  46 0d 20 20 36 35 30 20  20 20 20 20 20 20 20 20  |F.  650         |
00001450  43 4d 50 20 72 6f 6d 6e  75 6d 62 65 72 0d 20 20  |CMP romnumber.  |
00001460  36 36 30 20 20 20 20 20  20 20 20 20 42 4e 45 20  |660         BNE |
00001470  6f 75 74 0d 20 20 36 37  30 20 20 20 20 20 20 20  |out.  670       |
00001480  20 20 4c 44 59 20 23 30  0d 20 20 36 38 30 20 20  |  LDY #0.  680  |
00001490  20 20 20 20 20 20 20 4c  44 41 20 28 72 6f 6d 70  |       LDA (romp|
000014a0  6f 69 6e 74 29 2c 59 0d  20 20 36 39 30 20 20 20  |oint),Y.  690   |
000014b0  20 20 20 20 20 20 54 41  59 0d 20 20 37 30 30 20  |      TAY.  700 |
000014c0  20 20 20 20 20 20 20 20  49 4e 43 20 72 6f 6d 70  |        INC romp|
000014d0  6f 69 6e 74 0d 20 20 37  31 30 20 20 20 20 20 20  |oint.  710      |
000014e0  20 20 20 42 4e 45 20 65  78 69 74 0d 20 20 37 32  |   BNE exit.  72|
000014f0  30 20 20 20 20 20 20 20  20 20 49 4e 43 20 72 6f  |0         INC ro|
00001500  6d 70 6f 69 6e 74 2b 31  0d 20 20 37 33 30 20 20  |mpoint+1.  730  |
00001510  20 20 20 20 20 20 20 4a  4d 50 20 65 78 69 74 2b  |       JMP exit+|
00001520  64 69 66 66 0d 20 20 37  34 30 20 2e 6f 75 74 0d  |diff.  740 .out.|
00001530  20 20 37 35 30 20 20 20  20 20 20 20 20 20 50 4c  |  750         PL|
00001540  41 0d 20 20 37 36 30 20  20 20 20 20 20 20 20 20  |A.  760         |
00001550  52 54 53 0d 20 20 37 37  30 20 2e 6c 61 6e 67 75  |RTS.  770 .langu|
00001560  61 67 65 0d 20 20 37 38  30 20 20 20 20 20 20 20  |age.  780       |
00001570  20 20 43 4c 49 20 20 20  20 20 20 20 20 20 20 20  |  CLI           |
00001580  5c 20 45 6e 61 62 6c 65  20 69 6e 74 65 72 75 70  |\ Enable interup|
00001590  74 20 72 65 71 75 65 73  74 73 0d 20 20 37 39 30  |t requests.  790|
000015a0  20 20 20 20 20 20 20 20  20 4c 44 58 20 23 26 46  |         LDX #&F|
000015b0  46 0d 20 20 38 30 30 20  20 20 20 20 20 20 20 20  |F.  800         |
000015c0  54 58 53 20 20 20 20 20  20 20 20 20 20 20 5c 20  |TXS           \ |
000015d0  52 65 73 65 74 20 73 74  61 63 6b 0d 20 20 38 31  |Reset stack.  81|
000015e0  30 20 20 20 20 20 20 20  20 20 4c 44 41 20 23 28  |0         LDA #(|
000015f0  62 61 73 69 63 2b 64 69  66 66 29 20 4d 4f 44 20  |basic+diff) MOD |
00001600  32 35 36 0d 20 20 38 32  30 20 20 20 20 20 20 20  |256.  820       |
00001610  20 20 53 54 41 20 62 72  65 61 6b 76 0d 20 20 38  |  STA breakv.  8|
00001620  33 30 20 20 20 20 20 20  20 20 20 4c 44 41 20 23  |30         LDA #|
00001630  28 62 61 73 69 63 2b 64  69 66 66 29 20 44 49 56  |(basic+diff) DIV|
00001640  20 32 35 36 0d 20 20 38  34 30 20 20 20 20 20 20  | 256.  840      |
00001650  20 20 20 53 54 41 20 62  72 65 61 6b 76 2b 31 0d  |   STA breakv+1.|
00001660  20 20 38 35 30 20 20 20  20 20 20 20 20 20 4c 44  |  850         LD|
00001670  41 20 23 26 38 44 0d 20  20 38 36 30 20 20 20 20  |A #&8D.  860    |
00001680  20 20 20 20 20 4a 53 52  20 6f 73 62 79 74 65 20  |     JSR osbyte |
00001690  20 20 20 5c 20 2a 52 4f  4d 0d 20 20 38 37 30 20  |   \ *ROM.  870 |
000016a0  20 20 20 20 20 20 20 20  4c 44 41 20 23 26 38 42  |        LDA #&8B|
000016b0  0d 20 20 38 38 30 20 20  20 20 20 20 20 20 20 4c  |.  880         L|
000016c0  44 58 20 23 31 0d 20 20  38 39 30 20 20 20 20 20  |DX #1.  890     |
000016d0  20 20 20 20 4c 44 59 20  23 30 0d 20 20 39 30 30  |    LDY #0.  900|
000016e0  20 20 20 20 20 20 20 20  20 4a 53 52 20 6f 73 62  |         JSR osb|
000016f0  79 74 65 20 20 20 20 5c  20 2a 4f 50 54 31 2c 30  |yte    \ *OPT1,0|
00001700  0d 20 20 39 31 30 20 20  20 20 20 20 20 20 20 4c  |.  910         L|
00001710  44 41 20 23 26 30 46 0d  20 20 39 32 30 20 20 20  |DA #&0F.  920   |
00001720  20 20 20 20 20 20 4c 44  58 20 23 30 0d 20 20 39  |      LDX #0.  9|
00001730  33 30 20 20 20 20 20 20  20 20 20 4a 53 52 20 6f  |30         JSR o|
00001740  73 62 79 74 65 20 20 20  20 5c 20 46 6c 75 73 68  |sbyte    \ Flush|
00001750  20 61 6c 6c 20 62 75 66  66 65 72 73 0d 20 20 39  | all buffers.  9|
00001760  34 30 20 20 20 20 20 20  20 20 20 4c 44 41 20 23  |40         LDA #|
00001770  26 46 46 0d 20 20 39 35  30 20 20 20 20 20 20 20  |&FF.  950       |
00001780  20 20 50 48 41 0d 20 20  39 36 30 20 2e 6b 65 79  |  PHA.  960 .key|
00001790  62 6f 61 72 64 0d 20 20  39 37 30 20 20 20 20 20  |board.  970     |
000017a0  20 20 20 20 50 4c 41 0d  20 20 39 38 30 20 20 20  |    PLA.  980   |
000017b0  20 20 20 20 20 20 54 41  58 0d 20 20 39 39 30 20  |      TAX.  990 |
000017c0  20 20 20 20 20 20 20 20  49 4e 58 0d 20 31 30 30  |        INX. 100|
000017d0  30 20 20 20 20 20 20 20  20 20 54 58 41 0d 20 31  |0         TXA. 1|
000017e0  30 31 30 20 20 20 20 20  20 20 20 20 50 48 41 0d  |010         PHA.|
000017f0  20 31 30 32 30 20 20 20  20 20 20 20 20 20 4c 44  | 1020         LD|
00001800  59 20 72 66 73 63 6f 6d  6d 2b 64 69 66 66 2c 58  |Y rfscomm+diff,X|
00001810  0d 20 31 30 33 30 20 20  20 20 20 20 20 20 20 42  |. 1030         B|
00001820  45 51 20 62 61 73 69 63  0d 20 31 30 34 30 20 20  |EQ basic. 1040  |
00001830  20 20 20 20 20 20 20 4c  44 41 20 23 26 38 41 0d  |       LDA #&8A.|
00001840  20 31 30 35 30 20 20 20  20 20 20 20 20 20 4c 44  | 1050         LD|
00001850  58 20 23 30 0d 20 31 30  36 30 20 20 20 20 20 20  |X #0. 1060      |
00001860  20 20 20 4a 53 52 20 6f  73 62 79 74 65 0d 20 31  |   JSR osbyte. 1|
00001870  30 37 30 20 20 20 20 20  20 20 20 20 4a 4d 50 20  |070         JMP |
00001880  6b 65 79 62 6f 61 72 64  2b 64 69 66 66 0d 20 31  |keyboard+diff. 1|
00001890  30 38 30 20 2e 62 61 73  69 63 0d 20 31 30 39 30  |080 .basic. 1090|
000018a0  20 20 20 20 20 20 20 20  20 4c 44 41 20 23 26 42  |         LDA #&B|
000018b0  42 0d 20 31 31 30 30 20  20 20 20 20 20 20 20 20  |B. 1100         |
000018c0  4c 44 58 20 23 30 0d 20  31 31 31 30 20 20 20 20  |LDX #0. 1110    |
000018d0  20 20 20 20 20 4c 44 59  20 23 26 46 46 0d 20 31  |     LDY #&FF. 1|
000018e0  31 32 30 20 20 20 20 20  20 20 20 20 4a 53 52 20  |120         JSR |
000018f0  6f 73 62 79 74 65 20 20  20 20 5c 20 46 69 6e 64  |osbyte    \ Find|
00001900  20 42 41 53 49 43 0d 20  31 31 33 30 20 20 20 20  | BASIC. 1130    |
00001910  20 20 20 20 20 4c 44 41  20 23 26 38 45 0d 20 31  |     LDA #&8E. 1|
00001920  31 34 30 20 20 20 20 20  20 20 20 20 4a 4d 50 20  |140         JMP |
00001930  6f 73 62 79 74 65 20 20  20 20 5c 20 45 6e 74 65  |osbyte    \ Ente|
00001940  72 20 42 41 53 49 43 0d  20 31 31 35 30 20 2e 72  |r BASIC. 1150 .r|
00001950  66 73 63 6f 6d 6d 0d 20  31 31 36 30 20 20 20 20  |fscomm. 1160    |
00001960  20 20 20 20 20 4f 50 54  20 46 4e 65 71 75 73 28  |     OPT FNequs(|
00001970  22 43 48 41 49 4e 22 22  44 45 4d 4f 22 22 22 29  |"CHAIN""DEMO""")|
00001980  0d 20 31 31 37 30 20 20  20 20 20 20 20 20 20 4f  |. 1170         O|
00001990  50 54 20 46 4e 65 71 75  62 28 26 30 44 29 0d 20  |PT FNequb(&0D). |
000019a0  31 31 38 30 20 20 20 20  20 20 20 20 20 42 52 4b  |1180         BRK|
000019b0  0d 20 31 31 39 30 20 2e  6c 61 73 74 62 79 74 65  |. 1190 .lastbyte|
000019c0  0d 20 31 32 30 30 20 5d  0d 20 31 32 31 30 20 4e  |. 1200 ]. 1210 N|
000019d0  45 58 54 0d 20 31 32 32  30 20 4f 25 3d 6c 61 73  |EXT. 1220 O%=las|
000019e0  74 62 79 74 65 0d 20 31  32 33 30 20 43 48 41 49  |tbyte. 1230 CHAI|
000019f0  4e 22 52 46 53 47 45 4e  22 0d 20 31 32 34 30 20  |N"RFSGEN". 1240 |
00001a00  44 45 46 46 4e 65 71 75  62 28 62 79 74 65 29 0d  |DEFFNequb(byte).|
00001a10  20 31 32 35 30 20 3f 50  25 3d 62 79 74 65 0d 20  | 1250 ?P%=byte. |
00001a20  31 32 36 30 20 50 25 3d  50 25 2b 31 0d 20 31 32  |1260 P%=P%+1. 12|
00001a30  37 30 20 3d 70 61 73 73  0d 20 31 32 38 30 20 44  |70 =pass. 1280 D|
00001a40  45 46 46 4e 65 71 75 77  28 77 6f 72 64 29 0d 20  |EFFNequw(word). |
00001a50  31 32 39 30 20 3f 50 25  3d 77 6f 72 64 20 4d 4f  |1290 ?P%=word MO|
00001a60  44 20 32 35 36 0d 20 31  33 30 30 20 50 25 3f 31  |D 256. 1300 P%?1|
00001a70  3d 77 6f 72 64 20 44 49  56 20 32 35 36 0d 20 31  |=word DIV 256. 1|
00001a80  33 31 30 20 50 25 3d 50  25 2b 32 0d 20 31 33 32  |310 P%=P%+2. 132|
00001a90  30 20 3d 70 61 73 73 0d  20 31 33 33 30 20 44 45  |0 =pass. 1330 DE|
00001aa0  46 46 4e 65 71 75 64 28  64 6f 75 62 6c 65 29 0d  |FFNequd(double).|
00001ab0  20 31 33 34 30 20 21 50  25 3d 64 6f 75 62 6c 65  | 1340 !P%=double|
00001ac0  0d 20 31 33 35 30 20 50  25 3d 50 25 2b 34 0d 20  |. 1350 P%=P%+4. |
00001ad0  31 33 36 30 20 3d 70 61  73 73 0d 20 31 33 37 30  |1360 =pass. 1370|
00001ae0  20 44 45 46 46 4e 65 71  75 73 28 73 74 72 69 6e  | DEFFNequs(strin|
00001af0  67 24 29 0d 20 31 33 38  30 20 24 50 25 3d 73 74  |g$). 1380 $P%=st|
00001b00  72 69 6e 67 24 0d 20 31  33 39 30 20 50 25 3d 50  |ring$. 1390 P%=P|
00001b10  25 2b 4c 45 4e 28 73 74  72 69 6e 67 24 29 0d 20  |%+LEN(string$). |
00001b20  31 34 30 30 20 3d 70 61  73 73 0d                 |1400 =pass.|
00001b2b
02-12-88/T\SWR22.m0
02-12-88/T\SWR22.m1
02-12-88/T\SWR22.m2
02-12-88/T\SWR22.m4
02-12-88/T\SWR22.m5