From 14edff1369c3651bf6edeefdf84349fee697a3a9 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 27 Apr 2026 00:37:30 +0200 Subject: [PATCH] avr: save X in Main_HandleValueMsg --- avr/devices/all/handlevaluemsg.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/avr/devices/all/handlevaluemsg.asm b/avr/devices/all/handlevaluemsg.asm index 1a56f9b..7b36b9e 100644 --- a/avr/devices/all/handlevaluemsg.asm +++ b/avr/devices/all/handlevaluemsg.asm @@ -75,7 +75,11 @@ Main_HandleValueMsg_sendAck: push r23 bigcall NETMSG_ValueRead pop r23 - bigcall Main_SendValueResponse ; (R16, R17, R18, R19, R20, R21, R23, R24, R25, X, Y) + push xl + push xh + bigcall Main_SendValueResponse ; (R16, R17, R18, R19, R20, R21, R23, R24, R25, X, Y) + pop xh + pop xl sec Main_HandleValueMsg_ret: ret