Both the assembler and the disassembler should now support all the instructions I've layed out thus far.

This commit is contained in:
2022-08-29 18:51:48 +00:00
parent e3b4293314
commit 5f437b6869
6 changed files with 133 additions and 16 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#include <string.h>
#include "token.h"
#define OPCODECOUNT 12
#define OPCODECOUNT 13
#define REGISTERCOUNT 8
typedef struct {
+1 -1
View File
@@ -28,7 +28,7 @@ typedef enum {
DB, ORG,
//Opcodes
COPY, ADD, SUB, JZ, INT, YLD, RET,
CMP, NOP, JMP, IN, OUT,
CMP, NOP, JMP, CALL, IN, OUT,
//Registers
R1, R2, R3, R4, R5, R6, R7, R8
} TokenType;