Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199611.adf » Regulars » StarInfo/Turnbull/CX(1-X)

StarInfo/Turnbull/CX(1-X)

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 » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199611.adf » Regulars
Filename: StarInfo/Turnbull/CX(1-X)
Read OK:
File size: 0580 bytes
Load address: 0000
Exec address: 0000
File contents
   10END=1200*1024
   20MODE15:OFF
   30VC%=9
   40FORT%=0TO7:COLOURT%,T%<<4,T%<<3,T%<<4:COLOURT%+8,112,7-T%<<3,7-T%<<4:NEXT
   50size%=1024
   60DIMcode%1024,data%4*256*size%
   70PROCassemble
   80CALLstart
   90C=2
  100REPEAT:CALLframe
  110C=C+0.0002*(4-C):!startc=C*(1<<AC%-2)
  120UNTIL0
  130*FX21
  140END
  150:
  160DEFPROCassemble
  170AC%=16
  180FORT%=0TO2STEP2:P%=code%
  190[OPT T%
  200.vduvars:EQUD 148:EQUD -1
  210.scraddr:EQUD &2000000-320*512
  220.datadata:EQUD data%
  230.count:EQUD 0
  240.size:EQUD size%
  250.startc:EQUD 2<<AC%-2
  260:
  270.start
  280LDR R0,datadata
  290MOV R1,#4
  300LDR R2,size
  310MOV R2,R2,ASL#8
  320.startloop
  330STR R1,[R0],#4
  340SUBS R2,R2,#1
  350BGT startloop
  360MOV PC,R14
  370:
  380.frame
  390LDR R3,size
  400SUB R3,R3,#1
  410LDR R0,datadata
  420LDR R2,count
  430AND R4,R2,R3
  440ADD R1,R0,R4,ASL#10
  450ADD R2,R2,#1
  460STR R2,count
  470AND R4,R2,R3
  480ADD R0,R0,R4,ASL#10
  490LDR R12,scraddr
  500LDR R5,startc
  510ADD R2,R2,R2,ASR#4
  520ADD R2,R2,R2,ASR#8
  530AND R2,R2,#15
  540SUB R5,R5,R2
  550MOV R2,#256
  560.loop
  570LDR R3,[R0]
  580LDRB R4,[R12,R3,LSR#AC%-VC%]
  590SUBS R4,R4,#1
  600STRGEB R4,[R12,R3,LSR#AC%-VC%]
  610LDR R3,[R1],#4
  620RSB R4,R3,#1<<AC%
  630MUL R3,R4,R3
  640MOV R3,R3,LSR#AC%
  650MUL R3,R5,R3
  660MOV R3,R3,LSR#AC%-2
  670STR R3,[R0],#4
  680LDRB R4,[R12,R3,LSR#AC%-VC%]
  690SUBS R4,R4,#255
  700STRNEB R4,[R12,R3,LSR#AC%-VC%]
  710ADD R12,R12,#5<<VC%-2
  720SUB R5,R5,#0.5*(1<<AC%-8-2)
  730SUBS R2,R2,#1
  740BGT loop
  750MOV PC,R14
  760]:NEXT
  770SYS"OS_ReadVduVariables",vduvars,scraddr
  780ENDPROC

�=1200*1024
	�15:�
	VC%=9
(=�T%=0�7:�T%,T%<<4,T%<<3,T%<<4:�T%+8,112,7-T%<<3,7-T%<<4:�
2size%=1024
<�code%1024,data%4*256*size%
F
�assemble
P
�start
ZC=2
d�:�frame
n)C=C+0.0002*(4-C):!startc=C*(1<<AC%-2)
x�0
�	*FX21
��
�:
���assemble
�
AC%=16
��T%=0�2�2:P%=code%
�[OPT T%
�.vduvars:EQUD 148:EQUD -1
�".scraddr:EQUD &2000000-320*512
�.datadata:EQUD data%
�.count:EQUD 0
�.size:EQUD size%
�.startc:EQUD 2<<AC%-2
:

.start
LDR R0,datadata
"
MOV R1,#4
,LDR R2,size
6MOV R2,R2,ASL#8
@.startloop
JSTR R1,[R0],#4
TSUBS R2,R2,#1
^BGT startloop
hMOV PC,R14
r:
|
.frame
�LDR R3,size
�SUB R3,R3,#1
�LDR R0,datadata
�LDR R2,count
�� R4,R2,R3
�ADD R1,R0,R4,ASL#10
�ADD R2,R2,#1
�STR R2,count
�� R4,R2,R3
�ADD R0,R0,R4,ASL#10
�LDR R12,scraddr
�LDR R5,startc
�ADD R2,R2,R2,ASR#4
ADD R2,R2,R2,ASR#8
� R2,R2,#15
SUB R5,R5,R2
&MOV R2,#256
0	.loop
:LDR R3,[R0]
D LDRB R4,[R12,R3,LSR#AC%-VC%]
NSUBS R4,R4,#1
X"STRGEB R4,[R12,R3,LSR#AC%-VC%]
bLDR R3,[R1],#4
lRSB R4,R3,#1<<AC%
vMUL R3,R4,R3
�MOV R3,R3,LSR#AC%
�MUL R3,R5,R3
�MOV R3,R3,LSR#AC%-2
�STR R3,[R0],#4
� LDRB R4,[R12,R3,LSR#AC%-VC%]
�SUBS R4,R4,#255
�"STRNEB R4,[R12,R3,LSR#AC%-VC%]
�ADD R12,R12,#5<<VC%-2
�SUB R5,R5,#0.5*(1<<AC%-8-2)
�SUBS R2,R2,#1
�BGT loop
�MOV PC,R14
�]:�
+ș"OS_ReadVduVariables",vduvars,scraddr
�
�
00000000  0d 00 0a 0f e0 3d 31 32  30 30 2a 31 30 32 34 0d  |.....=1200*1024.|
00000010  00 14 09 eb 31 35 3a 87  0d 00 1e 09 56 43 25 3d  |....15:.....VC%=|
00000020  39 0d 00 28 3d e3 54 25  3d 30 b8 37 3a fb 54 25  |9..(=.T%=0.7:.T%|
00000030  2c 54 25 3c 3c 34 2c 54  25 3c 3c 33 2c 54 25 3c  |,T%<<4,T%<<3,T%<|
00000040  3c 34 3a fb 54 25 2b 38  2c 31 31 32 2c 37 2d 54  |<4:.T%+8,112,7-T|
00000050  25 3c 3c 33 2c 37 2d 54  25 3c 3c 34 3a ed 0d 00  |%<<3,7-T%<<4:...|
00000060  32 0e 73 69 7a 65 25 3d  31 30 32 34 0d 00 3c 1f  |2.size%=1024..<.|
00000070  de 63 6f 64 65 25 31 30  32 34 2c 64 61 74 61 25  |.code%1024,data%|
00000080  34 2a 32 35 36 2a 73 69  7a 65 25 0d 00 46 0d f2  |4*256*size%..F..|
00000090  61 73 73 65 6d 62 6c 65  0d 00 50 0a d6 73 74 61  |assemble..P..sta|
000000a0  72 74 0d 00 5a 07 43 3d  32 0d 00 64 0c f5 3a d6  |rt..Z.C=2..d..:.|
000000b0  66 72 61 6d 65 0d 00 6e  29 43 3d 43 2b 30 2e 30  |frame..n)C=C+0.0|
000000c0  30 30 32 2a 28 34 2d 43  29 3a 21 73 74 61 72 74  |002*(4-C):!start|
000000d0  63 3d 43 2a 28 31 3c 3c  41 43 25 2d 32 29 0d 00  |c=C*(1<<AC%-2)..|
000000e0  78 06 fd 30 0d 00 82 09  2a 46 58 32 31 0d 00 8c  |x..0....*FX21...|
000000f0  05 e0 0d 00 96 05 3a 0d  00 a0 0e dd f2 61 73 73  |......:......ass|
00000100  65 6d 62 6c 65 0d 00 aa  0a 41 43 25 3d 31 36 0d  |emble....AC%=16.|
00000110  00 b4 16 e3 54 25 3d 30  b8 32 88 32 3a 50 25 3d  |....T%=0.2.2:P%=|
00000120  63 6f 64 65 25 0d 00 be  0b 5b 4f 50 54 20 54 25  |code%....[OPT T%|
00000130  0d 00 c8 1d 2e 76 64 75  76 61 72 73 3a 45 51 55  |.....vduvars:EQU|
00000140  44 20 31 34 38 3a 45 51  55 44 20 2d 31 0d 00 d2  |D 148:EQUD -1...|
00000150  22 2e 73 63 72 61 64 64  72 3a 45 51 55 44 20 26  |".scraddr:EQUD &|
00000160  32 30 30 30 30 30 30 2d  33 32 30 2a 35 31 32 0d  |2000000-320*512.|
00000170  00 dc 18 2e 64 61 74 61  64 61 74 61 3a 45 51 55  |....datadata:EQU|
00000180  44 20 64 61 74 61 25 0d  00 e6 11 2e 63 6f 75 6e  |D data%.....coun|
00000190  74 3a 45 51 55 44 20 30  0d 00 f0 14 2e 73 69 7a  |t:EQUD 0.....siz|
000001a0  65 3a 45 51 55 44 20 73  69 7a 65 25 0d 00 fa 19  |e:EQUD size%....|
000001b0  2e 73 74 61 72 74 63 3a  45 51 55 44 20 32 3c 3c  |.startc:EQUD 2<<|
000001c0  41 43 25 2d 32 0d 01 04  05 3a 0d 01 0e 0a 2e 73  |AC%-2....:.....s|
000001d0  74 61 72 74 0d 01 18 13  4c 44 52 20 52 30 2c 64  |tart....LDR R0,d|
000001e0  61 74 61 64 61 74 61 0d  01 22 0d 4d 4f 56 20 52  |atadata..".MOV R|
000001f0  31 2c 23 34 0d 01 2c 0f  4c 44 52 20 52 32 2c 73  |1,#4..,.LDR R2,s|
00000200  69 7a 65 0d 01 36 13 4d  4f 56 20 52 32 2c 52 32  |ize..6.MOV R2,R2|
00000210  2c 41 53 4c 23 38 0d 01  40 0e 2e 73 74 61 72 74  |,ASL#8..@..start|
00000220  6c 6f 6f 70 0d 01 4a 12  53 54 52 20 52 31 2c 5b  |loop..J.STR R1,[|
00000230  52 30 5d 2c 23 34 0d 01  54 11 53 55 42 53 20 52  |R0],#4..T.SUBS R|
00000240  32 2c 52 32 2c 23 31 0d  01 5e 11 42 47 54 20 73  |2,R2,#1..^.BGT s|
00000250  74 61 72 74 6c 6f 6f 70  0d 01 68 0e 4d 4f 56 20  |tartloop..h.MOV |
00000260  50 43 2c 52 31 34 0d 01  72 05 3a 0d 01 7c 0a 2e  |PC,R14..r.:..|..|
00000270  66 72 61 6d 65 0d 01 86  0f 4c 44 52 20 52 33 2c  |frame....LDR R3,|
00000280  73 69 7a 65 0d 01 90 10  53 55 42 20 52 33 2c 52  |size....SUB R3,R|
00000290  33 2c 23 31 0d 01 9a 13  4c 44 52 20 52 30 2c 64  |3,#1....LDR R0,d|
000002a0  61 74 61 64 61 74 61 0d  01 a4 10 4c 44 52 20 52  |atadata....LDR R|
000002b0  32 2c 63 6f 75 6e 74 0d  01 ae 0e 80 20 52 34 2c  |2,count..... R4,|
000002c0  52 32 2c 52 33 0d 01 b8  17 41 44 44 20 52 31 2c  |R2,R3....ADD R1,|
000002d0  52 30 2c 52 34 2c 41 53  4c 23 31 30 0d 01 c2 10  |R0,R4,ASL#10....|
000002e0  41 44 44 20 52 32 2c 52  32 2c 23 31 0d 01 cc 10  |ADD R2,R2,#1....|
000002f0  53 54 52 20 52 32 2c 63  6f 75 6e 74 0d 01 d6 0e  |STR R2,count....|
00000300  80 20 52 34 2c 52 32 2c  52 33 0d 01 e0 17 41 44  |. R4,R2,R3....AD|
00000310  44 20 52 30 2c 52 30 2c  52 34 2c 41 53 4c 23 31  |D R0,R0,R4,ASL#1|
00000320  30 0d 01 ea 13 4c 44 52  20 52 31 32 2c 73 63 72  |0....LDR R12,scr|
00000330  61 64 64 72 0d 01 f4 11  4c 44 52 20 52 35 2c 73  |addr....LDR R5,s|
00000340  74 61 72 74 63 0d 01 fe  16 41 44 44 20 52 32 2c  |tartc....ADD R2,|
00000350  52 32 2c 52 32 2c 41 53  52 23 34 0d 02 08 16 41  |R2,R2,ASR#4....A|
00000360  44 44 20 52 32 2c 52 32  2c 52 32 2c 41 53 52 23  |DD R2,R2,R2,ASR#|
00000370  38 0d 02 12 0f 80 20 52  32 2c 52 32 2c 23 31 35  |8..... R2,R2,#15|
00000380  0d 02 1c 10 53 55 42 20  52 35 2c 52 35 2c 52 32  |....SUB R5,R5,R2|
00000390  0d 02 26 0f 4d 4f 56 20  52 32 2c 23 32 35 36 0d  |..&.MOV R2,#256.|
000003a0  02 30 09 2e 6c 6f 6f 70  0d 02 3a 0f 4c 44 52 20  |.0..loop..:.LDR |
000003b0  52 33 2c 5b 52 30 5d 0d  02 44 20 4c 44 52 42 20  |R3,[R0]..D LDRB |
000003c0  52 34 2c 5b 52 31 32 2c  52 33 2c 4c 53 52 23 41  |R4,[R12,R3,LSR#A|
000003d0  43 25 2d 56 43 25 5d 0d  02 4e 11 53 55 42 53 20  |C%-VC%]..N.SUBS |
000003e0  52 34 2c 52 34 2c 23 31  0d 02 58 22 53 54 52 47  |R4,R4,#1..X"STRG|
000003f0  45 42 20 52 34 2c 5b 52  31 32 2c 52 33 2c 4c 53  |EB R4,[R12,R3,LS|
00000400  52 23 41 43 25 2d 56 43  25 5d 0d 02 62 12 4c 44  |R#AC%-VC%]..b.LD|
00000410  52 20 52 33 2c 5b 52 31  5d 2c 23 34 0d 02 6c 15  |R R3,[R1],#4..l.|
00000420  52 53 42 20 52 34 2c 52  33 2c 23 31 3c 3c 41 43  |RSB R4,R3,#1<<AC|
00000430  25 0d 02 76 10 4d 55 4c  20 52 33 2c 52 34 2c 52  |%..v.MUL R3,R4,R|
00000440  33 0d 02 80 15 4d 4f 56  20 52 33 2c 52 33 2c 4c  |3....MOV R3,R3,L|
00000450  53 52 23 41 43 25 0d 02  8a 10 4d 55 4c 20 52 33  |SR#AC%....MUL R3|
00000460  2c 52 35 2c 52 33 0d 02  94 17 4d 4f 56 20 52 33  |,R5,R3....MOV R3|
00000470  2c 52 33 2c 4c 53 52 23  41 43 25 2d 32 0d 02 9e  |,R3,LSR#AC%-2...|
00000480  12 53 54 52 20 52 33 2c  5b 52 30 5d 2c 23 34 0d  |.STR R3,[R0],#4.|
00000490  02 a8 20 4c 44 52 42 20  52 34 2c 5b 52 31 32 2c  |.. LDRB R4,[R12,|
000004a0  52 33 2c 4c 53 52 23 41  43 25 2d 56 43 25 5d 0d  |R3,LSR#AC%-VC%].|
000004b0  02 b2 13 53 55 42 53 20  52 34 2c 52 34 2c 23 32  |...SUBS R4,R4,#2|
000004c0  35 35 0d 02 bc 22 53 54  52 4e 45 42 20 52 34 2c  |55..."STRNEB R4,|
000004d0  5b 52 31 32 2c 52 33 2c  4c 53 52 23 41 43 25 2d  |[R12,R3,LSR#AC%-|
000004e0  56 43 25 5d 0d 02 c6 19  41 44 44 20 52 31 32 2c  |VC%]....ADD R12,|
000004f0  52 31 32 2c 23 35 3c 3c  56 43 25 2d 32 0d 02 d0  |R12,#5<<VC%-2...|
00000500  1f 53 55 42 20 52 35 2c  52 35 2c 23 30 2e 35 2a  |.SUB R5,R5,#0.5*|
00000510  28 31 3c 3c 41 43 25 2d  38 2d 32 29 0d 02 da 11  |(1<<AC%-8-2)....|
00000520  53 55 42 53 20 52 32 2c  52 32 2c 23 31 0d 02 e4  |SUBS R2,R2,#1...|
00000530  0c 42 47 54 20 6c 6f 6f  70 0d 02 ee 0e 4d 4f 56  |.BGT loop....MOV|
00000540  20 50 43 2c 52 31 34 0d  02 f8 07 5d 3a ed 0d 03  | PC,R14....]:...|
00000550  02 2b c8 99 22 4f 53 5f  52 65 61 64 56 64 75 56  |.+.."OS_ReadVduV|
00000560  61 72 69 61 62 6c 65 73  22 2c 76 64 75 76 61 72  |ariables",vduvar|
00000570  73 2c 73 63 72 61 64 64  72 0d 03 0c 05 e1 0d ff  |s,scraddr.......|
00000580