avr: echoing messages via tty now basically works.

This commit is contained in:
Martin Preuss
2025-02-13 23:52:55 +01:00
parent a7990db831
commit 6e25647c0a
6 changed files with 163 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ NETMSG_CalcAndAddChecksumByte:
; ---------------------------------------------------------------------------
; @routine netMsgCheckMessageInBuffer
; @routine NETMSG_CheckMessageInBuffer
;
; check message in buffer
;
@@ -57,7 +57,7 @@ NETMSG_CalcAndAddChecksumByte:
; @param X pointer to packet buffer
; @clobbers R16, R17 (R18, R19, R20, X)
netMsgCheckMessageInBuffer:
NETMSG_CheckMessageInBuffer:
rcall netMsgCalcMsgChecksum ; (R16, R17, R18, R19, R20, X)
ld r17, X
cp r16, r17 ; should be equal