X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=adoc%2Fp_greaterthan.adoc;h=2975d00ffc2dc6a7245e1651a090931dd662ecc2;hb=656f37efbd89db1b1088281047a9633cf74e92ec;hp=b35585936e6f439009cb778950f3ab7fedf16669;hpb=fe4d0a01d5703d1ed6fa230679add024b5b2ca5c;p=rrq%2Frrqforth.git diff --git a/adoc/p_greaterthan.adoc b/adoc/p_greaterthan.adoc index b355859..2975d00 100644 --- a/adoc/p_greaterthan.adoc +++ b/adoc/p_greaterthan.adoc @@ -1,9 +1,13 @@ +// logic.asm: WORD p_greaterthan, '>',fasm + anchor:p_greaterthan[] -Word: > -------- +=== Word: > ----- -logic.asm: WORD p_greaterthan, '>',fasm ----- +.... +Data stack: ( v1 v2 -- 0/-1 ) +.... +">" is a function word that replaces a pair of values with -1 if the +first, v1, is greater than the second, v1, otherwise 0. To that end, +the values are 64-bit signed integers.