1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 15:48:04 +11:00
collapseos/blk/280

17 lines
692 B
Plaintext
Raw Normal View History

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
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-06-29 09:45:28 +10:00
STABLE ABI: The boot binary starts with a list of references.
The address of these references have to stay to those addr-
esses. The rest of the Collapse OS code depend on it. In fact,
up until 0x67, the (?br) wordref, pretty much everything has
to stay put. (cont.)