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.

17 lines
523B

  1. DOES>
  2. Used inside a colon definition that itself uses CREATE, DOES>
  3. transforms that newly created word into a "does cell", that is,
  4. a regular cell ( when called, puts the cell's addr on PS), but
  5. right after that, it executes words that appear after the
  6. DOES>.
  7. "does cells" always allocate 4 bytes (2 for the cell, 2 for the
  8. DOES> link) and there is no need for ALLOT in colon definition.
  9. At compile time, colon definition stops processing words when
  10. reaching the DOES>.
  11. Example: ": CONSTANT CREATE HERE @ ! DOES> @ ;"