mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 16:48:05 +11:00
14 lines
263 B
Plaintext
14 lines
263 B
Plaintext
|
: VARIABLE CREATE 2 ALLOT ;
|
||
|
: CONSTANT CREATE , DOES> @ ;
|
||
|
: / /MOD SWAP DROP ;
|
||
|
: MOD /MOD DROP ;
|
||
|
|
||
|
( In addition to pushing H@ this compiles 2 >R so that loop
|
||
|
variables are sent to PS at runtime )
|
||
|
: DO
|
||
|
COMPILE SWAP COMPILE >R COMPILE >R
|
||
|
H@
|
||
|
; IMMEDIATE
|
||
|
|
||
|
|