From: Alan Cox Date: Sun, 10 Feb 2019 16:01:50 +0000 (+0000) Subject: 8080: fix up bugs in the fork and copiers X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=edfeefd32721a9bc604923dcc26ce78ca75a5d38;p=FUZIX.git 8080: fix up bugs in the fork and copiers Task switching is still busted somewhere --- diff --git a/Kernel/lib/8080fixedbank-core.s b/Kernel/lib/8080fixedbank-core.s index bdff5b96..52db9f0e 100644 --- a/Kernel/lib/8080fixedbank-core.s +++ b/Kernel/lib/8080fixedbank-core.s @@ -233,6 +233,7 @@ _dofork: ! ! Frame pointer ! + xchg ! return 0 in DE for child pop b ret diff --git a/Kernel/lib/8080fixedbank.s b/Kernel/lib/8080fixedbank.s index dfa57c00..63832f4a 100644 --- a/Kernel/lib/8080fixedbank.s +++ b/Kernel/lib/8080fixedbank.s @@ -8,35 +8,35 @@ copy512: mvi b,64 copy8: - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d - mov m,a + mov a,m stax d inx h inx d