2020-10-28 18:06:58 -04:00
|
|
|
: IMMEDIATE
|
|
|
|
CURRENT @ 1-
|
|
|
|
DUP C@ 128 OR SWAP C! ;
|
|
|
|
: IMMED? 1- C@ 0x80 AND ;
|
|
|
|
: '? WORD FIND ;
|
|
|
|
: ' '? NOT IF (wnf) THEN ;
|
|
|
|
: ROLL
|
|
|
|
?DUP NOT IF EXIT THEN
|
|
|
|
1+ DUP PICK ( n val )
|
|
|
|
SWAP 2 * (roll) ( val )
|
|
|
|
NIP ;
|
|
|
|
: 2OVER 3 PICK 3 PICK ;
|
|
|
|
: 2SWAP 3 ROLL 3 ROLL ;
|