Prechádzať zdrojové kódy

starting with the sytax of a macro definition.

Klaas, Wilfried 6 rokov pred
rodič
commit
807bcfc0ff
1 zmenil súbory, kde vykonal 10 pridanie a 1 odobranie
  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