1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
========
cxrefbas
========
----------------------------------------------------------
Code cross-reference for tokenized Atari 8-bit BASIC files
----------------------------------------------------------
.. include:: manhdr.rst
SYNOPSIS
========
cxrefbas [**-v**] **input-file**
DESCRIPTION
===========
**cxrefbas** reads an Atari 8-bit BASIC tokenized program. For each
line number in the program, it prints a list of lines that reference
it. Each reference is followed by a letter that indicates the type
of reference:
**G**
*GOTO* (without *ON*) or *GO TO*.
**S**
*GOSUB* (without *ON*).
**I**
*IF* with line number only, e.g. *IF X THEN 1000*.
**O**
*ON/GOTO* or *ON/GOSUB*.
**R**
*RESTORE*.
**T**
*TRAP*.
If a line doesn't exist, but is referenced (e.g. *GOTO 100*, but there
is no line 100), it's printed in the table, prefixed with *!*.
Any command that uses a computed value for a line number will print a
warning on standard error, e.g. *GOTO A* or *GOSUB 100\*A*. Even *GOTO
100+0* is a computed value, since BASIC doesn't do constant folding.
Line numbers above 32767, e.g. *TRAP 40000*, are not listed.
OPTIONS
=======
General Options
---------------
**--help**
Print usage message and exit.
**--version**
Print version number and exit.
**-v**
Verbose operation. When displaying a number in verbose mode, it will
be prefixed with *$* if it's in hex, or no prefix for decimal.
EXIT STATUS
===========
0 for success, 1 for failure.
.. include:: manftr.rst
|