Home » Archimedes archive » Acorn User » AU 1994-01.adf » !BasicProg_BasicProg » Listing1

Listing1

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 1994-01.adf » !BasicProg_BasicProg
Filename: Listing1
Read OK:
File size: 00E2 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >Listing1
   20:
   30ON ERROR REPORT:PRINT " at line ";ERL/10:END
   40MODE 0
   50DIM array$(3)
   60array$(0)="Zero"
   70array$(1)="One"
   80array$(2)="Two"
   90array$(3)="Three"
  100REPEAT
  110 INPUT "Input number (0-3) :"index%
  120 PRINT array$(index%)
  130UNTIL FALSE
  140END

� >Listing1
:
� � �:� " at line ";�/10:�
(� 0
2� array$(3)
<array$(0)="Zero"
Farray$(1)="One"
Parray$(2)="Two"
Zarray$(3)="Three"
d�
n# � "Input number (0-3) :"index%
x � array$(index%)
�� �
��
�
00000000  0d 00 0a 0f f4 20 3e 4c  69 73 74 69 6e 67 31 0d  |..... >Listing1.|
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 07 eb 20  30 0d 00 32 0f de 20 61  |:...(.. 0..2.. a|
00000040  72 72 61 79 24 28 33 29  0d 00 3c 14 61 72 72 61  |rray$(3)..<.arra|
00000050  79 24 28 30 29 3d 22 5a  65 72 6f 22 0d 00 46 13  |y$(0)="Zero"..F.|
00000060  61 72 72 61 79 24 28 31  29 3d 22 4f 6e 65 22 0d  |array$(1)="One".|
00000070  00 50 13 61 72 72 61 79  24 28 32 29 3d 22 54 77  |.P.array$(2)="Tw|
00000080  6f 22 0d 00 5a 15 61 72  72 61 79 24 28 33 29 3d  |o"..Z.array$(3)=|
00000090  22 54 68 72 65 65 22 0d  00 64 05 f5 0d 00 6e 23  |"Three"..d....n#|
000000a0  20 e8 20 22 49 6e 70 75  74 20 6e 75 6d 62 65 72  | . "Input number|
000000b0  20 28 30 2d 33 29 20 3a  22 69 6e 64 65 78 25 0d  | (0-3) :"index%.|
000000c0  00 78 15 20 f1 20 61 72  72 61 79 24 28 69 6e 64  |.x. . array$(ind|
000000d0  65 78 25 29 0d 00 82 07  fd 20 a3 0d 00 8c 05 e0  |ex%)..... ......|
000000e0  0d ff                                             |..|
000000e2