Mirror of CollapseOS
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

16 lines
576B

  1. Word types
  2. There are 4 word types in Collapse OS. Whenever you have a
  3. wordref, it's pointing to a byte with numbers 0 to 3. This
  4. number is the word type and the word's behavior depends on it.
  5. 0: native. This words PFA contains native binary code and is
  6. jumped to directly.
  7. 1: compiled. This word's PFA contains an atom list and its
  8. execution is described in "EXECUTION MODEL" above.
  9. 2: cell. This word is usually followed by a 2-byte value in its
  10. PFA. Upon execution, the address of the PFA is pushed to PS.
  11. (cont.)