From: Alan Cox Date: Sat, 2 Jun 2018 19:16:32 +0000 (+0100) Subject: z80: correct banked banking dofork X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0d5a42b6842957a7332c8b224e9303e299227b74;p=FUZIX.git z80: correct banked banking dofork With this fixed we now fork correctly on TRS80 model 1 --- diff --git a/Kernel/lib/z80fixedbank-banked.s b/Kernel/lib/z80fixedbank-banked.s index aa2eca0d..78ceb1a9 100644 --- a/Kernel/lib/z80fixedbank-banked.s +++ b/Kernel/lib/z80fixedbank-banked.s @@ -219,10 +219,12 @@ _dofork: ; FIXME: we should no longer need interrupts off for most of a ; fork() call. ; + pop bc ; bank pop de ; return address pop hl ; new process p_tab* push hl push de + push bc ld (fork_proc_ptr), hl