Both the assembler and the disassembler should now support all the instructions I've layed out thus far.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
#include <string.h>
|
||||
#include "token.h"
|
||||
|
||||
#define OPCODECOUNT 12
|
||||
#define OPCODECOUNT 13
|
||||
#define REGISTERCOUNT 8
|
||||
|
||||
typedef struct {
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user