Assembler Macro

Feinmechaniker
 
Avatar
 
Subject:

Assembler Macro

 · 
Posted: 04.08.2010 - 11:37  ·  #1
Hallo,

ich habe in meinem Pascal Code ein Stück Assembler mit einem Macro (.rept) eingebunden.
Wird dieses Macro beim assemblieren ausgeführt? Der Compiler zeigt keinen Fehler, der Debugger fürt den Code jedoch nur genau einmal aus. Er steht auch nur einmal im Asm-Code.

ASM;
.rept 20
ld r30, Y+
lpm
out PortC,r1
cbi PortB, 5
sbi PortB, 5
.endr
ENDASM;

Gruß Joe
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Assembler Macro

 · 
Posted: 04.08.2010 - 13:22  ·  #2
Hallo Joe,

der AVRco ASM ist kein Macro-Assembler. Dass hier keine Fehlermeldung kommt, liegt daran dass der "." ähnlich behandelt wird wie ein Kommentar.
Der ASM kann nur soviel, wie der Compiler von ihm ertwartet.

rolf
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   50   64 · Page-Gen-Time: 0.021176s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI