Moved definitions and added debug build to vvm
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized
|
override CFLAGS+=-Werror -Wall -g -fPIC -O2 -DNDEBUG -ftrapv -Wfloat-equal -Wundef -Wwrite-strings -Wconversion -Wuninitialized
|
||||||
DEBUG+=-DDEBUG=1
|
DEBUG+=-DDEBUG_ON
|
||||||
PREFIX=/usr/bin
|
PREFIX=/usr/bin
|
||||||
BUILDDIR=bin/
|
BUILDDIR=bin/
|
||||||
|
|
||||||
|
@@ -1,10 +1,5 @@
|
|||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
|
|
||||||
#define MAX_SIZE 4096
|
|
||||||
#define TRUE 1
|
|
||||||
#define FALSE 0
|
|
||||||
#define DEBUG FALSE
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief disassemble
|
* @brief disassemble
|
||||||
* @param sp -> stack pointer
|
* @param sp -> stack pointer
|
||||||
|
@@ -8,6 +8,15 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "opcode.h"
|
#include "opcode.h"
|
||||||
|
|
||||||
|
#define MAX_SIZE 4096
|
||||||
|
#define TRUE 1
|
||||||
|
#define FALSE 0
|
||||||
|
#ifdef DEBUG_ON
|
||||||
|
#define DEBUG TRUE
|
||||||
|
#else
|
||||||
|
#define DEBUG FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct{
|
typedef struct{
|
||||||
unsigned long length;
|
unsigned long length;
|
||||||
int entrypoint;
|
int entrypoint;
|
||||||
|
Reference in New Issue
Block a user