mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
mb89352: get the correct phase (nw)
(mess) x68k: cleanup (nw)
This commit is contained in:
parent
87dc78e639
commit
e448fa7269
@ -242,11 +242,6 @@ void mb89352_device::set_phase(int phase)
|
||||
logerror("MB89352: phase set to %i\n",m_phase);
|
||||
}
|
||||
|
||||
int mb89352_device::get_phase(void)
|
||||
{
|
||||
return m_phase;
|
||||
}
|
||||
|
||||
READ8_MEMBER( mb89352_device::mb89352_r )
|
||||
{
|
||||
UINT8 ret;
|
||||
|
@ -68,7 +68,6 @@ public:
|
||||
DECLARE_WRITE8_MEMBER( mb89352_w );
|
||||
|
||||
void set_phase(int phase);
|
||||
int get_phase(void);
|
||||
|
||||
protected:
|
||||
// device-level overrides (none are required, but these are common)
|
||||
|
@ -638,7 +638,7 @@ WRITE16_MEMBER(x68k_state::x68k_fdc_w)
|
||||
output_set_indexed_value("eject_drv",drive,(data & 0x40) ? 1 : 0);
|
||||
if(data & 0x20) // ejects disk
|
||||
{
|
||||
m_fdc.floppy[drive]->mon_w(false);
|
||||
m_fdc.floppy[drive]->mon_w(true);
|
||||
m_fdc.floppy[drive]->unload();
|
||||
}
|
||||
}
|
||||
@ -1048,8 +1048,6 @@ READ16_MEMBER(x68k_state::x68k_rom0_r)
|
||||
{
|
||||
/* this location contains the address of some expansion device ROM, if no ROM exists,
|
||||
then access causes a bus error */
|
||||
m_current_vector[2] = 0x02; // bus error
|
||||
m_current_irq_line = 2;
|
||||
if((m_options->read() & 0x02) && !space.debugger_access())
|
||||
set_bus_error((offset << 1) + 0xbffffc, 0, mem_mask);
|
||||
return 0xff;
|
||||
@ -1059,8 +1057,6 @@ WRITE16_MEMBER(x68k_state::x68k_rom0_w)
|
||||
{
|
||||
/* this location contains the address of some expansion device ROM, if no ROM exists,
|
||||
then access causes a bus error */
|
||||
m_current_vector[2] = 0x02; // bus error
|
||||
m_current_irq_line = 2;
|
||||
if((m_options->read() & 0x02) && !space.debugger_access())
|
||||
set_bus_error((offset << 1) + 0xbffffc, 1, mem_mask);
|
||||
}
|
||||
@ -1069,8 +1065,6 @@ READ16_MEMBER(x68k_state::x68k_emptyram_r)
|
||||
{
|
||||
/* this location is unused RAM, access here causes a bus error
|
||||
Often a method for detecting amount of installed RAM, is to read or write at 1MB intervals, until a bus error occurs */
|
||||
m_current_vector[2] = 0x02; // bus error
|
||||
m_current_irq_line = 2;
|
||||
if((m_options->read() & 0x02) && !space.debugger_access())
|
||||
set_bus_error((offset << 1), 0, mem_mask);
|
||||
return 0xff;
|
||||
@ -1080,8 +1074,6 @@ WRITE16_MEMBER(x68k_state::x68k_emptyram_w)
|
||||
{
|
||||
/* this location is unused RAM, access here causes a bus error
|
||||
Often a method for detecting amount of installed RAM, is to read or write at 1MB intervals, until a bus error occurs */
|
||||
m_current_vector[2] = 0x02; // bus error
|
||||
m_current_irq_line = 2;
|
||||
if((m_options->read() & 0x02) && !space.debugger_access())
|
||||
set_bus_error((offset << 1), 1, mem_mask);
|
||||
}
|
||||
@ -1089,8 +1081,6 @@ WRITE16_MEMBER(x68k_state::x68k_emptyram_w)
|
||||
READ16_MEMBER(x68k_state::x68k_exp_r)
|
||||
{
|
||||
/* These are expansion devices, if not present, they cause a bus error */
|
||||
m_current_vector[2] = 0x02; // bus error
|
||||
m_current_irq_line = 2;
|
||||
if((m_options->read() & 0x02) && !space.debugger_access())
|
||||
set_bus_error((offset << 1) + 0xeafa00, 0, mem_mask);
|
||||
return 0xff;
|
||||
@ -1099,8 +1089,6 @@ READ16_MEMBER(x68k_state::x68k_exp_r)
|
||||
WRITE16_MEMBER(x68k_state::x68k_exp_w)
|
||||
{
|
||||
/* These are expansion devices, if not present, they cause a bus error */
|
||||
m_current_vector[2] = 0x02; // bus error
|
||||
m_current_irq_line = 2;
|
||||
if((m_options->read() & 0x02) && !space.debugger_access())
|
||||
set_bus_error((offset << 1) + 0xeafa00, 1, mem_mask);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user