$ASM - $END ASM

Top  Previous  Next

Action

Start of inline assembly code block.

 

Syntax

$ASM

 

Remarks

Use $ASM together with $END ASM to insert a block of assembler code in your BASIC code.

You can also insert ASM code by preceding the line with the ! sign.

 

 

See also

ASM programming

 

 

Example

Dim c as Byte

$ASM

Mov r0,#{C}  ;address of c

Mov a,#1

Mov @r0,a          ;store 1 into var c

$END ASM

Print c

End