-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sega/segaybd.cpp: Switch Sega Y-Board games back to Musashi (MT08783)…
…. [R. Belmont] cpu/m68000: added option to use Musashi for M68000 emulation. [R. Belmont]
- Loading branch information
Showing
5 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// license:BSD-3-Clause | ||
// copyright-holders:Karl Stenerud | ||
|
||
#include "emu.h" | ||
#include "m68000musashi.h" | ||
#include "m68kdasm.h" | ||
|
||
DEFINE_DEVICE_TYPE(M68000MUSASHI, m68000msh_device, "m68000msh", "Motorola MC68000 (Musashi)") | ||
|
||
std::unique_ptr<util::disasm_interface> m68000msh_device::create_disassembler() | ||
{ | ||
return std::make_unique<m68k_disassembler>(m68k_disassembler::TYPE_68010); | ||
} | ||
|
||
|
||
m68000msh_device::m68000msh_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) | ||
: m68000_musashi_device(mconfig, tag, owner, clock, M68000MUSASHI, 16, 24) | ||
{ | ||
} | ||
|
||
void m68000msh_device::device_start() | ||
{ | ||
m68000_musashi_device::device_start(); | ||
init_cpu_m68000(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// license:BSD-3-Clause | ||
// copyright-holders:Karl Stenerud | ||
#ifndef MAME_CPU_M68000_M68000MUSASHI_H | ||
#define MAME_CPU_M68000_M68000MUSASHI_H | ||
|
||
#pragma once | ||
|
||
#include "m68kmusashi.h" | ||
|
||
class m68000msh_device : public m68000_musashi_device | ||
{ | ||
public: | ||
// construction/destruction | ||
m68000msh_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); | ||
|
||
virtual std::unique_ptr<util::disasm_interface> create_disassembler() override; | ||
|
||
virtual u32 execute_min_cycles() const noexcept override { return 4; } | ||
virtual u32 execute_max_cycles() const noexcept override { return 158; } | ||
|
||
// device-level overrides | ||
virtual void device_start() override; | ||
}; | ||
|
||
DECLARE_DEVICE_TYPE(M68000MUSASHI, m68000msh_device) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f9ef858
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I smell like this requiring a fair deprecation warning when
m68000msh_device
is used (and assuming has a sense from GCC output, last time I bothered it didn't?).f9ef858
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this be reversed?
pdrift: demote to NOT_WORKING due to regression after m68k rewrite:
c75573f