2024-02-29 12:01:58 +00:00
|
|
|
#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;
|
2024-04-25 19:27:27 +00:00
|
|
|
uint32_t CR0;
|
|
|
|
uint32_t CR1;
|
|
|
|
uint32_t CR2;
|
2024-02-29 12:01:58 +00:00
|
|
|
} Cpu;
|
|
|
|
|
2024-04-25 19:27:27 +00:00
|
|
|
void cpu_reset(Cpu *cpu);
|
|
|
|
|
2024-02-29 12:01:58 +00:00
|
|
|
#endif /* !VM_CPU_H */
|