SecondBASIC Documentation v3

Home / Command Reference / Asm

Asm

Description: Insert a line of assembly or an assembly code block directly into your program.

Syntax:

Method 1: Asm "<asm>"
Method 2:
        Asm
                <asm>
        End Asm

Part Description
<asm> Required. This is the assembly code to be inserted into the application. If using a single line of assembly code, the code must be encapsulated in quotes.

Example:

        Asm "move.w #100, (__INTEGER_b)"
        Asm
                clr.l d0
                move.w (__INTEGER_b), d0
                add.w #20, d0
                move.w d0, (__INTEGER_c)
        End Asm
        Print b, c