aboutsummaryrefslogtreecommitdiffstats
path: root/src/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu.h')
-rw-r--r--src/cpu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu.h b/src/cpu.h
new file mode 100644
index 0000000..8415951
--- /dev/null
+++ b/src/cpu.h
@@ -0,0 +1,9 @@
+#ifndef GBC_CPU_H
+#define GBC_CPU_H
+
+#include "gb.h"
+
+// Execute one instruction (or handle interrupt / halt). Returns T-cycles used.
+int cpu_step(GB *gb);
+
+#endif