.globl map_save
.globl map_restore
- .globl _fd_bankcmd
.globl _kernel_flag
; exported debugging tools
_trap_reboot:
rst 0
-;
-; We need the right bank present when we cause the transfer
-;
-_fd_bankcmd:
- ret
- pop de ; return
- pop bc ; command
- pop hl ; bank
- push hl
- push bc
- push de ; fix stack
- ld a, i
- di
- push af ; save DI state
- call map_process ; HL alread holds our bank
- ld a, c ; issue the command
- ; out (13), a ;
- call map_kernel ; return to kernel mapping
- pop af
- ret po
- ei
- ret
-
; -----------------------------------------------------------------------------
; KERNEL MEMORY BANK (below 0xC000, only accessible when the kernel is mapped)
; -----------------------------------------------------------------------------