4 Commits
v1.8 ... v1.9

Author SHA1 Message Date
e45028b65d update version to v1.9 2024-12-21 10:46:35 +01:00
e28ad4de5a better error catching 2024-12-17 21:34:19 +01:00
890f884cce update README 2024-12-14 18:03:54 +01:00
9dc7f61ed7 ret vaut 7 faut croire 2024-12-14 17:13:48 +01:00
3 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ Produces
11011000 10100000 00000000 00000000 11011000 10100000 00000000 00000000
11100000 10100000 00000000 00001111 11100000 10100000 00000000 00001111
11101000 00000000 00000000 00001000 11101000 00000000 00000000 00001000
11110000 00000000 00000000 00000000 11111000 00000000 00000000 00000000
``` ```
## Releases ## Releases

View File

@@ -28,7 +28,7 @@ enum TypeSautControle {
Jsup, Jsup,
Jinf, Jinf,
Call, Call,
Ret, Ret = 7,
}; };
static std::map<std::string, Instruction> INSTRUCTION_KEYS = { static std::map<std::string, Instruction> INSTRUCTION_KEYS = {
@@ -205,8 +205,8 @@ std::uint32_t Assembleur::ParseInstruction(const std::string& a_Str, std::uint32
} }
} }
} catch (std::invalid_argument& e) { } catch (std::exception& e) {
throw std::invalid_argument("[Line " + std::to_string(a_RealLine) + "] " + e.what()); throw std::invalid_argument(" [Line " + std::to_string(a_RealLine) + "] " + e.what() + "\n" + a_Str);
} }
return 0; return 0;

View File

@@ -3,7 +3,7 @@
#include "IO.h" #include "IO.h"
#define ASSEMBLEUR_VERSION "1.8" #define ASSEMBLEUR_VERSION "1.9"
int main(int argc, char** argv) { int main(int argc, char** argv) {