Keil Logo

MODINF Assembler Directive

Abbreviation

None.

Arguments

MODINF (value)

Default

None.

µVision

None.

Description

The MODINF directive is generated by the C166 Compiler when creating in-line assembler programs using the compiler's SRC directive. The value specified contains information about the memory model, floating-point usage, and other details. It is defined as follows:

MSB Value LSB
D F 7 m m m C M

Where

D indicates double-precision (64-bit) floating-point math is used.
F indicates single-precision (32-bit) floating-point math is used.
7 indicates that the MOD167 directive was specified.
mmm are 3 bits that specify the memory model (0-7). 1=TINY, 2=SMALL, 3=MEDIUM, 4=COMPACT, 5=LARGE, 6=HCOMPACT, 7=HLARGE (MOD167=0) or 7=XLARGE (MOD167=1)
C has a value of 0 is symbols are not case-sensitive and 1 is symbols are case-sensitive.
S has a value of 0 for non-segmented mode and 1 for segment mode.

The value is mirrored in the OMF file and is used by the linker for consistency checking.

See Also

CASE, SEGMENTED

Example

None.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.