Added a disassembler which is still very buggy. Also fixed some bugs with the opcode mask getting function.

This commit is contained in:
2022-08-26 21:41:02 +00:00
parent e4a191a17e
commit 0785f21805
8 changed files with 153 additions and 38 deletions
+9
View File
@@ -0,0 +1,9 @@
#ifndef DIASSEMBLER_H
#define DIASSEMBLER_H
#include "parser.h"
void Disassemble(unsigned char image[HIGHMEMORY]);
#endif
+3 -1
View File
@@ -7,6 +7,8 @@
#include "token.h"
#include "opcodes.h"
void ParseTokens(List*);
#define HIGHMEMORY 65535 //64KiB - 1 AKA 0xFFFF
unsigned char* ParseTokens(List*);
#endif
+2
View File
@@ -6,6 +6,8 @@
#include <errno.h>
#include <stdio.h>
#define REGISTEROFFSET 29
typedef enum {
PLUS,
MINUS,