Home » Personal collection » Acorn hard disk » risc_os_3_resources » Resources » Edit/Export

Edit/Export

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 » risc_os_3_resources » Resources
Filename: Edit/Export
Read OK:
File size: 01DE bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > Export
   20REM
   30REM Gets the addresses of the detokenise and tokenise routines
   40REM and stores them in 2 system variables
   50REM
   60DIM code% 128
   70FOR i%=0 TO 2 STEP 2
   80P%=code%
   90[ OPT i%
  100  ADD R0, R14, #&4C
  110  STR R0, detokenise
  120  ADD R0, R14, #&48
  130  STR R0, tokenise
  140  MOV PC, R14
  150.detokenise
  160  EQUD 0
  170.tokenise
  180  EQUD 0
  190]
  200NEXT
  210CALL code%
  220SYS"OS_SetVarVal","Edit$Detokenise",detokenise,4,0,1
  230SYS"OS_SetVarVal","Edit$Tokenise",tokenise,4,0,1

� > Export
�
@� Gets the addresses of the detokenise and tokenise routines
(+� and stores them in 2 system variables
2�
<� code% 128
F� i%=0 � 2 � 2
PP%=code%
Z[ OPT i%
d  ADD R0, R14, #&4C
n  STR R0, detokenise
x  ADD R0, R14, #&48
�  STR R0, tokenise
�  MOV PC, R14
�.detokenise
�  EQUD 0
�
.tokenise
�  EQUD 0
�]
��
�� code%
�7ș"OS_SetVarVal","Edit$Detokenise",detokenise,4,0,1
�3ș"OS_SetVarVal","Edit$Tokenise",tokenise,4,0,1
�
00000000  0d 00 0a 0e f4 20 3e 20  45 78 70 6f 72 74 0d 00  |..... > Export..|
00000010  14 05 f4 0d 00 1e 40 f4  20 47 65 74 73 20 74 68  |......@. Gets th|
00000020  65 20 61 64 64 72 65 73  73 65 73 20 6f 66 20 74  |e addresses of t|
00000030  68 65 20 64 65 74 6f 6b  65 6e 69 73 65 20 61 6e  |he detokenise an|
00000040  64 20 74 6f 6b 65 6e 69  73 65 20 72 6f 75 74 69  |d tokenise routi|
00000050  6e 65 73 0d 00 28 2b f4  20 61 6e 64 20 73 74 6f  |nes..(+. and sto|
00000060  72 65 73 20 74 68 65 6d  20 69 6e 20 32 20 73 79  |res them in 2 sy|
00000070  73 74 65 6d 20 76 61 72  69 61 62 6c 65 73 0d 00  |stem variables..|
00000080  32 05 f4 0d 00 3c 0f de  20 63 6f 64 65 25 20 31  |2....<.. code% 1|
00000090  32 38 0d 00 46 12 e3 20  69 25 3d 30 20 b8 20 32  |28..F.. i%=0 . 2|
000000a0  20 88 20 32 0d 00 50 0c  50 25 3d 63 6f 64 65 25  | . 2..P.P%=code%|
000000b0  0d 00 5a 0c 5b 20 4f 50  54 20 69 25 0d 00 64 17  |..Z.[ OPT i%..d.|
000000c0  20 20 41 44 44 20 52 30  2c 20 52 31 34 2c 20 23  |  ADD R0, R14, #|
000000d0  26 34 43 0d 00 6e 18 20  20 53 54 52 20 52 30 2c  |&4C..n.  STR R0,|
000000e0  20 64 65 74 6f 6b 65 6e  69 73 65 0d 00 78 17 20  | detokenise..x. |
000000f0  20 41 44 44 20 52 30 2c  20 52 31 34 2c 20 23 26  | ADD R0, R14, #&|
00000100  34 38 0d 00 82 16 20 20  53 54 52 20 52 30 2c 20  |48....  STR R0, |
00000110  74 6f 6b 65 6e 69 73 65  0d 00 8c 11 20 20 4d 4f  |tokenise....  MO|
00000120  56 20 50 43 2c 20 52 31  34 0d 00 96 0f 2e 64 65  |V PC, R14.....de|
00000130  74 6f 6b 65 6e 69 73 65  0d 00 a0 0c 20 20 45 51  |tokenise....  EQ|
00000140  55 44 20 30 0d 00 aa 0d  2e 74 6f 6b 65 6e 69 73  |UD 0.....tokenis|
00000150  65 0d 00 b4 0c 20 20 45  51 55 44 20 30 0d 00 be  |e....  EQUD 0...|
00000160  05 5d 0d 00 c8 05 ed 0d  00 d2 0b d6 20 63 6f 64  |.].......... cod|
00000170  65 25 0d 00 dc 37 c8 99  22 4f 53 5f 53 65 74 56  |e%...7.."OS_SetV|
00000180  61 72 56 61 6c 22 2c 22  45 64 69 74 24 44 65 74  |arVal","Edit$Det|
00000190  6f 6b 65 6e 69 73 65 22  2c 64 65 74 6f 6b 65 6e  |okenise",detoken|
000001a0  69 73 65 2c 34 2c 30 2c  31 0d 00 e6 33 c8 99 22  |ise,4,0,1...3.."|
000001b0  4f 53 5f 53 65 74 56 61  72 56 61 6c 22 2c 22 45  |OS_SetVarVal","E|
000001c0  64 69 74 24 54 6f 6b 65  6e 69 73 65 22 2c 74 6f  |dit$Tokenise",to|
000001d0  6b 65 6e 69 73 65 2c 34  2c 30 2c 31 0d ff        |kenise,4,0,1..|
000001de