SecondBASIC Documentation v3

Home / Command Reference / Asm


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


Method 1: Asm "<asm>"
Method 2:
        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.


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