Added a disassembler which is still very buggy. Also fixed some bugs with the opcode mask getting function.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#ifndef DIASSEMBLER_H
|
||||
#define DIASSEMBLER_H
|
||||
|
||||
#include "parser.h"
|
||||
|
||||
void Disassemble(unsigned char image[HIGHMEMORY]);
|
||||
|
||||
#endif
|
||||
|
||||
+3
-1
@@ -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
|
||||
@@ -6,6 +6,8 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define REGISTEROFFSET 29
|
||||
|
||||
typedef enum {
|
||||
PLUS,
|
||||
MINUS,
|
||||
|
||||
Reference in New Issue
Block a user