24 lines
244 B
C
24 lines
244 B
C
#include <stdlib.h>
|
|
#include "cpu.h"
|
|
|
|
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;
|
|
}
|