X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_0less.adoc;h=b068b636a74dcc129892d99642ee3f42745da8b2;hb=76f3fb73eedebb34c932d40f61b7578d9f5177c9;hp=6ce109cc4c100550f9913ebc94dd0cc4c06f3027;hpb=b7da3f7bbd1cb10241163abdb950472e539e796d;p=rrq%2Frrqforth.git diff --git a/adoc/p_0less.adoc b/adoc/p_0less.adoc index 6ce109c..b068b63 100644 --- a/adoc/p_0less.adoc +++ b/adoc/p_0less.adoc @@ -1,9 +1,23 @@ +// logic.asm: WORD p_0less, '0<',fasm + anchor:p_0less[] -Word: 0< ----------- +=== Word: 0< + +.... +Data stack: ( v -- 0/-1 ) +.... + +"0<" is a function word that replaces a value with -1 if the value is +less than 0, and 0 otherwise. +==== +.Word: 0< +[caption='Definition concept {counter:exec}: '] ---- -logic.asm: WORD p_0less, '0<',fasm +: 0= 0 SWAP < ; ---- +==== +See also <> and +<>.