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
684B

  1. After we've loaded the high part of the core words, we're at
  2. the "wrapping up" part. We add what we call a "hook word" (an
  3. empty word with a single letter name) which doesn't cost us
  4. much and can be very useful if we need to augment the binary
  5. with more words, and at that point we have our future boot
  6. CURRENT, which PC yields. That is why we write it to the
  7. LATEST field of the stable ABI: This value will be used at
  8. boot.
  9. After the last word of the dictionary comes the "source init"
  10. part. The boot sequence is designed to interpret whatever comes
  11. after LATEST as Forth source, and this, until it reads ASCII
  12. EOT character (4). This is generally used for driver init.
  13. Good luck!