zx128: fd_bankcmd eliminated at last
authorAlexander Tsidaev <a.tsidaev@gmail.com>
Sun, 23 Nov 2014 12:12:57 +0000 (17:12 +0500)
committerAlexander Tsidaev <a.tsidaev@gmail.com>
Sun, 23 Nov 2014 22:05:55 +0000 (03:05 +0500)
Kernel/platform-zx128/zx128.s

index eb45dcd..20e1215 100644 (file)
@@ -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)
 ; -----------------------------------------------------------------------------