From feb1a4297b4b56e0251277397efb7c3071c9ee8b Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Thu, 5 Apr 2018 17:47:06 +0200 Subject: Add missing lab mode used by vf2 in-game (nw) --- src/devices/cpu/mb86233/mb86233.cpp | 5 +++-- src/devices/cpu/mb86233/mb86233d.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/devices/cpu/mb86233/mb86233.cpp b/src/devices/cpu/mb86233/mb86233.cpp index 7244e0d5d04..8808bf50e84 100644 --- a/src/devices/cpu/mb86233/mb86233.cpp +++ b/src/devices/cpu/mb86233/mb86233.cpp @@ -727,7 +727,7 @@ void mb86233_device::execute_run() alu_pre(alu); switch(op) { - case 0: { + case 0: case 1: { // lab mem, mem (e) u32 ea1 = ea_pre_0(r1); @@ -785,7 +785,8 @@ void mb86233_device::execute_run() } default: - logerror("unhandler lab subop %x\n", op); + logerror("unhandled lab subop %x\n", op); + logerror("%x\n", m_ppc); break; } diff --git a/src/devices/cpu/mb86233/mb86233d.cpp b/src/devices/cpu/mb86233/mb86233d.cpp index c49f01c3bba..a12bd4e4d8b 100644 --- a/src/devices/cpu/mb86233/mb86233d.cpp +++ b/src/devices/cpu/mb86233/mb86233d.cpp @@ -34,7 +34,7 @@ 3322 2222 2222 1111 1111 1100 0000 0000 1098 7654 3210 9876 5432 1098 7654 3210 - 0000 00aa aaa0 00yy yyyy yyyx xxxx xxxx lab adx, ady (e) + 0000 00aa aaa0 0?yy yyyy yyyx xxxx xxxx lab adx, ady (e) 0000 00aa aaa0 11yy yyyy yyyx xxxx xxxx lab adx, ady + 0x200 0000 00aa aaa1 00yy yyyy yyyx xxxx xxxx lab adx + 0x200, ady @@ -271,7 +271,7 @@ offs_t mb86233_disassembler::disassemble(std::ostream &stream, offs_t pc, const util::stream_format(stream, "%s : ", alu0_func(alu) ); switch(op) { - case 0: + case 0: case 1: util::stream_format(stream, "lab %s, %s (e)", memory(r1, false, false), memory(r2, true, false)); break; -- cgit v1.2.3