Home » Archimedes archive » Acorn User » AU 1997-06 B.adf » Regulars » RTR/FtoO

RTR/FtoO

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 » Acorn User » AU 1997-06 B.adf » Regulars
Filename: RTR/FtoO
Read OK:
File size: 00C9 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Frequency to octive number test
   20PRINT"Freq to Octive No."
   21L2=LN(2)
   30REPEAT
   40INPUT "Frequency ",F
   50R=F/16.351875
   51Oc=(LN(R)/L2)
   52octive%=INT(Oc)
   60Fr%=(Oc-octive%)*4096
   70PRINT ~octive%,~Fr%
   80UNTIL FALSE

%� Frequency to octive number test
�"Freq to Octive No."
L2=�(2)
�
(� "Frequency ",F
2R=F/16.351875
3Oc=(�(R)/L2)
4octive%=�(Oc)
<Fr%=(Oc-octive%)*4096
F� ~octive%,~Fr%
P� �
�
00000000  0d 00 0a 25 f4 20 46 72  65 71 75 65 6e 63 79 20  |...%. Frequency |
00000010  74 6f 20 6f 63 74 69 76  65 20 6e 75 6d 62 65 72  |to octive number|
00000020  20 74 65 73 74 0d 00 14  19 f1 22 46 72 65 71 20  | test....."Freq |
00000030  74 6f 20 4f 63 74 69 76  65 20 4e 6f 2e 22 0d 00  |to Octive No."..|
00000040  15 0b 4c 32 3d aa 28 32  29 0d 00 1e 05 f5 0d 00  |..L2=.(2).......|
00000050  28 14 e8 20 22 46 72 65  71 75 65 6e 63 79 20 22  |(.. "Frequency "|
00000060  2c 46 0d 00 32 11 52 3d  46 2f 31 36 2e 33 35 31  |,F..2.R=F/16.351|
00000070  38 37 35 0d 00 33 10 4f  63 3d 28 aa 28 52 29 2f  |875..3.Oc=(.(R)/|
00000080  4c 32 29 0d 00 34 11 6f  63 74 69 76 65 25 3d a8  |L2)..4.octive%=.|
00000090  28 4f 63 29 0d 00 3c 19  46 72 25 3d 28 4f 63 2d  |(Oc)..<.Fr%=(Oc-|
000000a0  6f 63 74 69 76 65 25 29  2a 34 30 39 36 0d 00 46  |octive%)*4096..F|
000000b0  13 f1 20 7e 6f 63 74 69  76 65 25 2c 7e 46 72 25  |.. ~octive%,~Fr%|
000000c0  0d 00 50 07 fd 20 a3 0d  ff                       |..P.. ...|
000000c9