Home » Personal collection » Acorn hard disk » files » captcard » CaptCard/GreyScale3

CaptCard/GreyScale3

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 hard disk » files » captcard
Filename: CaptCard/GreyScale3
Read OK:
File size: 04FC bytes
Load address: 0000
Exec address: 0000
File contents
   10ON ERROR REPORT:PRINT" @ ";ERL:END
   20MODE15:VDU23,1,0;0;0;0;
   30*RAM
   40DIM SPACE &40000,code &400
   50PROCass
   60OSCLI "LOAD CAPTURE9 "+STR$~SPACE
   70REPEAT !lineinit=&1FD8000:!write=&1FD8000:CALLcode:PRINTTAB(60,30)"BallBot-Cam";TAB(54,31)TIME$;:UNTIL INKEY(-99)
   80END
   90:
  100DEFPROCass
  110FORpass=0TO2STEP2
  120P%=code
  130[OPTpass
  140ADR R0,read:LDR R1,[R0]:ADR R0,frameno:LDRB R4,[R0]:.findframe LDRB R2,[R1]:CMP R2,#ASC("@"):BEQgotaframe:ADD R1,R1,#1:Bfindframe
  150.gotaframe ADD R1,R1,#1:SUB R4,R4,#1:CMP R4,#0:BNEfindframe
  160.gotframe LDRB R2,[R1]:CMP R2,#ASC("@"):BGTgotline:ADD R1,R1,#1:Bgotframe
  170.gotline LDRB R2,[R1]:ADD R1,R1,#1:CMP R2,#&0D:BEQendline
  180SUB R2,R2,#65:MOV R2,R2,ASL #2:ADR R3,scrcols:ADD R2,R2,R3:LDR R3,[R2]:ADR R0,write:LDR R4,[R0]:.test STR R3,[R4]
  190ADD R4,R4,#4:STR R4,[R0]:B gotline
  200.endline ADR R0,lineinit:LDR R2,[R0]:ADD R2,R2,#640:STR R2,[R0]:ADR R0,write:STR R2,[R0]:ADR R0,y:LDRB R2,[R0]:ADD R2,R2,#1:STRB R2,[R0]:CMP R2,#256:BNEgotframe
  210MOV PC,R14
  220.read EQUD SPACE:.y EQUB0:.frameno EQUB2:ALIGN:.write EQUD&1FD8000:.lineinit EQUD&1FD8000
  230.scrcols EQUD&00000000:EQUD&01010101:EQUD&02020202:EQUD&03030303
  240EQUD&2C2C2C2C:EQUD&2D2D2D2D:EQUD&2E2E2E2E:EQUD&2F2F2F2F
  250EQUD&D0D0D0D0:EQUD&D1D1D1D1:EQUD&D2D2D2D2:EQUD&D3D3D3D3
  260EQUD&FCFCFCFC:EQUD&FDFDFDFD:EQUD&FEFEFEFE:EQUD&FFFFFFFF
  270]:NEXT
  280ENDPROC

� � �:�" @ ";�:�
�15:�23,1,0;0;0;0;
*RAM
(� SPACE &40000,code &400
2�ass
<� "LOAD CAPTURE9 "+�~SPACE
FX� !lineinit=&1FD8000:!write=&1FD8000:�code:�60,30)"BallBot-Cam";�54,31)�$;:� �(-99)
P�
Z:
d	��ass
n�pass=0�2�2
xP%=code
�[OPTpass
��ADR R0,read:LDR R1,[R0]:ADR R0,frameno:LDRB R4,[R0]:.findframe LDRB R2,[R1]:CMP R2,#�("@"):BEQgotaframe:ADD R1,R1,#1:Bfindframe
�?.gotaframe ADD R1,R1,#1:SUB R4,R4,#1:CMP R4,#0:BNEfindframe
�K.gotframe LDRB R2,[R1]:CMP R2,#�("@"):BGTgotline:ADD R1,R1,#1:Bgotframe
�=.gotline LDRB R2,[R1]:ADD R1,R1,#1:CMP R2,#&0D:BEQendline
�uSUB R2,R2,#65:MOV R2,R2,ASL #2:ADR R3,scrcols:ADD R2,R2,R3:LDR R3,[R2]:ADR R0,write:LDR R4,[R0]:.test STR R3,[R4]
�&ADD R4,R4,#4:STR R4,[R0]:B gotline
Ȥ.endline ADR R0,lineinit:LDR R2,[R0]:ADD R2,R2,#640:STR R2,[R0]:ADR R0,write:STR R2,[R0]:ADR R0,y:LDRB R2,[R0]:ADD R2,R2,#1:STRB R2,[R0]:CMP R2,#256:BNEgotframe
�MOV PC,R14
�].read EQUD SPACE:.y EQUB0:.frameno EQUB2:ALIGN:.write EQUD&1FD8000:.lineinit EQUD&1FD8000
�D.scrcols EQUD&00000000:EQUD&01010101:EQUD&02020202:EQUD&03030303
�;EQUD&2C2C2C2C:EQUD&2D2D2D2D:EQUD&2E2E2E2E:EQUD&2F2F2F2F
�;EQUD&D0D0D0D0:EQUD&D1D1D1D1:EQUD&D2D2D2D2:EQUD&D3D3D3D3
;EQUD&FCFCFCFC:EQUD&FDFDFDFD:EQUD&FEFEFEFE:EQUD&FFFFFFFF
]:�
�
�
00000000  0d 00 0a 14 ee 20 85 20  f6 3a f1 22 20 40 20 22  |..... . .:." @ "|
00000010  3b 9e 3a e0 0d 00 14 16  eb 31 35 3a ef 32 33 2c  |;.:......15:.23,|
00000020  31 2c 30 3b 30 3b 30 3b  30 3b 0d 00 1e 08 2a 52  |1,0;0;0;0;....*R|
00000030  41 4d 0d 00 28 1c de 20  53 50 41 43 45 20 26 34  |AM..(.. SPACE &4|
00000040  30 30 30 30 2c 63 6f 64  65 20 26 34 30 30 0d 00  |0000,code &400..|
00000050  32 08 f2 61 73 73 0d 00  3c 1e ff 20 22 4c 4f 41  |2..ass..<.. "LOA|
00000060  44 20 43 41 50 54 55 52  45 39 20 22 2b c3 7e 53  |D CAPTURE9 "+.~S|
00000070  50 41 43 45 0d 00 46 58  f5 20 21 6c 69 6e 65 69  |PACE..FX. !linei|
00000080  6e 69 74 3d 26 31 46 44  38 30 30 30 3a 21 77 72  |nit=&1FD8000:!wr|
00000090  69 74 65 3d 26 31 46 44  38 30 30 30 3a d6 63 6f  |ite=&1FD8000:.co|
000000a0  64 65 3a f1 8a 36 30 2c  33 30 29 22 42 61 6c 6c  |de:..60,30)"Ball|
000000b0  42 6f 74 2d 43 61 6d 22  3b 8a 35 34 2c 33 31 29  |Bot-Cam";.54,31)|
000000c0  91 24 3b 3a fd 20 a6 28  2d 39 39 29 0d 00 50 05  |.$;:. .(-99)..P.|
000000d0  e0 0d 00 5a 05 3a 0d 00  64 09 dd f2 61 73 73 0d  |...Z.:..d...ass.|
000000e0  00 6e 0f e3 70 61 73 73  3d 30 b8 32 88 32 0d 00  |.n..pass=0.2.2..|
000000f0  78 0b 50 25 3d 63 6f 64  65 0d 00 82 0c 5b 4f 50  |x.P%=code....[OP|
00000100  54 70 61 73 73 0d 00 8c  83 41 44 52 20 52 30 2c  |Tpass....ADR R0,|
00000110  72 65 61 64 3a 4c 44 52  20 52 31 2c 5b 52 30 5d  |read:LDR R1,[R0]|
00000120  3a 41 44 52 20 52 30 2c  66 72 61 6d 65 6e 6f 3a  |:ADR R0,frameno:|
00000130  4c 44 52 42 20 52 34 2c  5b 52 30 5d 3a 2e 66 69  |LDRB R4,[R0]:.fi|
00000140  6e 64 66 72 61 6d 65 20  4c 44 52 42 20 52 32 2c  |ndframe LDRB R2,|
00000150  5b 52 31 5d 3a 43 4d 50  20 52 32 2c 23 97 28 22  |[R1]:CMP R2,#.("|
00000160  40 22 29 3a 42 45 51 67  6f 74 61 66 72 61 6d 65  |@"):BEQgotaframe|
00000170  3a 41 44 44 20 52 31 2c  52 31 2c 23 31 3a 42 66  |:ADD R1,R1,#1:Bf|
00000180  69 6e 64 66 72 61 6d 65  0d 00 96 3f 2e 67 6f 74  |indframe...?.got|
00000190  61 66 72 61 6d 65 20 41  44 44 20 52 31 2c 52 31  |aframe ADD R1,R1|
000001a0  2c 23 31 3a 53 55 42 20  52 34 2c 52 34 2c 23 31  |,#1:SUB R4,R4,#1|
000001b0  3a 43 4d 50 20 52 34 2c  23 30 3a 42 4e 45 66 69  |:CMP R4,#0:BNEfi|
000001c0  6e 64 66 72 61 6d 65 0d  00 a0 4b 2e 67 6f 74 66  |ndframe...K.gotf|
000001d0  72 61 6d 65 20 4c 44 52  42 20 52 32 2c 5b 52 31  |rame LDRB R2,[R1|
000001e0  5d 3a 43 4d 50 20 52 32  2c 23 97 28 22 40 22 29  |]:CMP R2,#.("@")|
000001f0  3a 42 47 54 67 6f 74 6c  69 6e 65 3a 41 44 44 20  |:BGTgotline:ADD |
00000200  52 31 2c 52 31 2c 23 31  3a 42 67 6f 74 66 72 61  |R1,R1,#1:Bgotfra|
00000210  6d 65 0d 00 aa 3d 2e 67  6f 74 6c 69 6e 65 20 4c  |me...=.gotline L|
00000220  44 52 42 20 52 32 2c 5b  52 31 5d 3a 41 44 44 20  |DRB R2,[R1]:ADD |
00000230  52 31 2c 52 31 2c 23 31  3a 43 4d 50 20 52 32 2c  |R1,R1,#1:CMP R2,|
00000240  23 26 30 44 3a 42 45 51  65 6e 64 6c 69 6e 65 0d  |#&0D:BEQendline.|
00000250  00 b4 75 53 55 42 20 52  32 2c 52 32 2c 23 36 35  |..uSUB R2,R2,#65|
00000260  3a 4d 4f 56 20 52 32 2c  52 32 2c 41 53 4c 20 23  |:MOV R2,R2,ASL #|
00000270  32 3a 41 44 52 20 52 33  2c 73 63 72 63 6f 6c 73  |2:ADR R3,scrcols|
00000280  3a 41 44 44 20 52 32 2c  52 32 2c 52 33 3a 4c 44  |:ADD R2,R2,R3:LD|
00000290  52 20 52 33 2c 5b 52 32  5d 3a 41 44 52 20 52 30  |R R3,[R2]:ADR R0|
000002a0  2c 77 72 69 74 65 3a 4c  44 52 20 52 34 2c 5b 52  |,write:LDR R4,[R|
000002b0  30 5d 3a 2e 74 65 73 74  20 53 54 52 20 52 33 2c  |0]:.test STR R3,|
000002c0  5b 52 34 5d 0d 00 be 26  41 44 44 20 52 34 2c 52  |[R4]...&ADD R4,R|
000002d0  34 2c 23 34 3a 53 54 52  20 52 34 2c 5b 52 30 5d  |4,#4:STR R4,[R0]|
000002e0  3a 42 20 67 6f 74 6c 69  6e 65 0d 00 c8 a4 2e 65  |:B gotline.....e|
000002f0  6e 64 6c 69 6e 65 20 41  44 52 20 52 30 2c 6c 69  |ndline ADR R0,li|
00000300  6e 65 69 6e 69 74 3a 4c  44 52 20 52 32 2c 5b 52  |neinit:LDR R2,[R|
00000310  30 5d 3a 41 44 44 20 52  32 2c 52 32 2c 23 36 34  |0]:ADD R2,R2,#64|
00000320  30 3a 53 54 52 20 52 32  2c 5b 52 30 5d 3a 41 44  |0:STR R2,[R0]:AD|
00000330  52 20 52 30 2c 77 72 69  74 65 3a 53 54 52 20 52  |R R0,write:STR R|
00000340  32 2c 5b 52 30 5d 3a 41  44 52 20 52 30 2c 79 3a  |2,[R0]:ADR R0,y:|
00000350  4c 44 52 42 20 52 32 2c  5b 52 30 5d 3a 41 44 44  |LDRB R2,[R0]:ADD|
00000360  20 52 32 2c 52 32 2c 23  31 3a 53 54 52 42 20 52  | R2,R2,#1:STRB R|
00000370  32 2c 5b 52 30 5d 3a 43  4d 50 20 52 32 2c 23 32  |2,[R0]:CMP R2,#2|
00000380  35 36 3a 42 4e 45 67 6f  74 66 72 61 6d 65 0d 00  |56:BNEgotframe..|
00000390  d2 0e 4d 4f 56 20 50 43  2c 52 31 34 0d 00 dc 5d  |..MOV PC,R14...]|
000003a0  2e 72 65 61 64 20 45 51  55 44 20 53 50 41 43 45  |.read EQUD SPACE|
000003b0  3a 2e 79 20 45 51 55 42  30 3a 2e 66 72 61 6d 65  |:.y EQUB0:.frame|
000003c0  6e 6f 20 45 51 55 42 32  3a 41 4c 49 47 4e 3a 2e  |no EQUB2:ALIGN:.|
000003d0  77 72 69 74 65 20 45 51  55 44 26 31 46 44 38 30  |write EQUD&1FD80|
000003e0  30 30 3a 2e 6c 69 6e 65  69 6e 69 74 20 45 51 55  |00:.lineinit EQU|
000003f0  44 26 31 46 44 38 30 30  30 0d 00 e6 44 2e 73 63  |D&1FD8000...D.sc|
00000400  72 63 6f 6c 73 20 45 51  55 44 26 30 30 30 30 30  |rcols EQUD&00000|
00000410  30 30 30 3a 45 51 55 44  26 30 31 30 31 30 31 30  |000:EQUD&0101010|
00000420  31 3a 45 51 55 44 26 30  32 30 32 30 32 30 32 3a  |1:EQUD&02020202:|
00000430  45 51 55 44 26 30 33 30  33 30 33 30 33 0d 00 f0  |EQUD&03030303...|
00000440  3b 45 51 55 44 26 32 43  32 43 32 43 32 43 3a 45  |;EQUD&2C2C2C2C:E|
00000450  51 55 44 26 32 44 32 44  32 44 32 44 3a 45 51 55  |QUD&2D2D2D2D:EQU|
00000460  44 26 32 45 32 45 32 45  32 45 3a 45 51 55 44 26  |D&2E2E2E2E:EQUD&|
00000470  32 46 32 46 32 46 32 46  0d 00 fa 3b 45 51 55 44  |2F2F2F2F...;EQUD|
00000480  26 44 30 44 30 44 30 44  30 3a 45 51 55 44 26 44  |&D0D0D0D0:EQUD&D|
00000490  31 44 31 44 31 44 31 3a  45 51 55 44 26 44 32 44  |1D1D1D1:EQUD&D2D|
000004a0  32 44 32 44 32 3a 45 51  55 44 26 44 33 44 33 44  |2D2D2:EQUD&D3D3D|
000004b0  33 44 33 0d 01 04 3b 45  51 55 44 26 46 43 46 43  |3D3...;EQUD&FCFC|
000004c0  46 43 46 43 3a 45 51 55  44 26 46 44 46 44 46 44  |FCFC:EQUD&FDFDFD|
000004d0  46 44 3a 45 51 55 44 26  46 45 46 45 46 45 46 45  |FD:EQUD&FEFEFEFE|
000004e0  3a 45 51 55 44 26 46 46  46 46 46 46 46 46 0d 01  |:EQUD&FFFFFFFF..|
000004f0  0e 07 5d 3a ed 0d 01 18  05 e1 0d ff              |..]:........|
000004fc