We need different boot blocks for different mappers so make them pass in a
mapper code.
Our current boot blocks all enter with A = 0 s this is compatible.
;
; Once the loader completes it jumps here
+; A holds the type of mapper the boot block was for
+;
+; 0: Supermem
+; 1: Selector
;
start:
+ ; Take care to preserve A until init_early
ld sp, #kstack_top
; then zero the data area
ld hl, #s__DATA
or a
sbc hl,de
ld (_discard_size),hl
+ ; We pass A into init_eatly holding the mapper type
call init_early
call init_hardware
push af