diff options
| author | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-26 18:30:42 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-26 18:30:42 +0100 |
| commit | 6421979204b3cca2f74d57f49cdda4e4e6f2250a (patch) | |
| tree | 544ea323962058feed40eb822b4411486854ab9e | |
| parent | 4892d4a90b6bda85a69a267490808367428465d1 (diff) | |
Finish AMD64 assembler: Initial commit.
Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
| -rw-r--r-- | Sources/link.cc | 10 | ||||
| -rw-r--r-- | Sources/ppcasm.cc | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/Sources/link.cc b/Sources/link.cc index a5232a8..e84959d 100644 --- a/Sources/link.cc +++ b/Sources/link.cc @@ -143,7 +143,7 @@ MPCC_MODULE(HCoreLinker) { continue; } else { if (argv[i][0] == '-') { - kStdOut << "link: unknown flag: " << argv[i] << "\n"; + kStdOut << "link: Unknown flag: " << argv[i] << "\n"; return -MPCC_EXEC_ERROR; } @@ -154,13 +154,13 @@ MPCC_MODULE(HCoreLinker) { } if (kOutput.empty()) { - kStdOut << "link: no output filename set." << std::endl; + kStdOut << "link: no Output filename set." << std::endl; return MPCC_EXEC_ERROR; } // sanity check. if (kObjectList.empty()) { - kStdOut << "link: no input files." << std::endl; + kStdOut << "link: No input files." << std::endl; return MPCC_EXEC_ERROR; } else { // check for existing files, if they don't throw an error. @@ -168,7 +168,7 @@ MPCC_MODULE(HCoreLinker) { if (!std::filesystem::exists(obj)) { // if filesystem doesn't find file // -> throw error. - kStdOut << "link: no such file: " << obj << std::endl; + kStdOut << "link: No such file: " << obj << std::endl; return MPCC_EXEC_ERROR; } } @@ -176,7 +176,7 @@ MPCC_MODULE(HCoreLinker) { // PEF expects a valid architecture when outputing a binary. if (kArch == 0) { - kStdOut << "link: no target architecture set, can't continue." << std::endl; + kStdOut << "link: No target architecture set, can't continue." << std::endl; return MPCC_EXEC_ERROR; } diff --git a/Sources/ppcasm.cc b/Sources/ppcasm.cc index b774f4f..96d0823 100644 --- a/Sources/ppcasm.cc +++ b/Sources/ppcasm.cc @@ -51,5 +51,7 @@ ///////////////////////////////////////////////////////////////////////////////////////// MPCC_MODULE(HCoreAssemblerPowerPC64) { + kStdOut << "ppcasm: Unimplemented assembler.\r\n"; + return 0; } |
