22 lines
306 B
C
22 lines
306 B
C
#ifndef SIMDATA_HEADER
|
|
#include <stdint.h>
|
|
|
|
struct simdata_t{
|
|
long unsigned int current_clock;
|
|
uint8_t *RAM;
|
|
uint32_t PC;
|
|
uint32_t SP;
|
|
};
|
|
|
|
struct simdata_t *init_simdata();
|
|
|
|
void free_simdata(struct simdata_t *);
|
|
|
|
enum CPU_STATE_t{
|
|
RUNNING,
|
|
SINGLE_STEPPING,
|
|
STOPPED
|
|
};
|
|
#endif
|
|
#define SIMDATA_HEADER
|