2020-04-23 11:19:12 +10:00
|
|
|
Z80 boot code
|
|
|
|
|
|
|
|
This assembles the boot binary. It requires the Z80 assembler
|
2020-06-29 09:45:28 +10:00
|
|
|
(B200) and cross compilation setup (B260). It requires some
|
|
|
|
constants to be set. See B420 for details.
|
2020-04-23 11:19:12 +10:00
|
|
|
|
2020-07-07 13:31:00 +10:00
|
|
|
RESERVED REGISTERS: At all times, IX points to RSP TOS and BC
|
|
|
|
is IP. SP points to PSP TOS, but you can still use the stack
|
2020-06-29 09:45:28 +10:00
|
|
|
in native code. you just have to make sure you've restored it
|
|
|
|
before "next".
|
2020-04-23 11:19:12 +10:00
|
|
|
|
2020-09-20 10:35:35 +10:00
|
|
|
The boot binary is loaded in 2 parts. The first part, "decla-
|
|
|
|
rations", are loaded after xcomp, before xcomp overrides, with
|
|
|
|
"282 LOAD". The rest, after xcomp overrides, with "283 335
|
|
|
|
LOADR".
|