Home » Archimedes archive » Acorn User » AU 1995-10.adf » !Regulars » Regulars/C/levels

Regulars/C/levels

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 1995-10.adf » !Regulars
Filename: Regulars/C/levels
Read OK:
File size: 166C bytes
Load address: 0000
Exec address: 0000
File contents
��������d����N�������L�0 ���4���������S�����0S���main�
����-��L�
]����.���,�������[�This program uses recursion to 'dive' down a function
to a certain level, then return safely.

dive�
����-��L�
]���@��0������h�������������!��h��Reached turning point; now we work back through all
   the functions we've just called.
Running forwards - level %d
Running backwards - level %d
CL���������@-���4�����,��P�����
����-��L�x�����[������ ����0��@��P��R��a��V�j�`�Fe��h��
�+oh��V�@��Q��0��V���+��C62��C63@-����>��@��P��Y�0�A�Q�0E0������h ��0���������� �� ���0�����`��V�g�`�Fe��h��
�jh��V�����������@����N����� ���������@����@-������h-�^����D��������H`��V�j�`�;�<����$����$�l���������l��l�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������(����(�,������
00000000  00 00 a0 e1 00 00 a0 e1  00 00 a0 e1 9e 00 00 eb  |................|
00000010  11 00 00 ef 08 08 00 00  64 0e 00 00 00 00 00 00  |........d.......|
00000020  00 00 00 00 00 00 00 00  00 80 00 00 00 00 00 00  |................|
00000030  1a 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000040  00 00 a0 e1 0f c0 4e e0  0c c0 8f e0 0f 00 9c e9  |......N.........|
00000050  10 c0 4c e2 30 20 9c e5  01 0c 12 e3 34 c0 9c 15  |..L.0 ......4...|
00000060  00 c0 8c 00 01 c0 8c e0  00 00 a0 e3 00 00 53 e3  |..............S.|
00000070  0e f0 a0 d1 04 00 8c e4  04 30 53 e2 fb ff ff ea  |.........0S.....|
00000080  6d 61 69 6e 00 00 00 00  08 00 00 ff 0d c0 a0 e1  |main............|
00000090  00 d8 2d e9 04 b0 4c e2  0a 00 5d e1 1a 01 00 bb  |..-...L...].....|
000000a0  06 0f 8f e2 2e 01 00 eb  12 0f 8f e2 2c 01 00 eb  |............,...|
000000b0  01 00 a0 e3 1d 00 00 eb  00 00 a0 e3 00 a8 5b e9  |..............[.|
000000c0  54 68 69 73 20 70 72 6f  67 72 61 6d 20 75 73 65  |This program use|
000000d0  73 20 72 65 63 75 72 73  69 6f 6e 20 74 6f 20 27  |s recursion to '|
000000e0  64 69 76 65 27 20 64 6f  77 6e 20 61 20 66 75 6e  |dive' down a fun|
000000f0  63 74 69 6f 6e 0a 00 00  74 6f 20 61 20 63 65 72  |ction...to a cer|
00000100  74 61 69 6e 20 6c 65 76  65 6c 2c 20 74 68 65 6e  |tain level, then|
00000110  20 72 65 74 75 72 6e 20  73 61 66 65 6c 79 2e 0a  | return safely..|
00000120  0a 00 00 00 64 69 76 65  00 00 00 00 08 00 00 ff  |....dive........|
00000130  0d c0 a0 e1 11 d8 2d e9  04 b0 4c e2 0a 00 5d e1  |......-...L...].|
00000140  f1 00 00 bb 00 40 a0 e1  05 00 30 e3 04 00 00 1a  |.....@....0.....|
00000150  0c 0f 8f e2 02 01 00 eb  18 0f 8f e2 10 68 1b e9  |.............h..|
00000160  ff 00 00 ea 04 10 a0 e1  1e 0f 8f e2 fc 00 00 eb  |................|
00000170  01 00 84 e2 ed ff ff eb  04 10 a0 e1 21 0f 8f e2  |............!...|
00000180  10 68 1b e9 f6 00 00 ea  52 65 61 63 68 65 64 20  |.h......Reached |
00000190  74 75 72 6e 69 6e 67 20  70 6f 69 6e 74 3b 20 6e  |turning point; n|
000001a0  6f 77 20 77 65 20 77 6f  72 6b 20 62 61 63 6b 20  |ow we work back |
000001b0  74 68 72 6f 75 67 68 20  61 6c 6c 0a 00 00 00 00  |through all.....|
000001c0  20 20 20 74 68 65 20 66  75 6e 63 74 69 6f 6e 73  |   the functions|
000001d0  20 77 65 27 76 65 20 6a  75 73 74 20 63 61 6c 6c  | we've just call|
000001e0  65 64 2e 0a 00 00 00 00  52 75 6e 6e 69 6e 67 20  |ed......Running |
000001f0  66 6f 72 77 61 72 64 73  20 2d 20 6c 65 76 65 6c  |forwards - level|
00000200  20 25 64 0a 00 00 00 00  52 75 6e 6e 69 6e 67 20  | %d.....Running |
00000210  62 61 63 6b 77 61 72 64  73 20 2d 20 6c 65 76 65  |backwards - leve|
00000220  6c 20 25 64 0a 00 00 00  43 00 00 00 4c 00 9f e5  |l %d....C...L...|
00000230  18 12 1a e5 01 00 80 e0  01 10 a0 e3 00 10 c0 e5  |................|
00000240  00 40 2d e9 04 00 8d e2  34 10 9f e5 06 00 91 e9  |.@-.....4.......|
00000250  bd 00 00 eb 2c 00 9f e5  00 00 50 e3 00 00 8f 12  |....,.....P.....|
00000260  00 80 fd e8 0d c0 a0 e1  00 d8 2d e9 04 b0 4c e2  |..........-...L.|
00000270  78 00 00 eb 0c 10 9f e5  b1 00 00 eb 00 a8 5b e9  |x.............[.|
00000280  1d 89 00 00 e0 87 00 00  8c 80 00 00 10 00 02 ef  |................|
00000290  01 20 a0 e1 90 11 9f e5  00 30 e0 e3 00 40 a0 e3  |. .......0...@..|
000002a0  00 50 e0 e3 52 0f 8f e2  80 61 9f e5 00 00 56 e3  |.P..R....a....V.|
000002b0  01 6a a0 03 00 60 96 15  46 65 a0 e1 06 68 a0 e1  |.j...`..Fe...h..|
000002c0  81 06 0a ef 2b 00 00 6f  06 68 a0 e1 06 08 56 e3  |....+..o.h....V.|
000002d0  00 40 a0 a1 51 0f 8f a2  00 30 a0 a3 56 00 00 aa  |.@..Q....0..V...|
000002e0  08 00 8f e2 2b 00 00 ef  90 0e 80 00 43 36 32 00  |....+.......C62.|
000002f0  91 0e 80 00 43 36 33 00  00 40 2d e9 00 90 a0 e1  |....C63..@-.....|
00000300  3e df ff eb 00 40 a0 e3  00 50 e0 e3 00 00 59 e3  |>....@...P....Y.|
00000310  0c 30 a0 03 18 41 9f 15  0c 51 9f 15 04 30 45 10  |.0...A...Q...0E.|
00000320  0c 30 83 12 06 00 a0 e3  1e 00 02 ef 00 80 bd 68  |.0.............h|
00000330  00 20 8c e5 00 30 82 e5  0c 90 a0 e1 00 c0 9c e5  |. ...0..........|
00000340  0c 10 8c e2 00 20 9c e5  01 20 82 e0 e4 30 9f e5  |..... ... ...0..|
00000350  9c 00 8f e2 d4 60 9f e5  00 00 56 e3 01 67 a0 03  |.....`....V..g..|
00000360  00 60 96 15 46 65 a0 e1  06 68 b0 e1 82 06 0a ef  |.`..Fe...h......|
00000370  08 00 00 6a 06 68 a0 e1  06 08 56 e3 d7 ff ff ba  |...j.h....V.....|
00000380  14 80 81 e2 80 01 98 e8  80 01 8c e9 00 40 a0 e1  |.............@..|
00000390  88 00 8f e2 4e 00 00 ea  00 10 a0 e1 07 00 a0 e3  |....N...........|
000003a0  0c 20 a0 e1 1e 00 02 ef  00 00 a0 e3 00 00 89 e5  |. ..............|
000003b0  01 00 a0 e1 00 40 bd e8  01 f2 9e e3 00 40 2d e9  |.....@.......@-.|
000003c0  cc ff ff eb 00 80 bd 68  00 02 2d e9 5e 00 00 eb  |.......h..-.^...|
000003d0  01 80 fd e8 44 00 8f e2  0c 80 a0 e1 00 c0 e0 e3  |....D...........|
000003e0  48 60 9f e5 00 00 56 e3  01 6a a0 03 00 60 96 15  |H`....V..j...`..|
000003f0  3b 00 00 ea 01 00 00 00  3c 84 00 00 fc 84 00 00  |;.......<.......|
00000400  08 88 00 00 24 8b 00 00  02 00 00 00 fc 84 00 00  |....$...........|
00000410  e0 87 00 00 24 8b 00 00  6c 96 00 00 ff ff ff ff  |....$...l.......|
00000420  80 80 00 00 e0 87 00 00  08 88 00 00 6c 96 00 00  |............l...|
00000430  00 00 00 00 08 88 00 00  6c 96 00 00 00 f0 a0 e3  |........l.......|
00000440  00 f0 a0 e3 00 f0 a0 e3  00 f0 a0 e3 00 f0 a0 e3  |................|
*
000007e0  28 00 00 00 80 80 00 00  8c 82 00 00 28 82 00 00  |(...........(...|
000007f0  2c 82 00 00 00 00 00 00  fc 84 00 00 00 85 00 00  |,...............|
00000800  04 85 00 00 08 85 00 00  00 00 00 00 00 00 00 00  |................|
00000810  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00001660  00 00 00 00 00 00 00 00  00 00 00 00              |............|
0000166c