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.

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.)