From 3119c812033214d484eeb92ad9e94ece028b72fd Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 12 Feb 2019 21:02:11 +0000 Subject: [PATCH] 8080fixedbank: fix switching bugs --- Kernel/lib/8080fixedbank-core.s | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Kernel/lib/8080fixedbank-core.s b/Kernel/lib/8080fixedbank-core.s index 549e1ff3..94321ea1 100644 --- a/Kernel/lib/8080fixedbank-core.s +++ b/Kernel/lib/8080fixedbank-core.s @@ -30,6 +30,7 @@ _platform_switchout: push h lhld .areg push h + lxi h,0 dad sp shld U_DATA__U_SP ! Save the sp for a switch in call map_process_always_di @@ -165,10 +166,10 @@ skip_copyback: ! probably we do need to save block1-block3 (12 bytes) ! pop h - shld .areg - pop h mov l,a - sta .tmp1 + sta .areg + pop h + shld .tmp1 pop h shld .bcreg pop h -- 2.34.1