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

  1. Initialization sequence
  2. On boot, we jump to the "main" routine in B289 which does
  3. very few things.
  4. 1. Set SP to PS_ADDR and IX to RS_ADDR
  5. 2. Sets HERE to RAMEND (RAMSTART+0x80).
  6. 3. Sets CURRENT to value of LATEST field in stable ABI.
  7. 4. Execute the word referred to by 0x04 (BOOT) in stable ABI.
  8. In a normal system, BOOT is in core words at B396 and does a
  9. few things:
  10. 1. Initialize all overrides to 0.
  11. 2. Write LATEST in BOOT C< PTR ( see below )
  12. 3. Set "C<*", the word that C< calls to (boot<). (cont.)