aboutsummaryrefslogtreecommitdiff
path: root/sim/tic80/insns
diff options
context:
space:
mode:
Diffstat (limited to 'sim/tic80/insns')
-rw-r--r--sim/tic80/insns2
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/tic80/insns b/sim/tic80/insns
index 0da69a6..fbbe6ff 100644
--- a/sim/tic80/insns
+++ b/sim/tic80/insns
@@ -1059,7 +1059,7 @@ void::function::do_st:int Source, unsigned32 base, unsigned32 *rBase, int m , in
"0x%lx: st.d with odd source register %d",
cia.ip, Source);
addr = base + (S ? (offset << 3) : offset);
- val = (V4_H8 (GPR(Source + 1)) | V4_L8 (GPR(Source)));
+ val = U8_4 (GPR(Source + 1), GPR(Source));
STORE (addr, 8, val);
}
break;