30 lines
282 B
C
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;
|
|
}
|