Sfoglia il codice sorgente

starting with the sytax of a macro definition.

Klaas, Wilfried 6 anni fa
parent
commit
807bcfc0ff
1 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  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