Clean-ups and version bump
This commit is contained in:
parent
8d66a9445a
commit
35e09dd41c
@ -1326,43 +1326,43 @@ int m68307_calc_cs(m68ki_cpu_core *m68k, offs_t address)
|
|||||||
|
|
||||||
UINT16 m68k_memory_interface::simple_read_immediate_16_m68307(offs_t address)
|
UINT16 m68k_memory_interface::simple_read_immediate_16_m68307(offs_t address)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
return m_direct->read_decrypted_word(address);
|
return m_direct->read_decrypted_word(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT8 m68k_memory_interface::read_byte_m68307(offs_t address)
|
UINT8 m68k_memory_interface::read_byte_m68307(offs_t address)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
return m_space->read_byte(address);
|
return m_space->read_byte(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT16 m68k_memory_interface::read_word_m68307(offs_t address)
|
UINT16 m68k_memory_interface::read_word_m68307(offs_t address)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
return m_space->read_word(address);
|
return m_space->read_word(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
UINT32 m68k_memory_interface::read_dword_m68307(offs_t address)
|
UINT32 m68k_memory_interface::read_dword_m68307(offs_t address)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
return m_space->read_dword(address);
|
return m_space->read_dword(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
void m68k_memory_interface::write_byte_m68307(offs_t address, UINT8 data)
|
void m68k_memory_interface::write_byte_m68307(offs_t address, UINT8 data)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
m_space->write_byte(address, data);
|
m_space->write_byte(address, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void m68k_memory_interface::write_word_m68307(offs_t address, UINT16 data)
|
void m68k_memory_interface::write_word_m68307(offs_t address, UINT16 data)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
m_space->write_word(address, data);
|
m_space->write_word(address, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void m68k_memory_interface::write_dword_m68307(offs_t address, UINT32 data)
|
void m68k_memory_interface::write_dword_m68307(offs_t address, UINT32 data)
|
||||||
{
|
{
|
||||||
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
// m_cpustate->m68307_currentcs = m68307_calc_cs(m_cpustate, address);
|
||||||
m_space->write_dword(address, data);
|
m_space->write_dword(address, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1956,7 +1956,7 @@ void m68307_timer1_interrupt(legacy_cpu_device *cpudev)
|
|||||||
|
|
||||||
void m68307_serial_interrupt(legacy_cpu_device *cpudev)
|
void m68307_serial_interrupt(legacy_cpu_device *cpudev)
|
||||||
{
|
{
|
||||||
m68ki_cpu_core* m68k = m68k_get_safe_token(cpudev);
|
m68ki_cpu_core* m68k = m68k_get_safe_token(cpudev);
|
||||||
int prioritylevel = (m68k->m68307SIM->m_picr & 0x0070)>>4;
|
int prioritylevel = (m68k->m68307SIM->m_picr & 0x0070)>>4;
|
||||||
int vector = (m68k->m68307SERIAL->m_uivr);
|
int vector = (m68k->m68307SERIAL->m_uivr);
|
||||||
m68307_set_interrupt(cpudev, prioritylevel, vector);
|
m68307_set_interrupt(cpudev, prioritylevel, vector);
|
||||||
@ -1964,7 +1964,7 @@ void m68307_serial_interrupt(legacy_cpu_device *cpudev)
|
|||||||
|
|
||||||
void m68307_mbus_interrupt(legacy_cpu_device *cpudev)
|
void m68307_mbus_interrupt(legacy_cpu_device *cpudev)
|
||||||
{
|
{
|
||||||
m68ki_cpu_core* m68k = m68k_get_safe_token(cpudev);
|
m68ki_cpu_core* m68k = m68k_get_safe_token(cpudev);
|
||||||
int prioritylevel = (m68k->m68307SIM->m_picr & 0x0007)>>0;
|
int prioritylevel = (m68k->m68307SIM->m_picr & 0x0007)>>0;
|
||||||
int vector = (m68k->m68307SIM->m_pivr & 0x00f0) | 0xd;
|
int vector = (m68k->m68307SIM->m_pivr & 0x00f0) | 0xd;
|
||||||
m68307_set_interrupt(cpudev, prioritylevel, vector);
|
m68307_set_interrupt(cpudev, prioritylevel, vector);
|
||||||
@ -1972,7 +1972,7 @@ void m68307_mbus_interrupt(legacy_cpu_device *cpudev)
|
|||||||
|
|
||||||
void m68307_licr2_interrupt(legacy_cpu_device *cpudev)
|
void m68307_licr2_interrupt(legacy_cpu_device *cpudev)
|
||||||
{
|
{
|
||||||
m68ki_cpu_core* m68k = m68k_get_safe_token(cpudev);
|
m68ki_cpu_core* m68k = m68k_get_safe_token(cpudev);
|
||||||
int prioritylevel = (m68k->m68307SIM->m_licr2 & 0x0007)>>0;
|
int prioritylevel = (m68k->m68307SIM->m_licr2 & 0x0007)>>0;
|
||||||
int vector = (m68k->m68307SIM->m_pivr & 0x00f0) | 0x9;
|
int vector = (m68k->m68307SIM->m_pivr & 0x00f0) | 0x9;
|
||||||
m68k->m68307SIM->m_licr2 |= 0x8;
|
m68k->m68307SIM->m_licr2 |= 0x8;
|
||||||
@ -2050,10 +2050,10 @@ static WRITE16_HANDLER( m68307_internal_base_w )
|
|||||||
base = (m68k->m68307_base & 0x0fff) << 12;
|
base = (m68k->m68307_base & 0x0fff) << 12;
|
||||||
//mask = (m68k->m68307_base & 0xe000) >> 13;
|
//mask = (m68k->m68307_base & 0xe000) >> 13;
|
||||||
//if ( m68k->m68307_base & 0x1000 ) mask |= 7;
|
//if ( m68k->m68307_base & 0x1000 ) mask |= 7;
|
||||||
m68k->internal->unmap_readwrite(base+0x000, base+0x04f);
|
m68k->internal->unmap_readwrite(base+0x000, base+0x04f);
|
||||||
m68k->internal->unmap_readwrite(base+0x100, base+0x11f);
|
m68k->internal->unmap_readwrite(base+0x100, base+0x11f);
|
||||||
m68k->internal->unmap_readwrite(base+0x120, base+0x13f);
|
m68k->internal->unmap_readwrite(base+0x120, base+0x13f);
|
||||||
m68k->internal->unmap_readwrite(base+0x140, base+0x149);
|
m68k->internal->unmap_readwrite(base+0x140, base+0x149);
|
||||||
|
|
||||||
/* store new base address */
|
/* store new base address */
|
||||||
COMBINE_DATA(&m68k->m68307_base);
|
COMBINE_DATA(&m68k->m68307_base);
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
const int MAX_DRIVER_NAME_CHARS = 8;
|
const int MAX_DRIVER_NAME_CHARS = 8;
|
||||||
|
|
||||||
// flags for game drivers
|
// flags for game drivers
|
||||||
const UINT32 ORIENTATION_MASK = 0x00000007;
|
const UINT32 ORIENTATION_MASK = 0x00000007;
|
||||||
const UINT32 GAME_NOT_WORKING = 0x00000008;
|
const UINT32 GAME_NOT_WORKING = 0x00000008;
|
||||||
const UINT32 GAME_UNEMULATED_PROTECTION = 0x00000010; // game's protection not fully emulated
|
const UINT32 GAME_UNEMULATED_PROTECTION = 0x00000010; // game's protection not fully emulated
|
||||||
const UINT32 GAME_WRONG_COLORS = 0x00000020; // colors are totally wrong
|
const UINT32 GAME_WRONG_COLORS = 0x00000020; // colors are totally wrong
|
||||||
@ -64,7 +64,7 @@ const UINT32 GAME_SUPPORTS_SAVE = 0x00000800; // game supports save states
|
|||||||
const UINT32 GAME_IS_BIOS_ROOT = 0x00001000; // this driver entry is a BIOS root
|
const UINT32 GAME_IS_BIOS_ROOT = 0x00001000; // this driver entry is a BIOS root
|
||||||
const UINT32 GAME_NO_STANDALONE = 0x00002000; // this driver cannot stand alone
|
const UINT32 GAME_NO_STANDALONE = 0x00002000; // this driver cannot stand alone
|
||||||
const UINT32 GAME_REQUIRES_ARTWORK = 0x00004000; // the driver requires external artwork for key elements of the game
|
const UINT32 GAME_REQUIRES_ARTWORK = 0x00004000; // the driver requires external artwork for key elements of the game
|
||||||
const UINT32 GAME_UNOFFICIAL = 0x00008000; // unofficial hardware change
|
const UINT32 GAME_UNOFFICIAL = 0x00008000; // unofficial hardware change
|
||||||
const UINT32 GAME_NO_SOUND_HW = 0x00010000; // sound hardware not available
|
const UINT32 GAME_NO_SOUND_HW = 0x00010000; // sound hardware not available
|
||||||
const UINT32 GAME_MECHANICAL = 0x00020000; // contains mechanical parts (pinball, redemption games,...)
|
const UINT32 GAME_MECHANICAL = 0x00020000; // contains mechanical parts (pinball, redemption games,...)
|
||||||
const UINT32 GAME_TYPE_ARCADE = 0x00040000; // arcade machine (coin operated machines)
|
const UINT32 GAME_TYPE_ARCADE = 0x00040000; // arcade machine (coin operated machines)
|
||||||
@ -90,8 +90,8 @@ typedef void (*driver_init_func)(running_machine &machine);
|
|||||||
template<class _DriverClass, void (_DriverClass::*_Function)()>
|
template<class _DriverClass, void (_DriverClass::*_Function)()>
|
||||||
void driver_init_wrapper(running_machine &machine)
|
void driver_init_wrapper(running_machine &machine)
|
||||||
{
|
{
|
||||||
_DriverClass *object = machine.driver_data<_DriverClass>();
|
_DriverClass *object = machine.driver_data<_DriverClass>();
|
||||||
(object->*_Function)();
|
(object->*_Function)();
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -795,14 +795,14 @@ private:
|
|||||||
UINT8 * m_bank_ptr[256]; // array of bank pointers
|
UINT8 * m_bank_ptr[256]; // array of bank pointers
|
||||||
UINT8 * m_bankd_ptr[256]; // array of decrypted bank pointers
|
UINT8 * m_bankd_ptr[256]; // array of decrypted bank pointers
|
||||||
|
|
||||||
simple_list<address_space> m_spacelist; // list of address spaces
|
simple_list<address_space> m_spacelist; // list of address spaces
|
||||||
simple_list<memory_block> m_blocklist; // head of the list of memory blocks
|
simple_list<memory_block> m_blocklist; // head of the list of memory blocks
|
||||||
|
|
||||||
simple_list<memory_bank> m_banklist; // data gathered for each bank
|
simple_list<memory_bank> m_banklist; // data gathered for each bank
|
||||||
tagmap_t<memory_bank *> m_bankmap; // map for fast bank lookups
|
tagmap_t<memory_bank *> m_bankmap; // map for fast bank lookups
|
||||||
UINT8 m_banknext; // next bank to allocate
|
UINT8 m_banknext; // next bank to allocate
|
||||||
|
|
||||||
tagged_list<memory_share> m_sharelist; // map for share lookups
|
tagged_list<memory_share> m_sharelist; // map for share lookups
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -897,7 +897,7 @@ chd_error cdrom_write_metadata(chd_file *chd, const cdrom_toc *toc)
|
|||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// ECC lookup tables
|
// ECC lookup tables
|
||||||
// pre-calculated tables for ECC data calcs
|
// pre-calculated tables for ECC data calcs
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
static const UINT8 ecclow[256] =
|
static const UINT8 ecclow[256] =
|
||||||
@ -944,8 +944,8 @@ static const UINT8 ecchigh[256] =
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// poffsets - each row represents the addresses
|
// poffsets - each row represents the addresses
|
||||||
// used to calculate a byte of the ECC P data
|
// used to calculate a byte of the ECC P data
|
||||||
// 86 (*2) ECC P bytes, 24 values represented by
|
// 86 (*2) ECC P bytes, 24 values represented by
|
||||||
// each
|
// each
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
static const UINT16 poffsets[ECC_P_NUM_BYTES][ECC_P_COMP] =
|
static const UINT16 poffsets[ECC_P_NUM_BYTES][ECC_P_COMP] =
|
||||||
@ -1042,8 +1042,8 @@ static const UINT16 poffsets[ECC_P_NUM_BYTES][ECC_P_COMP] =
|
|||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// qoffsets - each row represents the addresses
|
// qoffsets - each row represents the addresses
|
||||||
// used to calculate a byte of the ECC Q data
|
// used to calculate a byte of the ECC Q data
|
||||||
// 52 (*2) ECC Q bytes, 43 values represented by
|
// 52 (*2) ECC Q bytes, 43 values represented by
|
||||||
// each
|
// each
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
static const UINT16 qoffsets[ECC_Q_NUM_BYTES][ECC_Q_COMP] =
|
static const UINT16 qoffsets[ECC_Q_NUM_BYTES][ECC_Q_COMP] =
|
||||||
@ -1182,7 +1182,7 @@ void ecc_generate(UINT8 *sector)
|
|||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// ecc_clear - erase the ECC P and Q cods to 0
|
// ecc_clear - erase the ECC P and Q cods to 0
|
||||||
// within a sector
|
// within a sector
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void ecc_clear(UINT8 *sector)
|
void ecc_clear(UINT8 *sector)
|
||||||
|
@ -359,7 +359,7 @@ static ADDRESS_MAP_START( cadash_map, AS_PROGRAM, 16, asuka_state )
|
|||||||
AM_RANGE(0xc20000, 0xc2000f) AM_DEVREADWRITE_LEGACY("tc0100scn", tc0100scn_ctrl_word_r, tc0100scn_ctrl_word_w)
|
AM_RANGE(0xc20000, 0xc2000f) AM_DEVREADWRITE_LEGACY("tc0100scn", tc0100scn_ctrl_word_r, tc0100scn_ctrl_word_w)
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( eto_map, AS_PROGRAM, 16 /* N.B. tc100scn mirror overlaps spriteram */, asuka_state )
|
static ADDRESS_MAP_START( eto_map, AS_PROGRAM, 16 /* N.B. tc100scn mirror overlaps spriteram */, asuka_state )
|
||||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM
|
AM_RANGE(0x000000, 0x0fffff) AM_ROM
|
||||||
AM_RANGE(0x100000, 0x10000f) AM_DEVREADWRITE_LEGACY("tc0110pcr", tc0110pcr_word_r, tc0110pcr_step1_word_w)
|
AM_RANGE(0x100000, 0x10000f) AM_DEVREADWRITE_LEGACY("tc0110pcr", tc0110pcr_word_r, tc0110pcr_step1_word_w)
|
||||||
AM_RANGE(0x200000, 0x203fff) AM_RAM
|
AM_RANGE(0x200000, 0x203fff) AM_RAM
|
||||||
|
@ -61,7 +61,7 @@ static ADDRESS_MAP_START( battlnts_map, AS_PROGRAM, 8, battlnts_state )
|
|||||||
AM_RANGE(0x2000, 0x21ff) AM_DEVREADWRITE_LEGACY("k007420", k007420_r, k007420_w) /* Sprite RAM */
|
AM_RANGE(0x2000, 0x21ff) AM_DEVREADWRITE_LEGACY("k007420", k007420_r, k007420_w) /* Sprite RAM */
|
||||||
AM_RANGE(0x2200, 0x23ff) AM_DEVREADWRITE_LEGACY("k007342", k007342_scroll_r, k007342_scroll_w) /* Scroll RAM */
|
AM_RANGE(0x2200, 0x23ff) AM_DEVREADWRITE_LEGACY("k007342", k007342_scroll_r, k007342_scroll_w) /* Scroll RAM */
|
||||||
AM_RANGE(0x2400, 0x24ff) AM_RAM_WRITE(paletteram_xBBBBBGGGGGRRRRR_be_w) AM_SHARE("paletteram")/* palette */
|
AM_RANGE(0x2400, 0x24ff) AM_RAM_WRITE(paletteram_xBBBBBGGGGGRRRRR_be_w) AM_SHARE("paletteram")/* palette */
|
||||||
AM_RANGE(0x2600, 0x2607) AM_DEVWRITE_LEGACY("k007342", k007342_vreg_w) /* Video Registers */
|
AM_RANGE(0x2600, 0x2607) AM_DEVWRITE_LEGACY("k007342", k007342_vreg_w) /* Video Registers */
|
||||||
AM_RANGE(0x2e00, 0x2e00) AM_READ_PORT("DSW1")
|
AM_RANGE(0x2e00, 0x2e00) AM_READ_PORT("DSW1")
|
||||||
AM_RANGE(0x2e01, 0x2e01) AM_READ_PORT("P2")
|
AM_RANGE(0x2e01, 0x2e01) AM_READ_PORT("P2")
|
||||||
AM_RANGE(0x2e02, 0x2e02) AM_READ_PORT("P1")
|
AM_RANGE(0x2e02, 0x2e02) AM_READ_PORT("P1")
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
This file contains the set lists only, for the actual hardware
|
This file contains the set lists only, for the actual hardware
|
||||||
emulation see bfm_sc4h.c
|
emulation see bfm_sc4h.c
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
-------------------------------
|
-------------------------------
|
||||||
|
|
||||||
This file contains the hardware emulation, for the supported sets
|
This file contains the hardware emulation, for the supported sets
|
||||||
see bfm_sc4.c
|
see bfm_sc4.c
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ static READ16_HANDLER( sc4_mem_r )
|
|||||||
int pc = cpu_get_pc(&space->device());
|
int pc = cpu_get_pc(&space->device());
|
||||||
int cs = m68307_get_cs(state->m_maincpu, offset * 2);
|
int cs = m68307_get_cs(state->m_maincpu, offset * 2);
|
||||||
int base = 0, end = 0, base2 = 0, end2 = 0;
|
int base = 0, end = 0, base2 = 0, end2 = 0;
|
||||||
// if (!(space->debugger_access())) printf("cs is %d\n", cs);
|
// if (!(space->debugger_access())) printf("cs is %d\n", cs);
|
||||||
|
|
||||||
switch ( cs )
|
switch ( cs )
|
||||||
{
|
{
|
||||||
@ -341,7 +341,7 @@ static WRITE16_HANDLER( bfm_sc4_68307_portb_w )
|
|||||||
// we have game specific DMD roms in a couple of cases, is it possible ALL the later games are meant to have
|
// we have game specific DMD roms in a couple of cases, is it possible ALL the later games are meant to have
|
||||||
// their own DMD roms rather than it being something generic? (if so we're missing a lot of DMD roms..)
|
// their own DMD roms rather than it being something generic? (if so we're missing a lot of DMD roms..)
|
||||||
bfm_sc4_write_serial_vfd(space->machine(), (data & 0x4000)?1:0, (data & 0x1000)?1:0, !(data & 0x2000)?1:0);
|
bfm_sc4_write_serial_vfd(space->machine(), (data & 0x4000)?1:0, (data & 0x1000)?1:0, !(data & 0x2000)?1:0);
|
||||||
// bfm_sc4_write_serial_vfd(space->machine(), (data & 0x1000)?1:0, (data & 0x4000)?0:1, !(data & 0x2000)?1:0);
|
// bfm_sc4_write_serial_vfd(space->machine(), (data & 0x1000)?1:0, (data & 0x4000)?0:1, !(data & 0x2000)?1:0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -410,7 +410,7 @@ UINT8 bfm_sc4_duart_input_r(device_t *device)
|
|||||||
void bfm_sc4_duart_output_w(device_t *device, UINT8 data)
|
void bfm_sc4_duart_output_w(device_t *device, UINT8 data)
|
||||||
{
|
{
|
||||||
logerror("bfm_sc4_duart_output_w\n");
|
logerror("bfm_sc4_duart_output_w\n");
|
||||||
// cputag_set_input_line(device->machine(), "audiocpu", INPUT_LINE_RESET, data & 0x20 ? CLEAR_LINE : ASSERT_LINE);
|
// cputag_set_input_line(device->machine(), "audiocpu", INPUT_LINE_RESET, data & 0x20 ? CLEAR_LINE : ASSERT_LINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -436,18 +436,18 @@ static INTERRUPT_GEN( sc4_fake_int_check )
|
|||||||
which_int = device->machine().rand() % 5;
|
which_int = device->machine().rand() % 5;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if ( device->machine().input().code_pressed_once(KEYCODE_Q) ) which_int = 1;
|
if ( device->machine().input().code_pressed_once(KEYCODE_Q) ) which_int = 1;
|
||||||
if ( device->machine().input().code_pressed_once(KEYCODE_W) ) which_int = 2;
|
if ( device->machine().input().code_pressed_once(KEYCODE_W) ) which_int = 2;
|
||||||
if ( device->machine().input().code_pressed_once(KEYCODE_E) ) which_int = 3;
|
if ( device->machine().input().code_pressed_once(KEYCODE_E) ) which_int = 3;
|
||||||
if ( device->machine().input().code_pressed_once(KEYCODE_R) ) which_int = 4;
|
if ( device->machine().input().code_pressed_once(KEYCODE_R) ) which_int = 4;
|
||||||
if ( device->machine().input().code_pressed_once(KEYCODE_T) ) which_int = 5;
|
if ( device->machine().input().code_pressed_once(KEYCODE_T) ) which_int = 5;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//if (which_int==1) m68307_timer0_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
//if (which_int==1) m68307_timer0_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
||||||
//if (which_int==2) m68307_timer1_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
//if (which_int==2) m68307_timer1_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
||||||
if (which_int==3) m68307_serial_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
if (which_int==3) m68307_serial_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
||||||
//if (which_int==4) m68307_mbus_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
//if (which_int==4) m68307_mbus_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
||||||
// if (which_int==5) m68307_licr2_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
// if (which_int==5) m68307_licr2_interrupt((legacy_cpu_device*)device->machine().device("maincpu"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
required_device<cpu_device> m_videocpu;
|
required_device<cpu_device> m_videocpu;
|
||||||
required_device<cpu_device> m_pia;
|
required_device<cpu_device> m_pia;
|
||||||
|
|
||||||
// UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
// UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// driver_device overrides
|
// driver_device overrides
|
||||||
@ -48,7 +48,7 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
|
|
||||||
static ADDRESS_MAP_START( by133_video_map, AS_PROGRAM, 8, by133_state )
|
static ADDRESS_MAP_START( by133_video_map, AS_PROGRAM, 8, by133_state )
|
||||||
// AM_RANGE(0x0000, 0x1fff) communication with main CPU
|
// AM_RANGE(0x0000, 0x1fff) communication with main CPU
|
||||||
AM_RANGE(0x2000, 0x2003) AM_DEVREADWRITE("pia", pia6821_device, read, write)
|
AM_RANGE(0x2000, 0x2003) AM_DEVREADWRITE("pia", pia6821_device, read, write)
|
||||||
AM_RANGE(0x4000, 0x4000) AM_DEVREADWRITE( "tms9928a", tms9928a_device, vram_read, vram_write )
|
AM_RANGE(0x4000, 0x4000) AM_DEVREADWRITE( "tms9928a", tms9928a_device, vram_read, vram_write )
|
||||||
AM_RANGE(0x4001, 0x4001) AM_DEVREADWRITE( "tms9928a", tms9928a_device, register_read, register_write )
|
AM_RANGE(0x4001, 0x4001) AM_DEVREADWRITE( "tms9928a", tms9928a_device, register_read, register_write )
|
||||||
|
@ -604,7 +604,7 @@ static ADDRESS_MAP_START( qsound_main_map, AS_PROGRAM, 16, cps_state )
|
|||||||
AM_RANGE(0xff0000, 0xffffff) AM_RAM
|
AM_RANGE(0xff0000, 0xffffff) AM_RAM
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
ADDRESS_MAP_START( qsound_sub_map, AS_PROGRAM, 8, cps_state ) // used by cps2.c too
|
ADDRESS_MAP_START( qsound_sub_map, AS_PROGRAM, 8, cps_state ) // used by cps2.c too
|
||||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||||
AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1") /* banked (contains music data) */
|
AM_RANGE(0x8000, 0xbfff) AM_ROMBANK("bank1") /* banked (contains music data) */
|
||||||
AM_RANGE(0xc000, 0xcfff) AM_RAM AM_BASE(m_qsound_sharedram1)
|
AM_RANGE(0xc000, 0xcfff) AM_RAM AM_BASE(m_qsound_sharedram1)
|
||||||
|
@ -819,7 +819,7 @@ static ADDRESS_MAP_START( cps2_map, AS_PROGRAM, 16, cps_state )
|
|||||||
AM_RANGE(0x662020, 0x662021) AM_RAM /* Network adapter related, accessed in SSF2TB */
|
AM_RANGE(0x662020, 0x662021) AM_RAM /* Network adapter related, accessed in SSF2TB */
|
||||||
AM_RANGE(0x660000, 0x663fff) AM_RAM /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */
|
AM_RANGE(0x660000, 0x663fff) AM_RAM /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */
|
||||||
AM_RANGE(0x664000, 0x664001) AM_RAM /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */
|
AM_RANGE(0x664000, 0x664001) AM_RAM /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */
|
||||||
AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE(m_objram1) /* Object RAM, no game seems to use it directly */
|
AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE(m_objram1) /* Object RAM, no game seems to use it directly */
|
||||||
AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* Object RAM */
|
AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* Object RAM */
|
||||||
AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
||||||
AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
||||||
@ -829,7 +829,7 @@ static ADDRESS_MAP_START( cps2_map, AS_PROGRAM, 16, cps_state )
|
|||||||
AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0") /* IN0 */
|
AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0") /* IN0 */
|
||||||
AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */
|
AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */
|
||||||
AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2") /* IN2 + EEPROM */
|
AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2") /* IN2 + EEPROM */
|
||||||
AM_RANGE(0x804030, 0x804031) AM_READ_LEGACY(cps2_qsound_volume_r) /* Master volume. Also when bit 14=0 addon memory is present, when bit 15=0 network adapter present. */
|
AM_RANGE(0x804030, 0x804031) AM_READ_LEGACY(cps2_qsound_volume_r) /* Master volume. Also when bit 14=0 addon memory is present, when bit 15=0 network adapter present. */
|
||||||
AM_RANGE(0x804040, 0x804041) AM_WRITE_LEGACY(cps2_eeprom_port_w) /* EEPROM */
|
AM_RANGE(0x804040, 0x804041) AM_WRITE_LEGACY(cps2_eeprom_port_w) /* EEPROM */
|
||||||
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITENOP /* Unknown (reset once on startup) */
|
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITENOP /* Unknown (reset once on startup) */
|
||||||
AM_RANGE(0x8040b0, 0x8040b3) AM_READ_LEGACY(kludge_r) /* unknown (xmcotaj hangs if this is 0) */
|
AM_RANGE(0x8040b0, 0x8040b3) AM_READ_LEGACY(kludge_r) /* unknown (xmcotaj hangs if this is 0) */
|
||||||
@ -850,7 +850,7 @@ static ADDRESS_MAP_START( dead_cps2_map, AS_PROGRAM, 16, cps_state )
|
|||||||
AM_RANGE(0x662020, 0x662021) AM_RAM /* Network adapter related, accessed in SSF2TB */
|
AM_RANGE(0x662020, 0x662021) AM_RAM /* Network adapter related, accessed in SSF2TB */
|
||||||
AM_RANGE(0x660000, 0x663fff) AM_RAM /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */
|
AM_RANGE(0x660000, 0x663fff) AM_RAM /* When bit 14 of 0x804030 equals 0 this space is available. Many games store highscores and other info here if available. */
|
||||||
AM_RANGE(0x664000, 0x664001) AM_RAM /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */
|
AM_RANGE(0x664000, 0x664001) AM_RAM /* Unknown - Only used if 0x660000-0x663fff available (could be RAM enable?) */
|
||||||
AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE(m_objram1) /* Object RAM, no game seems to use it directly */
|
AM_RANGE(0x700000, 0x701fff) AM_WRITE(cps2_objram1_w) AM_BASE(m_objram1) /* Object RAM, no game seems to use it directly */
|
||||||
AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* Object RAM */
|
AM_RANGE(0x708000, 0x709fff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* Object RAM */
|
||||||
AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
AM_RANGE(0x70a000, 0x70bfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
||||||
AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
AM_RANGE(0x70c000, 0x70dfff) AM_READWRITE(cps2_objram2_r, cps2_objram2_w) AM_BASE(m_objram2) /* mirror */
|
||||||
@ -860,7 +860,7 @@ static ADDRESS_MAP_START( dead_cps2_map, AS_PROGRAM, 16, cps_state )
|
|||||||
AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0") /* IN0 */
|
AM_RANGE(0x804000, 0x804001) AM_READ_PORT("IN0") /* IN0 */
|
||||||
AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */
|
AM_RANGE(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */
|
||||||
AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2") /* IN2 + EEPROM */
|
AM_RANGE(0x804020, 0x804021) AM_READ_PORT("IN2") /* IN2 + EEPROM */
|
||||||
AM_RANGE(0x804030, 0x804031) AM_READ_LEGACY(cps2_qsound_volume_r) /* Master volume. Also when bit 14=0 addon memory is present, when bit 15=0 network adapter present. */
|
AM_RANGE(0x804030, 0x804031) AM_READ_LEGACY(cps2_qsound_volume_r) /* Master volume. Also when bit 14=0 addon memory is present, when bit 15=0 network adapter present. */
|
||||||
AM_RANGE(0x804040, 0x804041) AM_WRITE_LEGACY(cps2_eeprom_port_w) /* EEPROM */
|
AM_RANGE(0x804040, 0x804041) AM_WRITE_LEGACY(cps2_eeprom_port_w) /* EEPROM */
|
||||||
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITENOP /* Unknown (reset once on startup) */
|
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITENOP /* Unknown (reset once on startup) */
|
||||||
AM_RANGE(0x8040b0, 0x8040b3) AM_READ_LEGACY(kludge_r) /* unknown (xmcotaj hangs if this is 0) */
|
AM_RANGE(0x8040b0, 0x8040b3) AM_READ_LEGACY(kludge_r) /* unknown (xmcotaj hangs if this is 0) */
|
||||||
|
@ -3530,7 +3530,7 @@ static WRITE8_HANDLER( mjflove_coincounter_w )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static ADDRESS_MAP_START( mjflove_portmap, AS_IO, 8, dynax_state ) // 16 bit I/O
|
static ADDRESS_MAP_START( mjflove_portmap, AS_IO, 8, dynax_state ) // 16 bit I/O
|
||||||
AM_RANGE(0x0010, 0x0010) AM_READ_LEGACY(hanakanz_rand_r) AM_MIRROR(0xff00)
|
AM_RANGE(0x0010, 0x0010) AM_READ_LEGACY(hanakanz_rand_r) AM_MIRROR(0xff00)
|
||||||
AM_RANGE(0x001c, 0x001c) AM_READ_PORT("DSW2") AM_MIRROR(0xff00)
|
AM_RANGE(0x001c, 0x001c) AM_READ_PORT("DSW2") AM_MIRROR(0xff00)
|
||||||
AM_RANGE(0x001e, 0x001e) AM_WRITE_LEGACY(hanakanz_keyb_w) AM_MIRROR(0xff00)
|
AM_RANGE(0x001e, 0x001e) AM_WRITE_LEGACY(hanakanz_keyb_w) AM_MIRROR(0xff00)
|
||||||
|
@ -196,7 +196,7 @@ WRITE32_MEMBER(djmain_state::v_ctrl_w)
|
|||||||
mem_mask >>= 16;
|
mem_mask >>= 16;
|
||||||
COMBINE_DATA(&m_v_ctrl);
|
COMBINE_DATA(&m_v_ctrl);
|
||||||
|
|
||||||
if (m_pending_vb_int && !(!(m_v_ctrl & 0x8000))) // #define DISABLE_VB_INT (!(state->m_v_ctrl & 0x8000))
|
if (m_pending_vb_int && !(!(m_v_ctrl & 0x8000))) // #define DISABLE_VB_INT (!(state->m_v_ctrl & 0x8000))
|
||||||
{
|
{
|
||||||
m_pending_vb_int = 0;
|
m_pending_vb_int = 0;
|
||||||
cputag_set_input_line(machine(), "maincpu", M68K_IRQ_4, HOLD_LINE);
|
cputag_set_input_line(machine(), "maincpu", M68K_IRQ_4, HOLD_LINE);
|
||||||
|
@ -778,14 +778,14 @@ static ADDRESS_MAP_START( dkong_map, AS_PROGRAM, 8, dkong_state )
|
|||||||
AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(radarscp_grid_color_w)/* IN1 */
|
AM_RANGE(0x7c80, 0x7c80) AM_READ_PORT("IN1") AM_WRITE(radarscp_grid_color_w)/* IN1 */
|
||||||
|
|
||||||
AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r) /* IN2 */
|
AM_RANGE(0x7d00, 0x7d00) AM_READ(dkong_in2_r) /* IN2 */
|
||||||
AM_RANGE(0x7d00, 0x7d07) AM_DEVWRITE_LEGACY("ls259.6h", latch8_bit0_w) /* Sound signals */
|
AM_RANGE(0x7d00, 0x7d07) AM_DEVWRITE_LEGACY("ls259.6h", latch8_bit0_w) /* Sound signals */
|
||||||
|
|
||||||
AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW0") AM_WRITE_LEGACY(dkong_audio_irq_w) /* DSW0 */
|
AM_RANGE(0x7d80, 0x7d80) AM_READ_PORT("DSW0") AM_WRITE_LEGACY(dkong_audio_irq_w) /* DSW0 */
|
||||||
AM_RANGE(0x7d81, 0x7d81) AM_WRITE(radarscp_grid_enable_w)
|
AM_RANGE(0x7d81, 0x7d81) AM_WRITE(radarscp_grid_enable_w)
|
||||||
AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w)
|
AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w)
|
||||||
AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */
|
AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */
|
||||||
AM_RANGE(0x7d84, 0x7d84) AM_WRITE(nmi_mask_w)
|
AM_RANGE(0x7d84, 0x7d84) AM_WRITE(nmi_mask_w)
|
||||||
AM_RANGE(0x7d85, 0x7d85) AM_DEVWRITE_LEGACY("dma8257", p8257_drq_w) /* P8257 ==> /DRQ0 /DRQ1 */
|
AM_RANGE(0x7d85, 0x7d85) AM_DEVWRITE_LEGACY("dma8257", p8257_drq_w) /* P8257 ==> /DRQ0 /DRQ1 */
|
||||||
AM_RANGE(0x7d86, 0x7d87) AM_WRITE(dkong_palettebank_w)
|
AM_RANGE(0x7d86, 0x7d87) AM_WRITE(dkong_palettebank_w)
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
@ -52,8 +52,8 @@ static ADDRESS_MAP_START( gaminator_map, AS_PROGRAM, 32, gaminator_state )
|
|||||||
/* standard VGA */
|
/* standard VGA */
|
||||||
// AM_RANGE(0x40000000, 0x40000fff) AM_RAM // regs
|
// AM_RANGE(0x40000000, 0x40000fff) AM_RAM // regs
|
||||||
AM_RANGE(0x44000000, 0x4401ffff) AM_RAM // VRAM
|
AM_RANGE(0x44000000, 0x4401ffff) AM_RAM // VRAM
|
||||||
// AM_RANGE(0x44000000, 0x44007fff) AM_RAM AM_BASE(m_tmapram1) // puts strings here, looks almost like a tilemap, but where are the tiles?
|
// AM_RANGE(0x44000000, 0x44007fff) AM_RAM AM_BASE(m_tmapram1) // puts strings here, looks almost like a tilemap, but where are the tiles?
|
||||||
// AM_RANGE(0x440a0000, 0x440a1fff) AM_RAM AM_BASE(m_tmapram2) // beetlem (like above, mirror?)
|
// AM_RANGE(0x440a0000, 0x440a1fff) AM_RAM AM_BASE(m_tmapram2) // beetlem (like above, mirror?)
|
||||||
|
|
||||||
AM_RANGE(0xe0000000, 0xe00001ff) AM_RAM // nvram?
|
AM_RANGE(0xe0000000, 0xe00001ff) AM_RAM // nvram?
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, hyperspt_state )
|
|||||||
AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("vlm", hyperspt_sound_w) /* speech and output control */
|
AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("vlm", hyperspt_sound_w) /* speech and output control */
|
||||||
AM_RANGE(0xe000, 0xe000) AM_DEVWRITE_LEGACY("dac", dac_w)
|
AM_RANGE(0xe000, 0xe000) AM_DEVWRITE_LEGACY("dac", dac_w)
|
||||||
AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */
|
AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */
|
||||||
AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */
|
AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( soundb_map, AS_PROGRAM, 8, hyperspt_state )
|
static ADDRESS_MAP_START( soundb_map, AS_PROGRAM, 8, hyperspt_state )
|
||||||
@ -95,7 +95,7 @@ static ADDRESS_MAP_START( soundb_map, AS_PROGRAM, 8, hyperspt_state )
|
|||||||
AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("hyprolyb_adpcm", hyprolyb_adpcm_w) /* speech and output control */
|
AM_RANGE(0xc000, 0xdfff) AM_DEVWRITE_LEGACY("hyprolyb_adpcm", hyprolyb_adpcm_w) /* speech and output control */
|
||||||
AM_RANGE(0xe000, 0xe000) AM_DEVWRITE_LEGACY("dac", dac_w)
|
AM_RANGE(0xe000, 0xe000) AM_DEVWRITE_LEGACY("dac", dac_w)
|
||||||
AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */
|
AM_RANGE(0xe001, 0xe001) AM_WRITE_LEGACY(konami_SN76496_latch_w) /* Loads the snd command into the snd latch */
|
||||||
AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */
|
AM_RANGE(0xe002, 0xe002) AM_DEVWRITE_LEGACY("snsnd", konami_SN76496_w) /* This address triggers the SN chip to read the data port. */
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static INPUT_PORTS_START( hyperspt )
|
static INPUT_PORTS_START( hyperspt )
|
||||||
|
@ -1946,7 +1946,7 @@ WRITE16_MEMBER(igs017_state::lhzb2a_input_select_w)
|
|||||||
static ADDRESS_MAP_START( lhzb2a, AS_PROGRAM, 16, igs017_state )
|
static ADDRESS_MAP_START( lhzb2a, AS_PROGRAM, 16, igs017_state )
|
||||||
AM_RANGE(0x000000, 0x07ffff) AM_ROM
|
AM_RANGE(0x000000, 0x07ffff) AM_ROM
|
||||||
AM_RANGE(0x500000, 0x503fff) AM_RAM
|
AM_RANGE(0x500000, 0x503fff) AM_RAM
|
||||||
// AM_RANGE(0x910000, 0x910003) protection
|
// AM_RANGE(0x910000, 0x910003) protection
|
||||||
AM_RANGE(0xb02000, 0xb02fff) AM_READWRITE( spriteram_lsb_r, spriteram_lsb_w ) AM_BASE( m_spriteram )
|
AM_RANGE(0xb02000, 0xb02fff) AM_READWRITE( spriteram_lsb_r, spriteram_lsb_w ) AM_BASE( m_spriteram )
|
||||||
AM_RANGE(0xb03000, 0xb037ff) AM_RAM_WRITE( lhzb2a_paletteram_w ) AM_SHARE("paletteram")
|
AM_RANGE(0xb03000, 0xb037ff) AM_RAM_WRITE( lhzb2a_paletteram_w ) AM_SHARE("paletteram")
|
||||||
AM_RANGE(0xb04024, 0xb04025) AM_WRITE( video_disable_lsb_w )
|
AM_RANGE(0xb04024, 0xb04025) AM_WRITE( video_disable_lsb_w )
|
||||||
@ -1990,8 +1990,8 @@ WRITE16_MEMBER(igs017_state::slqz2_magic_w)
|
|||||||
okim6295_device *oki = machine().device<okim6295_device>("oki");
|
okim6295_device *oki = machine().device<okim6295_device>("oki");
|
||||||
oki->set_bank_base((data & 0x01) ? 0x40000 : 0);
|
oki->set_bank_base((data & 0x01) ? 0x40000 : 0);
|
||||||
|
|
||||||
// m_hopper = data & 0x20; // hopper motor
|
// m_hopper = data & 0x20; // hopper motor
|
||||||
// coin_counter_w(machine(), 1, data & 0x40); // coin out counter
|
// coin_counter_w(machine(), 1, data & 0x40); // coin out counter
|
||||||
coin_counter_w(machine(), 0, data & 0x80); // coin in counter
|
coin_counter_w(machine(), 0, data & 0x80); // coin in counter
|
||||||
|
|
||||||
if ( data & 0x7e )
|
if ( data & 0x7e )
|
||||||
@ -3196,7 +3196,7 @@ static MACHINE_CONFIG_START( lhzb2a, igs017_state )
|
|||||||
|
|
||||||
MCFG_MACHINE_RESET(lhzb2a)
|
MCFG_MACHINE_RESET(lhzb2a)
|
||||||
|
|
||||||
// MCFG_PPI8255_ADD( "ppi8255", sdmg2_ppi8255_intf )
|
// MCFG_PPI8255_ADD( "ppi8255", sdmg2_ppi8255_intf )
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_SCREEN_ADD("screen", RASTER)
|
MCFG_SCREEN_ADD("screen", RASTER)
|
||||||
|
@ -969,7 +969,7 @@ static void big2_decrypt(running_machine &machine)
|
|||||||
|
|
||||||
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
||||||
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
||||||
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
||||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
||||||
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
||||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||||
@ -1013,7 +1013,7 @@ static void gonefsh2_decrypt(running_machine &machine)
|
|||||||
|
|
||||||
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
||||||
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
||||||
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
||||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
||||||
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
||||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||||
@ -1057,7 +1057,7 @@ static void sddz_decrypt(running_machine &machine)
|
|||||||
|
|
||||||
if ((i & 0x040080) != 0x000080) x ^= 0x0001;
|
if ((i & 0x040080) != 0x000080) x ^= 0x0001;
|
||||||
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
||||||
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
||||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
||||||
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
||||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||||
@ -1101,7 +1101,7 @@ static void lhzb3_decrypt(running_machine &machine)
|
|||||||
|
|
||||||
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
||||||
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
if ((i & 0x004008) == 0x004008) x ^= 0x0002;
|
||||||
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
||||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
||||||
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
|
||||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||||
@ -1144,10 +1144,10 @@ static void mgfx_decrypt(running_machine &machine)
|
|||||||
UINT16 x = src[i];
|
UINT16 x = src[i];
|
||||||
|
|
||||||
if ((i & 0x040080) != 0x000080) x ^= 0x0001;
|
if ((i & 0x040080) != 0x000080) x ^= 0x0001;
|
||||||
// if ((i & 0x084008) == 0x084008) x ^= 0x0002;
|
// if ((i & 0x084008) == 0x084008) x ^= 0x0002;
|
||||||
if ((i & 0x000030) == 0x000010) x ^= 0x0004;
|
if ((i & 0x000030) == 0x000010) x ^= 0x0004;
|
||||||
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
|
||||||
// if ((i & 0x048100) == 0x048000) x ^= 0x0010;
|
// if ((i & 0x048100) == 0x048000) x ^= 0x0010;
|
||||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||||
if ((i & 0x011800) != 0x010000) x ^= 0x0040;
|
if ((i & 0x011800) != 0x010000) x ^= 0x0040;
|
||||||
if ((i & 0x004820) == 0x004820) x ^= 0x0080;
|
if ((i & 0x004820) == 0x004820) x ^= 0x0080;
|
||||||
@ -1188,10 +1188,10 @@ static void lhzb4_decrypt(running_machine &machine)
|
|||||||
UINT16 x = src[i];
|
UINT16 x = src[i];
|
||||||
|
|
||||||
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
|
||||||
// if ((i & 0x084008) == 0x084008) x ^= 0x0002;
|
// if ((i & 0x084008) == 0x084008) x ^= 0x0002;
|
||||||
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
|
||||||
if ((i & 0x000042) != 0x000042) x ^= 0x0008;
|
if ((i & 0x000042) != 0x000042) x ^= 0x0008;
|
||||||
// if ((i & 0x048100) == 0x048000) x ^= 0x0010;
|
// if ((i & 0x048100) == 0x048000) x ^= 0x0010;
|
||||||
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
|
||||||
if ((i & 0x011800) != 0x010000) x ^= 0x0040;
|
if ((i & 0x011800) != 0x010000) x ^= 0x0040;
|
||||||
if ((i & 0x000820) == 0x000820) x ^= 0x0080;
|
if ((i & 0x000820) == 0x000820) x ^= 0x0080;
|
||||||
@ -1206,7 +1206,7 @@ static void lhzb4_decrypt(running_machine &machine)
|
|||||||
/*
|
/*
|
||||||
static DRIVER_INIT( igs_m027 )
|
static DRIVER_INIT( igs_m027 )
|
||||||
{
|
{
|
||||||
pgm_create_dummy_internal_arm_region(machine);
|
pgm_create_dummy_internal_arm_region(machine);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1219,7 +1219,7 @@ static ADDRESS_MAP_START( gx_type3_map, AS_PROGRAM, 32, konamigx_state )
|
|||||||
//AM_RANGE(0xe20000, 0xe20003) AM_WRITENOP
|
//AM_RANGE(0xe20000, 0xe20003) AM_WRITENOP
|
||||||
AM_RANGE(0xe40000, 0xe40003) AM_WRITE(konamigx_type3_psac2_bank_w) AM_BASE_LEGACY(&konamigx_type3_psac2_bank)
|
AM_RANGE(0xe40000, 0xe40003) AM_WRITE(konamigx_type3_psac2_bank_w) AM_BASE_LEGACY(&konamigx_type3_psac2_bank)
|
||||||
AM_RANGE(0xe60000, 0xe60fff) AM_RAM AM_BASE_LEGACY((UINT32**)&K053936_0_linectrl)
|
AM_RANGE(0xe60000, 0xe60fff) AM_RAM AM_BASE_LEGACY((UINT32**)&K053936_0_linectrl)
|
||||||
AM_RANGE(0xe80000, 0xe83fff) AM_RAM AM_SHARE("paletteram") // main monitor palette
|
AM_RANGE(0xe80000, 0xe83fff) AM_RAM AM_SHARE("paletteram") // main monitor palette
|
||||||
AM_RANGE(0xea0000, 0xea3fff) AM_RAM AM_BASE_LEGACY(&gx_subpaletteram32)
|
AM_RANGE(0xea0000, 0xea3fff) AM_RAM AM_BASE_LEGACY(&gx_subpaletteram32)
|
||||||
AM_RANGE(0xec0000, 0xec0003) AM_READ(type3_sync_r)
|
AM_RANGE(0xec0000, 0xec0003) AM_READ(type3_sync_r)
|
||||||
//AM_RANGE(0xf00000, 0xf07fff) AM_RAM
|
//AM_RANGE(0xf00000, 0xf07fff) AM_RAM
|
||||||
|
@ -77,7 +77,7 @@ public:
|
|||||||
: driver_device(mconfig, type, tag),
|
: driver_device(mconfig, type, tag),
|
||||||
m_maincpu(*this, "maincpu"),
|
m_maincpu(*this, "maincpu"),
|
||||||
m_dacl(*this, "dacl"),
|
m_dacl(*this, "dacl"),
|
||||||
m_dacr(*this, "dacr")
|
m_dacr(*this, "dacr")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
UINT16 m_vdp_address_low;
|
UINT16 m_vdp_address_low;
|
||||||
@ -514,7 +514,7 @@ static TIMER_DEVICE_CALLBACK( littlerb_scanline )
|
|||||||
state->m_sound_pointer_r&=0x3ff;
|
state->m_sound_pointer_r&=0x3ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
// logerror("IRQ\n");
|
// logerror("IRQ\n");
|
||||||
if(scanline == 256)
|
if(scanline == 256)
|
||||||
{
|
{
|
||||||
device_set_input_line(state->m_maincpu, 4, HOLD_LINE);
|
device_set_input_line(state->m_maincpu, 4, HOLD_LINE);
|
||||||
|
@ -348,8 +348,8 @@ READ32_MEMBER(namcos10_state::range_r)
|
|||||||
d16 = data32;
|
d16 = data32;
|
||||||
|
|
||||||
/* This is not entirely correct, but not entirely incorrect either...
|
/* This is not entirely correct, but not entirely incorrect either...
|
||||||
It's also specific to mrdriller2, it seems.
|
It's also specific to mrdriller2, it seems.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
UINT16 dd16 = d16 ^ key;
|
UINT16 dd16 = d16 ^ key;
|
||||||
|
|
||||||
|
@ -362,7 +362,7 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
|
|
||||||
#define CPU2_MEMORY(NAME,ADDR_SPRITE,ADDR_VIDEO1,ADDR_VIDEO2,ADDR_ROM,ADDR_BANK,ADDR_WDOG,ADDR_INT) \
|
#define CPU2_MEMORY(NAME,ADDR_SPRITE,ADDR_VIDEO1,ADDR_VIDEO2,ADDR_ROM,ADDR_BANK,ADDR_WDOG,ADDR_INT) \
|
||||||
static ADDRESS_MAP_START( NAME##_cpu2_map, AS_PROGRAM, 8, namcos86_state ) \
|
static ADDRESS_MAP_START( NAME##_cpu2_map, AS_PROGRAM, 8, namcos86_state ) \
|
||||||
AM_RANGE(ADDR_SPRITE+0x0000, ADDR_SPRITE+0x1fff) AM_READWRITE(rthunder_spriteram_r,rthunder_spriteram_w) AM_BASE(m_rthunder_spriteram) \
|
AM_RANGE(ADDR_SPRITE+0x0000, ADDR_SPRITE+0x1fff) AM_READWRITE(rthunder_spriteram_r,rthunder_spriteram_w) AM_BASE(m_rthunder_spriteram) \
|
||||||
AM_RANGE(ADDR_VIDEO1+0x0000, ADDR_VIDEO1+0x1fff) AM_READWRITE(rthunder_videoram1_r,rthunder_videoram1_w) \
|
AM_RANGE(ADDR_VIDEO1+0x0000, ADDR_VIDEO1+0x1fff) AM_READWRITE(rthunder_videoram1_r,rthunder_videoram1_w) \
|
||||||
AM_RANGE(ADDR_VIDEO2+0x0000, ADDR_VIDEO2+0x1fff) AM_READWRITE(rthunder_videoram2_r,rthunder_videoram2_w) \
|
AM_RANGE(ADDR_VIDEO2+0x0000, ADDR_VIDEO2+0x1fff) AM_READWRITE(rthunder_videoram2_r,rthunder_videoram2_w) \
|
||||||
|
@ -39,10 +39,10 @@ public:
|
|||||||
UINT8* m_flash_region;
|
UINT8* m_flash_region;
|
||||||
|
|
||||||
DECLARE_READ32_MEMBER(nexus3d_unk_r);
|
DECLARE_READ32_MEMBER(nexus3d_unk_r);
|
||||||
// DECLARE_READ32_MEMBER(nexus3d_unk2_r);
|
// DECLARE_READ32_MEMBER(nexus3d_unk2_r);
|
||||||
// DECLARE_READ32_MEMBER(nexus3d_unk3_r);
|
// DECLARE_READ32_MEMBER(nexus3d_unk3_r);
|
||||||
// DECLARE_WRITE32_MEMBER(nexus3d_unk2_w);
|
// DECLARE_WRITE32_MEMBER(nexus3d_unk2_w);
|
||||||
// DECLARE_WRITE32_MEMBER(nexus3d_unk3_w);
|
// DECLARE_WRITE32_MEMBER(nexus3d_unk3_w);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ static WRITE8_DEVICE_HANDLER( spc_ram_100_w )
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( spc_mem, AS_PROGRAM, 8, nss_state )
|
static ADDRESS_MAP_START( spc_mem, AS_PROGRAM, 8, nss_state )
|
||||||
AM_RANGE(0x0000, 0x00ef) AM_DEVREADWRITE_LEGACY("spc700", spc_ram_r, spc_ram_w) /* lower 32k ram */
|
AM_RANGE(0x0000, 0x00ef) AM_DEVREADWRITE_LEGACY("spc700", spc_ram_r, spc_ram_w) /* lower 32k ram */
|
||||||
AM_RANGE(0x00f0, 0x00ff) AM_DEVREADWRITE_LEGACY("spc700", spc_io_r, spc_io_w) /* spc io */
|
AM_RANGE(0x00f0, 0x00ff) AM_DEVREADWRITE_LEGACY("spc700", spc_io_r, spc_io_w) /* spc io */
|
||||||
AM_RANGE(0x0100, 0xffff) AM_DEVWRITE_LEGACY("spc700", spc_ram_100_w)
|
AM_RANGE(0x0100, 0xffff) AM_DEVWRITE_LEGACY("spc700", spc_ram_100_w)
|
||||||
AM_RANGE(0x0100, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
|
AM_RANGE(0x0100, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
|
||||||
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)
|
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)
|
||||||
|
@ -221,8 +221,8 @@ ADDRESS_MAP_END
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( quizshow_io_map, AS_IO, 8, quizshow_state )
|
static ADDRESS_MAP_START( quizshow_io_map, AS_IO, 8, quizshow_state )
|
||||||
ADDRESS_MAP_UNMAP_HIGH
|
ADDRESS_MAP_UNMAP_HIGH
|
||||||
// AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_NOP // unused
|
// AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_NOP // unused
|
||||||
// AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_NOP // unused
|
// AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_NOP // unused
|
||||||
AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(quizshow_tape_signal_r)
|
AM_RANGE(S2650_SENSE_PORT, S2650_SENSE_PORT) AM_READ(quizshow_tape_signal_r)
|
||||||
AM_RANGE(S2650_FO_PORT, S2650_FO_PORT) AM_RAM AM_BASE(m_fo_state)
|
AM_RANGE(S2650_FO_PORT, S2650_FO_PORT) AM_RAM AM_BASE(m_fo_state)
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
@ -115,7 +115,7 @@ static ADDRESS_MAP_START( rockrage_map, AS_PROGRAM, 8, rockrage_state )
|
|||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( rockrage_sound_map, AS_PROGRAM, 8, rockrage_state )
|
static ADDRESS_MAP_START( rockrage_sound_map, AS_PROGRAM, 8, rockrage_state )
|
||||||
AM_RANGE(0x2000, 0x2000) AM_DEVWRITE_LEGACY("vlm", vlm5030_data_w) /* VLM5030 */
|
AM_RANGE(0x2000, 0x2000) AM_DEVWRITE_LEGACY("vlm", vlm5030_data_w) /* VLM5030 */
|
||||||
AM_RANGE(0x3000, 0x3000) AM_DEVREAD_LEGACY("vlm", rockrage_VLM5030_busy_r) /* VLM5030 */
|
AM_RANGE(0x3000, 0x3000) AM_DEVREAD_LEGACY("vlm", rockrage_VLM5030_busy_r) /* VLM5030 */
|
||||||
AM_RANGE(0x4000, 0x4000) AM_DEVWRITE_LEGACY("vlm", rockrage_speech_w) /* VLM5030 */
|
AM_RANGE(0x4000, 0x4000) AM_DEVWRITE_LEGACY("vlm", rockrage_speech_w) /* VLM5030 */
|
||||||
AM_RANGE(0x5000, 0x5000) AM_READ(soundlatch_r) /* soundlatch_r */
|
AM_RANGE(0x5000, 0x5000) AM_READ(soundlatch_r) /* soundlatch_r */
|
||||||
|
@ -142,7 +142,7 @@ static WRITE8_DEVICE_HANDLER( spc_ram_100_w )
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( spc_mem, AS_PROGRAM, 8, snes_state )
|
static ADDRESS_MAP_START( spc_mem, AS_PROGRAM, 8, snes_state )
|
||||||
AM_RANGE(0x0000, 0x00ef) AM_DEVREADWRITE_LEGACY("spc700", spc_ram_r, spc_ram_w) /* lower 32k ram */
|
AM_RANGE(0x0000, 0x00ef) AM_DEVREADWRITE_LEGACY("spc700", spc_ram_r, spc_ram_w) /* lower 32k ram */
|
||||||
AM_RANGE(0x00f0, 0x00ff) AM_DEVREADWRITE_LEGACY("spc700", spc_io_r, spc_io_w) /* spc io */
|
AM_RANGE(0x00f0, 0x00ff) AM_DEVREADWRITE_LEGACY("spc700", spc_io_r, spc_io_w) /* spc io */
|
||||||
AM_RANGE(0x0100, 0xffff) AM_DEVWRITE_LEGACY("spc700", spc_ram_100_w)
|
AM_RANGE(0x0100, 0xffff) AM_DEVWRITE_LEGACY("spc700", spc_ram_100_w)
|
||||||
AM_RANGE(0x0100, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
|
AM_RANGE(0x0100, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
|
||||||
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)
|
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)
|
||||||
|
@ -299,7 +299,7 @@ static WRITE8_DEVICE_HANDLER( spc_ram_100_w )
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( spc_mem, AS_PROGRAM, 8, snesb_state )
|
static ADDRESS_MAP_START( spc_mem, AS_PROGRAM, 8, snesb_state )
|
||||||
AM_RANGE(0x0000, 0x00ef) AM_DEVREADWRITE_LEGACY("spc700", spc_ram_r, spc_ram_w) /* lower 32k ram */
|
AM_RANGE(0x0000, 0x00ef) AM_DEVREADWRITE_LEGACY("spc700", spc_ram_r, spc_ram_w) /* lower 32k ram */
|
||||||
AM_RANGE(0x00f0, 0x00ff) AM_DEVREADWRITE_LEGACY("spc700", spc_io_r, spc_io_w) /* spc io */
|
AM_RANGE(0x00f0, 0x00ff) AM_DEVREADWRITE_LEGACY("spc700", spc_io_r, spc_io_w) /* spc io */
|
||||||
AM_RANGE(0x0100, 0xffff) AM_DEVWRITE_LEGACY("spc700", spc_ram_100_w)
|
AM_RANGE(0x0100, 0xffff) AM_DEVWRITE_LEGACY("spc700", spc_ram_100_w)
|
||||||
AM_RANGE(0x0100, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
|
AM_RANGE(0x0100, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
|
||||||
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)
|
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)
|
||||||
|
@ -412,7 +412,7 @@ READ16_MEMBER(ssv_state::fake_r){ return ssv_scroll[offset]; }
|
|||||||
AM_RANGE(0x160000, 0x17ffff) AM_RAM /* */ \
|
AM_RANGE(0x160000, 0x17ffff) AM_RAM /* */ \
|
||||||
AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r ) /* Vblank? */ \
|
AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r ) /* Vblank? */ \
|
||||||
/**/AM_RANGE(0x1c0002, 0x1c007f) AM_READONLY /* Scroll */ \
|
/**/AM_RANGE(0x1c0002, 0x1c007f) AM_READONLY /* Scroll */ \
|
||||||
AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_BASE(m_scroll) /* Scroll */ \
|
AM_RANGE(0x1c0000, 0x1c007f) AM_WRITE(ssv_scroll_w) AM_BASE(m_scroll) /* Scroll */ \
|
||||||
AM_RANGE(0x210002, 0x210003) AM_READ_PORT("DSW1") \
|
AM_RANGE(0x210002, 0x210003) AM_READ_PORT("DSW1") \
|
||||||
AM_RANGE(0x210004, 0x210005) AM_READ_PORT("DSW2") \
|
AM_RANGE(0x210004, 0x210005) AM_READ_PORT("DSW2") \
|
||||||
AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1") \
|
AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1") \
|
||||||
|
@ -397,7 +397,7 @@ static ADDRESS_MAP_START( airsys_map, AS_PROGRAM, 16, taitoair_state )
|
|||||||
AM_RANGE(0x000000, 0x0bffff) AM_ROM
|
AM_RANGE(0x000000, 0x0bffff) AM_ROM
|
||||||
AM_RANGE(0x0c0000, 0x0cffff) AM_RAM AM_BASE(m_m68000_mainram)
|
AM_RANGE(0x0c0000, 0x0cffff) AM_RAM AM_BASE(m_m68000_mainram)
|
||||||
AM_RANGE(0x140000, 0x140001) AM_WRITE(system_control_w) /* Pause the TMS32025 */
|
AM_RANGE(0x140000, 0x140001) AM_WRITE(system_control_w) /* Pause the TMS32025 */
|
||||||
AM_RANGE(0x180000, 0x187fff) AM_RAM_WRITE(airsys_gradram_w) AM_BASE(m_gradram) /* "gradiation ram (0/1)" */
|
AM_RANGE(0x180000, 0x187fff) AM_RAM_WRITE(airsys_gradram_w) AM_BASE(m_gradram) /* "gradiation ram (0/1)" */
|
||||||
AM_RANGE(0x188000, 0x189fff) AM_MIRROR(0x2000) AM_RAM_WRITE(airsys_paletteram16_w) AM_BASE(m_paletteram)
|
AM_RANGE(0x188000, 0x189fff) AM_MIRROR(0x2000) AM_RAM_WRITE(airsys_paletteram16_w) AM_BASE(m_paletteram)
|
||||||
AM_RANGE(0x800000, 0x820fff) AM_DEVREADWRITE_LEGACY("tc0080vco", tc0080vco_word_r, tc0080vco_word_w) /* tilemaps, sprites */
|
AM_RANGE(0x800000, 0x820fff) AM_DEVREADWRITE_LEGACY("tc0080vco", tc0080vco_word_r, tc0080vco_word_w) /* tilemaps, sprites */
|
||||||
AM_RANGE(0x906000, 0x906007) AM_RAM // DMA?
|
AM_RANGE(0x906000, 0x906007) AM_RAM // DMA?
|
||||||
|
@ -659,7 +659,7 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, wgp_state )
|
|||||||
AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_SHARE("paletteram")
|
AM_RANGE(0x700000, 0x701fff) AM_RAM_WRITE(paletteram16_RRRRGGGGBBBBxxxx_word_w) AM_SHARE("paletteram")
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( cpu2_map, AS_PROGRAM, 16 /* LAN areas not mapped... */, wgp_state )
|
static ADDRESS_MAP_START( cpu2_map, AS_PROGRAM, 16 /* LAN areas not mapped... */, wgp_state )
|
||||||
AM_RANGE(0x000000, 0x03ffff) AM_ROM
|
AM_RANGE(0x000000, 0x03ffff) AM_ROM
|
||||||
AM_RANGE(0x100000, 0x103fff) AM_RAM
|
AM_RANGE(0x100000, 0x103fff) AM_RAM
|
||||||
AM_RANGE(0x140000, 0x143fff) AM_READWRITE(sharedram_r,sharedram_w)
|
AM_RANGE(0x140000, 0x143fff) AM_READWRITE(sharedram_r,sharedram_w)
|
||||||
|
@ -80,7 +80,7 @@ WRITE8_MEMBER(chaknpop_state::chaknpop_gfxmode_w)
|
|||||||
int all_dirty = 0;
|
int all_dirty = 0;
|
||||||
|
|
||||||
m_gfxmode = data;
|
m_gfxmode = data;
|
||||||
memory_set_bank(machine(), "bank1", (m_gfxmode & GFX_VRAM_BANK) ? 1 : 0); /* Select 2 banks of 16k */
|
memory_set_bank(machine(), "bank1", (m_gfxmode & GFX_VRAM_BANK) ? 1 : 0); /* Select 2 banks of 16k */
|
||||||
|
|
||||||
if (m_flip_x != (m_gfxmode & GFX_FLIP_X))
|
if (m_flip_x != (m_gfxmode & GFX_FLIP_X))
|
||||||
{
|
{
|
||||||
|
@ -38,4 +38,4 @@
|
|||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
extern const char build_version[];
|
extern const char build_version[];
|
||||||
const char build_version[] = "0.145u5 ("__DATE__")";
|
const char build_version[] = "0.145u6 ("__DATE__")";
|
||||||
|
Loading…
Reference in New Issue
Block a user