Program Addresses

Program addresses may be specified by paragraph name. They can also be specified by a hexadecimal address, specified by a . (period) as the first character. This allows the debugger to distinguish between the hex address ABC and the paragraph name ABC. You can omit the period when there is no ambiguity. Optionally, . (period) can be followed by the six-character program name. The numeric form is the only way to specify an address that is not at a paragraph, and the only way to specify an address in a program other than the one that is currently running. The listing produced by the compiler has the address of the start of each sentence along the left-hand side. Usually it is more convenient to use the F3 and F4 commands of the source debugger.

Note: Every program always starts at address zero. If you want to debug a subprogram, you can always set a breakpoint at address zero of the subprogram and run it until this point is reached. Then the subprogram will be active and its symbols will be available (if it was compiled with -Gd or -Gy). When specifying an address in a different program, use the name contained in its PROGRAM-ID paragraph.

Examples:

MAIN-LOGIC Paragraph name
3A7F Numeric address
0, PROG2 Start of program PROG2