Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 line
658B

  1. Defining words
  2. : x ... -- Define a new word
  3. ; R:I -- Exit a colon definition
  4. CREATE x -- Create cell named x. Doesn't allocate a PF.
  5. [COMPILE] x -- Compile word x and write it to HERE.
  6. IMMEDIATE words are *not* executed.
  7. COMPILE x -- Meta compiles. See B6.
  8. CONSTANT x n -- Creates cell x that when called pushes its
  9. value.
  10. DOES> -- See B17.
  11. IMMED? a -- f Checks whether wordref at a is immediate.
  12. IMMEDIATE -- Flag the latest defined word as immediate.
  13. LITN n -- Write number n as a literal.
  14. VARIABLE c -- Creates cell x with 2 bytes allocation.