Mirror of CollapseOS
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

16 linhas
452B

  1. : DOES>
  2. ( Overwrite cellWord in CURRENT )
  3. ( 43 == doesWord )
  4. 43 CURRENT @ C!
  5. ( When we have a DOES>, we forcefully place HERE to 4
  6. bytes after CURRENT. This allows a DOES word to use ","
  7. and "C," without messing everything up. )
  8. CURRENT @ 3 + HERE !
  9. ( HERE points to where we should write R> )
  10. R> ,
  11. ( We're done. Because we've popped RS, we'll exit parent
  12. definition )
  13. ;
  14. : CONSTANT CREATE , DOES> @ ;