#ifndef PSXC_H_ #define PSXC_H_ #include #define SP(cpu) ((cpu)->regs[29]) typedef struct { uint32_t regs[32]; uint32_t pc; } cpu_t; typedef void (*cpu_insn_handler)(cpu_t *, uint32_t); #endif