mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 00:28:05 +11:00
16 lines
435 B
Plaintext
16 lines
435 B
Plaintext
: ABORT (resSP) QUIT ;
|
|
: ERR LIT< (print) (find) IF EXECUTE THEN ABORT ;
|
|
: = 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+ ;
|
|
( a -- a-1 c )
|
|
: C@- DUP C@ SWAP 1- SWAP ;
|
|
( c a -- a-1 )
|
|
: C!- SWAP OVER C! 1- ;
|