![]() |
Routines |
| Prev: 23755 | Up: Map | Next: 23804 |
|
Stage-1 loader kept inside the line-1 REM. It reads a 17-byte custom header into Stage2Header, pulls the stage-2 length and address from that header, loads 0600 bytes to MicromegaLoader, then jumps there.
|
||||
|
Load the 17-byte stage-2 header.
|
||||
| Load_Stage_Two | 23760 | LD IX,23958 | Point IX at Stage2Header. | |
| 23764 | LD DE,17 | Set the block length in DE to 0017. | ||
| 23767 | XOR A | Clear A and set the carry flag (load a header block). | ||
| 23768 | SCF | |||
| 23769 | CALL Load_Tape_Block | Call Load_Tape_Block. | ||
| 23772 | JP NC,Load_Tape_Block_PrintError | Jump to Load_Tape_Block_PrintError if the carry flag is reset. | ||
|
Refuse to continue unless *SUBPPC is 6.
|
||||
| 23775 | LD A,(23623) | Jump to START if *SUBPPC is not 6. | ||
| 23778 | CP 6 | |||
| 23780 | JP NZ,0 | |||
|
Load the stage-2 Micromega block named by that header.
|
||||
| 23783 | LD DE,(23958) | Fetch the stage-2 length from *Stage2Header into DE. | ||
| 23787 | LD IX,(23960) | Fetch the stage-2 destination from *Stage_Two_Destination into IX. | ||
| 23791 | LD A,255 | Set A to 255 and set the carry flag (load a data block). | ||
| 23793 | SCF | |||
| 23794 | CALL Load_Tape_Block | Call Load_Tape_Block. | ||
| 23797 | JP NC,Load_Tape_Block_PrintError | Jump to Load_Tape_Block_PrintError if the carry flag is reset. | ||
| 23800 | EI | Enable interrupts. | ||
| 23801 | JP MicromegaLoader | Jump to MicromegaLoader. | ||
| Prev: 23755 | Up: Map | Next: 23804 |