mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 01:18:06 +11:00
17 lines
304 B
Plaintext
17 lines
304 B
Plaintext
: ABORT (resSP) QUIT ;
|
|
|
|
: = CMP NOT ;
|
|
: < CMP -1 = ;
|
|
: > CMP 1 = ;
|
|
: 0< 32767 > ;
|
|
: >= < NOT ;
|
|
: <= > NOT ;
|
|
: 0>= 0< NOT ;
|
|
( n l h -- f )
|
|
: >< 2 PICK > ( n l f ) ROT ROT > AND ;
|
|
: =><= 2 PICK >= ( n l f ) ROT ROT >= AND ;
|
|
( a -- a+1 c )
|
|
: C@+ DUP C@ SWAP 1+ SWAP ;
|
|
( c a -- a+1 )
|
|
: C!+ SWAP OVER C! 1+ ;
|