mirror of
https://github.com/holub/mame
synced 2025-07-08 19:31:59 +03:00
k054539.cpp: Allow side effects, Add imperfect_features (#6996)
* k054539.cpp: Allow side effects, Add imperfect_features related to unverified/unemulated effects and some registers.
This commit is contained in:
parent
943fc34f39
commit
2b95c80567
@ -483,9 +483,12 @@ u8 k054539_device::read(offs_t offset)
|
||||
case 0x22d:
|
||||
if(regs[0x22f] & 0x10) {
|
||||
uint8_t res = (rom_addr == 0x80) ? ram[cur_ptr] : read_byte((0x20000*rom_addr)+cur_ptr);
|
||||
cur_ptr++;
|
||||
if(cur_ptr == cur_limit)
|
||||
cur_ptr = 0;
|
||||
if (!machine().side_effects_disabled())
|
||||
{
|
||||
cur_ptr++;
|
||||
if(cur_ptr == cur_limit)
|
||||
cur_ptr = 0;
|
||||
}
|
||||
return res;
|
||||
} else
|
||||
return 0;
|
||||
|
@ -20,6 +20,8 @@ class k054539_device : public device_t,
|
||||
public device_rom_interface<24>
|
||||
{
|
||||
public:
|
||||
static constexpr feature_type imperfect_features() { return feature::SOUND; } // effector and/or some registers aren't verified/emulated
|
||||
|
||||
// control flags, may be set at DRIVER_INIT().
|
||||
enum {
|
||||
RESET_FLAGS = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user