Multithread debugger and emulator with message queues
diff --git a/cpu.h b/cpu.h
index 5b91ed4..3c82c6c 100644
--- a/cpu.h
+++ b/cpu.h
@@ -2,12 +2,16 @@
#include <stdint.h>
#include <stdbool.h>
+#include <mqueue.h>
#define REGISTERS R(A) R(X) R(Y) R(SP)
#define CPU_FB_ADDR 0x200
#define CPU_FB_W 32
#define CPU_FB_H 32
+#define MQ_BUF_LEN 512
+#define MQ_NAME "/6502-to-cpu"
+
enum // Registers
{
A, X, Y, SP
@@ -148,3 +152,4 @@
// Buffer must be freed by user
char *disas_step(cpu_t *cpu);
void run(cpu_t *cpu);
+void run_mq(cpu_t *cpu, mqd_t mq);