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 270b5c4..b823b96 100644
--- a/sim/tic80/insns
+++ b/sim/tic80/insns
@@ -1066,7 +1066,7 @@ void::function::do_trap:unsigned32 trap_number
if (!TRACE_ALU_P (CPU))
trace_one_insn (SD, CPU, cia.ip, 1, itable[MY_INDEX].file,
itable[MY_INDEX].line_nr, "trap",
- "Trap %d", trap_number);
+ "Trap %ld", (long) trap_number);
for (i = 0; i < 32; i++)
sim_io_eprintf (SD, "%s0x%.8lx%s", ((i % 8) == 0) ? "\t" : " ", (long)GPR(i),