From 469e6754d6294d9251fa3a670e7013320977897b Mon Sep 17 00:00:00 2001 From: Nestor Soriano Date: Thu, 19 Aug 2021 10:41:26 +0200 Subject: [PATCH] Fix: DE registers corrupted by extended BIOS handling code. --- source/kernel/bank1/mapinit.mac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/kernel/bank1/mapinit.mac b/source/kernel/bank1/mapinit.mac index e5280e7c..477d77e1 100644 --- a/source/kernel/bank1/mapinit.mac +++ b/source/kernel/bank1/mapinit.mac @@ -687,6 +687,12 @@ MAPBIO:: ; For other values of D, the EXTBIO hook on the driver bank is called with D'=1. ; This must return D'=1 if old hook must be called, D'=0 otherwise. + push de ;DE must always be preserved + call MAPBDO + pop de + ret + +MAPBDO: exx set 0,d exx