Home » Archimedes archive » Archimedes World » AW-1991-05.adf » May91 » !AWMay91/Goodies/ProgARM/Load

!AWMay91/Goodies/ProgARM/Load

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 » Archimedes archive » Archimedes World » AW-1991-05.adf » May91
Filename: !AWMay91/Goodies/ProgARM/Load
Read OK:
File size: 0221 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >$.pointer.load
   20
   30DIM block% 10
   40DIM data% 512
   50block%!0=0
   60block%?1=2
   70block%?2=8
   80block%?3=32
   90block%?4=9 :REM Active X
  100block%?5=4 :REM Active Y
  110block%!6=data%+8
  120
  130INPUT"Enter name of pointer file :"file$
  140PROCload_pointer(file$)
  150
  160VDU19,1,25,&40,&20,&00
  170VDU19,2,25,&FF,&C0,&C0
  180VDU19,3,25,&00,&C0,&C0
  190
  191REM To test active point use this line:-
  200REM REPEATMOUSE X,Y,C:DRAWX,Y:UNTIL.
  210
  220END
  230
  240DEF PROCload_pointer(filename$)
  250OSCLI "LOAD "+filename$+" "+STR$~data%
  260SYS "OS_Word",21,block%
  270SYS "OS_Byte",106,2
  280ENDPROC

� >$.pointer.load

� block% 10
(� data% 512
2block%!0=0
<block%?1=2
Fblock%?2=8
Pblock%?3=32
Zblock%?4=9 :� Active X
dblock%?5=4 :� Active Y
nblock%!6=data%+8
x
�(�"Enter name of pointer file :"file$
��load_pointer(file$)
�
��19,1,25,&40,&20,&00
��19,2,25,&FF,&C0,&C0
��19,3,25,&00,&C0,&C0
�
�*� To test active point use this line:-
�&� REPEATMOUSE X,Y,C:DRAWX,Y:UNTIL.
�
��
�
�� �load_pointer(filename$)
�#� "LOAD "+filename$+" "+�~data%
ș "OS_Word",21,block%
ș "OS_Byte",106,2
�
�
00000000  0d 00 0a 15 f4 20 3e 24  2e 70 6f 69 6e 74 65 72  |..... >$.pointer|
00000010  2e 6c 6f 61 64 0d 00 14  04 0d 00 1e 0f de 20 62  |.load......... b|
00000020  6c 6f 63 6b 25 20 31 30  0d 00 28 0f de 20 64 61  |lock% 10..(.. da|
00000030  74 61 25 20 35 31 32 0d  00 32 0e 62 6c 6f 63 6b  |ta% 512..2.block|
00000040  25 21 30 3d 30 0d 00 3c  0e 62 6c 6f 63 6b 25 3f  |%!0=0..<.block%?|
00000050  31 3d 32 0d 00 46 0e 62  6c 6f 63 6b 25 3f 32 3d  |1=2..F.block%?2=|
00000060  38 0d 00 50 0f 62 6c 6f  63 6b 25 3f 33 3d 33 32  |8..P.block%?3=32|
00000070  0d 00 5a 1a 62 6c 6f 63  6b 25 3f 34 3d 39 20 3a  |..Z.block%?4=9 :|
00000080  f4 20 41 63 74 69 76 65  20 58 0d 00 64 1a 62 6c  |. Active X..d.bl|
00000090  6f 63 6b 25 3f 35 3d 34  20 3a f4 20 41 63 74 69  |ock%?5=4 :. Acti|
000000a0  76 65 20 59 0d 00 6e 14  62 6c 6f 63 6b 25 21 36  |ve Y..n.block%!6|
000000b0  3d 64 61 74 61 25 2b 38  0d 00 78 04 0d 00 82 28  |=data%+8..x....(|
000000c0  e8 22 45 6e 74 65 72 20  6e 61 6d 65 20 6f 66 20  |."Enter name of |
000000d0  70 6f 69 6e 74 65 72 20  66 69 6c 65 20 3a 22 66  |pointer file :"f|
000000e0  69 6c 65 24 0d 00 8c 18  f2 6c 6f 61 64 5f 70 6f  |ile$.....load_po|
000000f0  69 6e 74 65 72 28 66 69  6c 65 24 29 0d 00 96 04  |inter(file$)....|
00000100  0d 00 a0 18 ef 31 39 2c  31 2c 32 35 2c 26 34 30  |.....19,1,25,&40|
00000110  2c 26 32 30 2c 26 30 30  0d 00 aa 18 ef 31 39 2c  |,&20,&00.....19,|
00000120  32 2c 32 35 2c 26 46 46  2c 26 43 30 2c 26 43 30  |2,25,&FF,&C0,&C0|
00000130  0d 00 b4 18 ef 31 39 2c  33 2c 32 35 2c 26 30 30  |.....19,3,25,&00|
00000140  2c 26 43 30 2c 26 43 30  0d 00 be 04 0d 00 bf 2a  |,&C0,&C0.......*|
00000150  f4 20 54 6f 20 74 65 73  74 20 61 63 74 69 76 65  |. To test active|
00000160  20 70 6f 69 6e 74 20 75  73 65 20 74 68 69 73 20  | point use this |
00000170  6c 69 6e 65 3a 2d 0d 00  c8 26 f4 20 52 45 50 45  |line:-...&. REPE|
00000180  41 54 4d 4f 55 53 45 20  58 2c 59 2c 43 3a 44 52  |ATMOUSE X,Y,C:DR|
00000190  41 57 58 2c 59 3a 55 4e  54 49 4c 2e 0d 00 d2 04  |AWX,Y:UNTIL.....|
000001a0  0d 00 dc 05 e0 0d 00 e6  04 0d 00 f0 1e dd 20 f2  |.............. .|
000001b0  6c 6f 61 64 5f 70 6f 69  6e 74 65 72 28 66 69 6c  |load_pointer(fil|
000001c0  65 6e 61 6d 65 24 29 0d  00 fa 23 ff 20 22 4c 4f  |ename$)...#. "LO|
000001d0  41 44 20 22 2b 66 69 6c  65 6e 61 6d 65 24 2b 22  |AD "+filename$+"|
000001e0  20 22 2b c3 7e 64 61 74  61 25 0d 01 04 1a c8 99  | "+.~data%......|
000001f0  20 22 4f 53 5f 57 6f 72  64 22 2c 32 31 2c 62 6c  | "OS_Word",21,bl|
00000200  6f 63 6b 25 0d 01 0e 16  c8 99 20 22 4f 53 5f 42  |ock%...... "OS_B|
00000210  79 74 65 22 2c 31 30 36  2c 32 0d 01 18 05 e1 0d  |yte",106,2......|
00000220  ff                                                |.|
00000221