From: Alexander Tsidaev Date: Sun, 23 Nov 2014 12:12:57 +0000 (+0500) Subject: zx128: fd_bankcmd eliminated at last X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c72c77e3dc866dc0f59a7a3109458cae9a2b120f;p=FUZIX.git zx128: fd_bankcmd eliminated at last --- diff --git a/Kernel/platform-zx128/zx128.s b/Kernel/platform-zx128/zx128.s index eb45dcd9..20e12159 100644 --- a/Kernel/platform-zx128/zx128.s +++ b/Kernel/platform-zx128/zx128.s @@ -24,7 +24,6 @@ .globl map_save .globl map_restore - .globl _fd_bankcmd .globl _kernel_flag ; exported debugging tools @@ -58,29 +57,6 @@ platform_interrupt_all: _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) ; -----------------------------------------------------------------------------