1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-17 07:48:08 +11:00
collapseos/blk/056

21 lines
460 B
Plaintext
Raw Normal View History

Logic
2020-05-05 12:30:29 +10:00
= n1 n2 -- f Push true if n1 == n2
< n1 n2 -- f Push true if n1 < n2
> n1 n2 -- f Push true if n1 > n2
>< n l h -- f Push true if l < n < h
=><= n l h -- f Push true if l <= n <= h
CMP n1 n2 -- n Compare n1 and n2 and set n to -1, 0, or 1.
2020-05-16 02:14:27 +10:00
n=0: a1=a2. n=1: a1>a2. n=-1: a1<a2.
MIN a b -- n Returns the lowest of a and b
MAX a b -- n Returns the highest of a and b
2020-05-05 12:30:29 +10:00
NOT f -- f Push the logical opposite of f