HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

9- 15
FNPrint$
1000=000000D4 1010=000000D4 1015=000000D4 1020=000000D4 1030=00000100
1090=00000118 1095=00000150
move_to
2000=000000D0 2005=000000D0 2010=000000D0 2020=000002C0
Number of errors = 0 Number of warnings = 2
Processor time = 00:00:01 Elapsed time = 00:00:02
Number of lines = 26 Lines / CPU minute = 1560.0
END OF PROGRAM
Notes on the Example
LINE COMMENT
------------------------------------------------------------------------------------
10 Makes LABEL TABLES and ID TABLES the default throughout the program.
40 Changes the title and starts a new page.
200 Turns off range checking in the lines that follow. Because the FOR
loop limit value is mistyped (62 when it should have been 52), the
result of line 220 is unpredictable.
1010 Sets the title, prints the first line of the function on a new page,
suppresses compile-time warning messages, and suppresses the label
table for the current subunit.
The PAUSE statement on line 1015 causes a compile-time warning.
Although there is no warning message, the final statistics reflect
the warning.
1095 This line illustrates the problem of putting comments before the
subunit to which they apply. Although an interpreter listing would
look right, the comment at line 1095 actually belongs to the function
FNPrint$. Therefore, in the compiler listing, it appears before the
identifier map, the code offsets table, and the page break that the
PAGESUB option causes.
Compiling and Running Programs
You can run the compiler from the interpreter or from the operating
system. The commands are slightly different, but the steps are the same.
Figure 9-1 shows how a BSVXL file becomes an executing program (files are
boxed and steps are in capital letters).
|--------------------------|
| |
| BASIC SAVE file |
| (BSVXL) |
|--------------------------|
|
v
COMPILATION STEP
|
v
|--------------------------|
| |
| Relocatable Object file |
| (NMOBJ or RL) |
|--------------------------|
|
v
LINK STEP