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

  1. Z80 boot code
  2. This assembles the boot binary. It requires the Z80 assembler
  3. (B200) and cross compilation setup (B260).
  4. On top of that, it requires RAMSTART to be defined as the
  5. beginning address of RAM. This is where system variables are
  6. placed. HERE is then placed at RAM+80 (ref B80).
  7. We also need RS_ADDR to be set to the bottom address of the
  8. Return Stack.
  9. RESERVED REGISTERS: At all times, IX points to RSP TOS and IY
  10. is IP. SP points to PSP TOS, but you can still use the stack\
  11. in native code. you just have to make sure you've restored it
  12. before "next". (cont.)