X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;ds=sidebyside;f=adoc%2Fp_0branch.adoc;h=4f396c3b82e5d3f08b2f3f2a537f45d9827515d2;hb=656f37efbd89db1b1088281047a9633cf74e92ec;hp=16c69c0249c115ab3cddd90a70a5b8f1b1107db7;hpb=fe4d0a01d5703d1ed6fa230679add024b5b2ca5c;p=rrq%2Frrqforth.git diff --git a/adoc/p_0branch.adoc b/adoc/p_0branch.adoc index 16c69c0..4f396c3 100644 --- a/adoc/p_0branch.adoc +++ b/adoc/p_0branch.adoc @@ -1,9 +1,16 @@ +// rrqforth.asm: WORD p_zero_branch,'0BRANCH',fasm + anchor:p_zero_branch[] -Word: 0BRANCH -------------- +=== Word: 0BRANCH + +.... +Data stack: ( v -- ) +.... ----- -rrqforth.asm: WORD p_zero_branch,'0BRANCH',fasm ----- +"0BRANCH" is a function word that implements execution conditional by +means of optionally adding the subsequent branch offset, or not, to +the point of execution. If the value, is 0 then the branch offset is +added, and otherwise execution continues with the cell following the +branch offset in the definition.