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
+3 -1
View File
@@ -6,6 +6,7 @@
#include "../includes/parser.h"
#include "../includes/futil.h"
#include "../includes/scanner.h"
#include "../includes/disass.h"
int main(int argc, char* args[]) {
if (argc == 1) {
@@ -34,7 +35,8 @@ int main(int argc, char* args[]) {
// if (t->type == LABEL) printf("* ");
// }
ParseTokens(list);
unsigned char* image = ParseTokens(list);
Disassemble(image);
free(source_code);
}