avr: fixed a critical bug (don't decrement used bytes on peek!)
This commit is contained in:
@@ -111,8 +111,6 @@ l_end:
|
|||||||
tst r17
|
tst r17
|
||||||
clc
|
clc
|
||||||
breq l_end
|
breq l_end
|
||||||
dec r17
|
|
||||||
std Y+@1, r17 ; usedBytes
|
|
||||||
ldd r17, Y+@2 ; readPos
|
ldd r17, Y+@2 ; readPos
|
||||||
mov xl, yl
|
mov xl, yl
|
||||||
mov xh, yh
|
mov xh, yh
|
||||||
|
|||||||
Reference in New Issue
Block a user