From 41d60f4331f3dfb422578f50dd961e561a572289 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Mon, 23 Mar 2026 00:22:08 +0100 Subject: [PATCH] added DEBUG4. --- avr/common/debug.asm | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/avr/common/debug.asm b/avr/common/debug.asm index c770e03..b58ba74 100644 --- a/avr/common/debug.asm +++ b/avr/common/debug.asm @@ -25,8 +25,8 @@ DEBUG1: DEBUG2: ldi r19, 50 - ldi r20, 1 - ldi r21, 1 + ldi r20, 5 + ldi r21, 5 rcall blinkLed rjmp DEBUG2 @@ -40,17 +40,32 @@ DEBUG3: +DEBUG4: + ldi r19, 50 + ldi r20, 18 + ldi r21, 2 + rcall blinkLed + + ldi r19, 50 + ldi r20, 1 + ldi r21, 9 + rcall blinkLed + + rjmp DEBUG4 + + + ; @param r19 loop count ; @param r20 on time ; @param r21 off time -; @clobbers (R16, R18, R22, R24, R25) +; @clobbers (R19, R22) blinkLed: sbi LED_SIMPLE_DDR, LED_SIMPLE_PINNUM ; out blinkLed_loop: cbi LED_SIMPLE_PORT, LED_SIMPLE_PINNUM ; on mov r22, r20 - rcall waitForMultiple100ms ; (R252 + rcall waitForMultiple100ms ; (R22) sbi LED_SIMPLE_PORT, LED_SIMPLE_PINNUM ; off mov r22, r21 rcall waitForMultiple100ms ; (R22)