' Inline ASM One-Liners — Single-line ASM statements
#COMPILE EXE
#DIM ALL

FUNCTION PBMAIN() AS LONG
    LOCAL val AS LONG

    val = 0

    ASM mov eax, 42
    ASM mov dword ptr [%val], eax

    PRINT "val = "; val

    ASM mov rax, 100
    ASM mov [%val], rax

    PRINT "val now = "; val

    FUNCTION = 0
END FUNCTION
