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

Listing2

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: Listing2
Read OK:
File size: 0098 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >Listing2
   20:
   30ON ERROR REPORT:PRINT " at line ";ERL/10:END
   40MODE 0
   50INPUT "Give me a number ";num%
   60FOR loop%=1 TO num%
   70 PRINT "Loop number ";loop%
   80NEXT loop%
   90END

� >Listing2
:
� � �:� " at line ";�/10:�
(� 0
2� "Give me a number ";num%
<� loop%=1 � num%
F � "Loop number ";loop%
P� loop%
Z�
�
00000000  0d 00 0a 0f f4 20 3e 4c  69 73 74 69 6e 67 32 0d  |..... >Listing2.|
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 1e e8 20 22  |:...(.. 0..2.. "|
00000040  47 69 76 65 20 6d 65 20  61 20 6e 75 6d 62 65 72  |Give me a number|
00000050  20 22 3b 6e 75 6d 25 0d  00 3c 14 e3 20 6c 6f 6f  | ";num%..<.. loo|
00000060  70 25 3d 31 20 b8 20 6e  75 6d 25 0d 00 46 1b 20  |p%=1 . num%..F. |
00000070  f1 20 22 4c 6f 6f 70 20  6e 75 6d 62 65 72 20 22  |. "Loop number "|
00000080  3b 6c 6f 6f 70 25 0d 00  50 0b ed 20 6c 6f 6f 70  |;loop%..P.. loop|
00000090  25 0d 00 5a 05 e0 0d ff                           |%..Z....|
00000098