X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Finline_code.adoc;h=b1a9c46097bc2b63704d873631aa6e25201a0db0;hb=46336a44b2da0ba4f141665e2709885b7b85d566;hp=91bb246ed899fc8bb63c12b5660ffa992a77666c;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/inline_code.adoc b/adoc/inline_code.adoc index 91bb246..b1a9c46 100644 --- a/adoc/inline_code.adoc +++ b/adoc/inline_code.adoc @@ -1,11 +1,22 @@ +// rrqforth.asm: WORD inline_code,'[ASM]',fasm + anchor:inline_code[] -Word: [ASM] ----------- +=== Word: [ASM] ----- -rrqforth.asm: WORD inline_code,'[ASM]',fasm ----- +.... +data stack: ( -- ) +.... -"[ASM]" is a function word that introduces inlined assembly. +"[ASM]" is a function word that introduces inline assembly in an +RRQFORTH definition. Such assembly code may return to subsequence +RRQFORTH executon by means of the following instruction sequence: +==== +---- + mov rsi,forthcode + lodsq + jmp qword [rax] +forthcode: +---- +====