Sample Program
Assembly
Linking the Sample
Program
debug
input cmd_rds
start Prog(1000),Table(2000),Data(0fc00)
print cmd_rds
output cmd_rds
exit
Generate HP
Absolute file
Note
2-6 Getting Started
The sample program is written for and assembled with the HP 64876
H8/300 Assembler/Linkage Editor. The sample program was
assembled with the following command (which assumes that
/usr/hp64000/bin is defined in the PATH environment variable).
$ h83asm -debug cmd_rds.src <RETURN>
The sample program can be linked with following command and
generates the absolute file. The contents of "cmd_rds.k" linkage editor
subcommand file is shown in figure 2-2.
$ h8lnk -subcommand=cmd_rds.k
<RETURN>
Figure 2-2. Linkage Editor Subcommoand File
To generate HP Absolute file for the Softkey Interface, you need to use
"h83cnvhp" absolute file format converter program. The h8cnvhp
converter is provided with HP 64876 H8/300 Assembler/Linkage
Editor. To generate HP Absolute file, enter following command:
$ h83cnvhp cmd_rds <RETURN>
You will see that cmd_rds.X, cmd_rds.L, and cmd_rds.A are
generated. These are sufficient throughout this chapter.
You need to specify "debug" command line option to both assembler
and linker command to generate local symbol information. Otherwise,
you will see the warning message when file format converter
h83cnvhp is executed. And no local symbol file will be generated.
The "debug" option for the assembler and linker direct to include local
symbol information to the object file.