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.

16 lines
574B

  1. Z80 boot code
  2. This assembles the boot binary. It requires the Z80 assembler
  3. (B200) and cross compilation setup (B260). It requires some
  4. constants to be set. See B420 for details.
  5. RESERVED REGISTERS: At all times, IX points to RSP TOS and BC
  6. is IP. SP points to PSP TOS, but you can still use the stack
  7. in native code. you just have to make sure you've restored it
  8. before "next".
  9. The boot binary is loaded in 2 parts. The first part, "decla-
  10. rations", are loaded after xcomp, before xcomp overrides, with
  11. "282 LOAD". The rest, after xcomp overrides, with "283 335
  12. LOADR".