From 817ff958b99dff21ed03c00f29b75e0c09e38ea1 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Thu, 5 Sep 2024 03:18:22 +0200 Subject: [PATCH] avr: use common code. --- avr/modules/comproto/msg_device.asm | 34 ++++++++---------- avr/modules/comproto/msg_recvstats.asm | 36 ++++++------------- avr/modules/flash/flash_ready.asm | 50 ++++++++++++-------------- 3 files changed, 46 insertions(+), 74 deletions(-) diff --git a/avr/modules/comproto/msg_device.asm b/avr/modules/comproto/msg_device.asm index 5d905d3..31a6fe7 100644 --- a/avr/modules/comproto/msg_device.asm +++ b/avr/modules/comproto/msg_device.asm @@ -21,32 +21,26 @@ ; ; IN: ; - R16: destination address -; - X : buffer to write to ; OUT: ; - nothing ; REGS: R3, R4, R16, R17, R18, X (R19, R20, R21) CPRO_WriteDevice: - ldi r17, COM2_PAYLOAD_FLAGS_UID | (6<