2020-04-15 04:25:14 +10:00
|
|
|
Initialization sequence
|
|
|
|
|
2020-05-14 04:19:54 +10:00
|
|
|
On boot, we jump to the "main" routine in B289 which does
|
2020-04-15 04:25:14 +10:00
|
|
|
very few things.
|
|
|
|
|
2020-05-14 04:19:54 +10:00
|
|
|
1. Set SP to PS_ADDR and IX to RS_ADDR
|
2020-06-29 08:49:30 +10:00
|
|
|
2. Sets HERE to SYSVARS+0x80.
|
2020-04-15 04:25:14 +10:00
|
|
|
3. Sets CURRENT to value of LATEST field in stable ABI.
|
2020-06-22 01:41:10 +10:00
|
|
|
4. Execute the word referred to by 0x04 (BOOT) in stable ABI.
|
2020-04-15 04:25:14 +10:00
|
|
|
|
2020-06-22 01:41:10 +10:00
|
|
|
In a normal system, BOOT is in core words at B396 and does a
|
2020-05-14 04:19:54 +10:00
|
|
|
few things:
|
2020-04-15 04:25:14 +10:00
|
|
|
|
2020-05-14 04:19:54 +10:00
|
|
|
1. Initialize all overrides to 0.
|
|
|
|
2. Write LATEST in BOOT C< PTR ( see below )
|
|
|
|
3. Set "C<*", the word that C< calls to (boot<). (cont.)
|