summaryrefslogtreecommitdiff
path: root/CPU.h
diff options
context:
space:
mode:
authorleo <leo@azuminha.com>2024-03-18 21:21:20 -0300
committerleo <leo@azuminha.com>2024-03-18 21:21:20 -0300
commit1cffb789b5d258c3d6fced0fb949f068b1b23bae (patch)
tree069aa9dc20433c38893cc4354cab63d626415708 /CPU.h
parent21bb49029a4a30c80714a4b05193e1ba58117d5a (diff)
CLC
CLD CLI CLV CMP CPX CPY
Diffstat (limited to 'CPU.h')
-rw-r--r--CPU.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/CPU.h b/CPU.h
index 5069ab3..8918c47 100644
--- a/CPU.h
+++ b/CPU.h
@@ -1,5 +1,6 @@
#ifndef _CPU
#define _CPU
+#include <stdint.h>
#define CARRY 0b00000001
#define ZERO 0b00000010
@@ -53,5 +54,7 @@ int test_flag(struct CPU *cpu, uint8_t flag);
void asl(struct CPU *cpu, enum adressing_mode mode);
void branch(struct CPU *cpu, bool cond);
+void compare(struct CPU *cpu, enum adressing_mode mode, uint8_t comp_val));
+
#endif \ No newline at end of file