#ifndef CPU_H # define CPU_H #include "chip8.h" #include typedef struct s_instruction { uint16_t opcode; uint8_t type; uint8_t x; uint8_t y; uint8_t n; uint8_t nn; uint16_t nnn; } t_instruction; uint16_t cpu_fetch(t_chip8 *emu); t_instruction cpu_decode(uint16_t opcode); void cpu_execute(t_chip8 *emu, t_instruction instruction); #endif