65oo2/vm/cpu.c
2024-04-25 21:27:27 +02:00

30 lines
282 B
C

#include <stdlib.h>
#include "cpu.h"
void
cpu_reset(Cpu *cpu)
{
}
void
invalid_opcode(Cpu *cpu)
{
exit(EXIT_FAILURE);
}
void
cpu_execute(Cpu *cpu)
{
uint8_t opcode;
switch (opcode)
{
default:
invalid_opcode();
break;
}
cpu->PC += 1;
}