Wechsel Laufrichtung ab der aktuellen Stelle
This commit is contained in:
18
macros.inc
18
macros.inc
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user