From: pappd AT lion DOT lat DOT oz DOT au (Factory) Newsgroups: comp.os.msdos.djgpp Subject: Re: comments in inline assembly? Date: Thu, 17 Jul 1997 13:53:45 GMT Organization: Organized? me? not in this lifetime.. Lines: 29 Message-ID: <33cdef04.1607815@131.172.20.20> References: <33CCDA4D DOT 29178F78 AT execulink DOT com> Reply-To: pappd AT lion DOT lat DOT oz DOT au NNTP-Posting-Host: din-3-3.latrobe.edu.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 16 Jul 1997 10:27:25 -0400, Jeff Weeks 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 @@@@ "