$ASM
From MCS Wiki AVR
(Difference between revisions)
(→Remarks) |
(→Remarks) |
||
Line 17: | Line 17: | ||
= <span class="f_Header">Remarks</span><br/> = | = <span class="f_Header">Remarks</span><br/> = | ||
− | Use $ASM together with $END ASM to insert a block of assembler code in your BASIC code. You can also precede each line with the ! sign. | + | Use $ASM together with $END ASM to insert a block of assembler code in your BASIC code. You can also precede each line with the '''!''' sign. |
− | |||
<span style="font-family: 'Arial'; color: #000000"> </span> | <span style="font-family: 'Arial'; color: #000000"> </span> |
Latest revision as of 19:58, 17 January 2017
Contents |
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 precede each line with the ! sign.
See also the chapter Mixing BASIC and Assembly and Assembler mnemonics
Example
Dim C As Byte Loadadr C , X 'load address of variable C into register X $asm Ldi R24,1 ; load register R24 with the constant 1 St X,R24 ; store 1 into variable c $end Asm Print C End
Languages | English • Deutsch |
---|