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

  1. 8086 boot code
  2. Code in the following blocks assemble into a binary that is
  3. suitable to plug into Core words (B350) to achieve a fully
  4. functional Collapse OS. It is structured in a way that is
  5. very similar to Z80 boot code (B280) and requires the same
  6. constants to be pre-declared.
  7. RESERVED REGISTERS: SP is reserved for PSP, BP is for RSP and
  8. DX is for IP. Whenever you use these registers for another
  9. purpose, be sure to protect their initial value. Like with
  10. Z80, you can use SP freely in native code, but you have to make
  11. sure it goes back to its previous level before next is called.
  12. (cont.)