From f930b846c2d7633b34efeb33203fd97e7253249d Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Sun, 6 Jul 2025 12:21:41 +0200 Subject: [PATCH] uart_hw2: basically works, but skips messages. --- avr/modules/uart_hw2/comonuart0.asm | 4 +- avr/modules/uart_hw2/comonuart1.asm | 53 +- avr/modules/uart_hw2/defs.asm | 12 + avr/modules/uart_hw2/ttyonuart1.asm | 739 ++++++++++++++++++++++++++++ avr/version.asm | 2 +- 5 files changed, 791 insertions(+), 19 deletions(-) create mode 100644 avr/modules/uart_hw2/ttyonuart1.asm diff --git a/avr/modules/uart_hw2/comonuart0.asm b/avr/modules/uart_hw2/comonuart0.asm index c5cd661..2766b59 100644 --- a/avr/modules/uart_hw2/comonuart0.asm +++ b/avr/modules/uart_hw2/comonuart0.asm @@ -466,7 +466,7 @@ comOnUart0StopRx: ; @clobbers R16 comOnUart0StartTx: - lds r16, UCSR0A + inr r16, UCSR0A cbr r16, (1<