Skip to content

Commit b502f5c

Browse files
committed
implement MOV.L @ers+, ERd
1 parent 84160aa commit b502f5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

emu.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,12 @@ H8_OP(op01)
11111111
break;
11121112
}
11131113
case 0x6D:
1114-
/** MOV.L ERs, @-ERd */
1115-
rs_md_l(system, *rd_l(system, system->dbus.bl), erpd_l(system, system->dbus.bh), movl);
1114+
if (system->dbus.bh & B1000)
1115+
/** MOV.L ERs, @-ERd */
1116+
rs_md_l(system, *rd_l(system, system->dbus.bl), erpd_l(system, system->dbus.bh), movl);
1117+
else
1118+
/** MOV.L @ERs+, ERd */
1119+
ms_rd_l(system, erpi_l(system, system->dbus.bh), rd_l(system, system->dbus.bl), movl);
11161120
break;
11171121
case 0x6F:
11181122
{

0 commit comments

Comments
 (0)