Mirror of CollapseOS
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

17 řádky
640B

  1. EXECUTING A WORD
  2. At it's core, executing a word is pushing the wordref on PS and
  3. calling EXECUTE. Then, we let the word do its things. Some
  4. words are special, but most of them are of the compiledWord
  5. type, and that's their execution that we describe here.
  6. First of all, at all time during execution, the Interpreter
  7. Pointer (IP) points to the wordref we're executing next.
  8. When we execute a compiledWord, the first thing we do is push
  9. IP to the Return Stack (RS). Therefore, RS' top of stack will
  10. contain a wordref to execute next, after we EXIT.
  11. At the end of every compiledWord is an EXIT. This pops RS, sets
  12. IP to it, and continues.