Home » Archimedes archive » Acorn User » AU 1993-09.adf » !BasicProg_Basic » Listing4

Listing4

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 1993-09.adf » !BasicProg_Basic
Filename: Listing4
Read OK:
File size: 011D bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >Listing4
   20:
   30ON ERROR REPORT:PRINT " at line ";ERL/10:END
   40n=6.57
   50s$="Acorn Computers"
   60PRINT "Value of n is ";n
   70PRINT "INT(n) = ";INT(n)
   80PRINT "SQR(n) = ";SQR(n)
   90PRINT "COS(n) = ";COS(n)
  100PRINT "SIN(n) = ";SIN(n)
  110PRINT "TAN(n) = ";TAN(n)
  120PRINT
  130PRINT "String s$ is """;s$;""""
  140PRINT "LEN(s$) = ";LEN(s$)
  150END

� >Listing4
:
� � �:� " at line ";�/10:�
(
n=6.57
2s$="Acorn Computers"
<� "Value of n is ";n
F� "INT(n) = ";�(n)
P� "SQR(n) = ";�(n)
Z� "COS(n) = ";�(n)
d� "SIN(n) = ";�(n)
n� "TAN(n) = ";�(n)
x�
�� "String s$ is """;s$;""""
�� "LEN(s$) = ";�(s$)
��
�
00000000  0d 00 0a 0f f4 20 3e 4c  69 73 74 69 6e 67 34 0d  |..... >Listing4.|
00000010  00 14 05 3a 0d 00 1e 1e  ee 20 85 20 f6 3a f1 20  |...:..... . .:. |
00000020  22 20 61 74 20 6c 69 6e  65 20 22 3b 9e 2f 31 30  |" at line ";./10|
00000030  3a e0 0d 00 28 0a 6e 3d  36 2e 35 37 0d 00 32 18  |:...(.n=6.57..2.|
00000040  73 24 3d 22 41 63 6f 72  6e 20 43 6f 6d 70 75 74  |s$="Acorn Comput|
00000050  65 72 73 22 0d 00 3c 18  f1 20 22 56 61 6c 75 65  |ers"..<.. "Value|
00000060  20 6f 66 20 6e 20 69 73  20 22 3b 6e 0d 00 46 16  | of n is ";n..F.|
00000070  f1 20 22 49 4e 54 28 6e  29 20 3d 20 22 3b a8 28  |. "INT(n) = ";.(|
00000080  6e 29 0d 00 50 16 f1 20  22 53 51 52 28 6e 29 20  |n)..P.. "SQR(n) |
00000090  3d 20 22 3b b6 28 6e 29  0d 00 5a 16 f1 20 22 43  |= ";.(n)..Z.. "C|
000000a0  4f 53 28 6e 29 20 3d 20  22 3b 9b 28 6e 29 0d 00  |OS(n) = ";.(n)..|
000000b0  64 16 f1 20 22 53 49 4e  28 6e 29 20 3d 20 22 3b  |d.. "SIN(n) = ";|
000000c0  b5 28 6e 29 0d 00 6e 16  f1 20 22 54 41 4e 28 6e  |.(n)..n.. "TAN(n|
000000d0  29 20 3d 20 22 3b b7 28  6e 29 0d 00 78 05 f1 0d  |) = ";.(n)..x...|
000000e0  00 82 1f f1 20 22 53 74  72 69 6e 67 20 73 24 20  |.... "String s$ |
000000f0  69 73 20 22 22 22 3b 73  24 3b 22 22 22 22 0d 00  |is """;s$;""""..|
00000100  8c 18 f1 20 22 4c 45 4e  28 73 24 29 20 3d 20 22  |... "LEN(s$) = "|
00000110  3b a9 28 73 24 29 0d 00  96 05 e0 0d ff           |;.(s$).......|
0000011d