fixup S" and LIT-STRING for forced NUL termination
[rrq/rrqforth.git] / adoc / p_within.adoc
1 // logic.asm:   WORD p_within, 'WITHIN',fasm
2
3 anchor:p_within[]
4
5 === Word: WITHIN
6
7 ....
8 Data stack: ( v lo hi -- 0/-1
9 ....
10
11 "WITHIN" is a function word that replaces a triple of values with -1
12 of the the first, v, is within the value range spanned by the second,
13 lo, inclusive and third, hi, exclusive.
14
15 ====
16 .Definition concept for WITHIN
17 ****
18 : WITHIN 2 PICK > ROT ROT <= AND ;
19 ****
20 ====