2020-03-12 00:14:44 -04:00
|
|
|
: ? @ . ;
|
|
|
|
: +! SWAP OVER @ + SWAP ! ;
|
|
|
|
: ALLOT HERE +! ;
|
|
|
|
: VARIABLE CREATE 2 ALLOT ;
|
|
|
|
: CONSTANT CREATE HERE @ ! DOES> @ ;
|
2020-03-12 13:52:27 -04:00
|
|
|
: , HERE @ ! 2 ALLOT ;
|
|
|
|
: C, HERE @ C! 1 ALLOT ;
|
|
|
|
: THEN DUP HERE @ SWAP - SWAP C! ; IMMEDIATE
|
2020-03-12 00:14:44 -04:00
|
|
|
: NOT IF 0 ELSE 1 THEN ;
|
|
|
|
: = CMP NOT ;
|
|
|
|
: < CMP 0 1 - = ;
|
|
|
|
: > CMP 1 = ;
|