Mail Archives: djgpp/1997/07/17/17:23:28
On Wed, 16 Jul 1997 10:27:25 -0400, Jeff Weeks <pweeks AT execulink DOT com>
wrote:
>Is it possible to have comments in inline assembly in DJGPP? I'm
>writting some moderately small code (only about 20-30 lines) in inline
>assembly, but I would still like to include comments so I know what I'm
>doing at a later date.
>
>If it is possible, how is it done?
It's possible, just put hashes at the start of the commented lines,
like such:
asm ("
# I'm a comment
movw $0x004c,%%ax
int 0x21
"::: "ax");
The documentation claims that one can use the /*.. */ style of
commenting, but this doesn't seem to work :(.
Now all we need is more than ten local labels, I hate choosing
between meaningful labels and inline functions.
@@@@@ @@ pappd@
@@ @@@@ @@@ @@@@ @@@ @@@@ @@ @@ lion.
@@@ @@ @@ @@ @@ @@ @@ @@ @@ @@ @@ @@ .lat
@@ @@ @@ @@ @@ @@ @@ @@ @@@@ .oz.
@@ @@@@ @@@@ @@ @@@ @@ @@ au
@@@@ "
- Raw text -