aboutsummaryrefslogtreecommitdiff
path: root/sim/rl78/rl78.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/rl78/rl78.c')
-rw-r--r--sim/rl78/rl78.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sim/rl78/rl78.c b/sim/rl78/rl78.c
index aca6762..c8d1442 100644
--- a/sim/rl78/rl78.c
+++ b/sim/rl78/rl78.c
@@ -421,10 +421,16 @@ decode_opcode (void)
int a, b, v, v2;
unsigned int u, u2;
int obits;
+ RL78_Dis_Isa isa;
+
+ isa = (rl78_g10_mode ? RL78_ISA_G10
+ : g14_multiply ? RL78_ISA_G14
+ : g13_multiply ? RL78_ISA_G13
+ : RL78_ISA_DEFAULT);
rl78_data.dpc = pc;
opcode_size = rl78_decode_opcode (pc, &opcode,
- rl78_get_byte, &rl78_data);
+ rl78_get_byte, &rl78_data, isa);
opcode_pc = pc;
pc += opcode_size;
@@ -851,7 +857,7 @@ decode_opcode (void)
rl78_data.dpc = pc;
opcode_size = rl78_decode_opcode (pc, &opcode,
- rl78_get_byte, &rl78_data);
+ rl78_get_byte, &rl78_data, isa);
pc += opcode_size;
tprintf (" skipped: %s\n", opcode.syntax);
break;