Wechsel Laufrichtung ab der aktuellen Stelle

This commit is contained in:
2025-06-20 19:50:04 +02:00
parent a30bf50f67
commit 204e94d613
2 changed files with 15 additions and 17 deletions

View File

@@ -4,17 +4,19 @@
.macro left_to_right
in @0, PORTD
rol @0
brcc PC+2
ldi @0, 0b00000001
out PORTD, @0
.endmacro
.macro right_to_left
in @0, PORTD
clc
ror @0
brcc PC+2
ldi @0, 0b10000000
out PORTD, @0
.endmacro
.macro right_to_left
in @0, PORTD
clc
rol @0
brcc PC+2
ldi @0, 0b00000001
out PORTD, @0
.endmacro