21 lines
259 B
C
21 lines
259 B
C
#ifndef VM_CPU_H
|
|
# define VM_CPU_H 1
|
|
|
|
# include <stdint.h>
|
|
|
|
typedef struct
|
|
{
|
|
uint32_t PC;
|
|
uint32_t A;
|
|
uint32_t X;
|
|
uint32_t Y;
|
|
uint8_t SR;
|
|
uint32_t SP;
|
|
uint32_t CR0;
|
|
uint32_t CR1;
|
|
uint32_t CR2;
|
|
} Cpu;
|
|
|
|
void cpu_reset(Cpu *cpu);
|
|
|
|
#endif /* !VM_CPU_H */ |