Skip to content

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.

Examples

start GeSHi

vb
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

end GeSHi

Version

  • Since fbc 1.02.0

Differences from QB

  • New to FreeBASIC

See also

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft