Mirror of CollapseOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
521B

  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> @ ;"