Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_19.ADF » P/safsc

P/safsc

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 » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_19.ADF
Filename: P/safsc
Read OK:
File size: 0C89 bytes
Load address: FFFF1D00
Exec address: FFFF8023
Duplicates

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

File contents
   10REM SAFE Protection for ADFS v2.00
   20REM   (c) Ross Little March 1995
   30 
   40osasci=&FFE3
   50osrdch=&FFE0
   60oswrch=&FFEE
   70osfile=&FFDD
   80filev=&212
   90letter=&8B
  100cliv=&208
  110start=&8C
  120stor=&88
  130text=&8B
  140file=&8E
  150 
  160FOR I=0 TO 3 STEP 3
  170P%=&900
  180[     OPT I
  190.init LDA filev
  200      STA retv
  210      LDA filev+1
  220      STA retv+1
  230      LDX #newv MOD 256
  240      LDY #newv DIV 256
  250      SEI
  260      STX filev
  270      STY filev+1
  280      CLI
  290      LDA cliv
  300      STA hret
  310      LDA cliv+1
  320      STA hret+1
  330      LDX #hvec MOD 256
  340      LDY #hvec DIV 256
  350      SEI
  360      STX cliv
  370      STY cliv+1
  380      CLI
  390      LDX #htxt MOD 256
  400      LDY #htxt DIV 256
  410      JSR mess
  420.end  RTS
  430.retv EQUW 0
  440.newv CMP #0
  450      BEQ sver
  460      JMP (retv)
  470.sver STA stor
  480      STX stor+1
  490      STY stor+2
  500      LDY #0
  510      LDA (stor+1),Y
  520      STA file
  530      INY
  540      LDA (stor+1),Y
  550      STA file+1
  560      LDA #&EB
  570      STA start
  580      LDA #&11
  590      STA start+1
  600      JSR cfle         \Does file
  610      CMP #0           \exist?
  620      BEQ quit         \If not,
  630      LDX #etxt MOD 256\display
  640      LDY #etxt DIV 256\message
  650      JSR mess         \and return
  660      JSR osrdch
  670      CMP #ASC("Y")
  680      BEQ next
  690      CMP #ASC("y")
  700      BEQ next
  710      LDX #atxt MOD 256
  720      LDY #atxt DIV 256
  730      JSR mess
  740      RTS
  750.next LDA #&D
  760      JSR osasci
  770      JMP quit
  780.quit LDA stor
  790      LDX stor+1       \Restore
  800      LDY stor+2       \registers
  810      JMP (retv)       \and Return
  820.etxt EQUB &D
  830      EQUS "File exists:"
  840      EQUB &D
  850      EQUS "Continue (Y/N)?"
  860      BRK
  870.atxt EQUS " Aborted"
  880      EQUB &D
  890      BRK
  900.htxt EQUB &D
  910      EQUS "SAFE Protection for ADFS v2.00"
  920      EQUB &D
  930      BRK
  940.hlne EQUB 10
  950      EQUS "H"
  960      EQUB 14
  970.cfle LDA start
  980      CLC              \Increment
  990      ADC #26          \START
 1000      STA start        \by 26
 1010      BCC cont
 1020      INC start+1
 1030.cont LDY #&FF
 1040.nlet INY
 1050      CPY #10          \10 letters
 1060      BEQ mtch         \checked?
 1070      LDA (start),Y
 1080      AND #&5F
 1090      CMP #0
 1100      BEQ dend         \End of dir
 1110      CMP #&D
 1120      BEQ dchk         \File match
 1130      STA letter
 1140      LDA (file),Y
 1150      AND #&DF
 1160      CMP letter
 1170      BEQ nlet
 1180      JMP cfle
 1190.dchk LDA (file),Y     \Dble Check
 1200      CMP #&20
 1210      BEQ mtch
 1220      CMP #&D
 1230      BEQ mtch
 1240      JMP cfle
 1250.mtch LDA #&FF
 1260.dend RTS
 1270.mess STX text
 1280      STY text+1
 1290      LDY #&FF
 1300.disp INY
 1310      LDA (text),Y
 1320      CMP #0
 1330      BEQ term
 1340      JSR osasci
 1350      JMP disp
 1360.term RTS
 1370.hret EQUW 0
 1380.hvec STA stor
 1390      STX stor+1
 1400      STY stor+2
 1410      LDY #&FF
 1420.hlop INY
 1430      LDA (stor+1),Y
 1440      AND #&DF
 1450      CMP hlne,Y
 1460      BEQ hlop
 1470      CPY #2
 1480      BPL hdsp
 1490      JMP hend
 1500.hdsp LDX #htxt MOD 256
 1510      LDY #htxt DIV 256
 1520      JSR mess
 1530.hend LDA stor
 1540      LDX stor+1
 1550      LDY stor+2
 1560      JMP (hret)
 1570]:NEXT
 1580CALL init
 1590END

$� SAFE Protection for ADFS v2.00
"�   (c) Ross Little March 1995
 
(osasci=&FFE3
2osrdch=&FFE0
<oswrch=&FFEE
Fosfile=&FFDD
Pfilev=&212
Zletter=&8B
d
cliv=&208
n
start=&8C
xstor=&88
�text=&8B
�file=&8E
� 
�� I=0 � 3 � 3
�P%=&900
�[     OPT I
�.init LDA filev
�      STA retv
�      LDA filev+1
�      STA retv+1
�      LDX #newv � 256
�      LDY #newv � 256
�
      SEI
      STX filev
      STY filev+1

      CLI
"      LDA cliv
,      STA hret
6      LDA cliv+1
@      STA hret+1
J      LDX #hvec � 256
T      LDY #hvec � 256
^
      SEI
h      STX cliv
r      STY cliv+1
|
      CLI
�      LDX #htxt � 256
�      LDY #htxt � 256
�      JSR mess
�
.end  RTS
�.retv EQUW 0
�.newv CMP #0
�      BEQ sver
�      JMP (retv)
�.sver STA stor
�      STX stor+1
�      STY stor+2
�      LDY #0
�      LDA (stor+1),Y
      STA file

      INY
      LDA (stor+1),Y
&      STA file+1
0      LDA #&EB
:      STA start
D      LDA #&11
N      STA start+1
X%      JSR cfle         \Does file
b"      CMP #0           \exist?
l#      BEQ quit         \If not,
v!      LDX #etxt � 256\display
�!      LDY #etxt � 256\message
�&      JSR mess         \and return
�      JSR osrdch
�      CMP #�("Y")
�      BEQ next
�      CMP #�("y")
�      BEQ next
�      LDX #atxt � 256
�      LDY #atxt � 256
�      JSR mess
�
      RTS
�.next LDA #&D
�      JSR osasci
      JMP quit
.quit LDA stor
#      LDX stor+1       \Restore
 %      LDY stor+2       \registers
*&      JMP (retv)       \and Return
4.etxt EQUB &D
>      EQUS "File exists:"
H      EQUB &D
R       EQUS "Continue (Y/N)?"
\
      BRK
f.atxt EQUS " Aborted"
p      EQUB &D
z
      BRK
�.htxt EQUB &D
�/      EQUS "SAFE Protection for ADFS v2.00"
�      EQUB &D
�
      BRK
�.hlne EQUB 10
�      EQUS "H"
�      EQUB 14
�.cfle LDA start
�%      CLC              \Increment
�!      ADC #26          \START
�!      STA start        \by 26
�      BCC cont
�      INC start+1
.cont LDY #&FF

.nlet INY
&      CPY #10          \10 letters
$$      BEQ mtch         \checked?
.      LDA (start),Y
8      � #&5F
B      CMP #0
L&      BEQ dend         \End of dir
V      CMP #&D
`&      BEQ dchk         \File match
j      STA letter
t      LDA (file),Y
~      � #&DF
�      CMP letter
�      BEQ nlet
�      JMP cfle
�&.dchk LDA (file),Y     \Dble Check
�      CMP #&20
�      BEQ mtch
�      CMP #&D
�      BEQ mtch
�      JMP cfle
�.mtch LDA #&FF
�
.dend RTS
�.mess STX text
      STY text+1

      LDY #&FF

.disp INY
      LDA (text),Y
(      CMP #0
2      BEQ term
<      JSR osasci
F      JMP disp
P
.term RTS
Z.hret EQUW 0
d.hvec STA stor
n      STX stor+1
x      STY stor+2
�      LDY #&FF
�
.hlop INY
�      LDA (stor+1),Y
�      � #&DF
�      CMP hlne,Y
�      BEQ hlop
�      CPY #2
�      BPL hdsp
�      JMP hend
�.hdsp LDX #htxt � 256
�      LDY #htxt � 256
�      JSR mess
�.hend LDA stor
      LDX stor+1
      LDY stor+2
      JMP (hret)
"]:�
,
� init
6�
�
00000000  0d 00 0a 24 f4 20 53 41  46 45 20 50 72 6f 74 65  |...$. SAFE Prote|
00000010  63 74 69 6f 6e 20 66 6f  72 20 41 44 46 53 20 76  |ction for ADFS v|
00000020  32 2e 30 30 0d 00 14 22  f4 20 20 20 28 63 29 20  |2.00...".   (c) |
00000030  52 6f 73 73 20 4c 69 74  74 6c 65 20 4d 61 72 63  |Ross Little Marc|
00000040  68 20 31 39 39 35 0d 00  1e 05 20 0d 00 28 10 6f  |h 1995.... ..(.o|
00000050  73 61 73 63 69 3d 26 46  46 45 33 0d 00 32 10 6f  |sasci=&FFE3..2.o|
00000060  73 72 64 63 68 3d 26 46  46 45 30 0d 00 3c 10 6f  |srdch=&FFE0..<.o|
00000070  73 77 72 63 68 3d 26 46  46 45 45 0d 00 46 10 6f  |swrch=&FFEE..F.o|
00000080  73 66 69 6c 65 3d 26 46  46 44 44 0d 00 50 0e 66  |sfile=&FFDD..P.f|
00000090  69 6c 65 76 3d 26 32 31  32 0d 00 5a 0e 6c 65 74  |ilev=&212..Z.let|
000000a0  74 65 72 3d 26 38 42 0d  00 64 0d 63 6c 69 76 3d  |ter=&8B..d.cliv=|
000000b0  26 32 30 38 0d 00 6e 0d  73 74 61 72 74 3d 26 38  |&208..n.start=&8|
000000c0  43 0d 00 78 0c 73 74 6f  72 3d 26 38 38 0d 00 82  |C..x.stor=&88...|
000000d0  0c 74 65 78 74 3d 26 38  42 0d 00 8c 0c 66 69 6c  |.text=&8B....fil|
000000e0  65 3d 26 38 45 0d 00 96  05 20 0d 00 a0 11 e3 20  |e=&8E.... ..... |
000000f0  49 3d 30 20 b8 20 33 20  88 20 33 0d 00 aa 0b 50  |I=0 . 3 . 3....P|
00000100  25 3d 26 39 30 30 0d 00  b4 0f 5b 20 20 20 20 20  |%=&900....[     |
00000110  4f 50 54 20 49 0d 00 be  13 2e 69 6e 69 74 20 4c  |OPT I.....init L|
00000120  44 41 20 66 69 6c 65 76  0d 00 c8 12 20 20 20 20  |DA filev....    |
00000130  20 20 53 54 41 20 72 65  74 76 0d 00 d2 15 20 20  |  STA retv....  |
00000140  20 20 20 20 4c 44 41 20  66 69 6c 65 76 2b 31 0d  |    LDA filev+1.|
00000150  00 dc 14 20 20 20 20 20  20 53 54 41 20 72 65 74  |...      STA ret|
00000160  76 2b 31 0d 00 e6 19 20  20 20 20 20 20 4c 44 58  |v+1....      LDX|
00000170  20 23 6e 65 77 76 20 83  20 32 35 36 0d 00 f0 19  | #newv . 256....|
00000180  20 20 20 20 20 20 4c 44  59 20 23 6e 65 77 76 20  |      LDY #newv |
00000190  81 20 32 35 36 0d 00 fa  0d 20 20 20 20 20 20 53  |. 256....      S|
000001a0  45 49 0d 01 04 13 20 20  20 20 20 20 53 54 58 20  |EI....      STX |
000001b0  66 69 6c 65 76 0d 01 0e  15 20 20 20 20 20 20 53  |filev....      S|
000001c0  54 59 20 66 69 6c 65 76  2b 31 0d 01 18 0d 20 20  |TY filev+1....  |
000001d0  20 20 20 20 43 4c 49 0d  01 22 12 20 20 20 20 20  |    CLI..".     |
000001e0  20 4c 44 41 20 63 6c 69  76 0d 01 2c 12 20 20 20  | LDA cliv..,.   |
000001f0  20 20 20 53 54 41 20 68  72 65 74 0d 01 36 14 20  |   STA hret..6. |
00000200  20 20 20 20 20 4c 44 41  20 63 6c 69 76 2b 31 0d  |     LDA cliv+1.|
00000210  01 40 14 20 20 20 20 20  20 53 54 41 20 68 72 65  |.@.      STA hre|
00000220  74 2b 31 0d 01 4a 19 20  20 20 20 20 20 4c 44 58  |t+1..J.      LDX|
00000230  20 23 68 76 65 63 20 83  20 32 35 36 0d 01 54 19  | #hvec . 256..T.|
00000240  20 20 20 20 20 20 4c 44  59 20 23 68 76 65 63 20  |      LDY #hvec |
00000250  81 20 32 35 36 0d 01 5e  0d 20 20 20 20 20 20 53  |. 256..^.      S|
00000260  45 49 0d 01 68 12 20 20  20 20 20 20 53 54 58 20  |EI..h.      STX |
00000270  63 6c 69 76 0d 01 72 14  20 20 20 20 20 20 53 54  |cliv..r.      ST|
00000280  59 20 63 6c 69 76 2b 31  0d 01 7c 0d 20 20 20 20  |Y cliv+1..|.    |
00000290  20 20 43 4c 49 0d 01 86  19 20 20 20 20 20 20 4c  |  CLI....      L|
000002a0  44 58 20 23 68 74 78 74  20 83 20 32 35 36 0d 01  |DX #htxt . 256..|
000002b0  90 19 20 20 20 20 20 20  4c 44 59 20 23 68 74 78  |..      LDY #htx|
000002c0  74 20 81 20 32 35 36 0d  01 9a 12 20 20 20 20 20  |t . 256....     |
000002d0  20 4a 53 52 20 6d 65 73  73 0d 01 a4 0d 2e 65 6e  | JSR mess.....en|
000002e0  64 20 20 52 54 53 0d 01  ae 10 2e 72 65 74 76 20  |d  RTS.....retv |
000002f0  45 51 55 57 20 30 0d 01  b8 10 2e 6e 65 77 76 20  |EQUW 0.....newv |
00000300  43 4d 50 20 23 30 0d 01  c2 12 20 20 20 20 20 20  |CMP #0....      |
00000310  42 45 51 20 73 76 65 72  0d 01 cc 14 20 20 20 20  |BEQ sver....    |
00000320  20 20 4a 4d 50 20 28 72  65 74 76 29 0d 01 d6 12  |  JMP (retv)....|
00000330  2e 73 76 65 72 20 53 54  41 20 73 74 6f 72 0d 01  |.sver STA stor..|
00000340  e0 14 20 20 20 20 20 20  53 54 58 20 73 74 6f 72  |..      STX stor|
00000350  2b 31 0d 01 ea 14 20 20  20 20 20 20 53 54 59 20  |+1....      STY |
00000360  73 74 6f 72 2b 32 0d 01  f4 10 20 20 20 20 20 20  |stor+2....      |
00000370  4c 44 59 20 23 30 0d 01  fe 18 20 20 20 20 20 20  |LDY #0....      |
00000380  4c 44 41 20 28 73 74 6f  72 2b 31 29 2c 59 0d 02  |LDA (stor+1),Y..|
00000390  08 12 20 20 20 20 20 20  53 54 41 20 66 69 6c 65  |..      STA file|
000003a0  0d 02 12 0d 20 20 20 20  20 20 49 4e 59 0d 02 1c  |....      INY...|
000003b0  18 20 20 20 20 20 20 4c  44 41 20 28 73 74 6f 72  |.      LDA (stor|
000003c0  2b 31 29 2c 59 0d 02 26  14 20 20 20 20 20 20 53  |+1),Y..&.      S|
000003d0  54 41 20 66 69 6c 65 2b  31 0d 02 30 12 20 20 20  |TA file+1..0.   |
000003e0  20 20 20 4c 44 41 20 23  26 45 42 0d 02 3a 13 20  |   LDA #&EB..:. |
000003f0  20 20 20 20 20 53 54 41  20 73 74 61 72 74 0d 02  |     STA start..|
00000400  44 12 20 20 20 20 20 20  4c 44 41 20 23 26 31 31  |D.      LDA #&11|
00000410  0d 02 4e 15 20 20 20 20  20 20 53 54 41 20 73 74  |..N.      STA st|
00000420  61 72 74 2b 31 0d 02 58  25 20 20 20 20 20 20 4a  |art+1..X%      J|
00000430  53 52 20 63 66 6c 65 20  20 20 20 20 20 20 20 20  |SR cfle         |
00000440  5c 44 6f 65 73 20 66 69  6c 65 0d 02 62 22 20 20  |\Does file..b"  |
00000450  20 20 20 20 43 4d 50 20  23 30 20 20 20 20 20 20  |    CMP #0      |
00000460  20 20 20 20 20 5c 65 78  69 73 74 3f 0d 02 6c 23  |     \exist?..l#|
00000470  20 20 20 20 20 20 42 45  51 20 71 75 69 74 20 20  |      BEQ quit  |
00000480  20 20 20 20 20 20 20 5c  49 66 20 6e 6f 74 2c 0d  |       \If not,.|
00000490  02 76 21 20 20 20 20 20  20 4c 44 58 20 23 65 74  |.v!      LDX #et|
000004a0  78 74 20 83 20 32 35 36  5c 64 69 73 70 6c 61 79  |xt . 256\display|
000004b0  0d 02 80 21 20 20 20 20  20 20 4c 44 59 20 23 65  |...!      LDY #e|
000004c0  74 78 74 20 81 20 32 35  36 5c 6d 65 73 73 61 67  |txt . 256\messag|
000004d0  65 0d 02 8a 26 20 20 20  20 20 20 4a 53 52 20 6d  |e...&      JSR m|
000004e0  65 73 73 20 20 20 20 20  20 20 20 20 5c 61 6e 64  |ess         \and|
000004f0  20 72 65 74 75 72 6e 0d  02 94 14 20 20 20 20 20  | return....     |
00000500  20 4a 53 52 20 6f 73 72  64 63 68 0d 02 9e 15 20  | JSR osrdch.... |
00000510  20 20 20 20 20 43 4d 50  20 23 97 28 22 59 22 29  |     CMP #.("Y")|
00000520  0d 02 a8 12 20 20 20 20  20 20 42 45 51 20 6e 65  |....      BEQ ne|
00000530  78 74 0d 02 b2 15 20 20  20 20 20 20 43 4d 50 20  |xt....      CMP |
00000540  23 97 28 22 79 22 29 0d  02 bc 12 20 20 20 20 20  |#.("y")....     |
00000550  20 42 45 51 20 6e 65 78  74 0d 02 c6 19 20 20 20  | BEQ next....   |
00000560  20 20 20 4c 44 58 20 23  61 74 78 74 20 83 20 32  |   LDX #atxt . 2|
00000570  35 36 0d 02 d0 19 20 20  20 20 20 20 4c 44 59 20  |56....      LDY |
00000580  23 61 74 78 74 20 81 20  32 35 36 0d 02 da 12 20  |#atxt . 256.... |
00000590  20 20 20 20 20 4a 53 52  20 6d 65 73 73 0d 02 e4  |     JSR mess...|
000005a0  0d 20 20 20 20 20 20 52  54 53 0d 02 ee 11 2e 6e  |.      RTS.....n|
000005b0  65 78 74 20 4c 44 41 20  23 26 44 0d 02 f8 14 20  |ext LDA #&D.... |
000005c0  20 20 20 20 20 4a 53 52  20 6f 73 61 73 63 69 0d  |     JSR osasci.|
000005d0  03 02 12 20 20 20 20 20  20 4a 4d 50 20 71 75 69  |...      JMP qui|
000005e0  74 0d 03 0c 12 2e 71 75  69 74 20 4c 44 41 20 73  |t.....quit LDA s|
000005f0  74 6f 72 0d 03 16 23 20  20 20 20 20 20 4c 44 58  |tor...#      LDX|
00000600  20 73 74 6f 72 2b 31 20  20 20 20 20 20 20 5c 52  | stor+1       \R|
00000610  65 73 74 6f 72 65 0d 03  20 25 20 20 20 20 20 20  |estore.. %      |
00000620  4c 44 59 20 73 74 6f 72  2b 32 20 20 20 20 20 20  |LDY stor+2      |
00000630  20 5c 72 65 67 69 73 74  65 72 73 0d 03 2a 26 20  | \registers..*& |
00000640  20 20 20 20 20 4a 4d 50  20 28 72 65 74 76 29 20  |     JMP (retv) |
00000650  20 20 20 20 20 20 5c 61  6e 64 20 52 65 74 75 72  |      \and Retur|
00000660  6e 0d 03 34 11 2e 65 74  78 74 20 45 51 55 42 20  |n..4..etxt EQUB |
00000670  26 44 0d 03 3e 1d 20 20  20 20 20 20 45 51 55 53  |&D..>.      EQUS|
00000680  20 22 46 69 6c 65 20 65  78 69 73 74 73 3a 22 0d  | "File exists:".|
00000690  03 48 11 20 20 20 20 20  20 45 51 55 42 20 26 44  |.H.      EQUB &D|
000006a0  0d 03 52 20 20 20 20 20  20 20 45 51 55 53 20 22  |..R       EQUS "|
000006b0  43 6f 6e 74 69 6e 75 65  20 28 59 2f 4e 29 3f 22  |Continue (Y/N)?"|
000006c0  0d 03 5c 0d 20 20 20 20  20 20 42 52 4b 0d 03 66  |..\.      BRK..f|
000006d0  19 2e 61 74 78 74 20 45  51 55 53 20 22 20 41 62  |..atxt EQUS " Ab|
000006e0  6f 72 74 65 64 22 0d 03  70 11 20 20 20 20 20 20  |orted"..p.      |
000006f0  45 51 55 42 20 26 44 0d  03 7a 0d 20 20 20 20 20  |EQUB &D..z.     |
00000700  20 42 52 4b 0d 03 84 11  2e 68 74 78 74 20 45 51  | BRK.....htxt EQ|
00000710  55 42 20 26 44 0d 03 8e  2f 20 20 20 20 20 20 45  |UB &D.../      E|
00000720  51 55 53 20 22 53 41 46  45 20 50 72 6f 74 65 63  |QUS "SAFE Protec|
00000730  74 69 6f 6e 20 66 6f 72  20 41 44 46 53 20 76 32  |tion for ADFS v2|
00000740  2e 30 30 22 0d 03 98 11  20 20 20 20 20 20 45 51  |.00"....      EQ|
00000750  55 42 20 26 44 0d 03 a2  0d 20 20 20 20 20 20 42  |UB &D....      B|
00000760  52 4b 0d 03 ac 11 2e 68  6c 6e 65 20 45 51 55 42  |RK.....hlne EQUB|
00000770  20 31 30 0d 03 b6 12 20  20 20 20 20 20 45 51 55  | 10....      EQU|
00000780  53 20 22 48 22 0d 03 c0  11 20 20 20 20 20 20 45  |S "H"....      E|
00000790  51 55 42 20 31 34 0d 03  ca 13 2e 63 66 6c 65 20  |QUB 14.....cfle |
000007a0  4c 44 41 20 73 74 61 72  74 0d 03 d4 25 20 20 20  |LDA start...%   |
000007b0  20 20 20 43 4c 43 20 20  20 20 20 20 20 20 20 20  |   CLC          |
000007c0  20 20 20 20 5c 49 6e 63  72 65 6d 65 6e 74 0d 03  |    \Increment..|
000007d0  de 21 20 20 20 20 20 20  41 44 43 20 23 32 36 20  |.!      ADC #26 |
000007e0  20 20 20 20 20 20 20 20  20 5c 53 54 41 52 54 0d  |         \START.|
000007f0  03 e8 21 20 20 20 20 20  20 53 54 41 20 73 74 61  |..!      STA sta|
00000800  72 74 20 20 20 20 20 20  20 20 5c 62 79 20 32 36  |rt        \by 26|
00000810  0d 03 f2 12 20 20 20 20  20 20 42 43 43 20 63 6f  |....      BCC co|
00000820  6e 74 0d 03 fc 15 20 20  20 20 20 20 49 4e 43 20  |nt....      INC |
00000830  73 74 61 72 74 2b 31 0d  04 06 12 2e 63 6f 6e 74  |start+1.....cont|
00000840  20 4c 44 59 20 23 26 46  46 0d 04 10 0d 2e 6e 6c  | LDY #&FF.....nl|
00000850  65 74 20 49 4e 59 0d 04  1a 26 20 20 20 20 20 20  |et INY...&      |
00000860  43 50 59 20 23 31 30 20  20 20 20 20 20 20 20 20  |CPY #10         |
00000870  20 5c 31 30 20 6c 65 74  74 65 72 73 0d 04 24 24  | \10 letters..$$|
00000880  20 20 20 20 20 20 42 45  51 20 6d 74 63 68 20 20  |      BEQ mtch  |
00000890  20 20 20 20 20 20 20 5c  63 68 65 63 6b 65 64 3f  |       \checked?|
000008a0  0d 04 2e 17 20 20 20 20  20 20 4c 44 41 20 28 73  |....      LDA (s|
000008b0  74 61 72 74 29 2c 59 0d  04 38 10 20 20 20 20 20  |tart),Y..8.     |
000008c0  20 80 20 23 26 35 46 0d  04 42 10 20 20 20 20 20  | . #&5F..B.     |
000008d0  20 43 4d 50 20 23 30 0d  04 4c 26 20 20 20 20 20  | CMP #0..L&     |
000008e0  20 42 45 51 20 64 65 6e  64 20 20 20 20 20 20 20  | BEQ dend       |
000008f0  20 20 5c 45 6e 64 20 6f  66 20 64 69 72 0d 04 56  |  \End of dir..V|
00000900  11 20 20 20 20 20 20 43  4d 50 20 23 26 44 0d 04  |.      CMP #&D..|
00000910  60 26 20 20 20 20 20 20  42 45 51 20 64 63 68 6b  |`&      BEQ dchk|
00000920  20 20 20 20 20 20 20 20  20 5c 46 69 6c 65 20 6d  |         \File m|
00000930  61 74 63 68 0d 04 6a 14  20 20 20 20 20 20 53 54  |atch..j.      ST|
00000940  41 20 6c 65 74 74 65 72  0d 04 74 16 20 20 20 20  |A letter..t.    |
00000950  20 20 4c 44 41 20 28 66  69 6c 65 29 2c 59 0d 04  |  LDA (file),Y..|
00000960  7e 10 20 20 20 20 20 20  80 20 23 26 44 46 0d 04  |~.      . #&DF..|
00000970  88 14 20 20 20 20 20 20  43 4d 50 20 6c 65 74 74  |..      CMP lett|
00000980  65 72 0d 04 92 12 20 20  20 20 20 20 42 45 51 20  |er....      BEQ |
00000990  6e 6c 65 74 0d 04 9c 12  20 20 20 20 20 20 4a 4d  |nlet....      JM|
000009a0  50 20 63 66 6c 65 0d 04  a6 26 2e 64 63 68 6b 20  |P cfle...&.dchk |
000009b0  4c 44 41 20 28 66 69 6c  65 29 2c 59 20 20 20 20  |LDA (file),Y    |
000009c0  20 5c 44 62 6c 65 20 43  68 65 63 6b 0d 04 b0 12  | \Dble Check....|
000009d0  20 20 20 20 20 20 43 4d  50 20 23 26 32 30 0d 04  |      CMP #&20..|
000009e0  ba 12 20 20 20 20 20 20  42 45 51 20 6d 74 63 68  |..      BEQ mtch|
000009f0  0d 04 c4 11 20 20 20 20  20 20 43 4d 50 20 23 26  |....      CMP #&|
00000a00  44 0d 04 ce 12 20 20 20  20 20 20 42 45 51 20 6d  |D....      BEQ m|
00000a10  74 63 68 0d 04 d8 12 20  20 20 20 20 20 4a 4d 50  |tch....      JMP|
00000a20  20 63 66 6c 65 0d 04 e2  12 2e 6d 74 63 68 20 4c  | cfle.....mtch L|
00000a30  44 41 20 23 26 46 46 0d  04 ec 0d 2e 64 65 6e 64  |DA #&FF.....dend|
00000a40  20 52 54 53 0d 04 f6 12  2e 6d 65 73 73 20 53 54  | RTS.....mess ST|
00000a50  58 20 74 65 78 74 0d 05  00 14 20 20 20 20 20 20  |X text....      |
00000a60  53 54 59 20 74 65 78 74  2b 31 0d 05 0a 12 20 20  |STY text+1....  |
00000a70  20 20 20 20 4c 44 59 20  23 26 46 46 0d 05 14 0d  |    LDY #&FF....|
00000a80  2e 64 69 73 70 20 49 4e  59 0d 05 1e 16 20 20 20  |.disp INY....   |
00000a90  20 20 20 4c 44 41 20 28  74 65 78 74 29 2c 59 0d  |   LDA (text),Y.|
00000aa0  05 28 10 20 20 20 20 20  20 43 4d 50 20 23 30 0d  |.(.      CMP #0.|
00000ab0  05 32 12 20 20 20 20 20  20 42 45 51 20 74 65 72  |.2.      BEQ ter|
00000ac0  6d 0d 05 3c 14 20 20 20  20 20 20 4a 53 52 20 6f  |m..<.      JSR o|
00000ad0  73 61 73 63 69 0d 05 46  12 20 20 20 20 20 20 4a  |sasci..F.      J|
00000ae0  4d 50 20 64 69 73 70 0d  05 50 0d 2e 74 65 72 6d  |MP disp..P..term|
00000af0  20 52 54 53 0d 05 5a 10  2e 68 72 65 74 20 45 51  | RTS..Z..hret EQ|
00000b00  55 57 20 30 0d 05 64 12  2e 68 76 65 63 20 53 54  |UW 0..d..hvec ST|
00000b10  41 20 73 74 6f 72 0d 05  6e 14 20 20 20 20 20 20  |A stor..n.      |
00000b20  53 54 58 20 73 74 6f 72  2b 31 0d 05 78 14 20 20  |STX stor+1..x.  |
00000b30  20 20 20 20 53 54 59 20  73 74 6f 72 2b 32 0d 05  |    STY stor+2..|
00000b40  82 12 20 20 20 20 20 20  4c 44 59 20 23 26 46 46  |..      LDY #&FF|
00000b50  0d 05 8c 0d 2e 68 6c 6f  70 20 49 4e 59 0d 05 96  |.....hlop INY...|
00000b60  18 20 20 20 20 20 20 4c  44 41 20 28 73 74 6f 72  |.      LDA (stor|
00000b70  2b 31 29 2c 59 0d 05 a0  10 20 20 20 20 20 20 80  |+1),Y....      .|
00000b80  20 23 26 44 46 0d 05 aa  14 20 20 20 20 20 20 43  | #&DF....      C|
00000b90  4d 50 20 68 6c 6e 65 2c  59 0d 05 b4 12 20 20 20  |MP hlne,Y....   |
00000ba0  20 20 20 42 45 51 20 68  6c 6f 70 0d 05 be 10 20  |   BEQ hlop.... |
00000bb0  20 20 20 20 20 43 50 59  20 23 32 0d 05 c8 12 20  |     CPY #2.... |
00000bc0  20 20 20 20 20 42 50 4c  20 68 64 73 70 0d 05 d2  |     BPL hdsp...|
00000bd0  12 20 20 20 20 20 20 4a  4d 50 20 68 65 6e 64 0d  |.      JMP hend.|
00000be0  05 dc 19 2e 68 64 73 70  20 4c 44 58 20 23 68 74  |....hdsp LDX #ht|
00000bf0  78 74 20 83 20 32 35 36  0d 05 e6 19 20 20 20 20  |xt . 256....    |
00000c00  20 20 4c 44 59 20 23 68  74 78 74 20 81 20 32 35  |  LDY #htxt . 25|
00000c10  36 0d 05 f0 12 20 20 20  20 20 20 4a 53 52 20 6d  |6....      JSR m|
00000c20  65 73 73 0d 05 fa 12 2e  68 65 6e 64 20 4c 44 41  |ess.....hend LDA|
00000c30  20 73 74 6f 72 0d 06 04  14 20 20 20 20 20 20 4c  | stor....      L|
00000c40  44 58 20 73 74 6f 72 2b  31 0d 06 0e 14 20 20 20  |DX stor+1....   |
00000c50  20 20 20 4c 44 59 20 73  74 6f 72 2b 32 0d 06 18  |   LDY stor+2...|
00000c60  14 20 20 20 20 20 20 4a  4d 50 20 28 68 72 65 74  |.      JMP (hret|
00000c70  29 0d 06 22 07 5d 3a ed  0d 06 2c 0a d6 20 69 6e  |)..".]:...,.. in|
00000c80  69 74 0d 06 36 05 e0 0d  ff                       |it..6....|
00000c89
P/safsc.m0
P/safsc.m1
P/safsc.m2
P/safsc.m4
P/safsc.m5