Home » Personal collection » Acorn tapes » Own_Work » drawer_tl_tape04a_c15_acorn_henry1.wav » Tun2

Tun2

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 tapes » Own_Work » drawer_tl_tape04a_c15_acorn_henry1.wav
Filename: Tun2
Read OK:
File size: 0226 bytes
Load address: FFFF0E00
Exec address: FFFF8023
File contents
   20in=0:play=100:out=0
   30dead=0:sh=0:DIMl%(5,100)
   40FORlo=1TO5:FORlo2=1TO100
   50READl%(lo,lo2):NEXT,
   60READhin,ti
   75REMStore MODE,del. Here
   80PROCnote:PROCscreen:PROCnote
   90PROCkey:PROCnote:PROCthink:GOTO80
  100DEFPROCscreen
  110FORl=1TO39:FORm=1TO5
  120PRINTTAB(l,m);CHR$(l%(l+sh,m))
  130NEXT,:PRINTTAB(1,10);"IN:";in
  140PRINTTAB(12,17);"Out:";out
  150PRINTTAB(14,16);"Dead:";dead
  160ENDPROC:DEFPROCkey
  170x=INKEY(1):A$=CHR$(x)
  180IFA$="Z"THENIFlev%(c-1,c2)=0THENc=c-1
  190IFA$="X"THENIFlev%(c+1,c2)=0THENc=c+1
  200IFA$="/"THENIFlev%(c,c2+1)=0THENc2=c2+1
  210IFA$=":"THENIFlev%(c,c2-1)=0THENc2=c2-1
  220IFASC(A$)<58THENIFASC(A$)>48THENIFlev(c,c2+1)=1ORlev(c,c2+1)=2THENlev(c,c-2)=x-47
  230ENDPROC
  240DEFPROCnote
in=0:play=100:out=0
dead=0:sh=0:�l%(5,100)
(�lo=1�5:�lo2=1�100
2�l%(lo,lo2):�,
<�hin,ti
K�Store MODE,del. Here
P�note:�screen:�note
Z�key:�note:�think:�DP@
d��screen
n�l=1�39:�m=1�5
x�l,m);�(l%(l+sh,m))
��,:�1,10);"IN:";in
��12,17);"Out:";out
��14,16);"Dead:";dead
��:��key
�x=�(1):A$=�(x)
�!�A$="Z"��lev%(c-1,c2)=0�c=c-1
�!�A$="X"��lev%(c+1,c2)=0�c=c+1
�#�A$="/"��lev%(c,c2+1)=0�c2=c2+1
�#�A$=":"��lev%(c,c2-1)=0�c2=c2-1
�D�(A$)<58��(A$)>48��lev(c,c2+1)=1�lev(c,c2+1)=2�lev(c,c-2)=x-47
��
�
��note
�
00000000  0d 00 14 17 69 6e 3d 30  3a 70 6c 61 79 3d 31 30  |....in=0:play=10|
00000010  30 3a 6f 75 74 3d 30 0d  00 1e 1a 64 65 61 64 3d  |0:out=0....dead=|
00000020  30 3a 73 68 3d 30 3a de  6c 25 28 35 2c 31 30 30  |0:sh=0:.l%(5,100|
00000030  29 0d 00 28 16 e3 6c 6f  3d 31 b8 35 3a e3 6c 6f  |)..(..lo=1.5:.lo|
00000040  32 3d 31 b8 31 30 30 0d  00 32 12 f3 6c 25 28 6c  |2=1.100..2..l%(l|
00000050  6f 2c 6c 6f 32 29 3a ed  2c 0d 00 3c 0b f3 68 69  |o,lo2):.,..<..hi|
00000060  6e 2c 74 69 0d 00 4b 19  f4 53 74 6f 72 65 20 4d  |n,ti..K..Store M|
00000070  4f 44 45 2c 64 65 6c 2e  20 48 65 72 65 0d 00 50  |ODE,del. Here..P|
00000080  17 f2 6e 6f 74 65 3a f2  73 63 72 65 65 6e 3a f2  |..note:.screen:.|
00000090  6e 6f 74 65 0d 00 5a 1b  f2 6b 65 79 3a f2 6e 6f  |note..Z..key:.no|
000000a0  74 65 3a f2 74 68 69 6e  6b 3a e5 8d 44 50 40 0d  |te:.think:..DP@.|
000000b0  00 64 0c dd f2 73 63 72  65 65 6e 0d 00 6e 12 e3  |.d...screen..n..|
000000c0  6c 3d 31 b8 33 39 3a e3  6d 3d 31 b8 35 0d 00 78  |l=1.39:.m=1.5..x|
000000d0  18 f1 8a 6c 2c 6d 29 3b  bd 28 6c 25 28 6c 2b 73  |...l,m);.(l%(l+s|
000000e0  68 2c 6d 29 29 0d 00 82  17 ed 2c 3a f1 8a 31 2c  |h,m)).....,:..1,|
000000f0  31 30 29 3b 22 49 4e 3a  22 3b 69 6e 0d 00 8c 17  |10);"IN:";in....|
00000100  f1 8a 31 32 2c 31 37 29  3b 22 4f 75 74 3a 22 3b  |..12,17);"Out:";|
00000110  6f 75 74 0d 00 96 19 f1  8a 31 34 2c 31 36 29 3b  |out......14,16);|
00000120  22 44 65 61 64 3a 22 3b  64 65 61 64 0d 00 a0 0b  |"Dead:";dead....|
00000130  e1 3a dd f2 6b 65 79 0d  00 aa 12 78 3d a6 28 31  |.:..key....x=.(1|
00000140  29 3a 41 24 3d bd 28 78  29 0d 00 b4 21 e7 41 24  |):A$=.(x)...!.A$|
00000150  3d 22 5a 22 8c e7 6c 65  76 25 28 63 2d 31 2c 63  |="Z"..lev%(c-1,c|
00000160  32 29 3d 30 8c 63 3d 63  2d 31 0d 00 be 21 e7 41  |2)=0.c=c-1...!.A|
00000170  24 3d 22 58 22 8c e7 6c  65 76 25 28 63 2b 31 2c  |$="X"..lev%(c+1,|
00000180  63 32 29 3d 30 8c 63 3d  63 2b 31 0d 00 c8 23 e7  |c2)=0.c=c+1...#.|
00000190  41 24 3d 22 2f 22 8c e7  6c 65 76 25 28 63 2c 63  |A$="/"..lev%(c,c|
000001a0  32 2b 31 29 3d 30 8c 63  32 3d 63 32 2b 31 0d 00  |2+1)=0.c2=c2+1..|
000001b0  d2 23 e7 41 24 3d 22 3a  22 8c e7 6c 65 76 25 28  |.#.A$=":"..lev%(|
000001c0  63 2c 63 32 2d 31 29 3d  30 8c 63 32 3d 63 32 2d  |c,c2-1)=0.c2=c2-|
000001d0  31 0d 00 dc 44 e7 97 28  41 24 29 3c 35 38 8c e7  |1...D..(A$)<58..|
000001e0  97 28 41 24 29 3e 34 38  8c e7 6c 65 76 28 63 2c  |.(A$)>48..lev(c,|
000001f0  63 32 2b 31 29 3d 31 84  6c 65 76 28 63 2c 63 32  |c2+1)=1.lev(c,c2|
00000200  2b 31 29 3d 32 8c 6c 65  76 28 63 2c 63 2d 32 29  |+1)=2.lev(c,c-2)|
00000210  3d 78 2d 34 37 0d 00 e6  05 e1 0d 00 f0 0a dd f2  |=x-47...........|
00000220  6e 6f 74 65 0d ff                                 |note..|
00000226
Tun2.m0
Tun2.m1
Tun2.m2
Tun2.m4
Tun2.m5