Home » CEEFAX disks » telesoftware8.adl » 30-07-88/ENABLE

30-07-88/ENABLE

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 » telesoftware8.adl
Filename: 30-07-88/ENABLE
Read OK:
File size: 05A0 bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

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

File contents
   10REM: ENABLE
   20MODE7
   30HIMEM=&3C00
   40DIM save 50
   50diff=&8000-HIMEM
   60comvec=&F2
   70REM: DFS 1.20 enabflag=&10C7
   80REM: DFS 0.90 enabflag=&10C8
   90enabflag=&10C8
  100gsread=&FFC5
  110osbyte=&FFF4
  120oscli=&FFF7
  130reset=&FFFC
  140FOR pass = 0 TO 2 STEP 2
  150P%=HIMEM
  160[OPT pass
  170BRK
  180BRK
  190BRK
  200JMP service+diff
  210OPT FNequb(&82)
  220OPT FNequb((copyright+diff) MOD 256)
  230BRK
  240.title
  250OPT FNequs("RESET")
  260.copyright
  270BRK
  280OPT FNequs("(C) Gordon Horsington 1987")
  290BRK
  300.service
  310CMP #4
  320BEQ unrecognised
  330RTS
  340.unrecognised
  350PHA
  360TXA
  370PHA
  380TYA
  390PHA
  400LDX #&FF
  410.comloop
  420INX
  430LDA title+diff,X
  440BEQ found
  450LDA (comvec),Y
  460INY
  470CMP #ASC(".")
  480BEQ found
  490AND #&DF
  500CMP title+diff,X
  510BEQ comloop
  520.finish
  530PLA
  540TAY
  550PLA
  560TAX
  570PLA
  580RTS
  590.found
  600LDA enabflag
  610BEQ enabled \ Flag going from &01 to &FF
  620PLA
  630PLA
  640PLA
  650LDA #0
  660RTS
  670.enabled
  680LDA #&97
  690LDX #&4E
  700LDY #&7F
  710JSR osbyte \ *FX151,78,127
  720JMP (reset)
  730.lastbyte
  740]
  750NEXT
  760INPUT'"Save filename = "filename$
  770IF filename$="" END
  780$save="SAVE "+filename$+" "+STR$~(HIMEM)+" "+STR$~(lastbyte)+" FFFF8000 FFFF8000"
  790X%=save MOD 256
  800Y%=save DIV 256
  810*OPT1,2
  820CALL oscli
  830*OPT1,0
  840END
  850DEFFNequb(byte)
  860?P%=byte
  870P%=P%+1
  880=pass
  890DEFFNequw(word)
  900?P%=word MOD 256
  910P%?1=word DIV 256
  920P%=P%+2
  930=pass
  940DEFFNequd(double)
  950!P%=double
  960P%=P%+4
  970=pass
  980DEFFNequs(string$)
  990$P%=string$
 1000P%=P%+LEN(string$)
 1010=pass


�: ENABLE
�7
�=&3C00
(
� save 50
2diff=&8000-�
<comvec=&F2
F�: DFS 1.20 enabflag=&10C7
P�: DFS 0.90 enabflag=&10C8
Zenabflag=&10C8
dgsread=&FFC5
nosbyte=&FFF4
xoscli=&FFF7
�reset=&FFFC
�� pass = 0 � 2 � 2
�P%=�
�
[OPT pass
�BRK
�BRK
�BRK
�JMP service+diff
�OPT �equb(&82)
�%OPT �equb((copyright+diff) � 256)
�BRK
�
.title
�OPT �equs("RESET")
.copyright
BRK
+OPT �equs("(C) Gordon Horsington 1987")
"BRK
,.service
6
CMP #4
@BEQ unrecognised
JRTS
T.unrecognised
^PHA
hTXA
rPHA
|TYA
�PHA
�LDX #&FF
�.comloop
�INX
�LDA title+diff,X
�
BEQ found
�LDA (comvec),Y
�INY
�CMP #�(".")
�
BEQ found
�
� #&DF
�CMP title+diff,X
�BEQ comloop
.finish
PLA
TAY
&PLA
0TAX
:PLA
DRTS
N
.found
XLDA enabflag
b,BEQ enabled \ Flag going from &01 to &FF
lPLA
vPLA
�PLA
�
LDA #0
�RTS
�.enabled
�LDA #&97
�LDX #&4E
�LDY #&7F
�JSR osbyte \ *FX151,78,127
�JMP (reset)
�
.lastbyte
�]
��
�!�'"Save filename = "filename$
� filename$="" �
K$save="SAVE "+filename$+" "+�~(�)+" "+�~(lastbyte)+" FFFF8000 FFFF8000"
X%=save � 256
 Y%=save � 256
**OPT1,2
4� oscli
>*OPT1,0
H�
Rݤequb(byte)
\?P%=byte
fP%=P%+1
p	=pass
zݤequw(word)
�?P%=word � 256
�P%?1=word � 256
�P%=P%+2
�	=pass
�ݤequd(double)
�!P%=double
�P%=P%+4
�	=pass
�ݤequs(string$)
�$P%=string$
�P%=P%+�(string$)
�	=pass
�
00000000  0d 00 0a 0d f4 3a 20 45  4e 41 42 4c 45 0d 00 14  |.....: ENABLE...|
00000010  06 eb 37 0d 00 1e 0b d3  3d 26 33 43 30 30 0d 00  |..7.....=&3C00..|
00000020  28 0d de 20 73 61 76 65  20 35 30 0d 00 32 10 64  |(.. save 50..2.d|
00000030  69 66 66 3d 26 38 30 30  30 2d 93 0d 00 3c 0e 63  |iff=&8000-...<.c|
00000040  6f 6d 76 65 63 3d 26 46  32 0d 00 46 1e f4 3a 20  |omvec=&F2..F..: |
00000050  44 46 53 20 31 2e 32 30  20 65 6e 61 62 66 6c 61  |DFS 1.20 enabfla|
00000060  67 3d 26 31 30 43 37 0d  00 50 1e f4 3a 20 44 46  |g=&10C7..P..: DF|
00000070  53 20 30 2e 39 30 20 65  6e 61 62 66 6c 61 67 3d  |S 0.90 enabflag=|
00000080  26 31 30 43 38 0d 00 5a  12 65 6e 61 62 66 6c 61  |&10C8..Z.enabfla|
00000090  67 3d 26 31 30 43 38 0d  00 64 10 67 73 72 65 61  |g=&10C8..d.gsrea|
000000a0  64 3d 26 46 46 43 35 0d  00 6e 10 6f 73 62 79 74  |d=&FFC5..n.osbyt|
000000b0  65 3d 26 46 46 46 34 0d  00 78 0f 6f 73 63 6c 69  |e=&FFF4..x.oscli|
000000c0  3d 26 46 46 46 37 0d 00  82 0f 72 65 73 65 74 3d  |=&FFF7....reset=|
000000d0  26 46 46 46 43 0d 00 8c  16 e3 20 70 61 73 73 20  |&FFFC..... pass |
000000e0  3d 20 30 20 b8 20 32 20  88 20 32 0d 00 96 08 50  |= 0 . 2 . 2....P|
000000f0  25 3d 93 0d 00 a0 0d 5b  4f 50 54 20 70 61 73 73  |%=.....[OPT pass|
00000100  0d 00 aa 07 42 52 4b 0d  00 b4 07 42 52 4b 0d 00  |....BRK....BRK..|
00000110  be 07 42 52 4b 0d 00 c8  14 4a 4d 50 20 73 65 72  |..BRK....JMP ser|
00000120  76 69 63 65 2b 64 69 66  66 0d 00 d2 12 4f 50 54  |vice+diff....OPT|
00000130  20 a4 65 71 75 62 28 26  38 32 29 0d 00 dc 25 4f  | .equb(&82)...%O|
00000140  50 54 20 a4 65 71 75 62  28 28 63 6f 70 79 72 69  |PT .equb((copyri|
00000150  67 68 74 2b 64 69 66 66  29 20 83 20 32 35 36 29  |ght+diff) . 256)|
00000160  0d 00 e6 07 42 52 4b 0d  00 f0 0a 2e 74 69 74 6c  |....BRK.....titl|
00000170  65 0d 00 fa 16 4f 50 54  20 a4 65 71 75 73 28 22  |e....OPT .equs("|
00000180  52 45 53 45 54 22 29 0d  01 04 0e 2e 63 6f 70 79  |RESET").....copy|
00000190  72 69 67 68 74 0d 01 0e  07 42 52 4b 0d 01 18 2b  |right....BRK...+|
000001a0  4f 50 54 20 a4 65 71 75  73 28 22 28 43 29 20 47  |OPT .equs("(C) G|
000001b0  6f 72 64 6f 6e 20 48 6f  72 73 69 6e 67 74 6f 6e  |ordon Horsington|
000001c0  20 31 39 38 37 22 29 0d  01 22 07 42 52 4b 0d 01  | 1987")..".BRK..|
000001d0  2c 0c 2e 73 65 72 76 69  63 65 0d 01 36 0a 43 4d  |,..service..6.CM|
000001e0  50 20 23 34 0d 01 40 14  42 45 51 20 75 6e 72 65  |P #4..@.BEQ unre|
000001f0  63 6f 67 6e 69 73 65 64  0d 01 4a 07 52 54 53 0d  |cognised..J.RTS.|
00000200  01 54 11 2e 75 6e 72 65  63 6f 67 6e 69 73 65 64  |.T..unrecognised|
00000210  0d 01 5e 07 50 48 41 0d  01 68 07 54 58 41 0d 01  |..^.PHA..h.TXA..|
00000220  72 07 50 48 41 0d 01 7c  07 54 59 41 0d 01 86 07  |r.PHA..|.TYA....|
00000230  50 48 41 0d 01 90 0c 4c  44 58 20 23 26 46 46 0d  |PHA....LDX #&FF.|
00000240  01 9a 0c 2e 63 6f 6d 6c  6f 6f 70 0d 01 a4 07 49  |....comloop....I|
00000250  4e 58 0d 01 ae 14 4c 44  41 20 74 69 74 6c 65 2b  |NX....LDA title+|
00000260  64 69 66 66 2c 58 0d 01  b8 0d 42 45 51 20 66 6f  |diff,X....BEQ fo|
00000270  75 6e 64 0d 01 c2 12 4c  44 41 20 28 63 6f 6d 76  |und....LDA (comv|
00000280  65 63 29 2c 59 0d 01 cc  07 49 4e 59 0d 01 d6 0f  |ec),Y....INY....|
00000290  43 4d 50 20 23 97 28 22  2e 22 29 0d 01 e0 0d 42  |CMP #.(".")....B|
000002a0  45 51 20 66 6f 75 6e 64  0d 01 ea 0a 80 20 23 26  |EQ found..... #&|
000002b0  44 46 0d 01 f4 14 43 4d  50 20 74 69 74 6c 65 2b  |DF....CMP title+|
000002c0  64 69 66 66 2c 58 0d 01  fe 0f 42 45 51 20 63 6f  |diff,X....BEQ co|
000002d0  6d 6c 6f 6f 70 0d 02 08  0b 2e 66 69 6e 69 73 68  |mloop.....finish|
000002e0  0d 02 12 07 50 4c 41 0d  02 1c 07 54 41 59 0d 02  |....PLA....TAY..|
000002f0  26 07 50 4c 41 0d 02 30  07 54 41 58 0d 02 3a 07  |&.PLA..0.TAX..:.|
00000300  50 4c 41 0d 02 44 07 52  54 53 0d 02 4e 0a 2e 66  |PLA..D.RTS..N..f|
00000310  6f 75 6e 64 0d 02 58 10  4c 44 41 20 65 6e 61 62  |ound..X.LDA enab|
00000320  66 6c 61 67 0d 02 62 2c  42 45 51 20 65 6e 61 62  |flag..b,BEQ enab|
00000330  6c 65 64 20 5c 20 46 6c  61 67 20 67 6f 69 6e 67  |led \ Flag going|
00000340  20 66 72 6f 6d 20 26 30  31 20 74 6f 20 26 46 46  | from &01 to &FF|
00000350  0d 02 6c 07 50 4c 41 0d  02 76 07 50 4c 41 0d 02  |..l.PLA..v.PLA..|
00000360  80 07 50 4c 41 0d 02 8a  0a 4c 44 41 20 23 30 0d  |..PLA....LDA #0.|
00000370  02 94 07 52 54 53 0d 02  9e 0c 2e 65 6e 61 62 6c  |...RTS.....enabl|
00000380  65 64 0d 02 a8 0c 4c 44  41 20 23 26 39 37 0d 02  |ed....LDA #&97..|
00000390  b2 0c 4c 44 58 20 23 26  34 45 0d 02 bc 0c 4c 44  |..LDX #&4E....LD|
000003a0  59 20 23 26 37 46 0d 02  c6 1e 4a 53 52 20 6f 73  |Y #&7F....JSR os|
000003b0  62 79 74 65 20 5c 20 2a  46 58 31 35 31 2c 37 38  |byte \ *FX151,78|
000003c0  2c 31 32 37 0d 02 d0 0f  4a 4d 50 20 28 72 65 73  |,127....JMP (res|
000003d0  65 74 29 0d 02 da 0d 2e  6c 61 73 74 62 79 74 65  |et).....lastbyte|
000003e0  0d 02 e4 05 5d 0d 02 ee  05 ed 0d 02 f8 21 e8 27  |....]........!.'|
000003f0  22 53 61 76 65 20 66 69  6c 65 6e 61 6d 65 20 3d  |"Save filename =|
00000400  20 22 66 69 6c 65 6e 61  6d 65 24 0d 03 02 14 e7  | "filename$.....|
00000410  20 66 69 6c 65 6e 61 6d  65 24 3d 22 22 20 e0 0d  | filename$="" ..|
00000420  03 0c 4b 24 73 61 76 65  3d 22 53 41 56 45 20 22  |..K$save="SAVE "|
00000430  2b 66 69 6c 65 6e 61 6d  65 24 2b 22 20 22 2b c3  |+filename$+" "+.|
00000440  7e 28 93 29 2b 22 20 22  2b c3 7e 28 6c 61 73 74  |~(.)+" "+.~(last|
00000450  62 79 74 65 29 2b 22 20  46 46 46 46 38 30 30 30  |byte)+" FFFF8000|
00000460  20 46 46 46 46 38 30 30  30 22 0d 03 16 11 58 25  | FFFF8000"....X%|
00000470  3d 73 61 76 65 20 83 20  32 35 36 0d 03 20 11 59  |=save . 256.. .Y|
00000480  25 3d 73 61 76 65 20 81  20 32 35 36 0d 03 2a 0b  |%=save . 256..*.|
00000490  2a 4f 50 54 31 2c 32 0d  03 34 0b d6 20 6f 73 63  |*OPT1,2..4.. osc|
000004a0  6c 69 0d 03 3e 0b 2a 4f  50 54 31 2c 30 0d 03 48  |li..>.*OPT1,0..H|
000004b0  05 e0 0d 03 52 10 dd a4  65 71 75 62 28 62 79 74  |....R...equb(byt|
000004c0  65 29 0d 03 5c 0c 3f 50  25 3d 62 79 74 65 0d 03  |e)..\.?P%=byte..|
000004d0  66 0b 50 25 3d 50 25 2b  31 0d 03 70 09 3d 70 61  |f.P%=P%+1..p.=pa|
000004e0  73 73 0d 03 7a 10 dd a4  65 71 75 77 28 77 6f 72  |ss..z...equw(wor|
000004f0  64 29 0d 03 84 12 3f 50  25 3d 77 6f 72 64 20 83  |d)....?P%=word .|
00000500  20 32 35 36 0d 03 8e 13  50 25 3f 31 3d 77 6f 72  | 256....P%?1=wor|
00000510  64 20 81 20 32 35 36 0d  03 98 0b 50 25 3d 50 25  |d . 256....P%=P%|
00000520  2b 32 0d 03 a2 09 3d 70  61 73 73 0d 03 ac 12 dd  |+2....=pass.....|
00000530  a4 65 71 75 64 28 64 6f  75 62 6c 65 29 0d 03 b6  |.equd(double)...|
00000540  0e 21 50 25 3d 64 6f 75  62 6c 65 0d 03 c0 0b 50  |.!P%=double....P|
00000550  25 3d 50 25 2b 34 0d 03  ca 09 3d 70 61 73 73 0d  |%=P%+4....=pass.|
00000560  03 d4 13 dd a4 65 71 75  73 28 73 74 72 69 6e 67  |.....equs(string|
00000570  24 29 0d 03 de 0f 24 50  25 3d 73 74 72 69 6e 67  |$)....$P%=string|
00000580  24 0d 03 e8 14 50 25 3d  50 25 2b a9 28 73 74 72  |$....P%=P%+.(str|
00000590  69 6e 67 24 29 0d 03 f2  09 3d 70 61 73 73 0d ff  |ing$)....=pass..|
000005a0
30-07-88/ENABLE.m0
30-07-88/ENABLE.m1
30-07-88/ENABLE.m2
30-07-88/ENABLE.m4
30-07-88/ENABLE.m5