Skip to content

Commit 279ab1a

Browse files
committed
gas: document comments properly
1 parent abf3d35 commit 279ab1a

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ x86 IA-32 and x86-64 userland minimal examples tutorial. Hundreds of runnable as
145145
1. [.macro](gas/macro.S)
146146
1. [.altmacro](gas/altmacro.S)
147147
1. [.irp](gas/irp.S)
148-
1. [Comments](gas/comments.md)
148+
1. [Comments](gas/comments.S)
149149
1. Infrastructure
150150
1. [lib_test](gas/lib_test.S)
151151
1. [Bibliography](gas/bibliogrpahy.md)

gas/comments.S

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* https://stackoverflow.com/questions/15663280/how-to-make-the-gnu-assembler-use-a-slash-for-comments/51991349#51991349 */
2+
3+
#include "lib/common_gas.h"
4+
5+
ENTRY
6+
// mycomment
7+
# mycomment
8+
#if 0
9+
nop # mycomment
10+
#endif
11+
nop // mycomment
12+
EXIT

gas/comments.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)