Преглед на файлове

starting with the sytax of a macro definition.

Klaas, Wilfried преди 6 години
родител
ревизия
807bcfc0ff
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 10 1
      examples/Blink.tps

+ 10 - 1
examples/Blink.tps

@@ -2,8 +2,17 @@
 Kommentar über mehrere Zeilen
 */
 :loop
+.macro1
 PORT #0x0F ; Zeilenkommentar
 WAIT 200ms
 PORT #0x00
 WAIT 200ms
-RJMP :loop
+RJMP :loop
+
+
+.macro macro1
+PORT #0x0F
+WAIT 200ms
+PORT #0x00
+WAIT 200ms
+.endmacro