beautypg.com

6 absolute, Absolute – Avago Technologies LSI53C1010 User Manual

Page 148

background image

5-10

The NASM Output File

5.2.6 Absolute

The Absolute section contains the Absolute records, if any were
declared. First is the Absolute Header Record, which contains:

#define Abs_Count count

Where

count

is the number of Absolutes defined in the SCRIPTS

program.

The second section is the Character Array of all Absolute names used,
it contains:

char *Absolute_Names[Abs_Count] = {

Abs_String1,
Abs_String2,
.
.
Abs_Stringn

};

Where

Abs_Stringn

is the name of the Absolute being defined.

Third is the Absolute Value Definition, which contains:

#define A_name value

Where

name

is the name of the Absolute and

value

is the value assigned

to this Absolute in the SCRIPTS program.

The final part of the Absolute record is the Offset Array, which lists the
offsets in the SCRIPTS array where each Absolute is used. It is the same
as the offset array used for External buffers, except that the array names
are of the format

A_name_Used

where

name

is the name of the Absolute.

The last two sections of the Absolute record, Absolute Value Definition
and Offset Array, are repeated for every Absolute defined in the
SCRIPTS program.

Command line switches also effect the output of absolute. Using the

-o

compiler option includes all items mentioned above in the output file.
Using the

-p

option omits the Offset Array from the output file. An

example of the output generated using each compiler option is listed
below.

This manual is related to the following products: