mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 15:20:56 +11:00
15 lines
385 B
Plaintext
15 lines
385 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+ ;
|
|
( a -- a-1 c )
|
|
: C@- DUP C@ SWAP 1- SWAP ;
|
|
( c a -- a-1 )
|
|
: C!- SWAP OVER C! 1- ;
|