Skip to content
Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Intrinsic Defines › FB_ASM

FB_ASM

Intrinsic define set by the compiler

Syntax

__FB_ASM__

Description

__FB_ASM__ returns a string equal to "intel" or "att" depending on whether inline assembly blocks should use the Intel format or the GCC/AT&T format.

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

Dim a As Long

#if __FB_ASM__ = "intel"

    Asm

         inc dword Ptr [a]

    End Asm

#else

    Asm

        "incl %0\n" : "+m" (a) : :

    End Asm

#endif

Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally