소스 검색

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