Prev: 24073 Up: Map Next: 59875
59830: Micromega Loader
Used by the routine at BootstrapEntry.
Stage-2 Micromega 1.1 loader. It first checksums itself, then reads a 16-byte custom header that names destination 16384, total length 43037 and 12 overlapping chunks. Each of the twelve main chunks carries 3510 tape bytes but only advances the destination by 3500, so the last ten bytes of one chunk overlap the next. A short final chunk finishes the 43037-byte main image at Loading..59420, which overwrites the REM bootstrap. Control then returns to BASIC so line 4 can ROM-load the final support block on top of this loader.
While the chunks load, TimingSwitch alternates two timing-parameter sets and TimingPatchCopier patches them into the sampler at TapeSampler.
MicromegaLoader 59830 LD HL,0
59833 LD (59877),HL
59836 LD HL,59881
59839 LD (59875),HL
MicromegaLoader_0 59842 LD A,(HL)
59843 LD E,A
59844 LD D,0
59846 LD HL,(59877)
59849 ADD HL,DE
59850 LD (59877),HL
59853 LD HL,(59875)
59856 LD DE,60390
59859 SCF
59860 CCF
59861 SBC HL,DE
59863 JP Z,LoadingController
59866 LD HL,(59875)
59869 INC HL
59870 LD (59875),HL
59873 JR MicromegaLoader_0
Prev: 24073 Up: Map Next: 59875