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

  1. RESERVED REGISTERS: At all times, IX points to RSP TOS and IY
  2. is IP. SP points to PSP TOS, but you can still use the stack\
  3. in native code. you just have to make sure you've restored it
  4. before "next".
  5. STABLE ABI: The boot binary starts with a list of references.
  6. The address of these references have to stay to those addr-
  7. esses. The rest of the Collapse OS code depend on it. In fact,
  8. up until 0x67, the (?br) wordref, pretty much everything has
  9. to stay put.
  10. The boot binary is loaded in 2 parts. The first part, "decla-
  11. rations", are loaded after xcomp, before xcomp overrides, with
  12. "282 LOAD". The rest, after xcomp overrides, with "283 335
  13. LOADR".