From f7f1da052518b6d22659d066b3319c596e43f904 Mon Sep 17 00:00:00 2001 From: Neal Andrew Crook Date: Sun, 7 Aug 2016 22:05:46 +0100 Subject: [PATCH] change register assignment so that checksum is calculated properly. This bug caused more weird behaviour than I can currently account for. With the fix, it seems rock-solid. --- Kernel/platform-multicomp09/dwread.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/platform-multicomp09/dwread.s b/Kernel/platform-multicomp09/dwread.s index 457184e0..c138e08c 100644 --- a/Kernel/platform-multicomp09/dwread.s +++ b/Kernel/platform-multicomp09/dwread.s @@ -64,9 +64,9 @@ rxAvail lda UARTSTA2 bra rxAvail ; test again.. * yes. Get it and move on -rxGet lda UARTDAT2 +rxGet ldb UARTDAT2 abx ; accummulate checksum - sta ,u+ ; store byte + stb ,u+ ; store byte leay ,-y ; decrement count bne rxNext lda #4 ; represents CC.Z=1 -- 2.34.1