5 Commits
v1.7 ... v1.8

Author SHA1 Message Date
f881b9b4e7 update version to v1.8 2024-12-13 18:09:06 +01:00
00b0368f03 update test 2024-12-13 18:08:26 +01:00
6eec4d8d3d update README 2024-12-13 18:08:19 +01:00
7ab4540201 Omg je suis aveugle 2024-12-13 16:40:39 +00:00
7615546f9e update README 2024-12-13 16:48:31 +01:00
4 changed files with 21 additions and 21 deletions

View File

@@ -25,8 +25,8 @@ operations:
SR R1 R2 R3
MUL R1 R2 R3
io:
STR R1 R2 R3
LD R1 R2 R3
STR R1 R2
LD R1 R2
sauts:
JMP controle
JEQU R1 R2 io
@@ -42,22 +42,22 @@ Produces
```
00000100 10100000 00000000 00000001
00010000 10100110 00000000 00000000
00100100 10100000 00000000 00100001
01000000 10100110 00000000 00000000
00001000 10100110 00000000 00000000
00010100 10100000 00000000 00100001
00100000 10100110 00000000 00000000
00011000 10100110 00000000 00000000
00101000 10100110 00000000 00000000
00110000 10100110 00000000 00000000
01010000 10100110 00000000 00000000
01100000 10100110 00000000 00000000
01110000 10100110 00000000 00000000
01000000 10100110 00000000 00000000
01010000 10100110 00000000 00000000
11000000 00000000 00000000 00010000
11010000 10100000 00000000 00001001
11100000 10100000 00000000 00001011
11110000 10100000 00000000 00000001
11000000 10100000 00000000 00010000
11010000 00000000 00000000 00001001
11100000 00000000 00000000 00000000
00111000 10100110 00000000 00000000
01000000 10100000 00000000 00000000
01001000 10100000 00000000 00000000
11000000 00000000 00000000 00001111
11001000 10100000 00000000 00001000
11010000 10100000 00000000 00001010
11011000 10100000 00000000 00000000
11100000 10100000 00000000 00001111
11101000 00000000 00000000 00001000
11110000 00000000 00000000 00000000
```
## Releases

View File

@@ -53,7 +53,7 @@ static std::map<std::string, Instruction> INSTRUCTION_KEYS = {
constexpr int LINE_LENGTH = 32;
constexpr int INSTRUCTION_BITS_COUNT = 2;
constexpr int OPERATION_BITS_COUNT = 2;
constexpr int OPERATION_BITS_COUNT = 3;
constexpr int IMMEDIATE_BITS_COUNT = 1;
constexpr int INSTRUCTION_BLOCK_SIZE = INSTRUCTION_BITS_COUNT + OPERATION_BITS_COUNT + IMMEDIATE_BITS_COUNT;
constexpr int REGISTRY_BITS_COUNT = 3;

View File

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

View File

@@ -8,8 +8,8 @@ operations:
SR R1 R2 R3
MUL R1 R2 R3
io:
STR R1 R2 R3
LD R1 R2 R3
STR R1 R2
LD R1 R2
sauts:
JMP controle
JEQU R1 R2 io