summaryrefslogtreecommitdiff
path: root/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.c')
-rw-r--r--cpu.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/cpu.c b/cpu.c
index 0bbbc75..edfe172 100644
--- a/cpu.c
+++ b/cpu.c
@@ -4,6 +4,8 @@
#include <stdlib.h>
#include <string.h>
+#include "cpu.h"
+#include "opcodes.h"
#include "rom.h"
#define MAX(a, b) ((a > b) ? a : b)
@@ -52,22 +54,6 @@ struct registers regs = {0};
struct Rom rom = {0};
-enum addressing_mode {
- AM_ACC,
- AM_IMPLICIT,
- AM_IMM,
- AM_ZP,
- AM_ZP_X,
- AM_ZP_Y,
- AM_REL,
- AM_ABS,
- AM_ABS_X,
- AM_ABS_Y,
- AM_IND,
- AM_IND_X,
- AM_IND_Y,
-};
-
/* 64K address space, 16bit words */
uint8_t memory[0x16000];