Skip to content

Commit a9bae4a

Browse files
committed
add op1f
1 parent 02ca444 commit a9bae4a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

emu.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,6 +1805,18 @@ H8_OP(op1d)
18051805
cmpw(system, *rd_w(system, system->dbus.bh), *rd_w(system, system->dbus.bl));
18061806
}
18071807

1808+
H8_OP(op1f)
1809+
{
1810+
if (system->dbus.bh == 0x0)
1811+
/** @todo DAS.B Rd */
1812+
H8_ERROR(H8_DEBUG_UNIMPLEMENTED_OPCODE)
1813+
else if (system->dbus.bh & B1000)
1814+
/** CMP.L ERs, ERd */
1815+
cmpl(system, *rd_l(system, system->dbus.bh), *rd_l(system, system->dbus.bl));
1816+
else
1817+
H8_ERROR(H8_DEBUG_MALFORMED_OPCODE)
1818+
}
1819+
18081820
#define OP2X(al, reg) \
18091821
void op2##al(h8_system_t *system) \
18101822
{ \
@@ -2643,7 +2655,7 @@ static H8_OP_T funcs[256] =
26432655
op00, op01, op02, op03, op04, op05, op06, op07,
26442656
op08, op09, op0a, op0b, op0c, op0d, op0e, op0f,
26452657
op10, op11, op12, op13, op14, op15, op16, op17,
2646-
op18, op19, op1a, op1b, op1c, op1d, NULL, NULL,
2658+
op18, op19, op1a, op1b, op1c, op1d, NULL, op1f,
26472659
op20, op21, op22, op23, op24, op25, op26, op27,
26482660
op28, op29, op2a, op2b, op2c, op2d, op2e, op2f,
26492661
op30, op31, op32, op33, op34, op35, op36, op37,

0 commit comments

Comments
 (0)