18 lines
No EOL
288 B
C
18 lines
No EOL
288 B
C
#ifndef CPU_H
|
|
#define CPU_H
|
|
|
|
#include "address_space.h"
|
|
#include <stdint.h>
|
|
|
|
struct CPU_s {
|
|
uint32_t registers[32];
|
|
uint32_t programCounter;
|
|
AddressSpace *addressSpace;
|
|
};
|
|
|
|
typedef struct CPU_s CPU;
|
|
|
|
CPU create_cpu(AddressSpace *addressSpace);
|
|
int cpu_cycle(CPU *cpu);
|
|
|
|
#endif |