From 236f6832a3046d6d64e1e29e38a1998b83e3a62a Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sat, 22 Mar 2025 12:59:35 +0100 Subject: [PATCH] avr: fixed a critical bug (don't decrement used bytes on peek!) --- avr/common/m_ringbuffer_y.asm | 2 -- 1 file changed, 2 deletions(-) diff --git a/avr/common/m_ringbuffer_y.asm b/avr/common/m_ringbuffer_y.asm index 31ca3c3..8c32e50 100644 --- a/avr/common/m_ringbuffer_y.asm +++ b/avr/common/m_ringbuffer_y.asm @@ -111,8 +111,6 @@ l_end: tst r17 clc breq l_end - dec r17 - std Y+@1, r17 ; usedBytes ldd r17, Y+@2 ; readPos mov xl, yl mov xh, yh