7 termination record, Termination record – Avago Technologies LSI53C1010 User Manual
Page 149

NASM Output File Examples
5-11
Example using
-o
assembler option:
#define Abs_Count 4
char *Absolute_Names[Abs_Count] = {
“Command_Complete”,
“Got_Selected”,
“Not_Msg_Out”,
“Select_ID”
};
#define A_Command_Complete 0x00000001L
ULONG A_Command_Complete_Used[] = {
0x0000001DL
};
#define A_Select_ID 0x00000002L
ULONG A_Select_ID_Used[] = {
0x00000000L
};
#define A_Not_Msg_Out 0x00000011L
ULONG A_Not_Msg_Out_Used[] = {
0x00000003L
};
#define A_Got_Selected 0x000000A5L
ULONG A_Got_Selected_Used[] = {
0x0000001BL
};
Using -p assembler option:
#define A_Command_Complete 0x00000001L
#define A_Select_ID 0x00000002L
#define A_Not_Msg_Out 0x00000011L
#define A_Got_Selected 0x000000A5L
5.2.7 Termination Record
The module termination record declares two variables, INSTRUCTIONS
and PATCHES. INSTRUCTIONS is assigned the number of instructions
found in the SCRIPTS program, and PATCHES is assigned the number
of label patches. Using the
-o
compiler option includes all items
mentioned above in the output file. Using the
-p
option omits the Patches
variable from the output file. The
-u
option, exclude module termination
record, omits both variables from the output file. An example of the
output generated using each compiler option is listed below.
Example using
-o
assembler option:
ULONG INSTRUCTIONS = 0x0000000EL;