From 1cffb789b5d258c3d6fced0fb949f068b1b23bae Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 18 Mar 2024 21:21:20 -0300 Subject: CLC CLD CLI CLV CMP CPX CPY --- CPU.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CPU.h') 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 #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 -- cgit v1.2.3