From: Alan Cox Date: Sun, 31 May 2015 15:59:39 +0000 (+0100) Subject: z80fixedbank: Enable Tormod's UDATA optimisation X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=500d47b9ff1e2cb80446de7af9482f6bb6eddb2b;p=FUZIX.git z80fixedbank: Enable Tormod's UDATA optimisation --- diff --git a/Kernel/lib/z80fixedbank.s b/Kernel/lib/z80fixedbank.s index 78ad933e..864f09ef 100644 --- a/Kernel/lib/z80fixedbank.s +++ b/Kernel/lib/z80fixedbank.s @@ -117,10 +117,10 @@ _switchin: pop hl ld a, (hl) not_swapped: -; ld hl, (U_DATA__U_PTAB) -; or a -; sbc hl, de -; jr z, skip_copyback ; Tormod's optimisation: don't copy the + ld hl, (U_DATA__U_PTAB) + or a + sbc hl, de + jr z, skip_copyback ; Tormod's optimisation: don't copy the ; the stash back if we are the task who ; last owned the real udata ; Pages please !