Everything

SIZEOF


Returns the size of the term section after linking.

[Function]

Returns the size of the term section after linking.

[Application example]

.DW     SIZEOF(.text)           ; (1)

(1)

Allocates a 4-byte area, and initializes it with the size of the .text section.

 

To use this operator in conjunction with STARTOF:

.DW         STARTOF(.data) + SIZEOF(.data)

[Caution]

-

SIZEOF can only be written as an operand of the data definition directive, .dw.

-

This operator can be specified in combination with STARTOF by using the binary operator "+".
Note, however, that it is not possible on the same line to write multiple instances of STARTOF and SIZEOF or include an expression other than STARTOF or SIZEOF.