Clean-ups and version bump

This commit is contained in:
Angelo Salese 2012-04-08 14:12:02 +00:00
parent 8d66a9445a
commit 35e09dd41c
65 changed files with 249 additions and 249 deletions

View File

@ -763,7 +763,7 @@ void _class :: _name(address_map &map, const device_t &device) \
#define AM_RAM_READ_LEGACY(_read) AM_READ_LEGACY(_read) AM_WRITEONLY
#define AM_RAM_WRITE_LEGACY(_write) AM_READONLY AM_WRITE_LEGACY(_write)
#define AM_RAM_DEVWRITE_LEGACY(_tag, _write) AM_READONLY AM_DEVWRITE_LEGACY(_tag, _write)
#define AM_BASE_SIZE(_base, _size) AM_BASE(_base) AM_SIZE(_size)

View File

@ -26,7 +26,7 @@ READ16_HANDLER( m68307_internal_mbus_r )
return 0x0000;
}
}
return 0xffff;
}

View File

@ -27,7 +27,7 @@ READ16_HANDLER( m68307_internal_serial_r )
case m68307SER_UISR_UIMR:
logerror("%08x m68307_internal_serial_r %08x, (%04x) (UISR - Interrupt Status Register)\n", pc, offset*2,mem_mask);
return space->machine().rand() & 0x87;
default:
logerror("%08x m68307_internal_serial_r %08x, (%04x)\n", pc, offset*2,mem_mask);
break;
@ -52,7 +52,7 @@ WRITE16_HANDLER( m68307_internal_serial_w )
case m68307SER_USR_UCSR:
logerror("%08x m68307_internal_serial_r %08x, (%04x) (UCSR - Clock Select Register)\n", pc, offset*2,mem_mask);
break;
case m68307SER_URB_UTB:
logerror("%08x m68307_internal_serial_w %08x, %04x (%04x) (UTB - Transmit Buffer)\n", pc, offset*2,data,mem_mask);
break;

View File

@ -18,7 +18,7 @@ READ16_HANDLER( m68307_internal_sim_r )
{
case m68307SIM_PADAT: return sim->read_padat(space, mem_mask);
case m68307SIM_PBDAT: return sim->read_pbdat(space, mem_mask);
case m68307SIM_LICR2: return (sim->m_licr2);
case m68307SIM_BR0: return (sim->m_br[0]);
@ -97,7 +97,7 @@ WRITE16_HANDLER( m68307_internal_sim_w )
logerror("%08x m68307_internal_sim_w %08x, %04x (%04x) (Peripheral Interrupt Control Register - PICR)\n", pc, offset*2,data,mem_mask);
sim->write_picr(data,mem_mask);
break;
case m68307SIM_PIVR:
logerror("%08x m68307_internal_sim_w %08x, %04x (%04x) (Peripheral Interrupt Vector Register - PIVR)\n", pc, offset*2,data,mem_mask);
sim->write_pivr(data,mem_mask);

View File

@ -67,4 +67,4 @@ class m68307_sim
void write_pivr(UINT16 data, UINT16 mem_mask);
void reset(void);
};
};

View File

@ -22,13 +22,13 @@ READ16_HANDLER( m68307_internal_timer_r )
return timer->read_tcn(mem_mask, which);
break;
default:
logerror("%08x m68307_internal_timer_r %08x, (%04x)\n", pc, offset*2,mem_mask);
break;
}
}
return 0x0000;
}
@ -106,7 +106,7 @@ static TIMER_CALLBACK( m68307_timer0_callback )
m68ki_cpu_core* m68k = m68k_get_safe_token(dev);
m68307_single_timer* tptr = &m68k->m68307TIMER->singletimer[0];
tptr->regs[m68307TIMER_TMR] |= 0x2;
m68307_timer0_interrupt(dev);
tptr->mametimer->adjust(m68k->device->cycles_to_attotime(20000));
@ -118,7 +118,7 @@ static TIMER_CALLBACK( m68307_timer1_callback )
m68ki_cpu_core* m68k = m68k_get_safe_token(dev);
m68307_single_timer* tptr = &m68k->m68307TIMER->singletimer[1];
tptr->regs[m68307TIMER_TMR] |= 0x2;
m68307_timer1_interrupt(dev);
tptr->mametimer->adjust(m68k->device->cycles_to_attotime(20000));
@ -133,7 +133,7 @@ static TIMER_CALLBACK( m68307_wd_timer_callback )
void m68307_timer::init(legacy_cpu_device *device)
{
m68307_single_timer* tptr;
tptr = &singletimer[0];
tptr->mametimer = device->machine().scheduler().timer_alloc(FUNC(m68307_timer0_callback), device);

View File

@ -15,7 +15,7 @@ READ32_HANDLER( m68340_internal_dma_r )
int pc = cpu_get_pc(&space->device());
logerror("%08x m68340_internal_dma_r %08x, (%08x)\n", pc, offset*4,mem_mask);
}
return 0x00000000;
}
@ -24,7 +24,7 @@ WRITE32_HANDLER( m68340_internal_dma_w )
m68ki_cpu_core *m68k = m68k_get_safe_token(&space->device());
m68340_dma* dma = m68k->m68340DMA;
assert(dma != NULL);
if (dma)
{
int pc = cpu_get_pc(&space->device());

View File

@ -9,7 +9,7 @@ READ32_HANDLER( m68340_internal_sim_r )
m68ki_cpu_core *m68k = m68k_get_safe_token(&space->device());
m68340_sim* sim = m68k->m68340SIM;
assert(sim != NULL);
if (sim)
{
int pc = cpu_get_pc(&space->device());

View File

@ -16,7 +16,7 @@ READ32_HANDLER( m68340_internal_timer_r )
int pc = cpu_get_pc(&space->device());
logerror("%08x m68340_internal_timer_r %08x, (%08x)\n", pc, offset*4,mem_mask);
}
return 0x00000000;
}

View File

@ -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)
{
// 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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
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);
}
@ -1956,7 +1956,7 @@ void m68307_timer1_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 vector = (m68k->m68307SERIAL->m_uivr);
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)
{
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 vector = (m68k->m68307SIM->m_pivr & 0x00f0) | 0xd;
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)
{
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 vector = (m68k->m68307SIM->m_pivr & 0x00f0) | 0x9;
m68k->m68307SIM->m_licr2 |= 0x8;
@ -2050,10 +2050,10 @@ static WRITE16_HANDLER( m68307_internal_base_w )
base = (m68k->m68307_base & 0x0fff) << 12;
//mask = (m68k->m68307_base & 0xe000) >> 13;
//if ( m68k->m68307_base & 0x1000 ) mask |= 7;
m68k->internal->unmap_readwrite(base+0x000, base+0x04f);
m68k->internal->unmap_readwrite(base+0x100, base+0x11f);
m68k->internal->unmap_readwrite(base+0x120, base+0x13f);
m68k->internal->unmap_readwrite(base+0x140, base+0x149);
m68k->internal->unmap_readwrite(base+0x000, base+0x04f);
m68k->internal->unmap_readwrite(base+0x100, base+0x11f);
m68k->internal->unmap_readwrite(base+0x120, base+0x13f);
m68k->internal->unmap_readwrite(base+0x140, base+0x149);
/* store new base address */
COMBINE_DATA(&m68k->m68307_base);
@ -2061,7 +2061,7 @@ static WRITE16_HANDLER( m68307_internal_base_w )
/* install new internal handler */
base = (m68k->m68307_base & 0x0fff) << 12;
//mask = (m68k->m68307_base & 0xe000) >> 13;
//if ( m68k->m68307_base & 0x1000 ) mask |= 7;
//if ( m68k->m68307_base & 0x1000 ) mask |= 7;
m68k->internal->install_legacy_readwrite_handler(base + 0x000, base + 0x04f, FUNC(m68307_internal_sim_r), FUNC(m68307_internal_sim_w));
m68k->internal->install_legacy_readwrite_handler(base + 0x100, base + 0x11f, FUNC(m68307_internal_serial_r), FUNC(m68307_internal_serial_w));
m68k->internal->install_legacy_readwrite_handler(base + 0x120, base + 0x13f, FUNC(m68307_internal_timer_r), FUNC(m68307_internal_timer_w));

View File

@ -292,7 +292,7 @@ protected:
class finder_base
{
friend class device_t;
public:
// construction/destruction
finder_base(device_t &base, const char *tag);
@ -344,7 +344,7 @@ protected:
// internal state
_DeviceClass *m_target;
};
// optional device finder
template<class _DeviceClass>
class optional_device : public device_finder<_DeviceClass, false>
@ -360,7 +360,7 @@ protected:
public:
required_device(device_t &base, const char *tag) : device_finder<_DeviceClass, true>(base, tag) { }
};
// shared pointer finder template
template<typename _PointerType, bool _Required>
class shared_ptr_finder : public finder_base
@ -373,7 +373,7 @@ protected:
m_bytes(0),
m_allocated(false),
m_width((width != 0) ? width : sizeof(_PointerType) * 8) { }
virtual ~shared_ptr_finder() { if (m_allocated) global_free(m_target); }
// operators to make use transparent
@ -393,7 +393,7 @@ protected:
if (target == 0 && _Required)
throw emu_fatalerror("Unable to find required shared pointer '%s'", this->m_tag);
}
// dynamic allocation of a shared pointer
void allocate(UINT32 entries)
{
@ -414,7 +414,7 @@ protected:
bool m_allocated;
UINT8 m_width;
};
// optional device finder
template<class _PointerType>
class optional_shared_ptr : public shared_ptr_finder<_PointerType, false>

View File

@ -114,7 +114,7 @@ public:
DECLARE_WRITE8_MEMBER( soundlatch2_clear_w );
DECLARE_WRITE8_MEMBER( soundlatch3_clear_w );
DECLARE_WRITE8_MEMBER( soundlatch4_clear_w );
// general palette helpers
void set_color_332(pen_t color, int rshift, int gshift, int bshift, UINT32 data);
void set_color_444(pen_t color, int rshift, int gshift, int bshift, UINT32 data);

View File

@ -51,7 +51,7 @@
const int MAX_DRIVER_NAME_CHARS = 8;
// flags for game drivers
const UINT32 ORIENTATION_MASK = 0x00000007;
const UINT32 ORIENTATION_MASK = 0x00000007;
const UINT32 GAME_NOT_WORKING = 0x00000008;
const UINT32 GAME_UNEMULATED_PROTECTION = 0x00000010; // game's protection not fully emulated
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_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_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_MECHANICAL = 0x00020000; // contains mechanical parts (pinball, redemption games,...)
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)()>
void driver_init_wrapper(running_machine &machine)
{
_DriverClass *object = machine.driver_data<_DriverClass>();
(object->*_Function)();
_DriverClass *object = machine.driver_data<_DriverClass>();
(object->*_Function)();
}
*/

View File

@ -537,7 +537,7 @@ void info_xml_creator::output_rom(device_t &device)
hash_collection hashes(ROM_GETHASHDATA(rom));
if (!hashes.flag(hash_collection::FLAG_NO_DUMP))
merge_name = get_merge_name(hashes);
if (&device != &m_drivlist.config().root_device())
if (&device != &m_drivlist.config().root_device())
merge_name = NULL;
// scan for a BIOS name
bios_name[0] = 0;

View File

@ -1578,7 +1578,7 @@ memory_manager::memory_manager(running_machine &machine)
//**************************************************************************
//-------------------------------------------------
// configure_bank - configure the addresses for a
// configure_bank - configure the addresses for a
// bank
//-------------------------------------------------
@ -1604,7 +1604,7 @@ void memory_manager::configure_bank(device_t &device, const char *tag, int start
//-------------------------------------------------
// configure_bank_decrypted - configure the
// configure_bank_decrypted - configure the
// decrypted addresses for a bank
//-------------------------------------------------
@ -1630,7 +1630,7 @@ void memory_manager::configure_bank_decrypted(device_t &device, const char *tag,
//-------------------------------------------------
// set_bank - select one pre-configured entry to
// set_bank - select one pre-configured entry to
// be the new bank base
//-------------------------------------------------
@ -1697,7 +1697,7 @@ void memory_manager::set_bankptr(device_t &device, const char *tag, void *base)
//-------------------------------------------------
// shared - get a pointer to a shared memory
// shared - get a pointer to a shared memory
// region by tag
//-------------------------------------------------

View File

@ -780,7 +780,7 @@ public:
// dump the internal memory tables to the given file
void dump(FILE *file);
// pointers to a bank pointer (internal usage only)
UINT8 **bank_pointer_addr(UINT8 index, bool decrypted = false) { return decrypted ? &m_bankd_ptr[index] : &m_bank_ptr[index]; }
@ -795,14 +795,14 @@ private:
UINT8 * m_bank_ptr[256]; // array of bank pointers
UINT8 * m_bankd_ptr[256]; // array of decrypted bank pointers
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<address_space> m_spacelist; // list of address spaces
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
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
};

View File

@ -72,7 +72,7 @@ void CLIB_DECL logerror(const char *text,...);
const int SYNC_OFFSET = 0x000; // offset within sector
const int SYNC_NUM_BYTES = 12; // 12 bytes
const int MODE_OFFSET = 0x00f; // offset within sector
const int MODE_OFFSET = 0x00f; // offset within sector
const int ECC_P_OFFSET = 0x81c; // offset within sector
const int ECC_P_NUM_BYTES = 86; // 2 lots of 86
@ -897,7 +897,7 @@ chd_error cdrom_write_metadata(chd_file *chd, const cdrom_toc *toc)
//-------------------------------------------------
// ECC lookup tables
// pre-calculated tables for ECC data calcs
// pre-calculated tables for ECC data calcs
//-------------------------------------------------
static const UINT8 ecclow[256] =
@ -942,10 +942,10 @@ 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
// 86 (*2) ECC P bytes, 24 values represented by
// each
// 86 (*2) ECC P bytes, 24 values represented by
// each
//-------------------------------------------------
static const UINT16 poffsets[ECC_P_NUM_BYTES][ECC_P_COMP] =
@ -1040,10 +1040,10 @@ 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
// 52 (*2) ECC Q bytes, 43 values represented by
// each
// 52 (*2) ECC Q bytes, 43 values represented by
// each
//-------------------------------------------------
static const UINT16 qoffsets[ECC_Q_NUM_BYTES][ECC_Q_COMP] =
@ -1105,7 +1105,7 @@ static const UINT16 qoffsets[ECC_Q_NUM_BYTES][ECC_Q_COMP] =
//-------------------------------------------------
// ecc_source_byte - return data from the sector
// at the given offset, masking anything
// at the given offset, masking anything
// particular to a mode
//-------------------------------------------------
@ -1117,7 +1117,7 @@ inline UINT8 ecc_source_byte(const UINT8 *sector, UINT32 offset)
//-------------------------------------------------
// ecc_compute_bytes - calculate an ECC value
// ecc_compute_bytes - calculate an ECC value
// (P or Q)
//-------------------------------------------------
@ -1150,7 +1150,7 @@ bool ecc_verify(const UINT8 *sector)
if (sector[ECC_P_OFFSET + byte] != val1 || sector[ECC_P_OFFSET + ECC_P_NUM_BYTES + byte] != val2)
return false;
}
// then verify Q bytes
for (int byte = 0; byte < ECC_Q_NUM_BYTES; byte++)
{
@ -1164,7 +1164,7 @@ bool ecc_verify(const UINT8 *sector)
//-------------------------------------------------
// ecc_generate - generate the P and Q ECC codes
// ecc_generate - generate the P and Q ECC codes
// for a sector, overwriting any existing codes
//-------------------------------------------------
@ -1173,7 +1173,7 @@ void ecc_generate(UINT8 *sector)
// first verify P bytes
for (int byte = 0; byte < ECC_P_NUM_BYTES; byte++)
ecc_compute_bytes(sector, poffsets[byte], ECC_P_COMP, sector[ECC_P_OFFSET + byte], sector[ECC_P_OFFSET + ECC_P_NUM_BYTES + byte]);
// then verify Q bytes
for (int byte = 0; byte < ECC_Q_NUM_BYTES; byte++)
ecc_compute_bytes(sector, qoffsets[byte], ECC_Q_COMP, sector[ECC_Q_OFFSET + byte], sector[ECC_Q_OFFSET + ECC_Q_NUM_BYTES + byte]);
@ -1182,7 +1182,7 @@ void ecc_generate(UINT8 *sector)
//-------------------------------------------------
// ecc_clear - erase the ECC P and Q cods to 0
// within a sector
// within a sector
//-------------------------------------------------
void ecc_clear(UINT8 *sector)

View File

@ -55,8 +55,8 @@ extern "C" SRes LzmaDec_Allocate_MAME(CLzmaDec *p, const CLzmaProps *propNew, IS
// GLOBAL VARIABLES
//**************************************************************************
static const UINT8 s_cd_sync_header[12] = { 0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00 };
static const UINT8 s_cd_sync_header[12] = { 0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00 };
//**************************************************************************
@ -342,10 +342,10 @@ public:
UINT32 complen_bytes = (srclen < 65536) ? 2 : 3;
UINT32 ecc_bytes = (frames + 7) / 8;
UINT32 header_bytes = ecc_bytes + complen_bytes;
// clear out destination header
memset(dest, 0, header_bytes);
// copy audio data followed by subcode data
for (UINT32 framenum = 0; framenum < frames; framenum++)
{
@ -361,12 +361,12 @@ public:
ecc_clear(sector);
}
}
// encode the base portion
UINT32 complen = m_base_compressor.compress(&m_buffer[0], frames * CD_MAX_SECTOR_DATA, &dest[header_bytes]);
if (complen >= srclen)
throw CHDERR_COMPRESSION_ERROR;
// write compressed length
dest[ecc_bytes + 0] = complen >> ((complen_bytes - 1) * 8);
dest[ecc_bytes + 1] = complen >> ((complen_bytes - 2) * 8);
@ -411,12 +411,12 @@ public:
UINT32 complen_bytes = (destlen < 65536) ? 2 : 3;
UINT32 ecc_bytes = (frames + 7) / 8;
UINT32 header_bytes = ecc_bytes + complen_bytes;
// extract compressed length of base
UINT32 complen_base = (src[ecc_bytes + 0] << 8) | src[ecc_bytes + 1];
if (complen_bytes > 2)
complen_base = (complen_base << 8) | src[ecc_bytes + 2];
// reset and decode
m_base_decompressor.decompress(&src[header_bytes], complen_base, &m_buffer[0], frames * CD_MAX_SECTOR_DATA);
m_subcode_decompressor.decompress(&src[header_bytes + complen_base], complen - complen_base - header_bytes, &m_buffer[frames * CD_MAX_SECTOR_DATA], frames * CD_MAX_SUBCODE_DATA);

View File

@ -551,7 +551,7 @@ static READ32_HANDLER( cage_io_status_r )
UINT16 cage_main_r(address_space *space)
{
cage_t *state = &cage;
driver_device *drvstate = space->machine().driver_data<driver_device>();
driver_device *drvstate = space->machine().driver_data<driver_device>();
if (LOG_COMM)
logerror("%s:main read data = %04X\n", space->machine().describe_context(), drvstate->soundlatch_word_r(*space, 0, 0));
state->cage_to_cpu_ready = 0;

View File

@ -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)
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(0x100000, 0x10000f) AM_DEVREADWRITE_LEGACY("tc0110pcr", tc0110pcr_word_r, tc0110pcr_step1_word_w)
AM_RANGE(0x200000, 0x203fff) AM_RAM

View File

@ -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(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(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(0x2e01, 0x2e01) AM_READ_PORT("P2")
AM_RANGE(0x2e02, 0x2e02) AM_READ_PORT("P1")

View File

@ -8,8 +8,8 @@
-----------------
This file contains the set lists only, for the actual hardware
emulation see bfm_sc4h.c
This file contains the set lists only, for the actual hardware
emulation see bfm_sc4h.c
*/
@ -22849,7 +22849,7 @@ GAME( 200?, sc4hotprc ,sc4hotpr, sc4, sc4, sc4, ROT0, "BFM","Hot Property (Bellf
GAME( 200?, sc4hotprd ,sc4hotpr, sc4, sc4, sc4, ROT0, "BFM","Hot Property (Bellfruit) (Scorpion 4) (set 5)", GAME_IS_SKELETON_MECHANICAL )
GAME( 200?, sc4hotpre ,sc4hotpr, sc4, sc4, sc4, ROT0, "BFM","Hot Property (Bellfruit) (Scorpion 4) (set 6)", GAME_IS_SKELETON_MECHANICAL )
// is this some kind of reworked version of Hot Property?
// is this some kind of reworked version of Hot Property?
// PR6911 HOT PROPERTY PR6911 HOT PROPERTY SOUNDS11 $$ CASH 'N' BURN
GAME( 200?, sc4cburn ,sc4hotpr, sc4, sc4, sc4, ROT0, "Qps","Cash 'n' Burn (Qps) (Scorpion 4) (set 1)", GAME_IS_SKELETON_MECHANICAL )

View File

@ -21,7 +21,7 @@
-------------------------------
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 cs = m68307_get_cs(state->m_maincpu, offset * 2);
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 )
{
@ -112,10 +112,10 @@ static READ16_HANDLER( sc4_mem_r )
case 0x0050:
return 0x0000;
case 0x0060:
return 0x0000;
case 0x0240:
return 0xffff;
@ -127,7 +127,7 @@ static READ16_HANDLER( sc4_mem_r )
case 0x1010:
return 0x0000;
case 0x1020:
return 0x0000;
@ -153,7 +153,7 @@ static READ16_HANDLER( sc4_mem_r )
case 3:
base = 0xc00000/2;
end = base + 0x20 / 2;
if ((offset>=base) && (offset<end))
{
offset-=base;
@ -194,7 +194,7 @@ static WRITE16_HANDLER( sc4_mem_w )
logerror("%08x maincpu write access offset %08x data %04x mem_mask %04x cs %d (ROM WRITE?!)\n", pc, offset*2, data, mem_mask, cs);
else
logerror("%08x maincpu write access offset %08x data %04x mem_mask %04x cs %d\n", pc, offset*2, data, mem_mask, cs);
break;
case 2:
@ -222,7 +222,7 @@ static WRITE16_HANDLER( sc4_mem_w )
ymz280b_w(state->m_ymz,1, data & 0xff);
break;
default:
logerror("%08x maincpu write access offset %08x data %04x mem_mask %04x cs %d (LAMPS etc.)\n", pc, offset*2, data, mem_mask, cs);
}
@ -236,7 +236,7 @@ static WRITE16_HANDLER( sc4_mem_w )
case 3:
base = 0xc00000/2;
end = base + 0x20 / 2;
if ((offset>=base) && (offset<end))
{
offset-=base;
@ -259,7 +259,7 @@ static WRITE16_HANDLER( sc4_mem_w )
}
static ADDRESS_MAP_START( sc4_map, AS_PROGRAM, 16, sc4_adder4_state )
AM_RANGE(0x0000000, 0xffffff) AM_READWRITE_LEGACY(sc4_mem_r, sc4_mem_w)
AM_RANGE(0x0000000, 0xffffff) AM_READWRITE_LEGACY(sc4_mem_r, sc4_mem_w)
ADDRESS_MAP_END
static ADDRESS_MAP_START( sc4_adder4_map, AS_PROGRAM, 32, sc4_adder4_state )
@ -294,7 +294,7 @@ void bfm_sc4_write_serial_vfd(running_machine &machine, bool cs, bool clock, boo
bfm_sc4_reset_serial_vfd(machine);
state->vfd_old_clock = clock;
state->vfd_enabled = true;
}
}
else
{
// if the clock line changes
@ -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
// 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 & 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)
{
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;
/*
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_E) ) which_int = 3;
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_Q) ) which_int = 1;
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_R) ) which_int = 4;
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==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==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"));
}
}

View File

@ -25,7 +25,7 @@ public:
required_device<cpu_device> m_videocpu;
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:
// driver_device overrides
@ -48,7 +48,7 @@ ADDRESS_MAP_END
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(0x4000, 0x4000) AM_DEVREADWRITE( "tms9928a", tms9928a_device, vram_read, vram_write )
AM_RANGE(0x4001, 0x4001) AM_DEVREADWRITE( "tms9928a", tms9928a_device, register_read, register_write )

View File

@ -604,7 +604,7 @@ static ADDRESS_MAP_START( qsound_main_map, AS_PROGRAM, 16, cps_state )
AM_RANGE(0xff0000, 0xffffff) AM_RAM
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(0x8000, 0xbfff) AM_ROMBANK("bank1") /* banked (contains music data) */
AM_RANGE(0xc000, 0xcfff) AM_RAM AM_BASE(m_qsound_sharedram1)

View File

@ -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(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(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(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 */
@ -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(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */
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(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) */
@ -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(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(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(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 */
@ -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(0x804010, 0x804011) AM_READ_PORT("IN1") /* IN1 */
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(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) */

View File

@ -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(0x001c, 0x001c) AM_READ_PORT("DSW2") AM_MIRROR(0xff00)
AM_RANGE(0x001e, 0x001e) AM_WRITE_LEGACY(hanakanz_keyb_w) AM_MIRROR(0xff00)

View File

@ -196,7 +196,7 @@ WRITE32_MEMBER(djmain_state::v_ctrl_w)
mem_mask >>= 16;
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;
cputag_set_input_line(machine(), "maincpu", M68K_IRQ_4, HOLD_LINE);

View File

@ -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(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(0x7d81, 0x7d81) AM_WRITE(radarscp_grid_enable_w)
AM_RANGE(0x7d82, 0x7d82) AM_WRITE(dkong_flipscreen_w)
AM_RANGE(0x7d83, 0x7d83) AM_WRITE(dkong_spritebank_w) /* 2 PSL Signal */
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)
ADDRESS_MAP_END
@ -3149,7 +3149,7 @@ static DRIVER_INIT( strtheat )
drakton_decrypt_rom(machine, 0x88, 0x1c000, bs[3]);
/* custom handlers supporting Joystick or Steering Wheel */
dkong_state *state = machine.driver_data<dkong_state>();
dkong_state *state = machine.driver_data<dkong_state>();
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x7c00, 0x7c00, read8_delegate(FUNC(dkong_state::strtheat_inputport_0_r),state));
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x7c80, 0x7c80, read8_delegate(FUNC(dkong_state::strtheat_inputport_1_r),state));
}

View File

@ -765,7 +765,7 @@ static WRITE8_HANDLER( explorer_sound_control_w )
static READ8_DEVICE_HANDLER( explorer_sound_latch_r )
{
galaxian_state *state = device->machine().driver_data<galaxian_state>();
cputag_set_input_line(device->machine(), "audiocpu", 0, CLEAR_LINE);
cputag_set_input_line(device->machine(), "audiocpu", 0, CLEAR_LINE);
return state->soundlatch_r(*device->machine().device("audiocpu")->memory().space(AS_PROGRAM), 0);
}
@ -848,7 +848,7 @@ static void monsterz_set_latch(running_machine &machine)
galaxian_state *state = machine.driver_data<galaxian_state>();
UINT8 *rom = machine.region("audiocpu")->base();
state->m_protection_result = rom[0x2000 | (state->m_protection_state & 0x1fff)]; // probably needs a BITSWAP8
// and an irq on the main z80 afterwards
cputag_set_input_line(machine, "maincpu", 0, HOLD_LINE );
}
@ -2491,7 +2491,7 @@ static MACHINE_CONFIG_DERIVED( monsterz, sfx )
MCFG_CPU_PROGRAM_MAP(monsterz_map)
MCFG_PPI8255_RECONFIG( "ppi8255_1", monsterz_ppi8255_1_intf )
/* there are likely other differences too, but those can wait until after protection is sorted out */
MACHINE_CONFIG_END

View File

@ -52,8 +52,8 @@ static ADDRESS_MAP_START( gaminator_map, AS_PROGRAM, 32, gaminator_state )
/* standard VGA */
// AM_RANGE(0x40000000, 0x40000fff) AM_RAM // regs
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(0x440a0000, 0x440a1fff) AM_RAM AM_BASE(m_tmapram2) // beetlem (like above, mirror?)
// 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(0xe0000000, 0xe00001ff) AM_RAM // nvram?

View File

@ -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(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(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
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(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(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
static INPUT_PORTS_START( hyperspt )

View File

@ -1946,7 +1946,7 @@ WRITE16_MEMBER(igs017_state::lhzb2a_input_select_w)
static ADDRESS_MAP_START( lhzb2a, AS_PROGRAM, 16, igs017_state )
AM_RANGE(0x000000, 0x07ffff) AM_ROM
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(0xb03000, 0xb037ff) AM_RAM_WRITE( lhzb2a_paletteram_w ) AM_SHARE("paletteram")
AM_RANGE(0xb04024, 0xb04025) AM_WRITE( video_disable_lsb_w )
@ -1956,7 +1956,7 @@ static ADDRESS_MAP_START( lhzb2a, AS_PROGRAM, 16, igs017_state )
AM_RANGE(0xb0c000, 0xb0ffff) AM_READWRITE( bg_lsb_r, bg_lsb_w ) AM_BASE( m_bg_videoram )
AM_RANGE(0xb10000, 0xb10001) AM_DEVREADWRITE8("oki", okim6295_device, read, write, 0x00ff )
AM_RANGE(0xb12000, 0xb12001) AM_WRITE( lhzb2a_input_select_w )
// Inputs dynamically mapped at xx8000, protection at xx4000 (xx = f0 initially). xx written to xxc000
// Inputs dynamically mapped at xx8000, protection at xx4000 (xx = f0 initially). xx written to xxc000
ADDRESS_MAP_END
@ -1990,8 +1990,8 @@ WRITE16_MEMBER(igs017_state::slqz2_magic_w)
okim6295_device *oki = machine().device<okim6295_device>("oki");
oki->set_bank_base((data & 0x01) ? 0x40000 : 0);
// m_hopper = data & 0x20; // hopper motor
// coin_counter_w(machine(), 1, data & 0x40); // coin out counter
// m_hopper = data & 0x20; // hopper motor
// coin_counter_w(machine(), 1, data & 0x40); // coin out counter
coin_counter_w(machine(), 0, data & 0x80); // coin in counter
if ( data & 0x7e )
@ -3196,7 +3196,7 @@ static MACHINE_CONFIG_START( lhzb2a, igs017_state )
MCFG_MACHINE_RESET(lhzb2a)
// MCFG_PPI8255_ADD( "ppi8255", sdmg2_ppi8255_intf )
// MCFG_PPI8255_ADD( "ppi8255", sdmg2_ppi8255_intf )
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -939,21 +939,21 @@ static void klxyj_decrypt(running_machine &machine)
}
static const UINT8 big2_tab[0x100] = {
0x68, 0x56, 0xC2, 0x54, 0xA2, 0x8C, 0x7B, 0x4F, 0x37, 0xAC, 0x60, 0xF8, 0x24, 0xDF, 0x3E, 0x6B,
0xE2, 0x89, 0x3D, 0xF3, 0x31, 0x83, 0x4A, 0x65, 0x27, 0x98, 0xC5, 0xBF, 0x78, 0x3E, 0x6C, 0x02,
0x07, 0x96, 0x88, 0x4D, 0xAE, 0xA6, 0x56, 0x3A, 0x4A, 0xD5, 0xB8, 0x7E, 0x0B, 0xA7, 0x1D, 0xBC,
0xFA, 0xBA, 0xAD, 0xA9, 0xCB, 0x02, 0xBA, 0x66, 0xE5, 0x41, 0x63, 0x1A, 0xB0, 0xCA, 0x8A, 0xCF,
0x1E, 0x76, 0xF9, 0x8F, 0x7C, 0xE7, 0xD0, 0xC0, 0x7B, 0xFC, 0x32, 0xBC, 0x7A, 0x95, 0x2F, 0xB4,
0x16, 0x88, 0xF5, 0xC6, 0xF4, 0xE3, 0x33, 0x5D, 0xCE, 0x65, 0xCE, 0xCA, 0xBC, 0x37, 0xC8, 0x20,
0xC5, 0xEF, 0x6D, 0x55, 0xA6, 0xC7, 0xBF, 0x96, 0xE1, 0x1A, 0x24, 0xEA, 0x09, 0x20, 0x4E, 0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 0x6D, 0xD8, 0x22, 0x82,
0x1E, 0xA6, 0xFC, 0xFE, 0xE3, 0x8E, 0xB1, 0xB7, 0x0F, 0x32, 0xF1, 0xCF, 0x36, 0xFE, 0x65, 0x8E
};
@ -969,7 +969,7 @@ static void big2_decrypt(running_machine &machine)
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
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 & 0x008100) == 0x008000) x ^= 0x0010;
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 & 0x004008) == 0x004008) x ^= 0x0002;
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
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 & 0x004008) == 0x004008) x ^= 0x0002;
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
if ((i & 0x000242) != 0x000042) x ^= 0x0008;
if ((i & 0x008100) == 0x008000) x ^= 0x0010;
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
@ -1071,21 +1071,21 @@ static void sddz_decrypt(running_machine &machine)
}
static const UINT8 lhzb3_tab[0x100] = {
0x13, 0x45, 0x21, 0xA1, 0x69, 0x9A, 0x05, 0xDA, 0x7D, 0x10, 0xDA, 0x7F, 0x34, 0x9F, 0xF3, 0x64,
0x35, 0xF9, 0x16, 0x1C, 0xD4, 0x60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67, 0x4B, 0xDD, 0xD3, 0x56, 0x9C, 0xB2, 0x09, 0x4E,
0x9B, 0xB1, 0xEE, 0x58, 0x0A, 0xE4, 0x42, 0x56, 0x26, 0x23, 0x2C, 0x3F, 0x14, 0x73, 0x46, 0x9A,
0xA1, 0x42, 0x17, 0x12, 0xDB, 0xA2, 0xDD, 0x5D, 0x0C, 0xEC, 0xDC, 0xF7, 0xC1, 0x76, 0xE0, 0x24,
0x65, 0xEF, 0x41, 0x83, 0x35, 0x38, 0x78, 0x0E, 0x65, 0x82, 0xE3, 0x55, 0x90, 0xA8, 0xD5, 0xF7,
0x66, 0xCF, 0xE2, 0x61, 0x91, 0x3C, 0x69, 0xCB, 0xE7, 0x75, 0x62, 0x6F, 0xD7, 0x9B, 0x69, 0x0C,
0x0D, 0x07, 0x0C, 0x9C, 0x68, 0x24, 0x51, 0x51, 0x1F, 0x8D, 0x8B, 0xD6, 0x2E, 0x67, 0x5F, 0xC3,
0x07, 0x00, 0x12, 0x61, 0x77, 0xA8, 0x15, 0xA1, 0xD6, 0xD0, 0xD3, 0x57, 0x73, 0x62, 0xB9, 0xBB
};
@ -1101,7 +1101,7 @@ static void lhzb3_decrypt(running_machine &machine)
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
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 & 0x008100) == 0x008000) x ^= 0x0010;
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
@ -1115,21 +1115,21 @@ static void lhzb3_decrypt(running_machine &machine)
}
static const UINT8 mgfx_tab[0x100] = {
0x49, 0x47, 0x53, 0x30, 0x30, 0x38, 0x33, 0x52, 0x44, 0x34, 0x30, 0x32, 0x31, 0x32, 0x31, 0x32,
0x82, 0x6B, 0xCA, 0xBE, 0x9B, 0x9F, 0xC3, 0xA5, 0x8F, 0x2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 0x06, 0x86, 0x36, 0x34, 0x1A, 0xF8, 0xFC, 0x06, 0x6F, 0x11,
0x0E, 0x0C, 0x84, 0xA7, 0x62, 0x6D, 0x71, 0x97, 0x84, 0xE9, 0xF3, 0x3C, 0x44, 0x79, 0xB5, 0x32,
0x9E, 0x27, 0xE1, 0x4C, 0xEA, 0x30, 0xE7, 0xD4, 0x45, 0x57, 0x8D, 0x02, 0x3E, 0x8C, 0x38, 0xBF,
0xC5, 0xBE, 0x79, 0x9B, 0x51, 0xFD, 0xDB, 0x0B, 0x51, 0xD5, 0xEC, 0xE8, 0xD6, 0xE6, 0x89, 0x26,
0x7E, 0xC8, 0x6F, 0xD1, 0xA4, 0x1E, 0xFF, 0x4D, 0xC5, 0xF8, 0x51, 0xCE, 0x36, 0x6F, 0x7D, 0x16,
0x04, 0x7B, 0x26, 0x6F, 0x2C, 0x18, 0x47, 0xE8, 0xFC, 0x99, 0x42, 0xD3, 0xC9, 0x4C, 0x26, 0x7F,
0xD2, 0x4F, 0x40, 0x32, 0x74, 0xB2, 0xE6, 0x6B, 0x90, 0xCF, 0x7F, 0x56, 0x3A, 0xE5, 0xD7, 0x8F
};
@ -1144,10 +1144,10 @@ static void mgfx_decrypt(running_machine &machine)
UINT16 x = src[i];
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 & 0x000242) != 0x000042) x ^= 0x0008;
// if ((i & 0x048100) == 0x048000) x ^= 0x0010;
// if ((i & 0x048100) == 0x048000) x ^= 0x0010;
if ((i & 0x022004) != 0x000004) x ^= 0x0020;
if ((i & 0x011800) != 0x010000) x ^= 0x0040;
if ((i & 0x004820) == 0x004820) x ^= 0x0080;
@ -1159,21 +1159,21 @@ static void mgfx_decrypt(running_machine &machine)
}
static const UINT8 lhzb4_tab[0x100] = {
0x49, 0x47, 0x53, 0x30,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, 0x2A, 0xA2, 0x98, 0x4D, 0x66, 0x99, 0x21, 0xE9, 0x9A, 0x8E, 0x0F, 0x72,
0x4D, 0xF9, 0xD1, 0x74, 0x10, 0xB0, 0x77, 0x8F, 0xC0, 0xA7, 0xA2, 0x5B, 0x17, 0xED, 0xA9, 0x7B,
0x7A, 0xE3, 0x0D, 0xFF, 0xFE, 0xBE, 0x1F, 0xFF, 0xBB, 0x40, 0xF0, 0x76, 0x56, 0xB2, 0x79, 0x5D,
0xC9, 0x26, 0x0C, 0x08, 0x76, 0xEB, 0xFA, 0xC5, 0x6C, 0x51, 0x86, 0xB2, 0xF9, 0x9E, 0x0A, 0xDF,
0x70, 0x50, 0x68, 0xA5, 0x3C, 0x96, 0xB4, 0x46, 0x25, 0x09, 0x1F, 0xC6, 0xE2, 0xAF, 0x26, 0x09,
0xE0, 0x32, 0xFD, 0x2E, 0x52, 0x5D, 0x36, 0x2B, 0x79, 0xD8, 0xB6, 0xA9, 0x35, 0x24, 0xDA, 0x22,
0xCD, 0xDA, 0xE5, 0x39, 0xFB, 0x20, 0xAD, 0x59, 0x3C, 0x6C, 0x86, 0x92, 0x56, 0x7D, 0x6F, 0xB0,
0x29, 0x96, 0x7C, 0x9D, 0xBB, 0xFD, 0x83, 0xF9, 0x7F, 0xB5, 0x0A, 0xF8, 0xE6, 0x77, 0x71, 0x7B
};
@ -1188,10 +1188,10 @@ static void lhzb4_decrypt(running_machine &machine)
UINT16 x = src[i];
if ((i & 0x040480) != 0x000080) x ^= 0x0001;
// if ((i & 0x084008) == 0x084008) x ^= 0x0002;
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
// if ((i & 0x084008) == 0x084008) x ^= 0x0002;
// if ((i & 0x080030) == 0x080010) x ^= 0x0004;
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 & 0x011800) != 0x010000) x ^= 0x0040;
if ((i & 0x000820) == 0x000820) x ^= 0x0080;
@ -1206,7 +1206,7 @@ static void lhzb4_decrypt(running_machine &machine)
/*
static DRIVER_INIT( igs_m027 )
{
pgm_create_dummy_internal_arm_region(machine);
pgm_create_dummy_internal_arm_region(machine);
}
*/

View File

@ -1219,7 +1219,7 @@ static ADDRESS_MAP_START( gx_type3_map, AS_PROGRAM, 32, konamigx_state )
//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(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(0xec0000, 0xec0003) AM_READ(type3_sync_r)
//AM_RANGE(0xf00000, 0xf07fff) AM_RAM

View File

@ -2002,7 +2002,7 @@ static DRIVER_INIT( cerberus )
/* set up the master CPU I/O ports */
init_master_ports(machine, 0x40, 0x80);
/* set up additional input ports */
/* set up additional input ports */
machine.device("master")->memory().space(AS_IO)->install_read_handler(0x80, 0x80, read8_delegate(FUNC(leland_state::cerberus_dial_1_r),state));
machine.device("master")->memory().space(AS_IO)->install_read_handler(0x90, 0x90, read8_delegate(FUNC(leland_state::cerberus_dial_2_r),state));
}

View File

@ -77,7 +77,7 @@ public:
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_dacl(*this, "dacl"),
m_dacr(*this, "dacr")
m_dacr(*this, "dacr")
{ }
UINT16 m_vdp_address_low;
@ -514,7 +514,7 @@ static TIMER_DEVICE_CALLBACK( littlerb_scanline )
state->m_sound_pointer_r&=0x3ff;
}
// logerror("IRQ\n");
// logerror("IRQ\n");
if(scanline == 256)
{
device_set_input_line(state->m_maincpu, 4, HOLD_LINE);

View File

@ -1878,7 +1878,7 @@ static DRIVER_INIT(megat3te)
{ 0x99, 0x53, 0xfc, 0x29, 0x3a, 0x95, 0x8b, 0x58, 0xca, 0xca, 0x00, 0xc2, 0x30, 0x62, 0x0b, 0x96 };
ds1204_init(machine, megat3_ds1204_key, megat3_ds1204_nvram);
meritm_state *state = machine.driver_data<meritm_state>();
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xfff8, 0xffff, read8_delegate(FUNC(meritm_state::meritm_ds1644_r), state), write8_delegate(FUNC(meritm_state::meritm_ds1644_w), state));

View File

@ -289,7 +289,7 @@ public:
DECLARE_READ32_MEMBER (nand_data_r);
DECLARE_WRITE32_MEMBER(watchdog_w);
DECLARE_WRITE32_MEMBER(nand_block_w);
DECLARE_READ32_MEMBER (nand_block_r);
DECLARE_READ32_MEMBER (nand_block_r);
UINT8 *nand_base;
void nand_copy( UINT32 *dst, UINT32 address, int len );
@ -348,9 +348,9 @@ READ32_MEMBER(namcos10_state::range_r)
d16 = data32;
/* 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;
key =

View File

@ -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) \
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_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) \

View File

@ -39,10 +39,10 @@ public:
UINT8* m_flash_region;
DECLARE_READ32_MEMBER(nexus3d_unk_r);
// DECLARE_READ32_MEMBER(nexus3d_unk2_r);
// DECLARE_READ32_MEMBER(nexus3d_unk3_r);
// DECLARE_WRITE32_MEMBER(nexus3d_unk2_w);
// DECLARE_WRITE32_MEMBER(nexus3d_unk3_w);
// DECLARE_READ32_MEMBER(nexus3d_unk2_r);
// DECLARE_READ32_MEMBER(nexus3d_unk3_r);
// DECLARE_WRITE32_MEMBER(nexus3d_unk2_w);
// DECLARE_WRITE32_MEMBER(nexus3d_unk3_w);
};

View File

@ -342,7 +342,7 @@ static WRITE8_DEVICE_HANDLER( spc_ram_100_w )
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(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, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)

View File

@ -2496,18 +2496,18 @@ ROM_START( kov2p205 )
ROM_END
/*
Do Donpachi II
Cave, 2001
This is a PGM cart containing not a lot....
5x SOP44 mask ROMs (4x 64M, 1x 32M)
2x EPROMs (1x 1M, 1x 16M)
2x EPROMs (1x 1M, 1x 16M)
2x PALs (labelled FN U14 and FN U15)
1x custom IGS027A (QFP120)
3x RAMs WINBOND W24257AJ-8N
Some logic IC's, resistors, caps etc.
*/

View File

@ -37,7 +37,7 @@ class quizshow_state : public driver_device
public:
quizshow_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag) { }
tilemap_t *m_tilemap;
UINT8* m_fo_state;
UINT8* m_main_ram;
@ -77,7 +77,7 @@ PALETTE_INIT( quizshow )
1, 0, 0, 0,
1, 0, 1, 0
};
for (int i = 0; i < 16 ; i++)
colortable_entry_set_value(machine.colortable, i, lut_pal[i]);
}
@ -221,8 +221,8 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( quizshow_io_map, AS_IO, 8, quizshow_state )
ADDRESS_MAP_UNMAP_HIGH
// 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_CTRL_PORT, S2650_CTRL_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_FO_PORT, S2650_FO_PORT) AM_RAM AM_BASE(m_fo_state)
ADDRESS_MAP_END
@ -440,7 +440,7 @@ static DRIVER_INIT( quizshow )
dest[tile << 4 | line] = gfxdata[tile << 3 | (line - 4)];
}
}
// HACK out a gfxrom glitch, remove it when a good dump is out
dest[0x208] = dest[0x209] = 0;
}

View File

@ -115,7 +115,7 @@ static ADDRESS_MAP_START( rockrage_map, AS_PROGRAM, 8, rockrage_state )
ADDRESS_MAP_END
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(0x4000, 0x4000) AM_DEVWRITE_LEGACY("vlm", rockrage_speech_w) /* VLM5030 */
AM_RANGE(0x5000, 0x5000) AM_READ(soundlatch_r) /* soundlatch_r */

View File

@ -4101,7 +4101,7 @@ static DRIVER_INIT( dbzvrvs )
segas32_common_init(machine, NULL, NULL);
/* install protection handlers */
segas32_state *state = machine.driver_data<segas32_state>();
segas32_state *state = machine.driver_data<segas32_state>();
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa00000, 0xa7ffff, read16_delegate(FUNC(segas32_state::dbzvrvs_protection_r),state), write16_delegate(FUNC(segas32_state::dbzvrvs_protection_w),state));
}
@ -4140,7 +4140,7 @@ static DRIVER_INIT( ga2 )
segas32_common_init(machine, extra_custom_io_r, NULL);
decrypt_ga2_protrom(machine);
segas32_state *state = machine.driver_data<segas32_state>();
segas32_state *state = machine.driver_data<segas32_state>();
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_readwrite_handler(0xa00000, 0xa00fff, read16_delegate(FUNC(segas32_state::ga2_dpram_r),state), write16_delegate(FUNC(segas32_state::ga2_dpram_w),state));
}
@ -4226,7 +4226,7 @@ static DRIVER_INIT( sonic )
segas32_common_init(machine, sonic_custom_io_r, sonic_custom_io_w);
/* install protection handlers */
segas32_state *state = machine.driver_data<segas32_state>();
segas32_state *state = machine.driver_data<segas32_state>();
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_write_handler(0x20E5C4, 0x20E5C5, write16_delegate(FUNC(segas32_state::sonic_level_load_protection),state));
}

View File

@ -2463,7 +2463,7 @@ static WRITE16_HANDLER( msgundam_vregs_w )
{
case 1: offset = 2; break;
case 2: offset = 1; break;
}
}
state->seta_vregs_w(*space,offset,data,mem_mask);
}

View File

@ -142,7 +142,7 @@ static WRITE8_DEVICE_HANDLER( spc_ram_100_w )
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(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, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)

View File

@ -299,7 +299,7 @@ static WRITE8_DEVICE_HANDLER( spc_ram_100_w )
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(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, 0xffbf) AM_DEVREAD_LEGACY("spc700", spc_ram_100_r)
AM_RANGE(0xffc0, 0xffff) AM_DEVREAD_LEGACY("spc700", spc_ipl_r)

View File

@ -412,7 +412,7 @@ READ16_MEMBER(ssv_state::fake_r){ return ssv_scroll[offset]; }
AM_RANGE(0x160000, 0x17ffff) AM_RAM /* */ \
AM_RANGE(0x1c0000, 0x1c0001) AM_READ(ssv_vblank_r ) /* Vblank? */ \
/**/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(0x210004, 0x210005) AM_READ_PORT("DSW2") \
AM_RANGE(0x210008, 0x210009) AM_READ_PORT("P1") \

View File

@ -397,7 +397,7 @@ static ADDRESS_MAP_START( airsys_map, AS_PROGRAM, 16, taitoair_state )
AM_RANGE(0x000000, 0x0bffff) AM_ROM
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(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(0x800000, 0x820fff) AM_DEVREADWRITE_LEGACY("tc0080vco", tc0080vco_word_r, tc0080vco_word_w) /* tilemaps, sprites */
AM_RANGE(0x906000, 0x906007) AM_RAM // DMA?

View File

@ -1461,7 +1461,7 @@ static DRIVER_INIT( taitojc )
static DRIVER_INIT( dendego2 )
{
taitojc_state *state = machine.driver_data<taitojc_state>();
DRIVER_INIT_CALL( taitojc );
machine.device("dsp")->memory().space(AS_DATA)->install_readwrite_handler(0x7ff0, 0x7ff0, read16_delegate(FUNC(taitojc_state::dendego2_dsp_idle_skip_r),state), write16_delegate(FUNC(taitojc_state::dsp_idle_skip_w),state));

View File

@ -2,7 +2,7 @@
unknown Japanese horse gambling game
probably early 80s, manufacturer unknown
from a broken PCB, labeled EFI TG-007
8085A CPU + 8155 (for I/O and sound)
8KB RAM mainly for bitmap video, and 512x4 RAM for color map
@ -51,7 +51,7 @@ PALETTE_INIT( horse )
static SCREEN_UPDATE_IND16( horse )
{
horse_state *state = screen.machine().driver_data<horse_state>();
for (int y = cliprect.min_y; y <= cliprect.max_y; y++)
{
for (int x = 0; x < 32; x++)
@ -79,7 +79,7 @@ static ADDRESS_MAP_START( horse_map, AS_PROGRAM, 8, horse_state )
AM_RANGE(0x4000, 0x40ff) AM_DEVREADWRITE("i8155", i8155_device, memory_r, memory_w)
AM_RANGE(0x6000, 0x7fff) AM_RAM AM_BASE(m_video_ram)
AM_RANGE(0x8000, 0x879f) AM_RAM AM_BASE(m_color_ram) AM_MIRROR(0x0860)
ADDRESS_MAP_END
static ADDRESS_MAP_START( horse_io_map, AS_IO, 8, horse_state )
@ -106,7 +106,7 @@ static WRITE8_DEVICE_HANDLER(horse_output_w)
{
horse_state *state = device->machine().driver_data<horse_state>();
state->m_output = data;
// d4: payout related
// d6-d7: input mux
// other bits: ?

View File

@ -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")
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(0x100000, 0x103fff) AM_RAM
AM_RANGE(0x140000, 0x143fff) AM_READWRITE(sharedram_r,sharedram_w)

View File

@ -71,10 +71,10 @@ public:
int m_read_latch;
UINT8 m_mcu_input_snippet;
UINT8 m_mcu_jsr_snippet;
DECLARE_READ16_MEMBER(latch_r);
DECLARE_WRITE16_MEMBER(sharedram_w);
DECLARE_READ16_MEMBER(sharedram_r);
DECLARE_READ16_MEMBER(sharedram_r);
};
/*----------- defined in video/armedf.c -----------*/

View File

@ -105,7 +105,7 @@ public:
DECLARE_READ32_MEMBER(dragngun_lightgun_r);
DECLARE_WRITE32_MEMBER(dragngun_lightgun_w);
DECLARE_WRITE32_MEMBER(dragngun_sprite_control_w);
DECLARE_WRITE32_MEMBER(dragngun_spriteram_dma_w);
DECLARE_WRITE32_MEMBER(dragngun_spriteram_dma_w);
};

View File

@ -34,7 +34,7 @@ public:
UINT8 m_sub2_nmi_mask;
DECLARE_READ8_MEMBER(bosco_dsw_r);
DECLARE_WRITE8_MEMBER(galaga_flip_screen_w);
DECLARE_WRITE8_MEMBER(bosco_latch_w);
DECLARE_WRITE8_MEMBER(bosco_latch_w);
DECLARE_WRITE8_MEMBER(galaga_videoram_w);
DECLARE_WRITE8_MEMBER(gatsbee_bank_w);
};

View File

@ -42,7 +42,7 @@ public:
DECLARE_READ16_MEMBER(mccontrol_r);
DECLARE_WRITE16_MEMBER(mccontrol_w);
DECLARE_WRITE8_MEMBER(sound_bankswitch_w);
DECLARE_WRITE16_MEMBER(ddd_053936_enable_w);
DECLARE_WRITE16_MEMBER(ddd_053936_clip_w);
DECLARE_READ16_MEMBER(gai_053936_tilerom_0_r);

View File

@ -510,7 +510,7 @@ static void term2_init_common(running_machine &machine, write16_delegate hack_w)
/* common init */
init_generic(machine, 6, SOUND_ADPCM, 0xfa8d, 0xfa9c);
/* special inputs */
/* special inputs */
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_read_handler(0x01c00000, 0x01c0005f, read16_delegate(FUNC(midyunit_state::term2_input_r),state));
machine.device("maincpu")->memory().space(AS_PROGRAM)->install_write_handler(0x01e00000, 0x01e0001f, write16_delegate(FUNC(midyunit_state::term2_sound_w),state));

View File

@ -229,7 +229,7 @@ MACHINE_CONFIG_START( pgm_arm_type1_cave, pgm_arm_type1_state )
MCFG_CPU_PROGRAM_MAP(cavepgm_mem)
MCFG_MACHINE_START( pgm_arm_type1 )
MCFG_SCREEN_MODIFY("screen")
MCFG_SCREEN_REFRESH_RATE(59.17) // verified on pcb
MACHINE_CONFIG_END

View File

@ -358,7 +358,7 @@ DRIVER_INIT( dwpc )
mem16[0x11EDE8 / 2] = 0x4e71;
mem16[0x11EFC4 / 2] = 0x4e71;
mem16[0x11EFC4 / 2] = 0x4e71;
mem16[0x11EFC6 / 2] = 0x4e71;
mem16[0x11EFD2 / 2] = 0x4e71;

View File

@ -29,7 +29,7 @@
IGS027A type 55857G has also been seen on various IGS gambling boards
as the main CPU (eg. Haunted House, see igs_m027a)
55857G is also used on the Cave single board PGM systems, but in those
cases it behaves like the 55857E (pgmprot1.c)

View File

@ -80,7 +80,7 @@ WRITE8_MEMBER(chaknpop_state::chaknpop_gfxmode_w)
int all_dirty = 0;
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))
{

View File

@ -27,11 +27,11 @@ PALETTE_INIT( galaxia )
0, 3, 6, 2,
0, 1, 4, 5, // unused?
0, 3, 1, 7,
// sprites
0, 4, 3, 6, 1, 5, 2, 7
};
for (int i = 0; i < 0x18; i++)
palette_set_color_rgb(machine, i, pal1bit(lut_clr[i] >> 0), pal1bit(lut_clr[i] >> 1), pal1bit(lut_clr[i] >> 2));
@ -88,11 +88,11 @@ VIDEO_START( galaxia )
{
galaxia_state *state = machine.driver_data<galaxia_state>();
init_common(machine);
state->m_bg_tilemap = tilemap_create(machine, get_galaxia_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32);
state->m_bg_tilemap->set_transparent_pen(0);
state->m_bg_tilemap->set_scroll_cols(8);
}
VIDEO_START( astrowar )
@ -123,7 +123,7 @@ SCREEN_UPDATE_IND16( galaxia )
bitmap.fill(0, cliprect);
cvs_update_stars(screen.machine(), bitmap, cliprect, STAR_PEN, 1);
state->m_bg_tilemap->draw(bitmap, cliprect, 0, 0);
for (y = cliprect.min_y; y <= cliprect.max_y; y++)
{
for (x = cliprect.min_x; x <= cliprect.max_x; x++)

View File

@ -38,4 +38,4 @@
***************************************************************************/
extern const char build_version[];
const char build_version[] = "0.145u5 ("__DATE__")";
const char build_version[] = "0.145u6 ("__DATE__")";