65oo2/vm/cpu.c

30 lines
282 B
C
Raw Permalink Normal View History

2024-02-29 12:01:58 +00:00
#include <stdlib.h>
#include "cpu.h"
2024-04-25 19:27:27 +00:00
void
cpu_reset(Cpu *cpu)
{
}
2024-02-29 12:01:58 +00:00
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;
}