diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-03 10:36:40 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-03 10:39:59 +0100 |
| commit | 3ec9c329f4854b1647f166b9d822c2f8f41ba80c (patch) | |
| tree | 463d3c21e579a1364de031a2d18fe2550ce7f50a /CompilerDriver | |
| parent | 0b95d82b74c782ce38cb51f7f4b79c7b815c6403 (diff) | |
AsmKit: Adding 32x0 support for this toolchain.
Masm: Add support for ';' comments.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
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; } |
