Asm

Last Modified: 12/31/2020

Insert a line of assembly or an assembly code block directly into your program. You can use the inline method or you can use the code block method as shown in the example below.

Arguments

NameTypeRequiredDescription
AsmCode String Yes The ASM code you want to insert.

Example

Syntax: Asm <AsmCode>
    ' Inline method
    Asm "move.w #100, (__INTEGER_b)"
 
    ' Code Block method
    Asm
        clr.l d0
        move.w (__INTEGER_b), d0
        add.w #20, d0
        move.w d0, (__INTEGER_c)
    End Asm
    Print b, c

Remarks

Be sure to read the Accessing SecondBASIC code with ASM for information on how to interact with the BASIC code.

See Also

$IncAsm