public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b46209
)
change register assignment so that checksum is calculated properly.
author
Neal Andrew Crook
<neal@pippaluk.org.uk>
Sun, 7 Aug 2016 21:05:46 +0000
(22:05 +0100)
committer
Neal Andrew Crook
<neal@pippaluk.org.uk>
Sun, 7 Aug 2016 21:05:46 +0000
(22:05 +0100)
This bug caused more weird behaviour than I can currently account
for. With the fix, it seems rock-solid.
Kernel/platform-multicomp09/dwread.s
patch
|
blob
|
history
diff --git
a/Kernel/platform-multicomp09/dwread.s
b/Kernel/platform-multicomp09/dwread.s
index
457184e
..
c138e08
100644
(file)
--- 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 ld
a
UARTDAT2
+rxGet ld
b
UARTDAT2
abx ; accummulate checksum
- st
a
,u+ ; store byte
+ st
b
,u+ ; store byte
leay ,-y ; decrement count
bne rxNext
lda #4 ; represents CC.Z=1