minor fixes & error checking but still JE

Q bug?
This commit is contained in:
xamidev
2024-10-24 17:27:26 +02:00
parent 59688d05c4
commit accbdc38e7
5 changed files with 33 additions and 8 deletions

2
cpu.h
View File

@@ -4,6 +4,7 @@
#define MEM_SIZE 256
#define NUM_REGISTERS 8
#define BUF_MAX 256
#define INF_LOOP_THRESHOLD 10000
/*
* Instruction set
@@ -55,6 +56,7 @@ typedef struct
bool halted;
bool equal_flag;
int flag_clear_delay;
int increment;
} CPU_t;
#endif