Added a disassembler which is still very buggy. Also fixed some bugs with the opcode mask getting function.
This commit is contained in:
+3
-1
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user