diff options
Diffstat (limited to 'sim/tic80/cpu.h')
-rw-r--r-- | sim/tic80/cpu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/tic80/cpu.h b/sim/tic80/cpu.h index 0027af0..d3d14b6 100644 --- a/sim/tic80/cpu.h +++ b/sim/tic80/cpu.h @@ -152,6 +152,7 @@ struct _sim_cpu { }; #define GPR(N) ((CPU)->reg[N]) +#define GPR_SET(N, VAL) ((CPU)->reg[N] = (VAL)) #define ACC(N) ((CPU)->acc[N]) #define CR(N) ((CPU)->cr[tic80_index2cr ((N))]) |