diff options
Diffstat (limited to 'sim/tic80/cpu.h')
-rw-r--r-- | sim/tic80/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/tic80/cpu.h b/sim/tic80/cpu.h new file mode 100644 index 0000000..4cb7178 --- /dev/null +++ b/sim/tic80/cpu.h @@ -0,0 +1,7 @@ +typedef struct _sim_cpu { + unsigned_word reg[32]; + sim_cpu_base base; + instruction_address cia; +} sim_cpu; + +#define GPR(N) ((CPU)->reg[N]) |