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

P/TTOD

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/TTOD
Read OK:
File size: 0420 bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
   10REM Tape-to-disc transfer program
   20REM by Tessie Revivis
   30REM mods by David Lawrence
   40REM for B/B+/M/E
   50REM (c) Acorn User May 1986
   60:
   70MODE 7
   80space%=(HIMEM-TOP-512) AND &FF00
   90DIM oscli% 40, mem% space%
  100PROCcentre(2,"Tape-to-disc transfer")
  110PROCcentre(5,"Rewind your tape to the start,")
  120PROCcentre(7,"press PLAY on your tape machine")
  130PROCcentre(9,"then press any key.")
  140*FX 15
  150*MOTOR 1
  160any=GET
  170CLS
  180PROCcentre(2,"Transferring programs now...")
  190VDU 28,0,8,39,6
  200ON ERROR PROCerror:END
  210REPEAT
  220CLS
  230*TAPE
  240*OPT 1,2
  250PROCoscli("LOAD """" "+STR$~mem%)
  260i$=""
  270PRINTTAB(0,1);
  280FOR char=0 TO 39
  290i$=i$+CHR$(FNreadchar)
  300VDU 32
  310NEXT char
  320*DISC
  330IFMID$(i$,2,1)="."l%=9ELSEl%=7
  340PROCoscli("SAVE "+LEFT$(i$,l%)+" "+STR$~mem%+" +"+MID$(i$,15,4)+" "+MID$(i$,36,4)+" "+MID$(i$,27,4))
  350UNTIL FALSE
  360:
  370DEF FNreadchar
  380A%=135:X%=0:Y%=0
  390=(USR(&FFF4) AND &FF00)/256
  400:
  410DEF PROCoscli($oscli%)
  420X%=oscli%:Y%=oscli% DIV 256
  430CALL &FFF7
  440ENDPROC
  450:
  460DEF PROCcentre(y,t$)
  470PRINTTAB(20-LENt$/2,y)t$
  480ENDPROC
  490:
  500DEF PROCerror
  510*DISC
  520*OPT
  530VDU 26,12
  540PROCcentre(2,"Transfer aborted")
  550IF ERR<>17 PRINTTAB(10,10);:REPORT:PRINT" at line ";ERL
  560ENDPROC

#� Tape-to-disc transfer program
� by Tessie Revivis
� mods by David Lawrence
(� for B/B+/M/E
2� (c) Acorn User May 1986
<:
F� 7
Pspace%=(�-�P-512) � &FF00
Z� oscli% 40, mem% space%
d&�centre(2,"Tape-to-disc transfer")
n/�centre(5,"Rewind your tape to the start,")
x0�centre(7,"press PLAY on your tape machine")
�$�centre(9,"then press any key.")
�
*FX 15
�*MOTOR 1
�	any=�
��
�-�centre(2,"Transferring programs now...")
�� 28,0,8,39,6
�� � �error:�
��
��
�	*TAPE
�*OPT 1,2
��oscli("LOAD """" "+�~mem%)
	i$=""
�0,1);
� char=0 � 39
"i$=i$+�(�readchar)
,� 32
6
� char
@	*DISC
J�i$,2,1)="."l%=9�l%=7
TQ�oscli("SAVE "+�i$,l%)+" "+�~mem%+" +"+�i$,15,4)+" "+�i$,36,4)+" "+�i$,27,4))
^� �
h:
r� �readchar
|A%=135:X%=0:Y%=0
�=(�(&FFF4) � &FF00)/256
�:
�� �oscli($oscli%)
�X%=oscli%:Y%=oscli% � 256
�� &FFF7
��
�:
�� �centre(y,t$)
��20-�t$/2,y)t$
��
�:
�� �error
�	*DISC
*OPT
� 26,12
!�centre(2,"Transfer aborted")
&&� �<>17 �10,10);:�:�" at line ";�
0�
�
00000000  0d 00 0a 23 f4 20 54 61  70 65 2d 74 6f 2d 64 69  |...#. Tape-to-di|
00000010  73 63 20 74 72 61 6e 73  66 65 72 20 70 72 6f 67  |sc transfer prog|
00000020  72 61 6d 0d 00 14 17 f4  20 62 79 20 54 65 73 73  |ram..... by Tess|
00000030  69 65 20 52 65 76 69 76  69 73 0d 00 1e 1c f4 20  |ie Revivis..... |
00000040  6d 6f 64 73 20 62 79 20  44 61 76 69 64 20 4c 61  |mods by David La|
00000050  77 72 65 6e 63 65 0d 00  28 12 f4 20 66 6f 72 20  |wrence..(.. for |
00000060  42 2f 42 2b 2f 4d 2f 45  0d 00 32 1d f4 20 28 63  |B/B+/M/E..2.. (c|
00000070  29 20 41 63 6f 72 6e 20  55 73 65 72 20 4d 61 79  |) Acorn User May|
00000080  20 31 39 38 36 0d 00 3c  05 3a 0d 00 46 07 eb 20  | 1986..<.:..F.. |
00000090  37 0d 00 50 1d 73 70 61  63 65 25 3d 28 93 2d b8  |7..P.space%=(.-.|
000000a0  50 2d 35 31 32 29 20 80  20 26 46 46 30 30 0d 00  |P-512) . &FF00..|
000000b0  5a 1c de 20 6f 73 63 6c  69 25 20 34 30 2c 20 6d  |Z.. oscli% 40, m|
000000c0  65 6d 25 20 73 70 61 63  65 25 0d 00 64 26 f2 63  |em% space%..d&.c|
000000d0  65 6e 74 72 65 28 32 2c  22 54 61 70 65 2d 74 6f  |entre(2,"Tape-to|
000000e0  2d 64 69 73 63 20 74 72  61 6e 73 66 65 72 22 29  |-disc transfer")|
000000f0  0d 00 6e 2f f2 63 65 6e  74 72 65 28 35 2c 22 52  |..n/.centre(5,"R|
00000100  65 77 69 6e 64 20 79 6f  75 72 20 74 61 70 65 20  |ewind your tape |
00000110  74 6f 20 74 68 65 20 73  74 61 72 74 2c 22 29 0d  |to the start,").|
00000120  00 78 30 f2 63 65 6e 74  72 65 28 37 2c 22 70 72  |.x0.centre(7,"pr|
00000130  65 73 73 20 50 4c 41 59  20 6f 6e 20 79 6f 75 72  |ess PLAY on your|
00000140  20 74 61 70 65 20 6d 61  63 68 69 6e 65 22 29 0d  | tape machine").|
00000150  00 82 24 f2 63 65 6e 74  72 65 28 39 2c 22 74 68  |..$.centre(9,"th|
00000160  65 6e 20 70 72 65 73 73  20 61 6e 79 20 6b 65 79  |en press any key|
00000170  2e 22 29 0d 00 8c 0a 2a  46 58 20 31 35 0d 00 96  |.")....*FX 15...|
00000180  0c 2a 4d 4f 54 4f 52 20  31 0d 00 a0 09 61 6e 79  |.*MOTOR 1....any|
00000190  3d a5 0d 00 aa 05 db 0d  00 b4 2d f2 63 65 6e 74  |=.........-.cent|
000001a0  72 65 28 32 2c 22 54 72  61 6e 73 66 65 72 72 69  |re(2,"Transferri|
000001b0  6e 67 20 70 72 6f 67 72  61 6d 73 20 6e 6f 77 2e  |ng programs now.|
000001c0  2e 2e 22 29 0d 00 be 11  ef 20 32 38 2c 30 2c 38  |..")..... 28,0,8|
000001d0  2c 33 39 2c 36 0d 00 c8  10 ee 20 85 20 f2 65 72  |,39,6..... . .er|
000001e0  72 6f 72 3a e0 0d 00 d2  05 f5 0d 00 dc 05 db 0d  |ror:............|
000001f0  00 e6 09 2a 54 41 50 45  0d 00 f0 0c 2a 4f 50 54  |...*TAPE....*OPT|
00000200  20 31 2c 32 0d 00 fa 1f  f2 6f 73 63 6c 69 28 22  | 1,2.....oscli("|
00000210  4c 4f 41 44 20 22 22 22  22 20 22 2b c3 7e 6d 65  |LOAD """" "+.~me|
00000220  6d 25 29 0d 01 04 09 69  24 3d 22 22 0d 01 0e 0b  |m%)....i$=""....|
00000230  f1 8a 30 2c 31 29 3b 0d  01 18 11 e3 20 63 68 61  |..0,1);..... cha|
00000240  72 3d 30 20 b8 20 33 39  0d 01 22 16 69 24 3d 69  |r=0 . 39..".i$=i|
00000250  24 2b bd 28 a4 72 65 61  64 63 68 61 72 29 0d 01  |$+.(.readchar)..|
00000260  2c 08 ef 20 33 32 0d 01  36 0a ed 20 63 68 61 72  |,.. 32..6.. char|
00000270  0d 01 40 09 2a 44 49 53  43 0d 01 4a 1a e7 c1 69  |..@.*DISC..J...i|
00000280  24 2c 32 2c 31 29 3d 22  2e 22 6c 25 3d 39 8b 6c  |$,2,1)="."l%=9.l|
00000290  25 3d 37 0d 01 54 51 f2  6f 73 63 6c 69 28 22 53  |%=7..TQ.oscli("S|
000002a0  41 56 45 20 22 2b c0 69  24 2c 6c 25 29 2b 22 20  |AVE "+.i$,l%)+" |
000002b0  22 2b c3 7e 6d 65 6d 25  2b 22 20 2b 22 2b c1 69  |"+.~mem%+" +"+.i|
000002c0  24 2c 31 35 2c 34 29 2b  22 20 22 2b c1 69 24 2c  |$,15,4)+" "+.i$,|
000002d0  33 36 2c 34 29 2b 22 20  22 2b c1 69 24 2c 32 37  |36,4)+" "+.i$,27|
000002e0  2c 34 29 29 0d 01 5e 07  fd 20 a3 0d 01 68 05 3a  |,4))..^.. ...h.:|
000002f0  0d 01 72 0f dd 20 a4 72  65 61 64 63 68 61 72 0d  |..r.. .readchar.|
00000300  01 7c 14 41 25 3d 31 33  35 3a 58 25 3d 30 3a 59  |.|.A%=135:X%=0:Y|
00000310  25 3d 30 0d 01 86 1b 3d  28 ba 28 26 46 46 46 34  |%=0....=(.(&FFF4|
00000320  29 20 80 20 26 46 46 30  30 29 2f 32 35 36 0d 01  |) . &FF00)/256..|
00000330  90 05 3a 0d 01 9a 15 dd  20 f2 6f 73 63 6c 69 28  |..:..... .oscli(|
00000340  24 6f 73 63 6c 69 25 29  0d 01 a4 1d 58 25 3d 6f  |$oscli%)....X%=o|
00000350  73 63 6c 69 25 3a 59 25  3d 6f 73 63 6c 69 25 20  |scli%:Y%=oscli% |
00000360  81 20 32 35 36 0d 01 ae  0b d6 20 26 46 46 46 37  |. 256..... &FFF7|
00000370  0d 01 b8 05 e1 0d 01 c2  05 3a 0d 01 cc 13 dd 20  |.........:..... |
00000380  f2 63 65 6e 74 72 65 28  79 2c 74 24 29 0d 01 d6  |.centre(y,t$)...|
00000390  13 f1 8a 32 30 2d a9 74  24 2f 32 2c 79 29 74 24  |...20-.t$/2,y)t$|
000003a0  0d 01 e0 05 e1 0d 01 ea  05 3a 0d 01 f4 0c dd 20  |.........:..... |
000003b0  f2 65 72 72 6f 72 0d 01  fe 09 2a 44 49 53 43 0d  |.error....*DISC.|
000003c0  02 08 08 2a 4f 50 54 0d  02 12 0b ef 20 32 36 2c  |...*OPT..... 26,|
000003d0  31 32 0d 02 1c 21 f2 63  65 6e 74 72 65 28 32 2c  |12...!.centre(2,|
000003e0  22 54 72 61 6e 73 66 65  72 20 61 62 6f 72 74 65  |"Transfer aborte|
000003f0  64 22 29 0d 02 26 26 e7  20 9f 3c 3e 31 37 20 f1  |d")..&&. .<>17 .|
00000400  8a 31 30 2c 31 30 29 3b  3a f6 3a f1 22 20 61 74  |.10,10);:.:." at|
00000410  20 6c 69 6e 65 20 22 3b  9e 0d 02 30 05 e1 0d ff  | line ";...0....|
00000420
P/TTOD.m0
P/TTOD.m1
P/TTOD.m2
P/TTOD.m4
P/TTOD.m5