aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/alu.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/tic80/alu.h')
-rw-r--r--sim/tic80/alu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/tic80/alu.h b/sim/tic80/alu.h
index 1bb4054..4300723 100644
--- a/sim/tic80/alu.h
+++ b/sim/tic80/alu.h
@@ -56,6 +56,7 @@ do { \
#define long_immediate(VARIABLE) \
unsigned_word VARIABLE = MEM (unsigned, nia.ip, 4); \
+ cia.dp += sizeof (instruction_word); \
nia.ip += sizeof (instruction_word); \
nia.dp += sizeof (instruction_word);