mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 16:08:06 +11:00
3615944ffa
It isn't used in there anymore. Moved it to VE, the only place where it's used.
13 lines
479 B
Plaintext
13 lines
479 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> > AND ;
|
|
: =><= 2 PICK >= ( n l f ) ROT> >= AND ;
|
|
: NIP SWAP DROP ; : TUCK SWAP OVER ;
|
|
: -^ SWAP - ;
|
|
: C@+ ( a -- a+1 c ) DUP C@ SWAP 1+ SWAP ;
|
|
: C!+ ( c a -- a+1 ) TUCK C! 1+ ;
|
|
: C@- ( a -- a-1 c ) DUP C@ SWAP 1- SWAP ;
|
|
: C!- ( c a -- a-1 ) TUCK C! 1- ;
|
|
: LEAVE R> R> DROP I 1- >R >R ; : UNLOOP R> 2R> 2DROP >R ;
|