diff options
Diffstat (limited to 'CompilerDriver')
| -rw-r--r-- | CompilerDriver/masm.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CompilerDriver/masm.cxx b/CompilerDriver/masm.cxx index 71e806e..eda95b4 100644 --- a/CompilerDriver/masm.cxx +++ b/CompilerDriver/masm.cxx @@ -10,8 +10,7 @@ ///////////////////////////////////////////////////////////////////////////////////////// // @file masm.cxx -// @brief The MP-UX Assembler, outputs an AE object. -// This assembler is made for the RISC chip X64000. +// @brief MP-UX 64x0 Assembler. // REMINDER: when dealing with an undefined symbol use (string size):ld:(string) // so that ld will look for it. @@ -201,9 +200,6 @@ int main(int argc, char** argv) continue; } - if (ParserKit::find_word(line, "#")) - continue; - try { masm_read_attributes(line); @@ -488,6 +484,7 @@ static std::string masm_check_line(std::string& line, const std::string& file) ParserKit::find_word(line, "__import") || ParserKit::find_word(line, "__export") || ParserKit::find_word(line, "#") || + ParserKit::find_word(line, ";") || ParserKit::find_word(line, "layout")) { if (line.find('#') != std::string::npos) @@ -495,6 +492,11 @@ static std::string masm_check_line(std::string& line, const std::string& file) line.erase(line.find('#')); } + if (line.find(';') != std::string::npos) + { + line.erase(line.find(';')); + } + return err_str; } |
