diff --git a/tools/gas2masm/gas2masm.c b/tools/gas2masm/gas2masm.c index edd79e8..7e48164 100644 --- a/tools/gas2masm/gas2masm.c +++ b/tools/gas2masm/gas2masm.c @@ -805,6 +805,18 @@ int gettoken (void) return LINE_DONE; } while (stat == WHITESPACE); + if (c == '#') + { + do + { + if ((c = getchar()) == EOF) + return FILE_DONE; + } while (whitespace(c) != LINE_DONE); + + return LINE_DONE; + } + + token[0] = c; count = 1;