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

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 */