aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/cpu.h
blob: 4cb71784afd9b842eb4e3011ec631a635eaa0c91 (plain)
1
2
3
4
5
6
7
typedef struct _sim_cpu {
  unsigned_word reg[32];
  sim_cpu_base base;
  instruction_address cia;
} sim_cpu;

#define GPR(N) ((CPU)->reg[N])