With this fixed we get up to 'Starting /init' before the world ends
.globl map_process_always
.globl map_save
.globl map_restore
+ .globl map_kernel_restore
.globl s__COMMONMEM
.globl l__COMMONMEM
push de
ld a, (_hd_page)
or a
+ push af
call nz, map_process_a
ld bc, #0xC8 ; 256 bytes from 0xC8
inir
- call map_kernel
+ pop af
+ call nz, map_kernel_restore
ret
_hd_xfer_out:
push de
ld a, (_hd_page)
or a
+ push af
call nz, map_process_a
ld bc, #0xC8 ; 256 bytes to 0xC8
otir
- call map_kernel
+ pop af
+ call nz, map_kernel_restore
ret