From: Neal Andrew Crook Date: Sun, 7 Aug 2016 21:05:46 +0000 (+0100) Subject: change register assignment so that checksum is calculated properly. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f7f1da052518b6d22659d066b3319c596e43f904;p=FUZIX.git 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. --- 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