Does anyone know how to start a comment (e.g. '#',';', '/', '/*') in ARMv6 Assembly Language?
Asked
Active
Viewed 1,770 times
1 Answers
3
should be ";" as per some example code i found on the wikipedia article:
loop CMP Ri, Rj ; set condition "NE" if (i != j),
; "GT" if (i > j),
; or "LT" if (i < j)
SUBGT Ri, Ri, Rj ; if "GT" (greater than), i = i-j;
SUBLT Rj, Rj, Ri ; if "LT" (less than), j = j-i;
BNE loop ; if "NE" (not equal), then loop

Alex Lynch
- 951
- 5
- 11
-
Excellent - the one place I didn't think to look. This is the same as the 80x86 comment, and what I was thinking it was, but unsure. Thanks Alex! – S.E. Foulk Sep 30 '12 at 05:45
-
And that's what's in use in most assemblers. – Alexey Frunze Sep 30 '12 at 06:02
-
4This is very much assembler-dependent. The gnu assembler will accept '@' as a line comment marker. Most preprocessing assemblers will accept C-style // and /* */ comments. ARMCC uses ;. – Variable Length Coder Sep 30 '12 at 08:05
-
1I use ;@ so that it works on the warped gnu solution and the sane solution. – old_timer Sep 30 '12 at 14:13