mirror of
https://github.com/holub/mame
synced 2025-05-30 01:23:07 +03:00
Removed msb/lsb handlers from taitosnd. Updated all drivers to
call the 8-bit versions directly from the address maps. Also did bulk replace of AM_READ/WRITE(SMH_NOP) -> AM_READ/WRITENOP
This commit is contained in:
parent
f9d37368d4
commit
a1d6c21cb3
@ -1555,7 +1555,7 @@ static ADDRESS_MAP_START( demon_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x5002, 0x5003) AM_DEVWRITE("ay2", ay8910_data_address_w)
|
||||
AM_RANGE(0x6000, 0x6001) AM_DEVREAD("ay3", ay8910_r)
|
||||
AM_RANGE(0x6002, 0x6003) AM_DEVWRITE("ay3", ay8910_data_address_w)
|
||||
AM_RANGE(0x7000, 0x7000) AM_WRITE(SMH_NOP) /* watchdog? */
|
||||
AM_RANGE(0x7000, 0x7000) AM_WRITENOP /* watchdog? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -248,43 +248,3 @@ READ8_HANDLER( taitosound_slave_comm_r )
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* wrapper functions for 16bit handlers */
|
||||
|
||||
WRITE16_HANDLER( taitosound_port16_lsb_w )
|
||||
{
|
||||
if (ACCESSING_BITS_0_7)
|
||||
taitosound_port_w(space,0,data & 0xff);
|
||||
}
|
||||
WRITE16_HANDLER( taitosound_comm16_lsb_w )
|
||||
{
|
||||
if (ACCESSING_BITS_0_7)
|
||||
taitosound_comm_w(space,0,data & 0xff);
|
||||
}
|
||||
READ16_HANDLER( taitosound_comm16_lsb_r )
|
||||
{
|
||||
return taitosound_comm_r(space,0);
|
||||
}
|
||||
|
||||
|
||||
WRITE16_HANDLER( taitosound_port16_msb_w )
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
taitosound_port_w(space,0,data >> 8);
|
||||
}
|
||||
WRITE16_HANDLER( taitosound_comm16_msb_w )
|
||||
{
|
||||
if (ACCESSING_BITS_8_15)
|
||||
taitosound_comm_w(space,0,data >> 8);
|
||||
}
|
||||
READ16_HANDLER( taitosound_comm16_msb_r )
|
||||
{
|
||||
return taitosound_comm_r(space,0) << 8;
|
||||
}
|
||||
|
||||
|
@ -2,16 +2,6 @@
|
||||
#define __TAITOSND_H__
|
||||
|
||||
|
||||
/* MASTER (16 bit bus) control functions */
|
||||
WRITE16_HANDLER( taitosound_port16_lsb_w );
|
||||
WRITE16_HANDLER( taitosound_comm16_lsb_w );
|
||||
READ16_HANDLER( taitosound_comm16_lsb_r );
|
||||
|
||||
WRITE16_HANDLER( taitosound_port16_msb_w );
|
||||
WRITE16_HANDLER( taitosound_comm16_msb_w );
|
||||
READ16_HANDLER( taitosound_comm16_msb_r );
|
||||
|
||||
|
||||
/* MASTER (8bit bus) control functions */
|
||||
WRITE8_HANDLER( taitosound_port_w );
|
||||
WRITE8_HANDLER( taitosound_comm_w );
|
||||
|
@ -131,8 +131,8 @@ static WRITE16_HANDLER( k3_soundbanks_w )
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( k3_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x0009ce, 0x0009cf) AM_WRITE(SMH_NOP) // bug in code? (clean up log)
|
||||
AM_RANGE(0x0009d2, 0x0009d3) AM_WRITE(SMH_NOP) // bug in code? (clean up log)
|
||||
AM_RANGE(0x0009ce, 0x0009cf) AM_WRITENOP // bug in code? (clean up log)
|
||||
AM_RANGE(0x0009d2, 0x0009d3) AM_WRITENOP // bug in code? (clean up log)
|
||||
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM // ROM
|
||||
AM_RANGE(0x100000, 0x10ffff) AM_RAM // Main Ram
|
||||
|
@ -226,13 +226,13 @@ static ADDRESS_MAP_START( 20pacgal_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x81, 0x81) AM_READ_PORT("P2")
|
||||
AM_RANGE(0x82, 0x82) AM_READ_PORT("SERVICE")
|
||||
AM_RANGE(0x80, 0x80) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x81, 0x81) AM_WRITE(SMH_NOP) /* ??? pulsed by the timer irq */
|
||||
AM_RANGE(0x81, 0x81) AM_WRITENOP /* ??? pulsed by the timer irq */
|
||||
AM_RANGE(0x82, 0x82) AM_WRITE(irqack_w)
|
||||
AM_RANGE(0x85, 0x86) AM_WRITE(SMH_NOP) /* stars: rng seed (lo/hi) */
|
||||
AM_RANGE(0x85, 0x86) AM_WRITENOP /* stars: rng seed (lo/hi) */
|
||||
AM_RANGE(0x87, 0x87) AM_READWRITE(eeprom_r, eeprom_w)
|
||||
AM_RANGE(0x88, 0x88) AM_WRITE(rom_bank_select_w)
|
||||
AM_RANGE(0x89, 0x89) AM_DEVWRITE("dac", dac_signed_w)
|
||||
AM_RANGE(0x8a, 0x8a) AM_WRITE(SMH_NOP) /* stars: bits 3-4 = active set; bit 5 = enable */
|
||||
AM_RANGE(0x8a, 0x8a) AM_WRITENOP /* stars: bits 3-4 = active set; bit 5 = enable */
|
||||
AM_RANGE(0x8b, 0x8b) AM_WRITE(SMH_RAM) AM_BASE_MEMBER(_20pacgal_state, flip)
|
||||
AM_RANGE(0x8f, 0x8f) AM_WRITE(_20pacgal_coin_counter_w)
|
||||
ADDRESS_MAP_END
|
||||
|
@ -396,7 +396,7 @@ static ADDRESS_MAP_START( cosmo_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x03, 0x03) AM_WRITE(invadpt2_sh_port_1_w)
|
||||
AM_RANGE(0x05, 0x05) AM_WRITE(cosmo_sh_port_2_w)
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x07, 0x07) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x07, 0x07) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -1006,9 +1006,9 @@ static ADDRESS_MAP_START( sflush_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x800b, 0x800b) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x8018, 0x8018) AM_WRITE(mb14241_0_shift_data_w)
|
||||
AM_RANGE(0x8019, 0x8019) AM_WRITE(mb14241_0_shift_count_w)
|
||||
AM_RANGE(0x801a, 0x801a) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x801c, 0x801c) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x801d, 0x801d) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x801a, 0x801a) AM_WRITENOP
|
||||
AM_RANGE(0x801c, 0x801c) AM_WRITENOP
|
||||
AM_RANGE(0x801d, 0x801d) AM_WRITENOP
|
||||
AM_RANGE(0xa000, 0xbfff) AM_MIRROR(0x0060) AM_RAM AM_BASE(&c8080bw_colorram)
|
||||
AM_RANGE(0xd800, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
@ -1400,7 +1400,7 @@ static ADDRESS_MAP_START( yosakdon_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x02, 0x02) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0x03, 0x03) AM_WRITE(yosakdon_sh_port_1_w)
|
||||
AM_RANGE(0x05, 0x05) AM_WRITE(yosakdon_sh_port_2_w)
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(SMH_NOP) /* character numbers */
|
||||
AM_RANGE(0x06, 0x06) AM_WRITENOP /* character numbers */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -96,7 +96,7 @@ static ADDRESS_MAP_START( triothep_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x03ffff) AM_ROM
|
||||
AM_RANGE(0x040000, 0x04001f) AM_WRITE(actfancr_pf2_control_w)
|
||||
AM_RANGE(0x044000, 0x045fff) AM_READWRITE(actfancr_pf2_data_r, actfancr_pf2_data_w) AM_BASE(&actfancr_pf2_data)
|
||||
AM_RANGE(0x046400, 0x0467ff) AM_WRITE(SMH_NOP) /* Pf2 rowscroll - is it used? */
|
||||
AM_RANGE(0x046400, 0x0467ff) AM_WRITENOP /* Pf2 rowscroll - is it used? */
|
||||
AM_RANGE(0x060000, 0x06001f) AM_WRITE(actfancr_pf1_control_w)
|
||||
AM_RANGE(0x064000, 0x0647ff) AM_READWRITE(actfancr_pf1_data_r, actfancr_pf1_data_w) AM_BASE(&actfancr_pf1_data)
|
||||
AM_RANGE(0x066400, 0x0667ff) AM_WRITE(SMH_RAM) AM_BASE(&actfancr_pf1_rowscroll_data)
|
||||
|
@ -82,9 +82,9 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1000, 0x17ff) AM_RAM_WRITE(aeroboto_videoram_w) AM_BASE(&aeroboto_videoram) // tile RAM
|
||||
AM_RANGE(0x1800, 0x183f) AM_RAM AM_BASE(&aeroboto_hscroll) // horizontal scroll regs
|
||||
AM_RANGE(0x2000, 0x20ff) AM_RAM_WRITE(aeroboto_tilecolor_w) AM_BASE(&aeroboto_tilecolor) // tile color RAM
|
||||
AM_RANGE(0x1840, 0x27ff) AM_WRITE(SMH_NOP) // cleared during custom LSI test
|
||||
AM_RANGE(0x1840, 0x27ff) AM_WRITENOP // cleared during custom LSI test
|
||||
AM_RANGE(0x2800, 0x28ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size) // sprite RAM
|
||||
AM_RANGE(0x2900, 0x2fff) AM_WRITE(SMH_NOP) // cleared along with sprite RAM
|
||||
AM_RANGE(0x2900, 0x2fff) AM_WRITENOP // cleared along with sprite RAM
|
||||
AM_RANGE(0x2973, 0x2973) AM_READ(aeroboto_2973_r) // protection read
|
||||
AM_RANGE(0x3000, 0x3000) AM_READWRITE(aeroboto_in0_r, aeroboto_3000_w)
|
||||
AM_RANGE(0x3001, 0x3001) AM_READ_PORT("DSW1") AM_WRITE(soundlatch_w)
|
||||
|
@ -267,7 +267,7 @@ static ADDRESS_MAP_START( turbofrc_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x0ff006, 0x0ff007) AM_READWRITE(pending_command_r, aerofgt_bg2scrolly_w)
|
||||
AM_RANGE(0x0ff008, 0x0ff009) AM_READ_PORT("IN2")
|
||||
AM_RANGE(0x0ff008, 0x0ff00b) AM_WRITE(turbofrc_gfxbank_w)
|
||||
AM_RANGE(0x0ff00c, 0x0ff00d) AM_WRITE(SMH_NOP) /* related to bg2 (written together with the scroll registers) */
|
||||
AM_RANGE(0x0ff00c, 0x0ff00d) AM_WRITENOP /* related to bg2 (written together with the scroll registers) */
|
||||
AM_RANGE(0x0ff00e, 0x0ff00f) AM_WRITE(turbofrc_sound_command_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -717,7 +717,7 @@ static ADDRESS_MAP_START( alpha68k_I_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x03ffff) AM_ROM // main program
|
||||
AM_RANGE(0x080000, 0x083fff) AM_RAM // work RAM
|
||||
AM_RANGE(0x100000, 0x103fff) AM_RAM AM_BASE(&spriteram16) // video RAM
|
||||
AM_RANGE(0x180000, 0x180001) AM_READ_PORT("IN3") AM_WRITE(SMH_NOP) // LSB: DSW0, MSB: watchdog(?)
|
||||
AM_RANGE(0x180000, 0x180001) AM_READ_PORT("IN3") AM_WRITENOP // LSB: DSW0, MSB: watchdog(?)
|
||||
AM_RANGE(0x180008, 0x180009) AM_READ_PORT("IN4") // LSB: DSW1
|
||||
AM_RANGE(0x300000, 0x300001) AM_READ_PORT("IN0") // joy1, joy2
|
||||
AM_RANGE(0x340000, 0x340001) AM_READ_PORT("IN1") // coin, start, service
|
||||
@ -733,9 +733,9 @@ static ADDRESS_MAP_START( alpha68k_II_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x0c0000, 0x0c00ff) AM_WRITE(alpha68k_II_video_bank_w)
|
||||
AM_RANGE(0x0c8000, 0x0c8001) AM_READ(control_3_r) /* Bottom of CN2 */
|
||||
AM_RANGE(0x0d0000, 0x0d0001) AM_READ(control_4_r) /* Top of CN1 & CN2 */
|
||||
AM_RANGE(0x0d8000, 0x0d8001) AM_READ(SMH_NOP) /* IRQ ack? */
|
||||
AM_RANGE(0x0e0000, 0x0e0001) AM_READ(SMH_NOP) /* IRQ ack? */
|
||||
AM_RANGE(0x0e8000, 0x0e8001) AM_READ(SMH_NOP) /* watchdog? */
|
||||
AM_RANGE(0x0d8000, 0x0d8001) AM_READNOP /* IRQ ack? */
|
||||
AM_RANGE(0x0e0000, 0x0e0001) AM_READNOP /* IRQ ack? */
|
||||
AM_RANGE(0x0e8000, 0x0e8001) AM_READNOP /* watchdog? */
|
||||
AM_RANGE(0x100000, 0x100fff) AM_RAM_WRITE(alpha68k_videoram_w) AM_BASE(&videoram16)
|
||||
AM_RANGE(0x200000, 0x207fff) AM_RAM AM_BASE(&spriteram16)
|
||||
AM_RANGE(0x300000, 0x3001ff) AM_READWRITE(alpha_II_trigger_r, alpha_microcontroller_w)
|
||||
@ -804,13 +804,13 @@ static ADDRESS_MAP_START( kyros_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xe000, 0xe000) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0xe002, 0xe002) AM_WRITE(soundlatch_clear_w)
|
||||
AM_RANGE(0xe004, 0xe004) AM_DEVWRITE("dac", dac_signed_w)
|
||||
AM_RANGE(0xe006, 0xe00e) AM_WRITE(SMH_NOP) // soundboard I/O's, ignored
|
||||
AM_RANGE(0xe006, 0xe00e) AM_WRITENOP // soundboard I/O's, ignored
|
||||
/* reference only
|
||||
AM_RANGE(0xe006, 0xe006) AM_WRITE(SMH_NOP) // NMI: diminishing saw-tooth
|
||||
AM_RANGE(0xe008, 0xe008) AM_WRITE(SMH_NOP) // NMI: 00
|
||||
AM_RANGE(0xe00a, 0xe00a) AM_WRITE(SMH_NOP) // RST38: 20
|
||||
AM_RANGE(0xe00c, 0xe00c) AM_WRITE(SMH_NOP) // RST30: 00 on entry
|
||||
AM_RANGE(0xe00e, 0xe00e) AM_WRITE(SMH_NOP) // RST30: 00,02,ff on exit(0x1d88)
|
||||
AM_RANGE(0xe006, 0xe006) AM_WRITENOP // NMI: diminishing saw-tooth
|
||||
AM_RANGE(0xe008, 0xe008) AM_WRITENOP // NMI: 00
|
||||
AM_RANGE(0xe00a, 0xe00a) AM_WRITENOP // RST38: 20
|
||||
AM_RANGE(0xe00c, 0xe00c) AM_WRITENOP // RST30: 00 on entry
|
||||
AM_RANGE(0xe00e, 0xe00e) AM_WRITENOP // RST30: 00,02,ff on exit(0x1d88)
|
||||
*/
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -865,7 +865,7 @@ static ADDRESS_MAP_START( jongbou_sound_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x00, 0x00) AM_DEVWRITE("ay", ay8910_address_w)
|
||||
AM_RANGE(0x01, 0x01) AM_DEVREADWRITE("ay", ay8910_r, ay8910_data_w)
|
||||
AM_RANGE(0x02, 0x02) AM_WRITE(soundlatch_clear_w)
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x06, 0x06) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( tnexspce_sound_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
|
@ -67,7 +67,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xc200, 0xc3ff) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0xc400, 0xc7ff) AM_BASE(&videoram) AM_SIZE(&videoram_size)
|
||||
AM_RANGE(0xc800, 0xc800) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0xcc00, 0xcc03) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xcc00, 0xcc03) AM_WRITENOP
|
||||
AM_RANGE(0xcc04, 0xcc04) AM_WRITE(flip_screen_w)
|
||||
AM_RANGE(0xcc05, 0xcc05) AM_WRITE(SMH_RAM) AM_BASE(&ambush_colorbank)
|
||||
AM_RANGE(0xcc07, 0xcc07) AM_WRITE(ambush_coin_counter_w)
|
||||
|
@ -238,15 +238,15 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( main_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_WRITE(SMH_NOP) // 00 on start-up, not again
|
||||
AM_RANGE(0x00, 0x00) AM_WRITENOP // 00 on start-up, not again
|
||||
AM_RANGE(0x42, 0x42) AM_WRITE(angelkds_cpu_bank_write)
|
||||
AM_RANGE(0x43, 0x43) AM_WRITE(SMH_NOP) // 9a on start-up, not again
|
||||
AM_RANGE(0x43, 0x43) AM_WRITENOP // 9a on start-up, not again
|
||||
AM_RANGE(0x40, 0x40) AM_READ_PORT("I40") /* "Coinage" Dip Switches */
|
||||
AM_RANGE(0x41, 0x41) AM_READ_PORT("I41") /* Other Dip Switches */
|
||||
AM_RANGE(0x42, 0x42) AM_READ_PORT("I42") /* Players inputs (not needed ?) */
|
||||
AM_RANGE(0x80, 0x80) AM_READ_PORT("I80") /* System inputs */
|
||||
AM_RANGE(0x81, 0x82) AM_READ(angelkds_input_r) /* Players inputs */
|
||||
AM_RANGE(0x83, 0x83) AM_WRITE(SMH_NOP) // 9b on start-up, not again
|
||||
AM_RANGE(0x83, 0x83) AM_WRITENOP // 9b on start-up, not again
|
||||
AM_RANGE(0xc0, 0xc3) AM_READWRITE(angelkds_main_sound_r, angelkds_main_sound_w) // 02 various points
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -149,7 +149,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xd80014, 0xd8001f) AM_WRITE(SMH_RAM) AM_BASE(&aquarium_scroll)
|
||||
AM_RANGE(0xd80068, 0xd80069) AM_WRITENOP /* probably not used */
|
||||
AM_RANGE(0xd80080, 0xd80081) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xd80082, 0xd80083) AM_READ(SMH_NOP) /* stored but not read back ? check code at 0x01f440 */
|
||||
AM_RANGE(0xd80082, 0xd80083) AM_READNOP /* stored but not read back ? check code at 0x01f440 */
|
||||
AM_RANGE(0xd80084, 0xd80085) AM_READ_PORT("INPUTS")
|
||||
AM_RANGE(0xd80086, 0xd80087) AM_READ(aquarium_coins_r)
|
||||
AM_RANGE(0xd80088, 0xd80089) AM_WRITENOP /* ?? video related */
|
||||
|
@ -252,7 +252,7 @@ static ADDRESS_MAP_START( terraf_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07c006, 0x07c007) AM_WRITE(terraf_fg_scrollx_w) /* not use in terrafu, 0x07c008 neither */
|
||||
AM_RANGE(0x07c008, 0x07c009) AM_WRITE(terraf_fg_scrolly_w) /* written twice, lsb and msb */
|
||||
AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(SMH_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITENOP /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) /* MCU Command ? */
|
||||
AM_RANGE(0x0c0000, 0x0c0001) AM_WRITE(terraf_fg_scroll_msb_arm_w) /* written between two consecutive writes to 7c008 */
|
||||
ADDRESS_MAP_END
|
||||
@ -278,7 +278,7 @@ static ADDRESS_MAP_START( terrafb_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07c006, 0x07c007) AM_WRITE(terraf_fg_scrollx_w) /* not use in terrafu, 0x07c008 neither */
|
||||
AM_RANGE(0x07c008, 0x07c009) AM_WRITE(terraf_fg_scrolly_w) /* written twice, lsb and msb */
|
||||
AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(SMH_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITENOP /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) /* MCU Command ? */
|
||||
AM_RANGE(0x0c0000, 0x0c0001) AM_WRITE(terraf_fg_scroll_msb_arm_w) /* written between two consecutive writes to 7c008 */
|
||||
ADDRESS_MAP_END
|
||||
@ -301,8 +301,8 @@ static ADDRESS_MAP_START( kodure_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w)
|
||||
AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
|
||||
AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
|
||||
AM_RANGE(0x0c0000, 0x0c0001) AM_WRITE(SMH_NOP) /* watchdog? */
|
||||
AM_RANGE(0xffd000, 0xffd001) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x0c0000, 0x0c0001) AM_WRITENOP /* watchdog? */
|
||||
AM_RANGE(0xffd000, 0xffd001) AM_WRITENOP /* ? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( cclimbr2_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -324,8 +324,8 @@ static ADDRESS_MAP_START( cclimbr2_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07c002, 0x07c003) AM_WRITE(armedf_bg_scrollx_w)
|
||||
AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
|
||||
AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
|
||||
AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(SMH_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
AM_RANGE(0x07c00e, 0x07c00f) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITENOP /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( legion_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -348,7 +348,7 @@ static ADDRESS_MAP_START( legion_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
|
||||
AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
|
||||
AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) /* MCU Command ? */
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(SMH_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
AM_RANGE(0x07c00c, 0x07c00d) AM_WRITENOP /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( legiono_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -373,7 +373,7 @@ static ADDRESS_MAP_START( legiono_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07c004, 0x07c005) AM_WRITE(armedf_bg_scrolly_w)
|
||||
AM_RANGE(0x07c00a, 0x07c00b) AM_WRITE(sound_command_w)
|
||||
//AM_RANGE(0x07c00e, 0x07c00f) AM_WRITE(armedf_mcu_cmd) /* MCU Command ? */
|
||||
//AM_RANGE(0x07c00c, 0x07c00d) AM_WRITE(SMH_NOP) /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
//AM_RANGE(0x07c00c, 0x07c00d) AM_WRITENOP /* Watchdog ? cycle 0000 -> 0100 -> 0200 back to 0000 */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( armedf_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
|
@ -332,8 +332,8 @@ static ADDRESS_MAP_START( bonzeadv_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x3b0000, 0x3b0001) AM_READ_PORT("DSWB")
|
||||
AM_RANGE(0x3c0000, 0x3c0001) AM_WRITE(watchdog_reset16_w)
|
||||
AM_RANGE(0x3d0000, 0x3d0001) AM_READNOP
|
||||
AM_RANGE(0x3e0000, 0x3e0001) AM_WRITE(taitosound_port16_lsb_w)
|
||||
AM_RANGE(0x3e0002, 0x3e0003) AM_READWRITE(taitosound_comm16_lsb_r, taitosound_comm16_lsb_w)
|
||||
AM_RANGE(0x3e0000, 0x3e0001) AM_WRITE8(taitosound_port_w, 0x00ff)
|
||||
AM_RANGE(0x3e0002, 0x3e0003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff)
|
||||
AM_RANGE(0x800000, 0x8007ff) AM_READWRITE(bonzeadv_cchip_ram_r, bonzeadv_cchip_ram_w)
|
||||
AM_RANGE(0x800802, 0x800803) AM_READWRITE(bonzeadv_cchip_ctrl_r, bonzeadv_cchip_ctrl_w)
|
||||
AM_RANGE(0x800c00, 0x800c01) AM_WRITE(bonzeadv_cchip_bank_w)
|
||||
@ -348,8 +348,8 @@ static ADDRESS_MAP_START( asuka_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x1076f0, 0x1076f1) AM_READNOP /* Mofflott init does dummy reads here */
|
||||
AM_RANGE(0x200000, 0x20000f) AM_READWRITE(TC0110PCR_word_r, TC0110PCR_step1_word_w)
|
||||
AM_RANGE(0x3a0000, 0x3a0003) AM_WRITE(asuka_spritectrl_w)
|
||||
AM_RANGE(0x3e0000, 0x3e0001) AM_READWRITE(SMH_NOP, taitosound_port16_lsb_w)
|
||||
AM_RANGE(0x3e0002, 0x3e0003) AM_READWRITE(taitosound_comm16_lsb_r, taitosound_comm16_lsb_w)
|
||||
AM_RANGE(0x3e0000, 0x3e0001) AM_READNOP AM_WRITE8(taitosound_port_w, 0x00ff)
|
||||
AM_RANGE(0x3e0002, 0x3e0003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff)
|
||||
AM_RANGE(0x400000, 0x40000f) AM_READWRITE(TC0220IOC_halfword_r, TC0220IOC_halfword_w)
|
||||
AM_RANGE(0xc00000, 0xc0ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */
|
||||
AM_RANGE(0xc10000, 0xc103ff) AM_WRITENOP /* error in Asuka init code */
|
||||
@ -360,8 +360,8 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( cadash_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x07ffff) AM_ROM
|
||||
AM_RANGE(0x080000, 0x080003) AM_WRITE(asuka_spritectrl_w)
|
||||
AM_RANGE(0x0c0000, 0x0c0001) AM_READWRITE(SMH_NOP, taitosound_port16_lsb_w)
|
||||
AM_RANGE(0x0c0002, 0x0c0003) AM_READWRITE(taitosound_comm16_lsb_r, taitosound_comm16_lsb_w)
|
||||
AM_RANGE(0x0c0000, 0x0c0001) AM_READNOP AM_WRITE8(taitosound_port_w, 0x00ff)
|
||||
AM_RANGE(0x0c0002, 0x0c0003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff)
|
||||
AM_RANGE(0x100000, 0x107fff) AM_RAM
|
||||
AM_RANGE(0x800000, 0x800fff) AM_RAM /* network ram */
|
||||
AM_RANGE(0x900000, 0x90000f) AM_READWRITE(TC0220IOC_halfword_r, TC0220IOC_halfword_w)
|
||||
@ -378,8 +378,8 @@ static ADDRESS_MAP_START( eto_map, ADDRESS_SPACE_PROGRAM, 16 ) /* N.B. tc100scn
|
||||
AM_RANGE(0x300000, 0x30000f) AM_READWRITE(TC0220IOC_halfword_r, TC0220IOC_halfword_w)
|
||||
AM_RANGE(0x400000, 0x40000f) AM_READ(TC0220IOC_halfword_r) /* service mode mirror */
|
||||
AM_RANGE(0x4a0000, 0x4a0003) AM_WRITE(asuka_spritectrl_w)
|
||||
AM_RANGE(0x4e0000, 0x4e0001) AM_READWRITE(SMH_NOP, taitosound_port16_lsb_w)
|
||||
AM_RANGE(0x4e0002, 0x4e0003) AM_READWRITE(taitosound_comm16_lsb_r, taitosound_comm16_lsb_w)
|
||||
AM_RANGE(0x4e0000, 0x4e0001) AM_READNOP AM_WRITE8(taitosound_port_w, 0x00ff)
|
||||
AM_RANGE(0x4e0002, 0x4e0003) AM_READWRITE8(taitosound_comm_r, taitosound_comm_w, 0x00ff)
|
||||
AM_RANGE(0xc00000, 0xc03fff) AM_READWRITE(PC090OJ_word_0_r, PC090OJ_word_0_w) /* sprite ram */
|
||||
AM_RANGE(0xc00000, 0xc0ffff) AM_WRITE(TC0100SCN_word_0_w) /* service mode mirror */
|
||||
AM_RANGE(0xd00000, 0xd0ffff) AM_READWRITE(TC0100SCN_word_0_r, TC0100SCN_word_0_w) /* tilemaps */
|
||||
|
@ -162,7 +162,7 @@ static ADDRESS_MAP_START( atarifb_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2002, 0x2002) AM_WRITE(atarifb_out2_w) /* OUT 2 */
|
||||
AM_RANGE(0x2003, 0x2003) AM_WRITE(atarifb_out3_w) /* OUT 3 */
|
||||
AM_RANGE(0x3000, 0x3000) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x3000, 0x3000) AM_WRITE(SMH_NOP) /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x3000, 0x3000) AM_WRITENOP /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x4000, 0x4000) AM_READ(atarifb_in0_r)
|
||||
AM_RANGE(0x4002, 0x4002) AM_READ(atarifb_in2_r)
|
||||
AM_RANGE(0x5000, 0x5000) AM_WRITE(watchdog_reset_w)
|
||||
@ -183,7 +183,7 @@ static ADDRESS_MAP_START( atarifb4_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2002, 0x2002) AM_WRITE(atarifb_out2_w) /* OUT 2 */
|
||||
AM_RANGE(0x2003, 0x2003) AM_WRITE(atarifb_out3_w) /* OUT 3 */
|
||||
AM_RANGE(0x3000, 0x3000) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x3000, 0x3000) AM_WRITE(SMH_NOP) /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x3000, 0x3000) AM_WRITENOP /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x4000, 0x4000) AM_READ(atarifb4_in0_r)
|
||||
AM_RANGE(0x4001, 0x4001) AM_READ_PORT("EXTRA")
|
||||
AM_RANGE(0x4002, 0x4002) AM_READ(atarifb4_in2_r)
|
||||
@ -205,7 +205,7 @@ static ADDRESS_MAP_START( abaseb_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2002, 0x2002) AM_WRITE(atarifb_out2_w) /* OUT 2 */
|
||||
AM_RANGE(0x2003, 0x2003) AM_WRITE(atarifb_out3_w) /* OUT 3 */
|
||||
AM_RANGE(0x3000, 0x3000) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x3000, 0x3000) AM_WRITE(SMH_NOP) /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x3000, 0x3000) AM_WRITENOP /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x4000, 0x4000) AM_READ(atarifb_in0_r)
|
||||
AM_RANGE(0x4002, 0x4002) AM_READ(atarifb_in2_r)
|
||||
AM_RANGE(0x5000, 0x5000) AM_WRITE(watchdog_reset_w)
|
||||
@ -224,7 +224,7 @@ static ADDRESS_MAP_START( soccer_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1000, 0x1000) AM_WRITE(SMH_RAM) AM_BASE(&atarifb_scroll_register) /* OUT 0 */
|
||||
AM_RANGE(0x1001, 0x1001) AM_WRITE(soccer_out1_w) /* OUT 1 */
|
||||
AM_RANGE(0x1002, 0x1002) AM_WRITE(soccer_out2_w) /* OUT 2 */
|
||||
AM_RANGE(0x1004, 0x1004) AM_WRITE(SMH_NOP) /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x1004, 0x1004) AM_WRITENOP /* Interrupt Acknowledge */
|
||||
AM_RANGE(0x1005, 0x1005) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x1800, 0x1800) AM_READ(atarifb4_in0_r)
|
||||
AM_RANGE(0x1801, 0x1801) AM_READ_PORT("EXTRA")
|
||||
|
@ -607,7 +607,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0xe08000, 0xe08003) AM_WRITE(latch_w)
|
||||
AM_RANGE(0xe0a000, 0xe0a003) AM_WRITE(atarigen_scanline_int_ack32_w)
|
||||
AM_RANGE(0xe0c000, 0xe0c003) AM_WRITE(atarigen_video_int_ack32_w)
|
||||
AM_RANGE(0xe0e000, 0xe0e003) AM_WRITE(SMH_NOP)//watchdog_reset_w },
|
||||
AM_RANGE(0xe0e000, 0xe0e003) AM_WRITENOP//watchdog_reset_w },
|
||||
AM_RANGE(0xe80000, 0xe80003) AM_READ_PORT("P1_P2")
|
||||
AM_RANGE(0xe82000, 0xe82003) AM_READ(special_port2_r)
|
||||
AM_RANGE(0xe82004, 0xe82007) AM_READ(special_port3_r)
|
||||
|
@ -1176,7 +1176,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0xe06000, 0xe06003) AM_WRITE(atarigen_sound_upper32_w)
|
||||
AM_RANGE(0xe08000, 0xe08003) AM_WRITE(latch_w)
|
||||
AM_RANGE(0xe0c000, 0xe0c003) AM_WRITE(atarigen_video_int_ack32_w)
|
||||
AM_RANGE(0xe0e000, 0xe0e003) AM_WRITE(SMH_NOP)//watchdog_reset_w },
|
||||
AM_RANGE(0xe0e000, 0xe0e003) AM_WRITENOP//watchdog_reset_w },
|
||||
AM_RANGE(0xe80000, 0xe80003) AM_READ_PORT("P1_P2")
|
||||
AM_RANGE(0xe82000, 0xe82003) AM_READ(special_port2_r)
|
||||
AM_RANGE(0xe82004, 0xe82007) AM_READ(special_port3_r)
|
||||
|
@ -137,7 +137,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2000, 0x2000) AM_MIRROR(0x0ffc) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x2001, 0x2001) AM_MIRROR(0x0ffc) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0x2002, 0x2002) AM_MIRROR(0x0ffc) AM_READ_PORT("PADDLE")
|
||||
AM_RANGE(0x2003, 0x2003) AM_MIRROR(0x0ffc) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x2003, 0x2003) AM_MIRROR(0x0ffc) AM_READNOP
|
||||
AM_RANGE(0x3000, 0x3000) AM_MIRROR(0x0fff) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x4000, 0x4000) AM_MIRROR(0x0ff8) AM_WRITE(avalance_credit_1_lamp_w)
|
||||
AM_RANGE(0x4001, 0x4001) AM_MIRROR(0x0ff8) AM_DEVWRITE("discrete", avalnche_attract_enable_w)
|
||||
|
@ -332,7 +332,7 @@ static ADDRESS_MAP_START( backfire_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
|
||||
AM_RANGE(0x1a8000, 0x1a8003) AM_RAM AM_BASE(&backfire_left_priority)
|
||||
AM_RANGE(0x1ac000, 0x1ac003) AM_RAM AM_BASE(&backfire_right_priority)
|
||||
// AM_RANGE(0x1b0000, 0x1b0003) AM_WRITE(SMH_NOP) // always 1b0000
|
||||
// AM_RANGE(0x1b0000, 0x1b0003) AM_WRITENOP // always 1b0000
|
||||
|
||||
/* when set to pentometer in test mode */
|
||||
// AM_RANGE(0x1e4000, 0x1e4003) AM_READ(backfire_unknown_wheel_r)
|
||||
|
@ -192,9 +192,9 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xc000, 0xffff) AM_ROM /* Super Bagman only */
|
||||
|
||||
#if 0
|
||||
AM_RANGE(0xa007, 0xa007) AM_WRITE(SMH_NOP) /* ???? */
|
||||
AM_RANGE(0xb000, 0xb000) AM_WRITE(SMH_NOP) /* ???? */
|
||||
AM_RANGE(0xb800, 0xb800) AM_WRITE(SMH_NOP) /* ???? */
|
||||
AM_RANGE(0xa007, 0xa007) AM_WRITENOP /* ???? */
|
||||
AM_RANGE(0xb000, 0xb000) AM_WRITENOP /* ???? */
|
||||
AM_RANGE(0xb800, 0xb800) AM_WRITENOP /* ???? */
|
||||
#endif
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -208,7 +208,7 @@ static ADDRESS_MAP_START( pickin_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x9800, 0x981f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size) /* hidden portion of color RAM */
|
||||
/* here only to initialize the pointer, */
|
||||
/* writes are handled by bagman_colorram_w */
|
||||
AM_RANGE(0x9c00, 0x9fff) AM_WRITE(SMH_NOP) /* written to, but unused */
|
||||
AM_RANGE(0x9c00, 0x9fff) AM_WRITENOP /* written to, but unused */
|
||||
AM_RANGE(0xa000, 0xa000) AM_WRITE(interrupt_enable_w)
|
||||
AM_RANGE(0xa001, 0xa002) AM_WRITE(bagman_flipscreen_w)
|
||||
AM_RANGE(0xa003, 0xa003) AM_WRITE(SMH_RAM) AM_BASE(&bagman_video_enable)
|
||||
@ -216,9 +216,9 @@ static ADDRESS_MAP_START( pickin_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xa800, 0xa800) AM_READ_PORT("DSW")
|
||||
|
||||
|
||||
AM_RANGE(0xa005, 0xa005) AM_WRITE(SMH_NOP) /* ???? */
|
||||
AM_RANGE(0xa006, 0xa006) AM_WRITE(SMH_NOP) /* ???? */
|
||||
AM_RANGE(0xa007, 0xa007) AM_WRITE(SMH_NOP) /* ???? */
|
||||
AM_RANGE(0xa005, 0xa005) AM_WRITENOP /* ???? */
|
||||
AM_RANGE(0xa006, 0xa006) AM_WRITENOP /* ???? */
|
||||
AM_RANGE(0xa007, 0xa007) AM_WRITENOP /* ???? */
|
||||
|
||||
/* guess */
|
||||
AM_RANGE(0xb000, 0xb000) AM_DEVWRITE("ay2", ay8910_address_w)
|
||||
@ -229,7 +229,7 @@ static ADDRESS_MAP_START( main_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x08, 0x09) AM_DEVWRITE("ay", ay8910_address_data_w)
|
||||
AM_RANGE(0x0c, 0x0c) AM_DEVREAD("ay", ay8910_r)
|
||||
//AM_RANGE(0x56, 0x56) AM_WRITE(SMH_NOP)
|
||||
//AM_RANGE(0x56, 0x56) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -200,8 +200,8 @@ static ADDRESS_MAP_START( mcu_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1105, 0x1105) AM_READ(soundkludge_r) /* cures speech */
|
||||
AM_RANGE(0x1000, 0x13ff) AM_DEVREADWRITE("namco", namcos1_cus30_r,namcos1_cus30_w) AM_BASE(&namco_wavedata)/* PSG device, shared RAM */
|
||||
AM_RANGE(0x8000, 0xbfff) AM_READ(SMH_ROM) /* MCU external ROM */
|
||||
AM_RANGE(0x8000, 0x8000) AM_WRITE(SMH_NOP) /* watchdog reset? */
|
||||
AM_RANGE(0x8800, 0x8800) AM_WRITE(SMH_NOP) /* irq acknoledge? */
|
||||
AM_RANGE(0x8000, 0x8000) AM_WRITENOP /* watchdog reset? */
|
||||
AM_RANGE(0x8800, 0x8800) AM_WRITENOP /* irq acknoledge? */
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_RAM /* RAM */
|
||||
AM_RANGE(0xf000, 0xffff) AM_READ(SMH_ROM) /* MCU internal ROM */
|
||||
ADDRESS_MAP_END
|
||||
|
@ -89,7 +89,7 @@ static ADDRESS_MAP_START( io_map, ADDRESS_SPACE_IO, 8 )
|
||||
|
||||
/* 0x30 looks like scroll, but can't be ? changes (increases or decreases)
|
||||
depending on the direction your ship is facing on lev 2. at least */
|
||||
AM_RANGE(0x30, 0x30) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30, 0x30) AM_WRITENOP
|
||||
|
||||
AM_RANGE(0x32, 0x32) AM_WRITE(battlex_scroll_x_lsb_w)
|
||||
AM_RANGE(0x33, 0x33) AM_WRITE(battlex_scroll_x_msb_w)
|
||||
|
@ -343,7 +343,7 @@ static ADDRESS_MAP_START( bbuster_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x0e0018, 0x0e0019) AM_READ(sound_status_r)
|
||||
AM_RANGE(0x0e8000, 0x0e8001) AM_READWRITE(kludge_r, gun_select_w)
|
||||
AM_RANGE(0x0e8002, 0x0e8003) AM_READ(control_3_r)
|
||||
AM_RANGE(0x0f0008, 0x0f0009) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x0f0008, 0x0f0009) AM_WRITENOP
|
||||
AM_RANGE(0x0f0018, 0x0f0019) AM_WRITE(sound_cpu_w)
|
||||
AM_RANGE(0x0f8000, 0x0f80ff) AM_READWRITE(eprom_r, SMH_RAM) AM_BASE(&eprom_data) /* Eeprom */
|
||||
ADDRESS_MAP_END
|
||||
@ -364,7 +364,7 @@ static ADDRESS_MAP_START( mechatt_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x0e0000, 0x0e0001) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x0e0002, 0x0e0003) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0x0e0004, 0x0e0007) AM_READ(mechatt_gun_r)
|
||||
AM_RANGE(0x0e4002, 0x0e4003) AM_WRITE(SMH_NOP) /* Gun force feedback? */
|
||||
AM_RANGE(0x0e4002, 0x0e4003) AM_WRITENOP /* Gun force feedback? */
|
||||
AM_RANGE(0x0e8000, 0x0e8001) AM_READWRITE(sound_status_r, sound_cpu_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -379,13 +379,13 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( sound_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ym", ym2610_r, ym2610_w)
|
||||
AM_RANGE(0xc0, 0xc1) AM_WRITE(SMH_NOP) /* -> Main CPU */
|
||||
AM_RANGE(0xc0, 0xc1) AM_WRITENOP /* -> Main CPU */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sounda_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("ym", ym2608_r, ym2608_w)
|
||||
AM_RANGE(0xc0, 0xc1) AM_WRITE(SMH_NOP) /* -> Main CPU */
|
||||
AM_RANGE(0xc0, 0xc1) AM_WRITENOP /* -> Main CPU */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -342,7 +342,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x41000700, 0x41000703) AM_WRITE(watchdog_reset32_w)
|
||||
AM_RANGE(0x42000000, 0x4201ffff) AM_RAM_WRITE(beathead_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x43000000, 0x43000007) AM_READWRITE(beathead_hsync_ram_r, beathead_hsync_ram_w)
|
||||
AM_RANGE(0x8df80000, 0x8df80003) AM_READ(SMH_NOP) /* noisy x4 during scanline int */
|
||||
AM_RANGE(0x8df80000, 0x8df80003) AM_READNOP /* noisy x4 during scanline int */
|
||||
AM_RANGE(0x8f380000, 0x8f3fffff) AM_WRITE(beathead_vram_latch_w)
|
||||
AM_RANGE(0x8f900000, 0x8f97ffff) AM_WRITE(beathead_vram_transparent_w)
|
||||
AM_RANGE(0x8f980000, 0x8f9fffff) AM_RAM AM_BASE(&videoram32)
|
||||
|
@ -1455,7 +1455,7 @@ static ADDRESS_MAP_START( m6809_prog_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
// AM_RANGE(0x3600, 0x3600) AM_NOP
|
||||
AM_RANGE(0x3801, 0x3801) AM_DEVREADWRITE("upd", upd_r, upd_w)
|
||||
AM_RANGE(0x8000, 0xffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) /* Watchdog */
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITENOP /* Watchdog */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static INPUT_PORTS_START( bfcobra )
|
||||
|
@ -306,7 +306,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( bigevglf_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_WRITE(SMH_NOP) /* video ram enable ???*/
|
||||
AM_RANGE(0x00, 0x00) AM_WRITENOP /* video ram enable ???*/
|
||||
AM_RANGE(0x01, 0x01) AM_WRITE(bigevglf_gfxcontrol_w) /* plane select */
|
||||
AM_RANGE(0x02, 0x02) AM_WRITE(beg_banking_w)
|
||||
AM_RANGE(0x03, 0x03) AM_WRITE(beg13A_set_w)
|
||||
@ -342,17 +342,17 @@ static READ8_HANDLER( sub_cpu_mcu_coin_port_r )
|
||||
static ADDRESS_MAP_START( bigevglf_sub_portmap, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_READ_PORT("PORT00")
|
||||
AM_RANGE(0x01, 0x01) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x01, 0x01) AM_READNOP
|
||||
AM_RANGE(0x02, 0x02) AM_READ(beg_trackball_x_r)
|
||||
AM_RANGE(0x03, 0x03) AM_READ(beg_trackball_y_r)
|
||||
AM_RANGE(0x04, 0x04) AM_READ(sub_cpu_mcu_coin_port_r)
|
||||
AM_RANGE(0x05, 0x05) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0x06, 0x06) AM_READ_PORT("DSW2")
|
||||
AM_RANGE(0x07, 0x07) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x07, 0x07) AM_READNOP
|
||||
AM_RANGE(0x08, 0x08) AM_WRITE(beg_port08_w) /* muxed port select + other unknown stuff */
|
||||
AM_RANGE(0x0b, 0x0b) AM_READ(bigevglf_mcu_r)
|
||||
AM_RANGE(0x0c, 0x0c) AM_WRITE(bigevglf_mcu_w)
|
||||
AM_RANGE(0x0e, 0x0e) AM_WRITE(SMH_NOP) /* 0-enable MCU, 1-keep reset line ASSERTED; D0 goes to the input of ls74 and the /Q of this ls74 goes to reset line on 68705 */
|
||||
AM_RANGE(0x0e, 0x0e) AM_WRITENOP /* 0-enable MCU, 1-keep reset line ASSERTED; D0 goes to the input of ls74 and the /Q of this ls74 goes to reset line on 68705 */
|
||||
AM_RANGE(0x10, 0x17) AM_WRITE(beg13A_clr_w)
|
||||
AM_RANGE(0x18, 0x1f) AM_WRITE(beg13B_set_w)
|
||||
AM_RANGE(0x20, 0x20) AM_READWRITE(beg_fromsound_r, sound_command_w)
|
||||
@ -370,8 +370,8 @@ static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_RAM
|
||||
AM_RANGE(0xc800, 0xc801) AM_DEVWRITE("ay", ay8910_address_data_w)
|
||||
AM_RANGE(0xca00, 0xca0d) AM_DEVWRITE("msm", msm5232_w)
|
||||
AM_RANGE(0xcc00, 0xcc00) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xce00, 0xce00) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xcc00, 0xcc00) AM_WRITENOP
|
||||
AM_RANGE(0xce00, 0xce00) AM_WRITENOP
|
||||
AM_RANGE(0xd800, 0xd800) AM_READWRITE(sound_command_r, beg_fromsound_w) /* write to D800 sets bit 1 in status */
|
||||
AM_RANGE(0xda00, 0xda00) AM_READWRITE(soundstate_r, nmi_enable_w)
|
||||
AM_RANGE(0xdc00, 0xdc00) AM_WRITE(nmi_disable_w)
|
||||
|
@ -170,7 +170,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x800006, 0x800007) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0x800008, 0x800009) AM_READ_PORT("INPUTS")
|
||||
AM_RANGE(0x810000, 0x810003) AM_WRITE(control2_w) // bank switch for K056832 character ROM test
|
||||
AM_RANGE(0x820000, 0x820001) AM_WRITE(SMH_NOP) // lamps (see lamp test in service menu)
|
||||
AM_RANGE(0x820000, 0x820001) AM_WRITENOP // lamps (see lamp test in service menu)
|
||||
AM_RANGE(0x830000, 0x83003f) AM_WRITE(K056832_word_w)
|
||||
AM_RANGE(0x840000, 0x840007) AM_WRITE(K056832_b_word_w) // VSCCS
|
||||
AM_RANGE(0x850000, 0x85001f) AM_WRITE(K054338_word_w) // CLTC
|
||||
|
@ -124,7 +124,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2f00, 0x2f03) AM_READ(trackball_r) /* Trackballs */
|
||||
AM_RANGE(0x2f40, 0x2f40) AM_WRITE(bladestl_bankswitch_w) /* bankswitch control */
|
||||
AM_RANGE(0x2f80, 0x2f9f) AM_READWRITE(K051733_r, K051733_w) /* Protection: 051733 */
|
||||
AM_RANGE(0x2fc0, 0x2fc0) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0x2fc0, 0x2fc0) AM_WRITENOP /* ??? */
|
||||
AM_RANGE(0x4000, 0x5fff) AM_RAM /* Work RAM */
|
||||
AM_RANGE(0x6000, 0x7fff) AM_READWRITE(SMH_BANK1, SMH_RAM) /* banked ROM */
|
||||
AM_RANGE(0x8000, 0xffff) AM_ROM
|
||||
@ -135,7 +135,7 @@ static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1000, 0x1001) AM_DEVREADWRITE("ym", ym2203_r, ym2203_w) /* YM2203 */
|
||||
AM_RANGE(0x3000, 0x3000) AM_DEVWRITE("upd", bladestl_speech_ctrl_w) /* UPD7759 */
|
||||
AM_RANGE(0x4000, 0x4000) AM_DEVREAD("upd", bladestl_speech_busy_r) /* UPD7759 */
|
||||
AM_RANGE(0x5000, 0x5000) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0x5000, 0x5000) AM_WRITENOP /* ??? */
|
||||
AM_RANGE(0x6000, 0x6000) AM_READ(soundlatch_r) /* soundlatch_r */
|
||||
AM_RANGE(0x8000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
@ -81,7 +81,7 @@ static ADDRESS_MAP_START( port_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x04, 0x04) AM_READ_PORT("DSW1") AM_WRITE(blktiger_video_control_w)
|
||||
AM_RANGE(0x05, 0x05) AM_READ_PORT("FREEZE")
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x07, 0x07) AM_READ(blktiger_protection_r) AM_WRITE(SMH_NOP) /* Software protection (7) */
|
||||
AM_RANGE(0x07, 0x07) AM_READ(blktiger_protection_r) AM_WRITENOP /* Software protection (7) */
|
||||
AM_RANGE(0x08, 0x09) AM_WRITE(blktiger_scrollx_w)
|
||||
AM_RANGE(0x0a, 0x0b) AM_WRITE(blktiger_scrolly_w)
|
||||
AM_RANGE(0x0c, 0x0c) AM_WRITE(blktiger_video_enable_w)
|
||||
|
@ -87,7 +87,7 @@ static ADDRESS_MAP_START( audio_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x8000, 0x87ff) AM_RAM
|
||||
AM_RANGE(0xa000, 0xa000) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0xc000, 0xc001) AM_DEVREADWRITE("ym", ym2151_r, ym2151_w)
|
||||
AM_RANGE(0xe00c, 0xe00d) AM_WRITE(SMH_NOP) /* leftover from missing 007232? */
|
||||
AM_RANGE(0xe00c, 0xe00d) AM_WRITENOP /* leftover from missing 007232? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -54,7 +54,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x100006, 0x100007) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0x100008, 0x100009) AM_READ_PORT("DSW2")
|
||||
AM_RANGE(0x100014, 0x100015) AM_WRITE(blockout_sound_command_w)
|
||||
AM_RANGE(0x100016, 0x100017) AM_WRITE(SMH_NOP) /* don't know, maybe reset sound CPU */
|
||||
AM_RANGE(0x100016, 0x100017) AM_WRITENOP /* don't know, maybe reset sound CPU */
|
||||
AM_RANGE(0x180000, 0x1bffff) AM_RAM_WRITE(blockout_videoram_w) AM_BASE(&blockout_videoram)
|
||||
AM_RANGE(0x1d4000, 0x1dffff) AM_RAM /* work RAM */
|
||||
AM_RANGE(0x1f4000, 0x1fffff) AM_RAM /* work RAM */
|
||||
|
@ -329,20 +329,20 @@ static ADDRESS_MAP_START( bmcbowl_mem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
|
||||
AM_RANGE(0x090000, 0x090001) AM_WRITE(bmc_RAMDAC_offset_w)
|
||||
AM_RANGE(0x090002, 0x090003) AM_WRITE(bmc_RAMDAC_color_w)
|
||||
AM_RANGE(0x090004, 0x090005) AM_WRITE(SMH_NOP)//RAMDAC
|
||||
AM_RANGE(0x090004, 0x090005) AM_WRITENOP//RAMDAC
|
||||
|
||||
AM_RANGE(0x090800, 0x090803) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x091000, 0x091001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x090800, 0x090803) AM_WRITENOP
|
||||
AM_RANGE(0x091000, 0x091001) AM_WRITENOP
|
||||
AM_RANGE(0x091800, 0x091801) AM_WRITE(scroll_w)
|
||||
|
||||
AM_RANGE(0x092000, 0x09201f) AM_READWRITE(bmcbowl_via_r, bmcbowl_via_w)
|
||||
|
||||
AM_RANGE(0x093000, 0x093003) AM_WRITE(SMH_NOP) // related to music
|
||||
AM_RANGE(0x093000, 0x093003) AM_WRITENOP // related to music
|
||||
AM_RANGE(0x092800, 0x092803) AM_DEVWRITE8("ay", ay8910_data_address_w, 0xff00)
|
||||
AM_RANGE(0x092802, 0x092803) AM_DEVREAD8("ay", ay8910_r, 0xff00)
|
||||
AM_RANGE(0x093802, 0x093803) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x095000, 0x095fff) AM_RAM AM_BASE((UINT16 **)&stats_ram) AM_SIZE(&stats_ram_size) /* 8 bit */
|
||||
AM_RANGE(0x097000, 0x097001) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x097000, 0x097001) AM_READNOP
|
||||
AM_RANGE(0x140000, 0x1bffff) AM_ROM
|
||||
AM_RANGE(0x1c0000, 0x1effff) AM_RAM AM_BASE(&bmcbowl_vid1)
|
||||
AM_RANGE(0x1f0000, 0x1fffff) AM_RAM
|
||||
@ -351,13 +351,13 @@ static ADDRESS_MAP_START( bmcbowl_mem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x28c000, 0x28c001) AM_DEVREADWRITE8("oki", okim6295_r, okim6295_w, 0xff00)
|
||||
|
||||
/* protection device*/
|
||||
AM_RANGE(0x30c000, 0x30c001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30c040, 0x30c041) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30c080, 0x30c081) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30c0c0, 0x30c0c1) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30c000, 0x30c001) AM_WRITENOP
|
||||
AM_RANGE(0x30c040, 0x30c041) AM_WRITENOP
|
||||
AM_RANGE(0x30c080, 0x30c081) AM_WRITENOP
|
||||
AM_RANGE(0x30c0c0, 0x30c0c1) AM_WRITENOP
|
||||
AM_RANGE(0x30c100, 0x30c101) AM_READ(bmc_protection_r)
|
||||
AM_RANGE(0x30c140, 0x30c141) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30ca00, 0x30ca01) AM_READ(bmc_random_read) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30c140, 0x30c141) AM_WRITENOP
|
||||
AM_RANGE(0x30ca00, 0x30ca01) AM_READ(bmc_random_read) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -1237,11 +1237,11 @@ static ADDRESS_MAP_START( bnstars_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0xfcc00008, 0xfcc0000b) AM_READ( bnstars2_r )
|
||||
AM_RANGE(0xfcc00010, 0xfcc00013) AM_READ( bnstars3_r )
|
||||
|
||||
AM_RANGE(0xfce00034, 0xfce00037) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xfce00034, 0xfce00037) AM_WRITENOP
|
||||
|
||||
AM_RANGE(0xfce00050, 0xfce00053) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xfce00058, 0xfce0005b) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xfce0005c, 0xfce0005f) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xfce00050, 0xfce00053) AM_WRITENOP
|
||||
AM_RANGE(0xfce00058, 0xfce0005b) AM_WRITENOP
|
||||
AM_RANGE(0xfce0005c, 0xfce0005f) AM_WRITENOP
|
||||
|
||||
AM_RANGE(0xfce00400, 0xfce0045f) AM_WRITE(SMH_RAM) AM_BASE(&ms32_roz_ctrl[0])
|
||||
AM_RANGE(0xfce00700, 0xfce0075f) AM_WRITE(SMH_RAM) AM_BASE(&ms32_roz_ctrl[1]) // guess
|
||||
|
@ -145,14 +145,14 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x9000, 0x93ff) AM_RAM_WRITE(bombjack_videoram_w) AM_BASE(&videoram)
|
||||
AM_RANGE(0x9400, 0x97ff) AM_RAM_WRITE(bombjack_colorram_w) AM_BASE(&colorram)
|
||||
AM_RANGE(0x9820, 0x987f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x9a00, 0x9a00) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x9a00, 0x9a00) AM_WRITENOP
|
||||
AM_RANGE(0x9c00, 0x9cff) AM_WRITE(paletteram_xxxxBBBBGGGGRRRR_le_w) AM_BASE(&paletteram)
|
||||
AM_RANGE(0x9e00, 0x9e00) AM_WRITE(bombjack_background_w)
|
||||
AM_RANGE(0xb000, 0xb000) AM_READ_PORT("P1")
|
||||
AM_RANGE(0xb000, 0xb000) AM_WRITE(interrupt_enable_w)
|
||||
AM_RANGE(0xb001, 0xb001) AM_READ_PORT("P2")
|
||||
AM_RANGE(0xb002, 0xb002) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0xb003, 0xb003) AM_READ(SMH_NOP) /* watchdog reset? */
|
||||
AM_RANGE(0xb003, 0xb003) AM_READNOP /* watchdog reset? */
|
||||
AM_RANGE(0xb004, 0xb004) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0xb004, 0xb004) AM_WRITE(bombjack_flipscreen_w)
|
||||
AM_RANGE(0xb005, 0xb005) AM_READ_PORT("DSW2")
|
||||
|
@ -123,7 +123,7 @@ static ADDRESS_MAP_START( darwin_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1400, 0x1bff) AM_RAM
|
||||
AM_RANGE(0x1c00, 0x1fff) AM_RAM_WRITE(brkthru_bgram_w) AM_BASE(&videoram) AM_SIZE(&videoram_size)
|
||||
AM_RANGE(0x0000, 0x00ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x0100, 0x01ff) AM_WRITE(SMH_NOP) /*tidyup, nothing realy here?*/
|
||||
AM_RANGE(0x0100, 0x01ff) AM_WRITENOP /*tidyup, nothing realy here?*/
|
||||
AM_RANGE(0x0800, 0x0800) AM_READ_PORT("P1")
|
||||
AM_RANGE(0x0801, 0x0801) AM_READ_PORT("P2")
|
||||
AM_RANGE(0x0802, 0x0802) AM_READ_PORT("DSW1")
|
||||
|
@ -80,9 +80,9 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0800, 0x0800) AM_READ(bsktball_in0_r)
|
||||
AM_RANGE(0x0802, 0x0802) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0x0803, 0x0803) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0x1000, 0x1000) AM_WRITE(SMH_NOP) /* Timer Reset */
|
||||
AM_RANGE(0x1000, 0x1000) AM_WRITENOP /* Timer Reset */
|
||||
AM_RANGE(0x1010, 0x1010) AM_DEVWRITE("discrete", bsktball_bounce_w) /* Crowd Amp / Bounce */
|
||||
AM_RANGE(0x1022, 0x1023) AM_WRITE(SMH_NOP) /* Coin Counter */
|
||||
AM_RANGE(0x1022, 0x1023) AM_WRITENOP /* Coin Counter */
|
||||
AM_RANGE(0x1024, 0x1025) AM_WRITE(bsktball_led1_w) /* LED 1 */
|
||||
AM_RANGE(0x1026, 0x1027) AM_WRITE(bsktball_led2_w) /* LED 2 */
|
||||
AM_RANGE(0x1028, 0x1029) AM_WRITE(bsktball_ld1_w) /* LD 1 */
|
||||
|
@ -198,12 +198,12 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x20000300, 0x2000037f) AM_READWRITE(btoads_paletteram_r, btoads_paletteram_w)
|
||||
AM_RANGE(0x20000380, 0x200003ff) AM_READWRITE(main_sound_r, main_sound_w)
|
||||
AM_RANGE(0x20000400, 0x2000047f) AM_WRITE(btoads_misc_control_w)
|
||||
AM_RANGE(0x40000000, 0x4000000f) AM_WRITE(SMH_NOP) /* watchdog? */
|
||||
AM_RANGE(0x40000000, 0x4000000f) AM_WRITENOP /* watchdog? */
|
||||
AM_RANGE(0x60000000, 0x6003ffff) AM_RAM AM_BASE(&generic_nvram16) AM_SIZE(&generic_nvram_size)
|
||||
AM_RANGE(0xa0000000, 0xa03fffff) AM_READWRITE(btoads_vram_fg_display_r, btoads_vram_fg_display_w) AM_BASE(&btoads_vram_fg0)
|
||||
AM_RANGE(0xa4000000, 0xa43fffff) AM_READWRITE(btoads_vram_fg_draw_r, btoads_vram_fg_draw_w) AM_BASE(&btoads_vram_fg1)
|
||||
AM_RANGE(0xa8000000, 0xa87fffff) AM_RAM AM_BASE(&btoads_vram_fg_data)
|
||||
AM_RANGE(0xa8800000, 0xa8ffffff) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xa8800000, 0xa8ffffff) AM_WRITENOP
|
||||
AM_RANGE(0xb0000000, 0xb03fffff) AM_READWRITE(btoads_vram_bg0_r, btoads_vram_bg0_w) AM_BASE(&btoads_vram_bg0)
|
||||
AM_RANGE(0xb4000000, 0xb43fffff) AM_READWRITE(btoads_vram_bg1_r, btoads_vram_bg1_w) AM_BASE(&btoads_vram_bg1)
|
||||
AM_RANGE(0xc0000000, 0xc00003ff) AM_READWRITE(tms34020_io_register_r, tms34020_io_register_w)
|
||||
|
@ -171,7 +171,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xd500, 0xd57f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0xd610, 0xd610) AM_WRITE(sound_command_w)
|
||||
// AM_RANGE(0xd613, 0xd613) // reset sound cpu & sound chips
|
||||
AM_RANGE(0xd618, 0xd618) AM_WRITE(SMH_NOP) /* accelerator clear */
|
||||
AM_RANGE(0xd618, 0xd618) AM_WRITENOP /* accelerator clear */
|
||||
AM_RANGE(0xd700, 0xd7ff) AM_WRITE(paletteram_xxxxRRRRGGGGBBBB_be_w) AM_BASE(&paletteram)
|
||||
AM_RANGE(0xd840, 0xd85f) AM_WRITE(SMH_RAM) AM_BASE(&buggychl_scrollv)
|
||||
AM_RANGE(0xdb00, 0xdbff) AM_WRITE(SMH_RAM) AM_BASE(&buggychl_scrollh)
|
||||
|
@ -367,7 +367,7 @@ static ADDRESS_MAP_START( bwidow_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x88c0, 0x88c0) AM_WRITE(irq_ack_w) /* interrupt acknowledge */
|
||||
AM_RANGE(0x8900, 0x8900) AM_DEVWRITE("earom", atari_vg_earom_ctrl_w)
|
||||
AM_RANGE(0x8940, 0x897f) AM_DEVWRITE("earom", atari_vg_earom_w)
|
||||
AM_RANGE(0x8980, 0x89ed) AM_WRITE(SMH_NOP) /* watchdog clear */
|
||||
AM_RANGE(0x8980, 0x89ed) AM_WRITENOP /* watchdog clear */
|
||||
AM_RANGE(0x9000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -376,11 +376,11 @@ static ADDRESS_MAP_START( spacduel_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x03ff) AM_RAM
|
||||
AM_RANGE(0x0800, 0x0800) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x0900, 0x0907) AM_READ(spacduel_IN3_r) /* IN1 */
|
||||
AM_RANGE(0x0905, 0x0906) AM_WRITE(SMH_NOP) /* ignore? */
|
||||
AM_RANGE(0x0905, 0x0906) AM_WRITENOP /* ignore? */
|
||||
AM_RANGE(0x0a00, 0x0a00) AM_DEVREAD("earom", atari_vg_earom_r)
|
||||
// AM_RANGE(0x0c00, 0x0c00) AM_WRITE(coin_counter_w) /* coin out */
|
||||
AM_RANGE(0x0c80, 0x0c80) AM_WRITE(avgdvg_go_w)
|
||||
AM_RANGE(0x0d00, 0x0d00) AM_WRITE(SMH_NOP) /* watchdog clear */
|
||||
AM_RANGE(0x0d00, 0x0d00) AM_WRITENOP /* watchdog clear */
|
||||
AM_RANGE(0x0d80, 0x0d80) AM_WRITE(avgdvg_reset_w)
|
||||
AM_RANGE(0x0e00, 0x0e00) AM_WRITE(irq_ack_w) /* interrupt acknowledge */
|
||||
AM_RANGE(0x0e80, 0x0e80) AM_DEVWRITE("earom", atari_vg_earom_ctrl_w)
|
||||
|
@ -198,7 +198,7 @@ static ADDRESS_MAP_START( bwp1_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1c00, 0x1c07) AM_WRITE(bwp1_ctrl_w)
|
||||
AM_RANGE(0x2000, 0x3fff) AM_WRITE(bwing_scrollram_w)
|
||||
AM_RANGE(0x1000, 0x1fff) AM_WRITE(SMH_RAM) // falls through
|
||||
AM_RANGE(0x4000, 0xffff) AM_WRITE(SMH_NOP) // "B-Wings US" writes to 9631-9632(debug?)
|
||||
AM_RANGE(0x4000, 0xffff) AM_WRITENOP // "B-Wings US" writes to 9631-9632(debug?)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -320,7 +320,7 @@ static ADDRESS_MAP_START( redbaron_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0800, 0x0800) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x0a00, 0x0a00) AM_READ_PORT("DSW0")
|
||||
AM_RANGE(0x0c00, 0x0c00) AM_READ_PORT("DSW1")
|
||||
AM_RANGE(0x1000, 0x1000) AM_WRITE(SMH_NOP) /* coin out */
|
||||
AM_RANGE(0x1000, 0x1000) AM_WRITENOP /* coin out */
|
||||
AM_RANGE(0x1200, 0x1200) AM_WRITE(avgdvg_go_w)
|
||||
AM_RANGE(0x1400, 0x1400) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x1600, 0x1600) AM_WRITE(avgdvg_reset_w)
|
||||
@ -329,7 +329,7 @@ static ADDRESS_MAP_START( redbaron_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1804, 0x1804) AM_DEVREAD("mathbox", mathbox_lo_r)
|
||||
AM_RANGE(0x1806, 0x1806) AM_DEVREAD("mathbox", mathbox_hi_r)
|
||||
AM_RANGE(0x1808, 0x1808) AM_WRITE(redbaron_sounds_w) /* and select joystick pot also */
|
||||
AM_RANGE(0x180a, 0x180a) AM_WRITE(SMH_NOP) /* sound reset, yet todo */
|
||||
AM_RANGE(0x180a, 0x180a) AM_WRITENOP /* sound reset, yet todo */
|
||||
AM_RANGE(0x180c, 0x180c) AM_DEVWRITE("earom", atari_vg_earom_ctrl_w)
|
||||
AM_RANGE(0x1810, 0x181f) AM_DEVREADWRITE("pokey", pokey_r, pokey_w)
|
||||
AM_RANGE(0x1820, 0x185f) AM_DEVREADWRITE("earom", atari_vg_earom_r, atari_vg_earom_w)
|
||||
|
@ -135,7 +135,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xa0008, 0xa000f) AM_READ(track_r)
|
||||
AM_RANGE(0xa0010, 0xa0011) AM_READ_PORT("INPUTS")
|
||||
AM_RANGE(0xc0000, 0xc0001) AM_WRITE(track_reset_w)
|
||||
AM_RANGE(0xc0040, 0xc0041) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0xc0040, 0xc0041) AM_WRITENOP /* ??? */
|
||||
AM_RANGE(0xc0080, 0xc0081) AM_WRITE(cabal_flipscreen_w)
|
||||
AM_RANGE(0xe0000, 0xe07ff) AM_RAM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0xe8008, 0xe8009) AM_WRITE(cabal_sound_irq_trigger_word_w) // fix coin insertion
|
||||
@ -153,7 +153,7 @@ static ADDRESS_MAP_START( cabalbl_main_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xa0000, 0xa0001) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xa0008, 0xa0009) AM_READ_PORT("JOY")
|
||||
AM_RANGE(0xa0010, 0xa0011) AM_READ_PORT("INPUTS")
|
||||
AM_RANGE(0xc0040, 0xc0041) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0xc0040, 0xc0041) AM_WRITENOP /* ??? */
|
||||
AM_RANGE(0xc0080, 0xc0081) AM_WRITE(cabal_flipscreen_w)
|
||||
AM_RANGE(0xe0000, 0xe07ff) AM_RAM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0xe8000, 0xe8003) AM_WRITE(cabalbl_sndcmd_w)
|
||||
@ -212,7 +212,7 @@ static ADDRESS_MAP_START( cabalbl_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x400a, 0x400a) AM_READ(cabalbl_snd1_r)
|
||||
AM_RANGE(0x400c, 0x400c) AM_WRITE(soundlatch2_w)
|
||||
AM_RANGE(0x400e, 0x400f) AM_DEVREADWRITE("ym", ym2151_r, ym2151_w)
|
||||
AM_RANGE(0x6000, 0x6000) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0x6000, 0x6000) AM_WRITENOP /* ??? */
|
||||
AM_RANGE(0x8000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -56,7 +56,7 @@ VIDEO_UPDATE( carjmbre );
|
||||
static ADDRESS_MAP_START( carjmbre_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x8800, 0x8800) AM_READ(SMH_NOP) //?? possibly watchdog
|
||||
AM_RANGE(0x8800, 0x8800) AM_READNOP //?? possibly watchdog
|
||||
AM_RANGE(0x9000, 0x97ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0xa000, 0xa000) AM_READ_PORT("P1")
|
||||
AM_RANGE(0xa800, 0xa800) AM_READ_PORT("P2")
|
||||
@ -69,8 +69,8 @@ static ADDRESS_MAP_START( carjmbre_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x8803, 0x8803) AM_WRITE(interrupt_enable_w)
|
||||
AM_RANGE(0x8805, 0x8806) AM_WRITE(carjmbre_bgcolor_w) //guess
|
||||
AM_RANGE(0x8807, 0x8807) AM_WRITE(carjmbre_flipscreen_w)
|
||||
AM_RANGE(0x8fc1, 0x8fc1) AM_WRITE(SMH_NOP) //overrun during initial screen clear
|
||||
AM_RANGE(0x8fe1, 0x8fe1) AM_WRITE(SMH_NOP) //overrun during initial screen clear
|
||||
AM_RANGE(0x8fc1, 0x8fc1) AM_WRITENOP //overrun during initial screen clear
|
||||
AM_RANGE(0x8fe1, 0x8fe1) AM_WRITENOP //overrun during initial screen clear
|
||||
AM_RANGE(0x9000, 0x97ff) AM_WRITE(carjmbre_videoram_w) AM_BASE(&videoram)
|
||||
AM_RANGE(0x9800, 0x985f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x9880, 0x98df) AM_WRITE(SMH_RAM) //spriteram mirror
|
||||
@ -79,11 +79,11 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( carjmbre_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x0fff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x1000, 0x10ff) AM_READ(SMH_NOP) //look to be stray reads from 10/12/14/16/18xx
|
||||
AM_RANGE(0x1200, 0x12ff) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x1400, 0x14ff) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x1600, 0x16ff) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x1800, 0x18ff) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x1000, 0x10ff) AM_READNOP //look to be stray reads from 10/12/14/16/18xx
|
||||
AM_RANGE(0x1200, 0x12ff) AM_READNOP
|
||||
AM_RANGE(0x1400, 0x14ff) AM_READNOP
|
||||
AM_RANGE(0x1600, 0x16ff) AM_READNOP
|
||||
AM_RANGE(0x1800, 0x18ff) AM_READNOP
|
||||
AM_RANGE(0x2000, 0x27ff) AM_READ(SMH_RAM)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -96,12 +96,12 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( carjmbre_sound_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0x10, 0x10) AM_WRITE(SMH_NOP) //?? written on init/0xff sound command reset
|
||||
AM_RANGE(0x10, 0x10) AM_WRITENOP //?? written on init/0xff sound command reset
|
||||
AM_RANGE(0x20, 0x21) AM_DEVWRITE("ay1", ay8910_address_data_w)
|
||||
AM_RANGE(0x22, 0x22) AM_WRITE(SMH_NOP) //?? written before and after 0x21 with same value
|
||||
AM_RANGE(0x24, 0x24) AM_READ(SMH_NOP) //??
|
||||
AM_RANGE(0x22, 0x22) AM_WRITENOP //?? written before and after 0x21 with same value
|
||||
AM_RANGE(0x24, 0x24) AM_READNOP //??
|
||||
AM_RANGE(0x30, 0x31) AM_DEVWRITE("ay2", ay8910_address_data_w)
|
||||
AM_RANGE(0x32, 0x32) AM_WRITE(SMH_NOP) //?? written before and after 0x31 with same value
|
||||
AM_RANGE(0x32, 0x32) AM_WRITENOP //?? written before and after 0x31 with same value
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static INPUT_PORTS_START( carjmbre )
|
||||
|
@ -73,7 +73,7 @@ static ADDRESS_MAP_START( io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x03, 0x03) AM_READ_PORT("IN3")
|
||||
AM_RANGE(0x04, 0x04) AM_READ_PORT("IN4")
|
||||
AM_RANGE(0x05, 0x05) AM_READ_PORT("IN5")
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(SMH_NOP) // ?
|
||||
AM_RANGE(0x06, 0x06) AM_WRITENOP // ?
|
||||
AM_RANGE(0x08, 0x09) AM_DEVWRITE("ay", ay8910_address_data_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -145,7 +145,7 @@ static ADDRESS_MAP_START( twocrude_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x0ae000, 0x0ae7ff) AM_WRITE(SMH_RAM) AM_BASE(&deco16_pf4_rowscroll)
|
||||
|
||||
AM_RANGE(0x0b0000, 0x0b07ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x0b4000, 0x0b4001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x0b4000, 0x0b4001) AM_WRITENOP
|
||||
|
||||
AM_RANGE(0x0b5000, 0x0b500f) AM_WRITE(SMH_RAM) AM_BASE(&deco16_pf12_control)
|
||||
AM_RANGE(0x0b6000, 0x0b600f) AM_WRITE(SMH_RAM) AM_BASE(&deco16_pf34_control)
|
||||
|
@ -805,7 +805,7 @@ static ADDRESS_MAP_START( mazeinv_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2500, 0x2502) AM_WRITE(coin_count_w)
|
||||
AM_RANGE(0x2503, 0x2504) AM_WRITE(led_w)
|
||||
AM_RANGE(0x2505, 0x2505) AM_WRITE(input_select_w)
|
||||
// AM_RANGE(0x2506, 0x2507) AM_WRITE(SMH_NOP) /* ? */
|
||||
// AM_RANGE(0x2506, 0x2507) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0x2580, 0x2583) AM_WRITE(mazeinv_input_select_w)
|
||||
AM_RANGE(0x2600, 0x2600) AM_WRITE(irq_ack_w)
|
||||
AM_RANGE(0x2680, 0x2680) AM_WRITE(watchdog_reset_w)
|
||||
|
@ -285,7 +285,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_WRITE(changela_mem_device_w) /* River-Tree RAMs, slope ROM, tree ROM */
|
||||
|
||||
/* LS138 - U16 */
|
||||
AM_RANGE(0xc800, 0xc800) AM_WRITE(SMH_NOP) /* not connected */
|
||||
AM_RANGE(0xc800, 0xc800) AM_WRITENOP /* not connected */
|
||||
AM_RANGE(0xc900, 0xc900) AM_WRITE(changela_mem_device_select_w) /* selects the memory device to be accessible at 0xc000-0xc7ff */
|
||||
AM_RANGE(0xca00, 0xca00) AM_WRITE(changela_slope_rom_addr_hi_w)
|
||||
AM_RANGE(0xcb00, 0xcb00) AM_WRITE(changela_slope_rom_addr_lo_w)
|
||||
@ -296,10 +296,10 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
/* LS259 - U44 */
|
||||
AM_RANGE(0xd020, 0xd020) AM_WRITE(changela_collision_reset_0)
|
||||
AM_RANGE(0xd021, 0xd022) AM_WRITE(changela_coin_counter_w)
|
||||
//AM_RANGE(0xd023, 0xd023) AM_WRITE(SMH_NOP)
|
||||
//AM_RANGE(0xd023, 0xd023) AM_WRITENOP
|
||||
AM_RANGE(0xd024, 0xd024) AM_WRITE(mcu_PC0_w)
|
||||
AM_RANGE(0xd025, 0xd025) AM_WRITE(changela_collision_reset_1)
|
||||
AM_RANGE(0xd026, 0xd026) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xd026, 0xd026) AM_WRITENOP
|
||||
|
||||
AM_RANGE(0xd030, 0xd030) AM_WRITE(mcu_w)
|
||||
AM_RANGE(0xe000, 0xe000) AM_WRITE(watchdog_reset_w) /* Watchdog */
|
||||
|
@ -356,8 +356,8 @@ static ADDRESS_MAP_START( sub_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x1fff) AM_RAM AM_SHARE(1)
|
||||
AM_RANGE(0x2000, 0x2000) AM_WRITE(chinagat_sub_bankswitch_w)
|
||||
AM_RANGE(0x2800, 0x2800) AM_WRITE(SMH_RAM) /* Called on CPU start and after return from jump table */
|
||||
// AM_RANGE(0x2a2b, 0x2a2b) AM_READ(SMH_NOP) /* What lives here? */
|
||||
// AM_RANGE(0x2a30, 0x2a30) AM_READ(SMH_NOP) /* What lives here? */
|
||||
// AM_RANGE(0x2a2b, 0x2a2b) AM_READNOP /* What lives here? */
|
||||
// AM_RANGE(0x2a30, 0x2a30) AM_READNOP /* What lives here? */
|
||||
AM_RANGE(0x4000, 0x7fff) AM_ROMBANK(4)
|
||||
AM_RANGE(0x8000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
@ -192,7 +192,7 @@ static ADDRESS_MAP_START( chqflag_readmem_sound, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xb000, 0xb00d) AM_DEVREAD("konami2", k007232_r) /* 007232 (chip 2) */
|
||||
AM_RANGE(0xc000, 0xc001) AM_DEVREAD("ym", ym2151_r) /* YM2151 */
|
||||
AM_RANGE(0xd000, 0xd000) AM_READ(soundlatch_r) /* soundlatch_r */
|
||||
//AM_RANGE(0xe000, 0xe000) AM_READ(SMH_NOP) /* ??? */
|
||||
//AM_RANGE(0xe000, 0xe000) AM_READNOP /* ??? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static WRITE8_HANDLER( k007232_bankswitch_w )
|
||||
@ -219,7 +219,7 @@ static ADDRESS_MAP_START( chqflag_writemem_sound, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
/* selecting a different latch for the external port */
|
||||
AM_RANGE(0xb000, 0xb00d) AM_DEVWRITE("konami2", k007232_w) /* 007232 (chip 2) */
|
||||
AM_RANGE(0xc000, 0xc001) AM_DEVWRITE("ym", ym2151_w) /* YM2151 */
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITENOP /* ??? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -209,7 +209,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2000, 0x23ff) AM_RAM
|
||||
AM_RANGE(0x4000, 0x47ff) AM_ROM
|
||||
AM_RANGE(0x8000, 0x97ff) AM_RAM AM_BASE(&clayshoo_videoram) AM_SIZE(&clayshoo_videoram_size) /* 6k of video ram according to readme */
|
||||
AM_RANGE(0x9800, 0xa800) AM_WRITE(SMH_NOP) /* not really mapped, but cleared */
|
||||
AM_RANGE(0x9800, 0xa800) AM_WRITENOP /* not really mapped, but cleared */
|
||||
AM_RANGE(0xc800, 0xc800) AM_READWRITE(analog_r, analog_reset_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -190,7 +190,7 @@ static ADDRESS_MAP_START( cninja_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x1a4000, 0x1a47ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x1b4000, 0x1b4001) AM_WRITE(buffer_spriteram16_w) /* DMA flag */
|
||||
AM_RANGE(0x1bc000, 0x1bc0ff) AM_WRITE(deco16_104_cninja_prot_w) AM_BASE(&deco16_prot_ram) /* Protection writes */
|
||||
AM_RANGE(0x308000, 0x308fff) AM_WRITE(SMH_NOP) /* Bootleg only */
|
||||
AM_RANGE(0x308000, 0x308fff) AM_WRITENOP /* Bootleg only */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( edrandy_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -229,13 +229,13 @@ static ADDRESS_MAP_START( edrandy_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x188000, 0x189fff) AM_WRITE(deco16_nonbuffered_palette_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x194000, 0x197fff) AM_WRITE(SMH_RAM) AM_BASE(&cninja_ram) /* Main ram */
|
||||
AM_RANGE(0x198000, 0x1987ff) AM_WRITE(deco16_60_prot_w) AM_BASE(&deco16_prot_ram) /* Protection writes */
|
||||
AM_RANGE(0x199550, 0x199551) AM_WRITE(SMH_NOP) /* Looks like a bug in game code, a protection write is referenced off a5 instead of a6 and ends up here */
|
||||
AM_RANGE(0x199750, 0x199751) AM_WRITE(SMH_NOP) /* Looks like a bug in game code, a protection write is referenced off a5 instead of a6 and ends up here */
|
||||
AM_RANGE(0x199550, 0x199551) AM_WRITENOP /* Looks like a bug in game code, a protection write is referenced off a5 instead of a6 and ends up here */
|
||||
AM_RANGE(0x199750, 0x199751) AM_WRITENOP /* Looks like a bug in game code, a protection write is referenced off a5 instead of a6 and ends up here */
|
||||
|
||||
AM_RANGE(0x1a4000, 0x1a4007) AM_WRITE(cninja_irq_w)
|
||||
AM_RANGE(0x1ac000, 0x1ac001) AM_WRITE(buffer_spriteram16_w) /* DMA flag */
|
||||
AM_RANGE(0x1bc000, 0x1bc7ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x1bc800, 0x1bcfff) AM_WRITE(SMH_NOP) /* Another bug in game code? Sprite list can overrun. Doesn't seem to mirror */
|
||||
AM_RANGE(0x1bc800, 0x1bcfff) AM_WRITENOP /* Another bug in game code? Sprite list can overrun. Doesn't seem to mirror */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( robocop2_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -297,7 +297,7 @@ static ADDRESS_MAP_START( mutantf_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x316000, 0x317fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x318000, 0x3187ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x31a000, 0x31a7ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0xad00ac, 0xad00ff) AM_READ(SMH_NOP) /* Reads from here seem to be a game code bug */
|
||||
AM_RANGE(0xad00ac, 0xad00ff) AM_READNOP /* Reads from here seem to be a game code bug */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( mutantf_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -307,7 +307,7 @@ static ADDRESS_MAP_START( mutantf_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x140000, 0x1407ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16_2) AM_SIZE(&spriteram_2_size)
|
||||
AM_RANGE(0x160000, 0x161fff) AM_WRITE(deco16_nonbuffered_palette_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x180000, 0x180001) AM_WRITE(deco16_priority_w)
|
||||
AM_RANGE(0x180002, 0x180003) AM_WRITE(SMH_NOP) /* VBL irq ack */
|
||||
AM_RANGE(0x180002, 0x180003) AM_WRITENOP /* VBL irq ack */
|
||||
AM_RANGE(0x1a0000, 0x1a07ff) AM_WRITE(deco16_66_prot_w) AM_BASE(&deco16_prot_ram) /* Protection writes */
|
||||
AM_RANGE(0x1c0000, 0x1c0001) AM_WRITE(buffer_spriteram16_w)
|
||||
AM_RANGE(0x1e0000, 0x1e0001) AM_WRITE(buffer_spriteram16_2_w)
|
||||
@ -350,7 +350,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_readmem_mutantf, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x100000, 0x100001) AM_READNOP
|
||||
AM_RANGE(0x110000, 0x110001) AM_DEVREAD("ym", ym2151_r)
|
||||
AM_RANGE(0x120000, 0x120001) AM_DEVREAD("oki1", okim6295_r)
|
||||
AM_RANGE(0x130000, 0x130001) AM_DEVREAD("oki2", okim6295_r)
|
||||
@ -360,7 +360,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_writemem_mutantf, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITENOP
|
||||
AM_RANGE(0x110000, 0x110001) AM_DEVWRITE("ym", ym2151_w)
|
||||
AM_RANGE(0x120000, 0x120001) AM_DEVWRITE("oki1", okim6295_w)
|
||||
AM_RANGE(0x130000, 0x130001) AM_DEVWRITE("oki2", okim6295_w)
|
||||
|
@ -70,7 +70,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1000, 0x17ff) AM_WRITE(compgolf_video_w) AM_BASE(&videoram)
|
||||
AM_RANGE(0x1800, 0x1fff) AM_WRITE(compgolf_back_w) AM_BASE(&compgolf_bg_ram)
|
||||
AM_RANGE(0x2000, 0x2060) AM_WRITE(SMH_RAM) AM_BASE(&spriteram)
|
||||
AM_RANGE(0x2061, 0x2061) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x2061, 0x2061) AM_WRITENOP
|
||||
AM_RANGE(0x3001, 0x3001) AM_WRITE(compgolf_ctrl_w)
|
||||
AM_RANGE(0x3800, 0x3801) AM_DEVWRITE("ym", ym2203_w)
|
||||
AM_RANGE(0x4000, 0x7fff) AM_WRITE(SMH_ROM)
|
||||
|
@ -88,7 +88,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0018, 0x0018) AM_WRITE(contra_coin_counter_w)
|
||||
AM_RANGE(0x001a, 0x001a) AM_WRITE(contra_sh_irqtrigger_w)
|
||||
AM_RANGE(0x001c, 0x001c) AM_WRITE(cpu_sound_command_w)
|
||||
AM_RANGE(0x001e, 0x001e) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x001e, 0x001e) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0x0060, 0x0067) AM_WRITE(contra_K007121_ctrl_1_w)
|
||||
AM_RANGE(0x0c00, 0x0cff) AM_WRITE(SMH_RAM) AM_BASE(&paletteram)
|
||||
AM_RANGE(0x1000, 0x1fff) AM_WRITE(SMH_RAM)
|
||||
@ -115,7 +115,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( writemem_sound, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2000, 0x2001) AM_DEVWRITE("ym", ym2151_w)
|
||||
AM_RANGE(0x4000, 0x4000) AM_WRITE(SMH_NOP) /* read triggers irq reset and latch read (in the hardware only). */
|
||||
AM_RANGE(0x4000, 0x4000) AM_WRITENOP /* read triggers irq reset and latch read (in the hardware only). */
|
||||
AM_RANGE(0x6000, 0x67ff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0x8000, 0xffff) AM_WRITE(SMH_ROM)
|
||||
ADDRESS_MAP_END
|
||||
|
@ -141,7 +141,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x8000, 0x8000) AM_READ(SMH_NOP) /* irq ack? */
|
||||
AM_RANGE(0x8000, 0x8000) AM_READNOP /* irq ack? */
|
||||
AM_RANGE(0xc000, 0xc7ff) AM_READ(SMH_RAM)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -165,8 +165,8 @@ static READ8_HANDLER( kludge ) { static int timer; return timer++; }
|
||||
static ADDRESS_MAP_START( mightguy_audio_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x01) AM_DEVWRITE("ym", ym3526_w)
|
||||
AM_RANGE(0x02, 0x02) AM_WRITE(SMH_NOP) /* 1412M2? */
|
||||
AM_RANGE(0x03, 0x03) AM_WRITE(SMH_NOP) /* 1412M2? */
|
||||
AM_RANGE(0x02, 0x02) AM_WRITENOP /* 1412M2? */
|
||||
AM_RANGE(0x03, 0x03) AM_WRITENOP /* 1412M2? */
|
||||
AM_RANGE(0x03, 0x03) AM_READ(kludge) /* 1412M2? */
|
||||
AM_RANGE(0x06, 0x06) AM_READ(cop01_sound_command_r)
|
||||
ADDRESS_MAP_END
|
||||
|
@ -112,7 +112,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0x1fff)
|
||||
AM_RANGE(0x0000, 0x01ff) AM_RAM
|
||||
AM_RANGE(0x0500, 0x0503) AM_WRITE(SMH_RAM)
|
||||
// AM_RANGE(0x0504, 0x0507) AM_WRITE(SMH_NOP) // ???
|
||||
// AM_RANGE(0x0504, 0x0507) AM_WRITENOP // ???
|
||||
AM_RANGE(0x0506, 0x0506) AM_WRITE(copsnrob_led_w)
|
||||
AM_RANGE(0x0600, 0x0600) AM_WRITE(SMH_RAM) AM_BASE(&copsnrob_trucky)
|
||||
AM_RANGE(0x0700, 0x07ff) AM_WRITE(SMH_RAM) AM_BASE(&copsnrob_truckram)
|
||||
|
@ -877,7 +877,7 @@ static ADDRESS_MAP_START( cps2_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE(&cps1_cps_a_regs) /* mirror (sfa) */
|
||||
AM_RANGE(0x800140, 0x80017f) AM_WRITE(cps1_cps_b_w) AM_BASE(&cps1_cps_b_regs) /* mirror (sfa) */
|
||||
AM_RANGE(0x804040, 0x804041) AM_WRITE(cps2_eeprom_port_w) /* EEPROM */
|
||||
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITE(SMH_NOP) /* Unknown (reset once on startup) */
|
||||
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITENOP /* Unknown (reset once on startup) */
|
||||
AM_RANGE(0x8040e0, 0x8040e1) AM_WRITE(cps2_objram_bank_w) /* bit 0 = Object ram bank swap */
|
||||
AM_RANGE(0x804100, 0x80413f) AM_WRITE(cps1_cps_a_w) AM_BASE(&cps1_cps_a_regs) /* CPS-A custom */
|
||||
AM_RANGE(0x804140, 0x80417f) AM_WRITE(cps1_cps_b_w) AM_BASE(&cps1_cps_b_regs) /* CPS-B custom */
|
||||
@ -902,7 +902,7 @@ static ADDRESS_MAP_START( dead_cps2_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE(&cps1_cps_a_regs) /* mirror (sfa) */
|
||||
AM_RANGE(0x800140, 0x80017f) AM_WRITE(cps1_cps_b_w) AM_BASE(&cps1_cps_b_regs) /* mirror (sfa) */
|
||||
AM_RANGE(0x804040, 0x804041) AM_WRITE(cps2_eeprom_port_w) /* EEPROM */
|
||||
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITE(SMH_NOP) /* Unknown (reset once on startup) */
|
||||
AM_RANGE(0x8040a0, 0x8040a1) AM_WRITENOP /* Unknown (reset once on startup) */
|
||||
AM_RANGE(0x8040e0, 0x8040e1) AM_WRITE(cps2_objram_bank_w) /* bit 0 = Object ram bank swap */
|
||||
AM_RANGE(0x804100, 0x80413f) AM_WRITE(cps1_cps_a_w) AM_BASE(&cps1_cps_a_regs) /* CPS-A custom */
|
||||
AM_RANGE(0x804140, 0x80417f) AM_WRITE(cps1_cps_b_w) AM_BASE(&cps1_cps_b_regs) /* CPS-B custom */
|
||||
|
@ -2147,8 +2147,8 @@ static ADDRESS_MAP_START( cps3_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
// video registers of some kind probably
|
||||
AM_RANGE(0x040C0000, 0x040C0003) AM_READ(cps3_40C0000_r)//?? every frame
|
||||
AM_RANGE(0x040C0004, 0x040C0007) AM_READ(cps3_40C0004_r)//AM_READ(cps3_40C0004_r) // warzard reads this!
|
||||
// AM_RANGE(0x040C0008, 0x040C000b) AM_WRITE(SMH_NOP)//??
|
||||
AM_RANGE(0x040C000c, 0x040C000f) AM_READ(cps3_vbl_r)// AM_WRITE(SMH_NOP)/
|
||||
// AM_RANGE(0x040C0008, 0x040C000b) AM_WRITENOP//??
|
||||
AM_RANGE(0x040C000c, 0x040C000f) AM_READ(cps3_vbl_r)// AM_WRITENOP/
|
||||
|
||||
AM_RANGE(0x040C0000, 0x040C001f) AM_WRITE(cps3_unk_vidregs_w)
|
||||
AM_RANGE(0x040C0020, 0x040C002b) AM_WRITE(SMH_RAM) AM_BASE(&tilemap20_regs_base)
|
||||
|
@ -221,15 +221,15 @@ static ADDRESS_MAP_START( main_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x02, 0x02) AM_MIRROR(0x0c) AM_MASK(0x0c) AM_READ(pc3259_r)
|
||||
AM_RANGE(0x03, 0x03) AM_MIRROR(0x0c) AM_READ_PORT("IN1")
|
||||
|
||||
AM_RANGE(0x00, 0x00) AM_WRITE(SMH_NOP) /* not connected */
|
||||
AM_RANGE(0x01, 0x01) AM_WRITE(SMH_NOP) /* watchdog */
|
||||
AM_RANGE(0x00, 0x00) AM_WRITENOP /* not connected */
|
||||
AM_RANGE(0x01, 0x01) AM_WRITENOP /* watchdog */
|
||||
AM_RANGE(0x02, 0x04) AM_WRITE(SMH_RAM) AM_BASE(&crbaloon_spriteram)
|
||||
AM_RANGE(0x05, 0x05) AM_DEVWRITE("discrete", crbaloon_audio_set_music_freq)
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(port_sound_w)
|
||||
AM_RANGE(0x07, 0x0b) AM_WRITE(pc3092_w) AM_BASE(&pc3092_data)
|
||||
AM_RANGE(0x0c, 0x0c) AM_WRITE(SMH_NOP) /* MSK - to PC3259 */
|
||||
AM_RANGE(0x0d, 0x0d) AM_WRITE(SMH_NOP) /* schematics has it in a box marked "NOT USE" */
|
||||
AM_RANGE(0x0e, 0x0f) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x0c, 0x0c) AM_WRITENOP /* MSK - to PC3259 */
|
||||
AM_RANGE(0x0d, 0x0d) AM_WRITENOP /* schematics has it in a box marked "NOT USE" */
|
||||
AM_RANGE(0x0e, 0x0f) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -259,7 +259,7 @@ static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0x8000, 0x87ff) AM_RAM
|
||||
AM_RANGE(0xc000, 0xc001) AM_DEVWRITE("ay", ay8910_address_data_w)
|
||||
AM_RANGE(0xc002, 0xc002) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xc002, 0xc002) AM_WRITENOP
|
||||
AM_RANGE(0xe000, 0xe000) AM_READWRITE(switch_input_r, switch_input_select_w)
|
||||
AM_RANGE(0xe001, 0xe001) AM_READWRITE(analog_input_r, unknown_w)
|
||||
AM_RANGE(0xe003, 0xe003) AM_READWRITE(main_to_sound_r, sound_to_main_w)
|
||||
|
@ -76,13 +76,13 @@ static ADDRESS_MAP_START( crospang_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( crospang_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_NOP) // writes to rom quite often
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_WRITENOP // writes to rom quite often
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITENOP
|
||||
AM_RANGE(0x100002, 0x100003) AM_WRITE(crospang_fg_scrolly_w)
|
||||
AM_RANGE(0x100004, 0x100005) AM_WRITE(crospang_bg_scrollx_w)
|
||||
AM_RANGE(0x100006, 0x100007) AM_WRITE(crospang_bg_scrolly_w)
|
||||
AM_RANGE(0x100008, 0x100009) AM_WRITE(crospang_fg_scrollx_w)
|
||||
AM_RANGE(0x10000e, 0x10000f) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x10000e, 0x10000f) AM_WRITENOP
|
||||
AM_RANGE(0x120000, 0x1207ff) AM_WRITE(crospang_fg_videoram_w) AM_BASE(&crospang_fg_videoram)
|
||||
AM_RANGE(0x122000, 0x1227ff) AM_WRITE(crospang_bg_videoram_w) AM_BASE(&crospang_bg_videoram)
|
||||
AM_RANGE(0x200000, 0x2005ff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
|
||||
@ -104,7 +104,7 @@ static ADDRESS_MAP_START( bestri_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( bestri_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_NOP) // writes to rom quite often
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_WRITENOP // writes to rom quite often
|
||||
|
||||
AM_RANGE(0x100004, 0x100005) AM_WRITE(bestri_fg_scrollx_w)
|
||||
AM_RANGE(0x100006, 0x100007) AM_WRITE(bestri_fg_scrolly_w)
|
||||
@ -117,7 +117,7 @@ static ADDRESS_MAP_START( bestri_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x200000, 0x2005ff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x210000, 0x2107ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x270000, 0x270001) AM_WRITE(crospang_soundlatch_w)
|
||||
AM_RANGE(0x270004, 0x270005) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x270004, 0x270005) AM_WRITENOP
|
||||
|
||||
|
||||
|
||||
|
@ -278,9 +278,9 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x8000, 0xafff) AM_WRITE(SMH_RAM) // to be confirmed
|
||||
AM_RANGE(0xc500, 0xc500) AM_WRITE(cshooter_c500_w)
|
||||
AM_RANGE(0xc600, 0xc600) AM_WRITE(SMH_NOP) // see notes
|
||||
AM_RANGE(0xc600, 0xc600) AM_WRITENOP // see notes
|
||||
AM_RANGE(0xc700, 0xc700) AM_WRITE(cshooter_c700_w)
|
||||
AM_RANGE(0xc801, 0xc801) AM_WRITE(SMH_NOP) // see notes
|
||||
AM_RANGE(0xc801, 0xc801) AM_WRITENOP // see notes
|
||||
AM_RANGE(0xd000, 0xd7ff) AM_WRITE(cshooter_txram_w) AM_BASE(&cshooter_txram)
|
||||
AM_RANGE(0xd800, 0xdfff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0xe000, 0xffff) AM_WRITE(SMH_RAM)
|
||||
@ -308,9 +308,9 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( arwritemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0xc500, 0xc500) AM_WRITE(cshooter_c500_w)
|
||||
AM_RANGE(0xc600, 0xc600) AM_WRITE(SMH_NOP) // see notes
|
||||
AM_RANGE(0xc600, 0xc600) AM_WRITENOP // see notes
|
||||
AM_RANGE(0xc700, 0xc700) AM_WRITE(cshooter_c700_w)
|
||||
AM_RANGE(0xc801, 0xc801) AM_WRITE(SMH_NOP) // see notes
|
||||
AM_RANGE(0xc801, 0xc801) AM_WRITENOP // see notes
|
||||
AM_RANGE(0xd000, 0xd7ff) AM_WRITE(cshooter_txram_w) AM_BASE(&cshooter_txram)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -324,8 +324,8 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( s_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x1fff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0xc000, 0xc001) AM_WRITE(SMH_NOP) // AM_DEVWRITE("ym1", ym2203_w) ?
|
||||
AM_RANGE(0xc800, 0xc801) AM_WRITE(SMH_NOP) // AM_DEVWRITE("ym2", ym2203_w) ?
|
||||
AM_RANGE(0xc000, 0xc001) AM_WRITENOP // AM_DEVWRITE("ym1", ym2203_w) ?
|
||||
AM_RANGE(0xc800, 0xc801) AM_WRITENOP // AM_DEVWRITE("ym2", ym2203_w) ?
|
||||
AM_RANGE(0xf800, 0xffff) AM_WRITE(SMH_RAM)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -335,8 +335,8 @@ static ADDRESS_MAP_START( s2_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( s2_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x4000, 0x4001) AM_WRITE(SMH_NOP) // AM_DEVWRITE("ym1", ym2203_w) ?
|
||||
AM_RANGE(0x4008, 0x4009) AM_WRITE(SMH_NOP) // AM_DEVWRITE("ym2", ym2203_w) ?
|
||||
AM_RANGE(0x4000, 0x4001) AM_WRITENOP // AM_DEVWRITE("ym1", ym2203_w) ?
|
||||
AM_RANGE(0x4008, 0x4009) AM_WRITENOP // AM_DEVWRITE("ym2", ym2203_w) ?
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -570,7 +570,7 @@ static ADDRESS_MAP_START( cvs_dac_cpu_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1800, 0x1800) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0x1840, 0x1840) AM_DEVWRITE("dac1", dac_w)
|
||||
AM_RANGE(0x1880, 0x1883) AM_DEVWRITE("dac2", cvs_4_bit_dac_data_w) AM_BASE(&cvs_4_bit_dac_data)
|
||||
AM_RANGE(0x1884, 0x1887) AM_WRITE(SMH_NOP) /* not connected to anything */
|
||||
AM_RANGE(0x1884, 0x1887) AM_WRITENOP /* not connected to anything */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -491,7 +491,7 @@ static ADDRESS_MAP_START( darius_sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x9000, 0x9001) AM_DEVREAD("ym1", ym2203_r)
|
||||
AM_RANGE(0xa000, 0xa001) AM_DEVREAD("ym2", ym2203_r)
|
||||
AM_RANGE(0xb000, 0xb000) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0xb000, 0xb000) AM_READNOP
|
||||
AM_RANGE(0xb001, 0xb001) AM_READ(taitosound_slave_comm_r)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -518,7 +518,7 @@ static ADDRESS_MAP_START( darius_sound2_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( darius_sound2_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0xffff) AM_WRITE(SMH_NOP) /* writes rom whenever interrupt occurs - as no stack */
|
||||
AM_RANGE(0x0000, 0xffff) AM_WRITENOP /* writes rom whenever interrupt occurs - as no stack */
|
||||
/* yes, no RAM */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -226,7 +226,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( dassault_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x103fff) AM_WRITE(deco16_nonbuffered_palette_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x140004, 0x140007) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x140004, 0x140007) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0x180000, 0x180001) AM_WRITE(dassault_sound_w)
|
||||
AM_RANGE(0x1c000a, 0x1c000b) AM_WRITE(deco16_priority_w)
|
||||
AM_RANGE(0x1c000c, 0x1c000d) AM_WRITE(buffer_spriteram16_2_w)
|
||||
@ -260,7 +260,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( dassault_sub_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x07ffff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITE(buffer_spriteram16_w)
|
||||
AM_RANGE(0x100002, 0x100007) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x100002, 0x100007) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0x3f8000, 0x3fbfff) AM_WRITE(SMH_RAM) AM_BASE(&dassault_ram2)
|
||||
AM_RANGE(0x3fc000, 0x3fcfff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x3feffc, 0x3fefff) AM_WRITE(dassault_irq_w)
|
||||
|
@ -438,13 +438,13 @@ static ADDRESS_MAP_START( dblewing_map, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x106000, 0x106fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE(&deco16_pf2_rowscroll)
|
||||
|
||||
/* protection */
|
||||
// AM_RANGE(0x280104, 0x280105) AM_WRITE(SMH_NOP) // ??
|
||||
// AM_RANGE(0x280104, 0x280105) AM_WRITENOP // ??
|
||||
// AM_RANGE(0x2800ac, 0x2800ad) AM_READ_PORT("DSW") // dips
|
||||
// AM_RANGE(0x280298, 0x280299) AM_READ_PORT("SYSTEM") // vbl
|
||||
// AM_RANGE(0x280506, 0x280507) AM_READ_PORT("UNK")
|
||||
// AM_RANGE(0x2802B4, 0x2802B5) AM_READ_PORT("P1_P2") // inverted?
|
||||
// AM_RANGE(0x280330, 0x280331) AM_READ(SMH_NOP) // sound?
|
||||
// AM_RANGE(0x280380, 0x280381) AM_WRITE(SMH_NOP) // sound
|
||||
// AM_RANGE(0x280330, 0x280331) AM_READNOP // sound?
|
||||
// AM_RANGE(0x280380, 0x280381) AM_WRITENOP // sound
|
||||
|
||||
AM_RANGE(0x280000, 0x2807ff) AM_READWRITE(dlbewing_prot_r,dblewing_prot_w)
|
||||
|
||||
|
@ -148,8 +148,8 @@ static ADDRESS_MAP_START( dbz_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x508000, 0x509fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x510000, 0x513fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x518000, 0x51bfff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x600000, 0x6fffff) AM_READ(SMH_NOP) // PSAC 1 ROM readback window
|
||||
AM_RANGE(0x700000, 0x7fffff) AM_READ(SMH_NOP) // PSAC 2 ROM readback window
|
||||
AM_RANGE(0x600000, 0x6fffff) AM_READNOP // PSAC 1 ROM readback window
|
||||
AM_RANGE(0x700000, 0x7fffff) AM_READNOP // PSAC 2 ROM readback window
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( dbz_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -166,10 +166,10 @@ static ADDRESS_MAP_START( dbz_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x4ec000, 0x4ec001) AM_WRITE(dbzcontrol_w)
|
||||
AM_RANGE(0x4d0000, 0x4d001f) AM_WRITE(SMH_RAM) AM_BASE(&K053936_0_ctrl)
|
||||
AM_RANGE(0x4d4000, 0x4d401f) AM_WRITE(SMH_RAM) AM_BASE(&K053936_1_ctrl)
|
||||
AM_RANGE(0x4e8000, 0x4e8001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x4e8000, 0x4e8001) AM_WRITENOP
|
||||
AM_RANGE(0x4f0000, 0x4f0001) AM_WRITE(dbz_sound_command_w)
|
||||
AM_RANGE(0x4f4000, 0x4f4001) AM_WRITE(dbz_sound_cause_nmi)
|
||||
AM_RANGE(0x4f8000, 0x4f801f) AM_WRITE(SMH_NOP) // 251 #1
|
||||
AM_RANGE(0x4f8000, 0x4f801f) AM_WRITENOP // 251 #1
|
||||
AM_RANGE(0x4fc000, 0x4fc01f) AM_WRITE(K053251_lsb_w) // 251 #2
|
||||
AM_RANGE(0x500000, 0x501fff) AM_WRITE(dbz_bg2_videoram_w) AM_BASE(&dbz_bg2_videoram)
|
||||
AM_RANGE(0x508000, 0x509fff) AM_WRITE(dbz_bg1_videoram_w) AM_BASE(&dbz_bg1_videoram)
|
||||
@ -197,7 +197,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( dbz_sound_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x00, 0x00) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/**********************************************************************************/
|
||||
|
@ -62,8 +62,8 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xa0000, 0xa000d) AM_WRITE(seibu_main_word_w)
|
||||
AM_RANGE(0xc001c, 0xc001d) AM_WRITE(dcon_control_w)
|
||||
AM_RANGE(0xc0020, 0xc002f) AM_WRITE(SMH_RAM) AM_BASE(&dcon_scroll_ram)
|
||||
AM_RANGE(0xc0080, 0xc0081) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xc00c0, 0xc00c1) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xc0080, 0xc0081) AM_WRITENOP
|
||||
AM_RANGE(0xc00c0, 0xc00c1) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -1735,7 +1735,7 @@ static ADDRESS_MAP_START( ddenlvrk_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xe0030c, 0xe0030d) AM_WRITE(ddenlovr_coincounter_1_w) //
|
||||
AM_RANGE(0xe00400, 0xe00403) AM_DEVWRITE8("ym", ym2413_w, 0x00ff)
|
||||
AM_RANGE(0xe00500, 0xe0051f) AM_DEVWRITE8("rtc", msm6242_w, 0x00ff) // 6242RTC
|
||||
// AM_RANGE(0xe00302, 0xe00303) AM_WRITE(SMH_NOP) // ?
|
||||
// AM_RANGE(0xe00302, 0xe00303) AM_WRITENOP // ?
|
||||
AM_RANGE(0xe00600, 0xe00603) AM_DEVWRITE8("ay", ay8910_address_data_w, 0x00ff)
|
||||
AM_RANGE(0xe00700, 0xe00701) AM_DEVWRITE8("oki", okim6295_w, 0x00ff)
|
||||
AM_RANGE(0xff0000, 0xffffff) AM_WRITE(SMH_RAM) // RAM
|
||||
@ -1776,7 +1776,7 @@ static ADDRESS_MAP_START( ddenlovr_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xe0030c, 0xe0030d) AM_WRITE(ddenlovr_coincounter_1_w) //
|
||||
AM_RANGE(0xe00400, 0xe00403) AM_DEVWRITE8("ym", ym2413_w, 0x00ff)
|
||||
AM_RANGE(0xe00500, 0xe0051f) AM_DEVWRITE8("rtc", msm6242_w, 0x00ff) // 6242RTC
|
||||
// AM_RANGE(0xe00302, 0xe00303) AM_WRITE(SMH_NOP) // ?
|
||||
// AM_RANGE(0xe00302, 0xe00303) AM_WRITENOP // ?
|
||||
AM_RANGE(0xe00600, 0xe00603) AM_DEVWRITE8("ay", ay8910_address_data_w, 0x00ff)
|
||||
AM_RANGE(0xe00700, 0xe00701) AM_DEVWRITE8("oki", okim6295_w, 0x00ff)
|
||||
AM_RANGE(0xff0000, 0xffffff) AM_WRITE(SMH_RAM) // RAM
|
||||
@ -1936,7 +1936,7 @@ static ADDRESS_MAP_START( quizchq_writeport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_G
|
||||
AM_RANGE(0x96, 0x96) AM_WRITE(ddenlovr_layer_enable_w)
|
||||
AM_RANGE(0xa0, 0xaf) AM_DEVWRITE("rtc", msm6242_w) // 6242RTC
|
||||
AM_RANGE(0xc0, 0xc0) AM_DEVWRITE("oki", quizchq_oki_bank_w)
|
||||
AM_RANGE(0xc2, 0xc2) AM_WRITE(SMH_NOP) // enables palette RAM at 8000
|
||||
AM_RANGE(0xc2, 0xc2) AM_WRITENOP // enables palette RAM at 8000
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -1979,7 +1979,7 @@ static ADDRESS_MAP_START( rongrong_writeport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_
|
||||
AM_RANGE(0x95, 0x95) AM_WRITE(ddenlovr_priority_w)
|
||||
AM_RANGE(0x96, 0x96) AM_WRITE(ddenlovr_layer_enable_w)
|
||||
AM_RANGE(0xa0, 0xa0) AM_WRITE(ddenlovr_select2_w)
|
||||
AM_RANGE(0xc2, 0xc2) AM_WRITE(SMH_NOP) // enables palette RAM at f000, and protection device at f705/f706/f601
|
||||
AM_RANGE(0xc2, 0xc2) AM_WRITENOP // enables palette RAM at f000, and protection device at f705/f706/f601
|
||||
ADDRESS_MAP_END
|
||||
/*
|
||||
1e input select,1c input read
|
||||
@ -2112,12 +2112,12 @@ static ADDRESS_MAP_START( mmpanic_writeport, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x69, 0x69) AM_WRITE(mmpanic_lockout_w)
|
||||
AM_RANGE(0x74, 0x74) AM_WRITE(mmpanic_rombank_w)
|
||||
|
||||
AM_RANGE(0x78, 0x78) AM_WRITE(SMH_NOP) // 0, during RST 08 (irq acknowledge?)
|
||||
AM_RANGE(0x78, 0x78) AM_WRITENOP // 0, during RST 08 (irq acknowledge?)
|
||||
|
||||
AM_RANGE(0x7c, 0x7c) AM_DEVWRITE("oki", okim6295_w) // Sound
|
||||
AM_RANGE(0x8c, 0x8c) AM_WRITE(mmpanic_soundlatch_w) //
|
||||
AM_RANGE(0x88, 0x88) AM_WRITE(mmpanic_leds_w) // Leds
|
||||
AM_RANGE(0x90, 0x90) AM_WRITE(SMH_NOP) // written just before port 8c
|
||||
AM_RANGE(0x90, 0x90) AM_WRITENOP // written just before port 8c
|
||||
AM_RANGE(0xa6, 0xa6) AM_WRITE(mmpanic_leds2_w) //
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -2140,8 +2140,8 @@ static ADDRESS_MAP_START( mmpanic_sound_readport, ADDRESS_SPACE_IO, 8 ) ADDRESS_
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( mmpanic_sound_writeport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x04, 0x04) AM_WRITE(SMH_NOP) // 0, during IRQ
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(SMH_NOP) // almost always 1, sometimes 0
|
||||
AM_RANGE(0x04, 0x04) AM_WRITENOP // 0, during IRQ
|
||||
AM_RANGE(0x06, 0x06) AM_WRITENOP // almost always 1, sometimes 0
|
||||
AM_RANGE(0x08, 0x09) AM_DEVWRITE("ym", ym2413_w)
|
||||
AM_RANGE(0x0c, 0x0c) AM_DEVWRITE("ay", ay8910_data_w)
|
||||
AM_RANGE(0x0e, 0x0e) AM_DEVWRITE("ay", ay8910_address_w)
|
||||
@ -2166,7 +2166,7 @@ static ADDRESS_MAP_START( funkyfig_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_BANK2) // RAM (Banked)
|
||||
AM_RANGE(0x8000, 0x81ff) AM_WRITE(rongrong_palette_w)
|
||||
AM_RANGE(0x8400, 0x87ff) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x8400, 0x87ff) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -2283,7 +2283,7 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( funkyfig_sound_readport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x02, 0x02) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0x04, 0x04) AM_READ(SMH_NOP) // read only once at the start
|
||||
AM_RANGE(0x04, 0x04) AM_READNOP // read only once at the start
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -2670,7 +2670,7 @@ static ADDRESS_MAP_START( mjmyster_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) // RAM
|
||||
AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_BANK2) // RAM (Banked)
|
||||
AM_RANGE(0xf000, 0xf1ff) AM_WRITE(rongrong_palette_w) // RAM enabled by bit 4 of rombank
|
||||
AM_RANGE(0xf200, 0xffff) AM_WRITE(SMH_NOP) // ""
|
||||
AM_RANGE(0xf200, 0xffff) AM_WRITENOP // ""
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static WRITE8_HANDLER( mjmyster_rambank_w )
|
||||
@ -2817,7 +2817,7 @@ static ADDRESS_MAP_START( hginga_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) // RAM
|
||||
AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_BANK2) // RAM (Banked)
|
||||
AM_RANGE(0xf000, 0xf1ff) AM_WRITE(rongrong_palette_w) // RAM enabled by bit 4 of rombank
|
||||
AM_RANGE(0xf700, 0xf706) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xf700, 0xf706) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static READ8_DEVICE_HANDLER( hginga_dsw_r )
|
||||
@ -2934,7 +2934,7 @@ static WRITE8_HANDLER( hginga_blitter_w )
|
||||
|
||||
static ADDRESS_MAP_START( hginga_readport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x03, 0x03) AM_READ(rongrong_gfxrom_r)
|
||||
AM_RANGE(0x1c, 0x1c) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x1c, 0x1c) AM_READNOP
|
||||
AM_RANGE(0x24, 0x24) AM_DEVREAD("ay", ay8910_r)
|
||||
AM_RANGE(0x60, 0x6f) AM_DEVREAD("rtc", msm6242_r) // 6242RTC
|
||||
AM_RANGE(0x42, 0x42) AM_READ(hginga_coins_r)
|
||||
@ -3040,13 +3040,13 @@ static ADDRESS_MAP_START( hgokou_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x6000, 0x6fff) AM_WRITE(SMH_RAM) // RAM
|
||||
AM_RANGE(0x7000, 0x7fff) AM_WRITE(SMH_BANK2) // RAM (Banked)
|
||||
AM_RANGE(0xe000, 0xe1ff) AM_WRITE(rongrong_palette_w)
|
||||
AM_RANGE(0xe700, 0xe706) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xe700, 0xe706) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( hgokou_readport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x03, 0x03) AM_READ(rongrong_gfxrom_r)
|
||||
AM_RANGE(0x1c, 0x1c) AM_READ(SMH_NOP) // ? ack on RTC int
|
||||
AM_RANGE(0x1c, 0x1c) AM_READNOP // ? ack on RTC int
|
||||
AM_RANGE(0x20, 0x2f) AM_DEVREAD("rtc", msm6242_r) // 6242RTC
|
||||
AM_RANGE(0x58, 0x58) AM_READ(unk_r) // ? must be 78 on startup
|
||||
AM_RANGE(0x62, 0x62) AM_READ(hgokou_input_r)
|
||||
@ -3166,7 +3166,7 @@ static ADDRESS_MAP_START( hparadis_writeport, ADDRESS_SPACE_IO, 8 ) ADDRESS_MAP_
|
||||
AM_RANGE(0x96, 0x96) AM_WRITE(ddenlovr_layer_enable_w)
|
||||
AM_RANGE(0xa0, 0xa0) AM_WRITE(hginga_input_w)
|
||||
AM_RANGE(0xa1, 0xa1) AM_WRITE(hparadis_coin_w)
|
||||
AM_RANGE(0xc2, 0xc2) AM_WRITE(SMH_NOP) // enables palette RAM at c000
|
||||
AM_RANGE(0xc2, 0xc2) AM_WRITENOP // enables palette RAM at c000
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -3376,7 +3376,7 @@ static WRITE8_HANDLER( mjflove_coincounter_w )
|
||||
static ADDRESS_MAP_START( mjflove_readport, ADDRESS_SPACE_IO, 8 ) // 16 bit I/O
|
||||
AM_RANGE(0x0010, 0x0010) AM_READ(hanakanz_rand_r) AM_MIRROR(0xff00)
|
||||
AM_RANGE(0x001c, 0x001c) AM_READ_PORT("DSW2") AM_MIRROR(0xff00)
|
||||
AM_RANGE(0x0038, 0x0038) AM_READ(SMH_NOP) // ? ack or watchdog
|
||||
AM_RANGE(0x0038, 0x0038) AM_READNOP // ? ack or watchdog
|
||||
AM_RANGE(0x0043, 0x0043) AM_READ(rongrong_gfxrom_r)
|
||||
AM_RANGE(0x0080, 0x0081) AM_READ(mjflove_keyb_r)
|
||||
AM_RANGE(0x0082, 0x0082) AM_READ_PORT("SYSTEM")
|
||||
@ -3399,7 +3399,7 @@ static ADDRESS_MAP_START( mjflove_writeport, ADDRESS_SPACE_IO, 8 ) // 16 bit I/O
|
||||
AM_RANGE(0x00f2, 0x00f2) AM_WRITE(mjmyster_rambank_w) AM_MIRROR(0xff00)
|
||||
AM_RANGE(0x00f8, 0x00f8) AM_WRITE(mjflove_rombank_w) AM_MIRROR(0xff00)
|
||||
AM_RANGE(0x00fa, 0x00fa) AM_DEVWRITE("oki", mjflove_okibank_w)
|
||||
AM_RANGE(0x0181, 0x0181) AM_WRITE(SMH_NOP) // ? int. enable
|
||||
AM_RANGE(0x0181, 0x0181) AM_WRITENOP // ? int. enable
|
||||
AM_RANGE(0x0184, 0x0184) AM_WRITE(mjflove_coincounter_w)
|
||||
AM_RANGE(0x0200, 0x0201) AM_DEVWRITE("ym", ym2413_w)
|
||||
AM_RANGE(0x0280, 0x028f) AM_DEVWRITE("rtc", msm6242_w) // 6242RTC
|
||||
|
@ -257,14 +257,14 @@ static ADDRESS_MAP_START( slyspy_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x05ffff) AM_WRITE(SMH_ROM)
|
||||
|
||||
/* These locations aren't real! They are just there so memory is allocated */
|
||||
AM_RANGE(0x232000, 0x23207f) AM_WRITE(SMH_NOP) AM_BASE(&dec0_pf2_colscroll)
|
||||
AM_RANGE(0x232400, 0x2327ff) AM_WRITE(SMH_NOP) AM_BASE(&dec0_pf2_rowscroll)
|
||||
AM_RANGE(0x23c000, 0x23c07f) AM_WRITE(SMH_NOP) AM_BASE(&dec0_pf1_colscroll)
|
||||
AM_RANGE(0x23c400, 0x23c7ff) AM_WRITE(SMH_NOP) AM_BASE(&dec0_pf1_rowscroll)
|
||||
AM_RANGE(0x200000, 0x2007ff) AM_WRITE(SMH_NOP) AM_BASE(&dec0_pf2_data)
|
||||
AM_RANGE(0x202000, 0x203fff) AM_WRITE(SMH_NOP) AM_BASE(&dec0_pf1_data)
|
||||
AM_RANGE(0x232000, 0x23207f) AM_WRITENOP AM_BASE(&dec0_pf2_colscroll)
|
||||
AM_RANGE(0x232400, 0x2327ff) AM_WRITENOP AM_BASE(&dec0_pf2_rowscroll)
|
||||
AM_RANGE(0x23c000, 0x23c07f) AM_WRITENOP AM_BASE(&dec0_pf1_colscroll)
|
||||
AM_RANGE(0x23c400, 0x23c7ff) AM_WRITENOP AM_BASE(&dec0_pf1_rowscroll)
|
||||
AM_RANGE(0x200000, 0x2007ff) AM_WRITENOP AM_BASE(&dec0_pf2_data)
|
||||
AM_RANGE(0x202000, 0x203fff) AM_WRITENOP AM_BASE(&dec0_pf1_data)
|
||||
|
||||
AM_RANGE(0x244000, 0x244001) AM_WRITE(SMH_NOP) /* Extra protection? */
|
||||
AM_RANGE(0x244000, 0x244001) AM_WRITENOP /* Extra protection? */
|
||||
|
||||
/* The location of p1 & pf2 can change between these according to protection */
|
||||
AM_RANGE(0x240000, 0x241fff) AM_WRITE(slyspy_240000_w)
|
||||
@ -287,7 +287,7 @@ static ADDRESS_MAP_START( slyspy_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x308000, 0x3087ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16)
|
||||
AM_RANGE(0x310000, 0x3107ff) AM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x314000, 0x314003) AM_WRITE(slyspy_control_w)
|
||||
AM_RANGE(0x31c000, 0x31c00f) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x31c000, 0x31c00f) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( midres_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -310,7 +310,7 @@ static ADDRESS_MAP_START( midres_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x120000, 0x1207ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16)
|
||||
AM_RANGE(0x140000, 0x1407ff) AM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x160000, 0x160001) AM_WRITE(dec0_priority_w)
|
||||
AM_RANGE(0x180008, 0x18000f) AM_WRITE(SMH_NOP) /* ?? watchdog ?? */
|
||||
AM_RANGE(0x180008, 0x18000f) AM_WRITENOP /* ?? watchdog ?? */
|
||||
AM_RANGE(0x1a0000, 0x1a0001) AM_WRITE(midres_sound_w)
|
||||
|
||||
AM_RANGE(0x200000, 0x200007) AM_WRITE(dec0_pf2_control_0_w)
|
||||
@ -353,7 +353,7 @@ ADDRESS_MAP_END
|
||||
/* Physical memory map (21 bits) */
|
||||
static ADDRESS_MAP_START( slyspy_s_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x0a0000, 0x0a0001) AM_READ(SMH_NOP) /* Protection counter */
|
||||
AM_RANGE(0x0a0000, 0x0a0001) AM_READNOP /* Protection counter */
|
||||
AM_RANGE(0x0e0000, 0x0e0001) AM_DEVREAD("oki", okim6295_r)
|
||||
AM_RANGE(0x0f0000, 0x0f0001) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0x1f0000, 0x1f1fff) AM_READ(SMH_BANK8)
|
||||
|
@ -585,7 +585,7 @@ static ADDRESS_MAP_START( srdarwin_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x1400, 0x17ff) AM_WRITE(dec8_pf0_data_w) AM_BASE(&dec8_pf0_data)
|
||||
AM_RANGE(0x1800, 0x1801) AM_WRITE(srdarwin_i8751_w)
|
||||
AM_RANGE(0x1802, 0x1802) AM_WRITE(i8751_reset_w) /* Maybe.. */
|
||||
AM_RANGE(0x1803, 0x1803) AM_WRITE(SMH_NOP) /* NMI ack */
|
||||
AM_RANGE(0x1803, 0x1803) AM_WRITENOP /* NMI ack */
|
||||
AM_RANGE(0x1804, 0x1804) AM_WRITE(buffer_spriteram_w) /* DMA */
|
||||
AM_RANGE(0x1805, 0x1806) AM_WRITE(srdarwin_control_w) /* Scroll & Bank */
|
||||
AM_RANGE(0x2000, 0x2000) AM_WRITE(dec8_sound_w) /* Sound */
|
||||
@ -657,7 +657,7 @@ static ADDRESS_MAP_START( oscar_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x3c80, 0x3c80) AM_WRITE(buffer_spriteram_w) /* DMA */
|
||||
AM_RANGE(0x3d00, 0x3d00) AM_WRITE(dec8_bank_w) /* BNKS */
|
||||
AM_RANGE(0x3d80, 0x3d80) AM_WRITE(oscar_sound_w) /* SOUN */
|
||||
AM_RANGE(0x3e00, 0x3e00) AM_WRITE(SMH_NOP) /* COINCL */
|
||||
AM_RANGE(0x3e00, 0x3e00) AM_WRITENOP /* COINCL */
|
||||
AM_RANGE(0x3e80, 0x3e83) AM_WRITE(oscar_int_w)
|
||||
AM_RANGE(0x4000, 0xffff) AM_WRITE(SMH_ROM)
|
||||
ADDRESS_MAP_END
|
||||
@ -891,7 +891,7 @@ static ADDRESS_MAP_START( garyoret_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x3000, 0x37ff) AM_READ(SMH_RAM) /* Sprites */
|
||||
AM_RANGE(0x3800, 0x3800) AM_READ_PORT("DSW0") /* Dip 1 */
|
||||
AM_RANGE(0x3801, 0x3801) AM_READ_PORT("DSW1") /* Dip 2 */
|
||||
AM_RANGE(0x3808, 0x3808) AM_READ(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x3808, 0x3808) AM_READNOP /* ? */
|
||||
AM_RANGE(0x380a, 0x380a) AM_READ_PORT("IN1") /* Player 2 + VBL */
|
||||
AM_RANGE(0x380b, 0x380b) AM_READ_PORT("IN0") /* Player 1 */
|
||||
AM_RANGE(0x383a, 0x383a) AM_READ(i8751_h_r)
|
||||
|
@ -197,9 +197,9 @@ static ADDRESS_MAP_START( hvysmsh_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM
|
||||
AM_RANGE(0x100000, 0x107fff) AM_RAM
|
||||
AM_RANGE(0x120000, 0x120003) AM_READ_PORT("INPUTS")
|
||||
AM_RANGE(0x120000, 0x120003) AM_WRITE(SMH_NOP) // Volume control in low byte
|
||||
AM_RANGE(0x120000, 0x120003) AM_WRITENOP // Volume control in low byte
|
||||
AM_RANGE(0x120004, 0x120007) AM_WRITE(hvysmsh_eeprom_w)
|
||||
AM_RANGE(0x120008, 0x12000b) AM_WRITE(SMH_NOP) // IRQ ack?
|
||||
AM_RANGE(0x120008, 0x12000b) AM_WRITENOP // IRQ ack?
|
||||
AM_RANGE(0x12000c, 0x12000f) AM_DEVWRITE("oki1", hvysmsh_oki_0_bank_w)
|
||||
AM_RANGE(0x140000, 0x140003) AM_DEVREADWRITE8("oki1", okim6295_r, okim6295_w, 0x000000ff)
|
||||
AM_RANGE(0x160000, 0x160003) AM_DEVREADWRITE8("oki2", okim6295_r, okim6295_w, 0x000000ff)
|
||||
@ -209,7 +209,7 @@ static ADDRESS_MAP_START( hvysmsh_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x1a0000, 0x1a0fff) AM_READWRITE( wcvol95_pf1_rowscroll_r, wcvol95_pf1_rowscroll_w )
|
||||
AM_RANGE(0x1a4000, 0x1a4fff) AM_READWRITE( wcvol95_pf2_rowscroll_r, wcvol95_pf2_rowscroll_w )
|
||||
AM_RANGE(0x1c0000, 0x1c0fff) AM_READ(SMH_RAM) AM_WRITE(deco32_nonbuffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x1d0010, 0x1d002f) AM_READ(SMH_NOP) // Check for DMA complete?
|
||||
AM_RANGE(0x1d0010, 0x1d002f) AM_READNOP // Check for DMA complete?
|
||||
AM_RANGE(0x1e0000, 0x1e1fff) AM_RAM AM_BASE(&spriteram32) AM_SIZE(&spriteram_size)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -680,7 +680,7 @@ static ADDRESS_MAP_START( captaven_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM)
|
||||
|
||||
AM_RANGE(0x100000, 0x100003) AM_WRITE(buffer_spriteram32_w)
|
||||
AM_RANGE(0x108000, 0x108003) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x108000, 0x108003) AM_WRITENOP /* ? */
|
||||
AM_RANGE(0x110000, 0x110fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x120000, 0x127fff) AM_WRITE(SMH_RAM) AM_BASE(&deco32_ram) /* Main RAM */
|
||||
AM_RANGE(0x1280c8, 0x1280cb) AM_WRITE(deco32_sound_w)
|
||||
@ -728,8 +728,8 @@ static ADDRESS_MAP_START( fghthist_readmem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x1d4800, 0x1d48ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x1e0000, 0x1e001f) AM_READ(SMH_RAM)
|
||||
|
||||
AM_RANGE(0x16c000, 0x16c01f) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x17c000, 0x17c03f) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x16c000, 0x16c01f) AM_READNOP
|
||||
AM_RANGE(0x17c000, 0x17c03f) AM_READNOP
|
||||
|
||||
AM_RANGE(0x200000, 0x200fff) AM_READ(deco16_146_fghthist_prot_r)
|
||||
ADDRESS_MAP_END
|
||||
@ -740,7 +740,7 @@ static ADDRESS_MAP_START( fghthist_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x100000, 0x11ffff) AM_WRITE(SMH_RAM) AM_BASE(&deco32_ram)
|
||||
AM_RANGE(0x12002c, 0x12002f) AM_WRITE(fghthist_eeprom_w)
|
||||
AM_RANGE(0x1201fc, 0x1201ff) AM_WRITE(deco32_sound_w)
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITE(SMH_NOP) /* VBL irq ack */
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITENOP /* VBL irq ack */
|
||||
//148000 - IRQ mask (ca)...
|
||||
AM_RANGE(0x168000, 0x169fff) AM_WRITE(deco32_buffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x16c008, 0x16c00b) AM_WRITE(deco32_palette_dma_w)
|
||||
@ -762,22 +762,22 @@ static ADDRESS_MAP_START( fghthist_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x1e0000, 0x1e001f) AM_WRITE(SMH_RAM) AM_BASE(&deco32_pf34_control)
|
||||
|
||||
AM_RANGE(0x200000, 0x200fff) AM_WRITE(deco16_146_fghthist_prot_w) AM_BASE(&deco32_prot_ram)
|
||||
AM_RANGE(0x208800, 0x208803) AM_WRITE(SMH_NOP) /* ? */
|
||||
AM_RANGE(0x208800, 0x208803) AM_WRITENOP /* ? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( fghthsta_memmap, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x11ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE(&deco32_ram)
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITE(SMH_NOP) /* VBL irq ack */
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITENOP /* VBL irq ack */
|
||||
AM_RANGE(0x150000, 0x150003) AM_WRITE(fghthist_eeprom_w) /* Volume port/Eprom */
|
||||
|
||||
AM_RANGE(0x168000, 0x169fff) AM_READ(SMH_RAM) AM_WRITE(deco32_buffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x16c008, 0x16c00b) AM_WRITE(deco32_palette_dma_w)
|
||||
AM_RANGE(0x16c010, 0x16c013) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x16c010, 0x16c013) AM_READNOP
|
||||
|
||||
AM_RANGE(0x178000, 0x179fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x17c010, 0x17c013) AM_WRITE(buffer_spriteram32_w)
|
||||
AM_RANGE(0x17c020, 0x17c023) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x17c020, 0x17c023) AM_READNOP
|
||||
|
||||
AM_RANGE(0x182000, 0x183fff) AM_READ(SMH_RAM) AM_WRITE(deco32_pf1_data_w) AM_BASE(&deco32_pf1_data)
|
||||
AM_RANGE(0x184000, 0x185fff) AM_READ(SMH_RAM) AM_WRITE(deco32_pf2_data_w) AM_BASE(&deco32_pf2_data)
|
||||
@ -800,7 +800,7 @@ static ADDRESS_MAP_START( dragngun_readmem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x120000, 0x120fff) AM_READ(dragngun_prot_r)
|
||||
AM_RANGE(0x128000, 0x12800f) AM_READ(deco32_irq_controller_r)
|
||||
AM_RANGE(0x130000, 0x131fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x138000, 0x138003) AM_READ(SMH_NOP) /* Palette dma complete in bit 0x8? ack? return 0 else tight loop */
|
||||
AM_RANGE(0x138000, 0x138003) AM_READNOP /* Palette dma complete in bit 0x8? ack? return 0 else tight loop */
|
||||
|
||||
AM_RANGE(0x180000, 0x18001f) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x190000, 0x191fff) AM_READ(SMH_RAM)
|
||||
@ -838,7 +838,7 @@ static ADDRESS_MAP_START( dragngun_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x128000, 0x12800f) AM_WRITE(deco32_irq_controller_w)
|
||||
|
||||
AM_RANGE(0x130000, 0x131fff) AM_WRITE(deco32_buffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x138000, 0x138003) AM_WRITE(SMH_NOP) // palette mode? check
|
||||
AM_RANGE(0x138000, 0x138003) AM_WRITENOP // palette mode? check
|
||||
AM_RANGE(0x138008, 0x13800b) AM_WRITE(deco32_palette_dma_w)
|
||||
|
||||
AM_RANGE(0x180000, 0x18001f) AM_WRITE(SMH_RAM) AM_BASE(&deco32_pf12_control)
|
||||
@ -866,7 +866,7 @@ static ADDRESS_MAP_START( dragngun_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x300000, 0x3fffff) AM_WRITE(SMH_ROM)
|
||||
|
||||
AM_RANGE(0x400000, 0x400003) AM_DEVWRITE8("oki3", okim6295_w, 0x000000ff)
|
||||
AM_RANGE(0x410000, 0x410003) AM_WRITE(SMH_NOP) /* Some kind of serial bit-stream - digital volume control? */
|
||||
AM_RANGE(0x410000, 0x410003) AM_WRITENOP /* Some kind of serial bit-stream - digital volume control? */
|
||||
AM_RANGE(0x420000, 0x420003) AM_WRITE(dragngun_eeprom_w)
|
||||
AM_RANGE(0x430000, 0x43001f) AM_WRITE(dragngun_lightgun_w)
|
||||
AM_RANGE(0x500000, 0x500003) AM_WRITE(dragngun_sprite_control_w)
|
||||
@ -919,9 +919,9 @@ static ADDRESS_MAP_START( lockload_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x128000, 0x12800f) AM_WRITE(deco32_irq_controller_w)
|
||||
|
||||
AM_RANGE(0x130000, 0x131fff) AM_WRITE(deco32_buffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x138000, 0x138003) AM_WRITE(SMH_NOP) // palette mode? check
|
||||
AM_RANGE(0x138000, 0x138003) AM_WRITENOP // palette mode? check
|
||||
AM_RANGE(0x138008, 0x13800b) AM_WRITE(deco32_palette_dma_w)
|
||||
AM_RANGE(0x178008, 0x17800f) AM_WRITE(SMH_NOP) /* Gun read ACK's */
|
||||
AM_RANGE(0x178008, 0x17800f) AM_WRITENOP /* Gun read ACK's */
|
||||
|
||||
AM_RANGE(0x180000, 0x18001f) AM_WRITE(SMH_RAM) AM_BASE(&deco32_pf12_control)
|
||||
AM_RANGE(0x190000, 0x191fff) AM_WRITE(deco32_pf1_data_w) AM_BASE(&deco32_pf1_data)
|
||||
@ -957,7 +957,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( tattass_readmem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x11ffff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x120000, 0x120003) AM_READ(SMH_NOP) /* ACIA (unused) */
|
||||
AM_RANGE(0x120000, 0x120003) AM_READNOP /* ACIA (unused) */
|
||||
|
||||
AM_RANGE(0x162000, 0x162fff) AM_READ(SMH_RAM) /* 'Jack' RAM!? */
|
||||
AM_RANGE(0x163000, 0x16309f) AM_READ(SMH_RAM)
|
||||
@ -987,34 +987,34 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( tattass_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0f7fff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x0f8000, 0x0fffff) AM_WRITE(SMH_NOP) /* Screen area on debug board? Cleared on startup */
|
||||
AM_RANGE(0x0f8000, 0x0fffff) AM_WRITENOP /* Screen area on debug board? Cleared on startup */
|
||||
AM_RANGE(0x100000, 0x11ffff) AM_WRITE(SMH_RAM) AM_BASE(&deco32_ram)
|
||||
|
||||
AM_RANGE(0x120000, 0x120003) AM_WRITE(SMH_NOP) /* ACIA (unused) */
|
||||
AM_RANGE(0x130000, 0x130003) AM_WRITE(SMH_NOP) /* Coin port (unused?) */
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITE(SMH_NOP) /* Vblank ack */
|
||||
AM_RANGE(0x120000, 0x120003) AM_WRITENOP /* ACIA (unused) */
|
||||
AM_RANGE(0x130000, 0x130003) AM_WRITENOP /* Coin port (unused?) */
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITENOP /* Vblank ack */
|
||||
AM_RANGE(0x150000, 0x150003) AM_WRITE(tattass_control_w) /* Volume port/Eprom/Priority */
|
||||
|
||||
AM_RANGE(0x162000, 0x162fff) AM_WRITE(SMH_RAM) /* 'Jack' RAM!? */
|
||||
AM_RANGE(0x163000, 0x16309f) AM_WRITE(deco32_ace_ram_w) AM_BASE(&deco32_ace_ram) /* 'Ace' RAM!? */
|
||||
|
||||
AM_RANGE(0x164000, 0x164003) AM_WRITE(SMH_NOP) /* Palette control BG2/3 ($1a constant) */
|
||||
AM_RANGE(0x164004, 0x164007) AM_WRITE(SMH_NOP) /* Palette control Obj1 ($6 constant) */
|
||||
AM_RANGE(0x164008, 0x16400b) AM_WRITE(SMH_NOP) /* Palette control Obj2 ($5 constant) */
|
||||
AM_RANGE(0x16400c, 0x16400f) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x164000, 0x164003) AM_WRITENOP /* Palette control BG2/3 ($1a constant) */
|
||||
AM_RANGE(0x164004, 0x164007) AM_WRITENOP /* Palette control Obj1 ($6 constant) */
|
||||
AM_RANGE(0x164008, 0x16400b) AM_WRITENOP /* Palette control Obj2 ($5 constant) */
|
||||
AM_RANGE(0x16400c, 0x16400f) AM_WRITENOP
|
||||
AM_RANGE(0x168000, 0x169fff) AM_WRITE(deco32_buffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x16c000, 0x16c003) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x16c000, 0x16c003) AM_WRITENOP
|
||||
AM_RANGE(0x16c008, 0x16c00b) AM_WRITE(deco32_palette_dma_w)
|
||||
|
||||
AM_RANGE(0x170000, 0x171fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x174000, 0x174003) AM_WRITE(SMH_NOP) /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x174000, 0x174003) AM_WRITENOP /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x174010, 0x174013) AM_WRITE(buffer_spriteram32_w)
|
||||
AM_RANGE(0x174018, 0x17401b) AM_WRITE(SMH_NOP) /* Sprite 'CPU' (unused) */
|
||||
AM_RANGE(0x174018, 0x17401b) AM_WRITENOP /* Sprite 'CPU' (unused) */
|
||||
|
||||
AM_RANGE(0x178000, 0x179fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32_2) AM_SIZE(&spriteram_2_size)
|
||||
AM_RANGE(0x17c000, 0x17c003) AM_WRITE(SMH_NOP) /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x17c000, 0x17c003) AM_WRITENOP /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x17c010, 0x17c013) AM_WRITE(buffer_spriteram32_2_w)
|
||||
AM_RANGE(0x17c018, 0x17c01b) AM_WRITE(SMH_NOP) /* Sprite 'CPU' (unused) */
|
||||
AM_RANGE(0x17c018, 0x17c01b) AM_WRITENOP /* Sprite 'CPU' (unused) */
|
||||
|
||||
AM_RANGE(0x182000, 0x183fff) AM_WRITE(deco32_pf1_data_w) AM_BASE(&deco32_pf1_data)
|
||||
AM_RANGE(0x184000, 0x185fff) AM_WRITE(deco32_pf2_data_w) AM_BASE(&deco32_pf2_data)
|
||||
@ -1034,7 +1034,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( nslasher_readmem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x11ffff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x120000, 0x1200ff) AM_READ(SMH_NOP) /* ACIA (unused) */
|
||||
AM_RANGE(0x120000, 0x1200ff) AM_READNOP /* ACIA (unused) */
|
||||
|
||||
AM_RANGE(0x163000, 0x16309f) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x168000, 0x169fff) AM_READ(SMH_RAM)
|
||||
@ -1065,29 +1065,29 @@ static ADDRESS_MAP_START( nslasher_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x11ffff) AM_WRITE(SMH_RAM) AM_BASE(&deco32_ram)
|
||||
|
||||
AM_RANGE(0x120000, 0x120003) AM_WRITE(SMH_NOP) /* ACIA (unused) */
|
||||
// AM_RANGE(0x130000, 0x130003) AM_WRITE(SMH_NOP) /* Coin port (unused?) */
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITE(SMH_NOP) /* Vblank ack */
|
||||
AM_RANGE(0x120000, 0x120003) AM_WRITENOP /* ACIA (unused) */
|
||||
// AM_RANGE(0x130000, 0x130003) AM_WRITENOP /* Coin port (unused?) */
|
||||
AM_RANGE(0x140000, 0x140003) AM_WRITENOP /* Vblank ack */
|
||||
AM_RANGE(0x150000, 0x150003) AM_WRITE(nslasher_eeprom_w) /* Volume port/Eprom/Priority */
|
||||
|
||||
AM_RANGE(0x163000, 0x16309f) AM_WRITE(deco32_ace_ram_w) AM_BASE(&deco32_ace_ram) /* 'Ace' RAM!? */
|
||||
AM_RANGE(0x164000, 0x164003) AM_WRITE(SMH_NOP) /* Palette control BG2/3 ($1a constant) */
|
||||
AM_RANGE(0x164004, 0x164007) AM_WRITE(SMH_NOP) /* Palette control Obj1 ($4 constant) */
|
||||
AM_RANGE(0x164008, 0x16400b) AM_WRITE(SMH_NOP) /* Palette control Obj2 ($6 constant) */
|
||||
AM_RANGE(0x16400c, 0x16400f) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x164000, 0x164003) AM_WRITENOP /* Palette control BG2/3 ($1a constant) */
|
||||
AM_RANGE(0x164004, 0x164007) AM_WRITENOP /* Palette control Obj1 ($4 constant) */
|
||||
AM_RANGE(0x164008, 0x16400b) AM_WRITENOP /* Palette control Obj2 ($6 constant) */
|
||||
AM_RANGE(0x16400c, 0x16400f) AM_WRITENOP
|
||||
AM_RANGE(0x168000, 0x169fff) AM_WRITE(deco32_buffered_palette_w) AM_BASE(&paletteram32)
|
||||
AM_RANGE(0x16c000, 0x16c003) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x16c000, 0x16c003) AM_WRITENOP
|
||||
AM_RANGE(0x16c008, 0x16c00b) AM_WRITE(deco32_palette_dma_w)
|
||||
|
||||
AM_RANGE(0x170000, 0x171fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0x174000, 0x174003) AM_WRITE(SMH_NOP) /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x174000, 0x174003) AM_WRITENOP /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x174010, 0x174013) AM_WRITE(buffer_spriteram32_w)
|
||||
AM_RANGE(0x174018, 0x17401b) AM_WRITE(SMH_NOP) /* Sprite 'CPU' (unused) */
|
||||
AM_RANGE(0x174018, 0x17401b) AM_WRITENOP /* Sprite 'CPU' (unused) */
|
||||
|
||||
AM_RANGE(0x178000, 0x179fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32_2) AM_SIZE(&spriteram_2_size)
|
||||
AM_RANGE(0x17c000, 0x17c003) AM_WRITE(SMH_NOP) /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x17c000, 0x17c003) AM_WRITENOP /* Sprite DMA mode (2) */
|
||||
AM_RANGE(0x17c010, 0x17c013) AM_WRITE(buffer_spriteram32_2_w)
|
||||
AM_RANGE(0x17c018, 0x17c01b) AM_WRITE(SMH_NOP) /* Sprite 'CPU' (unused) */
|
||||
AM_RANGE(0x17c018, 0x17c01b) AM_WRITENOP /* Sprite 'CPU' (unused) */
|
||||
|
||||
AM_RANGE(0x182000, 0x183fff) AM_WRITE(deco32_pf1_data_w) AM_BASE(&deco32_pf1_data)
|
||||
AM_RANGE(0x184000, 0x185fff) AM_WRITE(deco32_pf2_data_w) AM_BASE(&deco32_pf2_data)
|
||||
|
@ -267,7 +267,7 @@ static READ32_HANDLER(stadhr96_prot_146_r)
|
||||
static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x0000000, 0x00fffff) AM_READ(SMH_ROM) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0100000, 0x011ffff) AM_READ(SMH_RAM) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0200000, 0x020000f) AM_READ(SMH_NOP) AM_MIRROR(0xff000000)/* IRQ control? */
|
||||
AM_RANGE(0x0200000, 0x020000f) AM_READNOP AM_MIRROR(0xff000000)/* IRQ control? */
|
||||
AM_RANGE(0x0200070, 0x0200073) AM_READ(decomlc_vbl_r) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0200074, 0x0200077) AM_READ(mlc_scanline_r) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0200078, 0x020007f) AM_READ(test2_r) AM_MIRROR(0xff000000)
|
||||
@ -290,7 +290,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x0204000, 0x0206fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0280000, 0x029ffff) AM_WRITE(SMH_RAM) AM_BASE(&mlc_vram) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0300000, 0x0307fff) AM_WRITE(avengrs_palette_w) AM_BASE(&paletteram32) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x044001c, 0x044001f) AM_WRITE(SMH_NOP) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x044001c, 0x044001f) AM_WRITENOP AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0500000, 0x0500003) AM_WRITE(avengrs_eprom_w) AM_MIRROR(0xff000000)
|
||||
AM_RANGE(0x0600000, 0x0600007) AM_DEVWRITE8("ymz", ymz280b_w, 0xff000000) AM_MIRROR(0xff000000)
|
||||
// AM_RANGE(0x070f000, 0x070ffff) AM_READ(stadhr96_prot_146_w) AM_BASE(&deco32_prot_ram)
|
||||
|
@ -87,7 +87,7 @@ static ADDRESS_MAP_START( deniam16b_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xc44000, 0xc44001) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0xc44002, 0xc44003) AM_READ_PORT("P1")
|
||||
AM_RANGE(0xc44004, 0xc44005) AM_READ_PORT("P2")
|
||||
AM_RANGE(0xc44006, 0xc44007) AM_READ(SMH_NOP) /* unused? */
|
||||
AM_RANGE(0xc44006, 0xc44007) AM_READNOP /* unused? */
|
||||
AM_RANGE(0xc4400a, 0xc4400b) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0xff0000, 0xffffff) AM_READ(SMH_RAM)
|
||||
ADDRESS_MAP_END
|
||||
@ -100,7 +100,7 @@ static ADDRESS_MAP_START( deniam16b_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x840000, 0x840fff) AM_WRITE(deniam_palette_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0xc40000, 0xc40001) AM_WRITE(sound_command_w)
|
||||
AM_RANGE(0xc40002, 0xc40003) AM_WRITE(deniam_coinctrl_w)
|
||||
AM_RANGE(0xc40004, 0xc40005) AM_WRITE(SMH_NOP) /* irq ack? */
|
||||
AM_RANGE(0xc40004, 0xc40005) AM_WRITENOP /* irq ack? */
|
||||
AM_RANGE(0xff0000, 0xffffff) AM_WRITE(SMH_RAM)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -132,7 +132,7 @@ static ADDRESS_MAP_START( deniam16c_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xc44000, 0xc44001) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0xc44002, 0xc44003) AM_READ_PORT("P1")
|
||||
AM_RANGE(0xc44004, 0xc44005) AM_READ_PORT("P2")
|
||||
AM_RANGE(0xc44006, 0xc44007) AM_READ(SMH_NOP) /* unused? */
|
||||
AM_RANGE(0xc44006, 0xc44007) AM_READNOP /* unused? */
|
||||
AM_RANGE(0xc4400a, 0xc4400b) AM_READ_PORT("DSW") /* probably YM3812 input port */
|
||||
AM_RANGE(0xff0000, 0xffffff) AM_READ(SMH_RAM)
|
||||
ADDRESS_MAP_END
|
||||
@ -145,7 +145,7 @@ static ADDRESS_MAP_START( deniam16c_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x840000, 0x840fff) AM_WRITE(deniam_palette_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0xc40000, 0xc40001) AM_DEVWRITE8("oki", okim6295_w, 0x00ff)
|
||||
AM_RANGE(0xc40002, 0xc40003) AM_WRITE(deniam_coinctrl_w)
|
||||
AM_RANGE(0xc40004, 0xc40005) AM_WRITE(SMH_NOP) /* irq ack? */
|
||||
AM_RANGE(0xc40004, 0xc40005) AM_WRITENOP /* irq ack? */
|
||||
AM_RANGE(0xc40006, 0xc40007) AM_DEVWRITE("oki", deniam16c_oki_rom_bank_w)
|
||||
AM_RANGE(0xc40008, 0xc4000b) AM_DEVWRITE8("ym", ym3812_w, 0xff00)
|
||||
AM_RANGE(0xff0000, 0xffffff) AM_WRITE(SMH_RAM)
|
||||
|
@ -34,20 +34,20 @@ ADDRESS_MAP_END
|
||||
/* Physical memory map (21 bits) */
|
||||
static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x100000, 0x100001) AM_READNOP
|
||||
AM_RANGE(0x110000, 0x110001) AM_DEVREAD("ym", ym2151_r)
|
||||
AM_RANGE(0x120000, 0x120001) AM_DEVREAD("oki", okim6295_r)
|
||||
AM_RANGE(0x130000, 0x130001) AM_READ(SMH_NOP) /* This board only has 1 oki chip */
|
||||
AM_RANGE(0x130000, 0x130001) AM_READNOP /* This board only has 1 oki chip */
|
||||
AM_RANGE(0x140000, 0x140001) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0x1f0000, 0x1f1fff) AM_READ(SMH_BANK8)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITE(SMH_NOP) /* YM2203 - this board doesn't have one */
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITENOP /* YM2203 - this board doesn't have one */
|
||||
AM_RANGE(0x110000, 0x110001) AM_DEVWRITE("ym", ym2151_w)
|
||||
AM_RANGE(0x120000, 0x120001) AM_DEVWRITE("oki", okim6295_w)
|
||||
AM_RANGE(0x130000, 0x130001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x130000, 0x130001) AM_WRITENOP
|
||||
AM_RANGE(0x1f0000, 0x1f1fff) AM_WRITE(SMH_BANK8)
|
||||
AM_RANGE(0x1fec00, 0x1fec01) AM_WRITE(h6280_timer_w)
|
||||
AM_RANGE(0x1ff400, 0x1ff403) AM_WRITE(h6280_irq_status_w)
|
||||
|
@ -84,7 +84,7 @@ static ADDRESS_MAP_START( diverboy_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x180000, 0x180001) AM_READ_PORT("P1_P2")
|
||||
AM_RANGE(0x180002, 0x180003) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0x180008, 0x180009) AM_READ_PORT("COINS")
|
||||
// AM_RANGE(0x18000a, 0x18000b) AM_READ(SMH_NOP)
|
||||
// AM_RANGE(0x18000a, 0x18000b) AM_READNOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( diverboy_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -93,11 +93,11 @@ static ADDRESS_MAP_START( diverboy_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x080000, 0x083fff) AM_WRITE(SMH_RAM) AM_BASE(&diverboy_spriteram) AM_SIZE(&diverboy_spriteram_size)
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITE(soundcmd_w)
|
||||
AM_RANGE(0x140000, 0x1407ff) AM_WRITE(paletteram16_xxxxBBBBGGGGRRRR_word_w) AM_BASE(&paletteram16)
|
||||
// AM_RANGE(0x18000c, 0x18000d) AM_WRITE(SMH_NOP)
|
||||
// AM_RANGE(0x18000c, 0x18000d) AM_WRITENOP
|
||||
AM_RANGE(0x320000, 0x3207ff) AM_WRITE(SMH_RAM) /* ?? */
|
||||
AM_RANGE(0x322000, 0x3227ff) AM_WRITE(SMH_RAM) /* ?? */
|
||||
// AM_RANGE(0x340000, 0x340001) AM_WRITE(SMH_NOP)
|
||||
// AM_RANGE(0x340002, 0x340003) AM_WRITE(SMH_NOP)
|
||||
// AM_RANGE(0x340000, 0x340001) AM_WRITENOP
|
||||
// AM_RANGE(0x340002, 0x340003) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( snd_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
|
@ -130,7 +130,7 @@ static ADDRESS_MAP_START( memmap, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xd001, 0xd001) AM_DEVREAD("ay", ay8910_r)
|
||||
AM_RANGE(0xd008, 0xd008) AM_WRITE(dominob_d008_w)
|
||||
AM_RANGE(0xd00c, 0xd00c) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0xd010, 0xd010) AM_READ_PORT("IN1") AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xd010, 0xd010) AM_READ_PORT("IN1") AM_WRITENOP
|
||||
AM_RANGE(0xd018, 0xd018) AM_READ_PORT("IN2") AM_WRITENOP
|
||||
|
||||
AM_RANGE(0xe000, 0xe7ff) AM_RAM AM_BASE(&videoram)
|
||||
|
@ -292,7 +292,7 @@ static ADDRESS_MAP_START( popbingo_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x04e000, 0x04ffff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0x0c0012, 0x0c0013) AM_WRITE(soundlatch_word_w)
|
||||
AM_RANGE(0x0c0014, 0x0c0015) AM_WRITE(rshark_ctrl_w)
|
||||
AM_RANGE(0x0c0018, 0x0c001b) AM_WRITE(SMH_NOP) // ?
|
||||
AM_RANGE(0x0c0018, 0x0c001b) AM_WRITENOP // ?
|
||||
AM_RANGE(0x0c4000, 0x0c400f) AM_WRITE(dooyong_bgscroll16_w)
|
||||
AM_RANGE(0x0c4010, 0x0c401f) AM_WRITE(dooyong_bg2scroll16_w) // not used atm
|
||||
AM_RANGE(0x0c8000, 0x0c8fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
|
||||
|
@ -150,8 +150,8 @@ ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( dorachan_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x01, 0x01) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x02, 0x02) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x01, 0x01) AM_WRITENOP
|
||||
AM_RANGE(0x02, 0x02) AM_WRITENOP
|
||||
AM_RANGE(0x03, 0x03) AM_WRITE(dorachan_ctrl_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -286,7 +286,7 @@ static WRITE32_HANDLER( dreamwld_6295_1_bank_w )
|
||||
}
|
||||
|
||||
static ADDRESS_MAP_START( dreamwld_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x000000, 0x0fffff) AM_ROM AM_WRITENOP
|
||||
|
||||
AM_RANGE(0x400000, 0x401fff) AM_RAM AM_BASE( &spriteram32 )
|
||||
AM_RANGE(0x600000, 0x601fff) AM_RAM_WRITE(dreamwld_palette_w) AM_BASE(&paletteram32) // real palette?
|
||||
|
@ -77,9 +77,9 @@ static ADDRESS_MAP_START( dynadice_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x50, 0x50) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0x51, 0x51) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0x52, 0x52) AM_READ_PORT("DSW")
|
||||
AM_RANGE(0x62, 0x62) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x62, 0x62) AM_WRITENOP
|
||||
AM_RANGE(0x63, 0x63) AM_WRITE(soundlatch_w)
|
||||
AM_RANGE(0x70, 0x77) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x70, 0x77) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( dynadice_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
|
@ -170,7 +170,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( main_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x01, 0x01) AM_READ_PORT("IN0") AM_WRITE(port_1_w)
|
||||
AM_RANGE(0x02, 0x02) AM_READWRITE(dial_r, port_2_w)
|
||||
AM_RANGE(0x03, 0x03) AM_WRITE(SMH_NOP) /* always 0xFE */
|
||||
AM_RANGE(0x03, 0x03) AM_WRITENOP /* always 0xFE */
|
||||
AM_RANGE(S2650_DATA_PORT, S2650_DATA_PORT) AM_READ_PORT("IN2")
|
||||
AM_RANGE(S2650_CTRL_PORT, S2650_CTRL_PORT) AM_READWRITE(input_port_bit_r, input_select_w)
|
||||
ADDRESS_MAP_END
|
||||
|
@ -190,11 +190,11 @@ static ADDRESS_MAP_START( hedpanic_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xb00004, 0xb00007) AM_WRITE(SMH_RAM) AM_BASE(&esd16_scroll_1 ) //
|
||||
AM_RANGE(0xb00008, 0xb00009) AM_WRITE(SMH_RAM) AM_BASE(&headpanic_platform_x)
|
||||
AM_RANGE(0xb0000a, 0xb0000b) AM_WRITE(SMH_RAM) AM_BASE(&headpanic_platform_y)
|
||||
AM_RANGE(0xb0000c, 0xb0000d) AM_WRITE(SMH_NOP) // ??
|
||||
AM_RANGE(0xb0000c, 0xb0000d) AM_WRITENOP // ??
|
||||
AM_RANGE(0xb0000e, 0xb0000f) AM_WRITE(SMH_RAM) AM_BASE(&head_layersize) // ??
|
||||
AM_RANGE(0xc00000, 0xc00001) AM_WRITE(SMH_NOP) // IRQ Ack
|
||||
AM_RANGE(0xc00000, 0xc00001) AM_WRITENOP // IRQ Ack
|
||||
AM_RANGE(0xc00008, 0xc00009) AM_WRITE(esd16_tilemap0_color_w) // Flip Screen + Tileamp0 palette banking
|
||||
AM_RANGE(0xc0000a, 0xc0000b) AM_WRITE(SMH_NOP) // ? 2 not checked
|
||||
AM_RANGE(0xc0000a, 0xc0000b) AM_WRITENOP // ? 2 not checked
|
||||
AM_RANGE(0xc0000c, 0xc0000d) AM_WRITE(esd16_sound_command_w ) // To Sound CPU // ok
|
||||
AM_RANGE(0xc0000e, 0xc0000f) AM_WRITE(esd_eeprom_w)
|
||||
AM_RANGE(0xd00008, 0xd00009) AM_WRITE(hedpanic_platform_w)
|
||||
@ -218,9 +218,9 @@ static ADDRESS_MAP_START( mchampdx_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x320000, 0x323fff) AM_WRITE(esd16_vram_1_w) AM_BASE(&esd16_vram_1 ) //
|
||||
AM_RANGE(0x324000, 0x327fff) AM_WRITE(esd16_vram_1_w) AM_BASE(&esd16_vram_1 ) // mirror?
|
||||
AM_RANGE(0x400000, 0x400fff) AM_WRITE(paletteram16_xRRRRRGGGGGBBBBB_word_w) AM_BASE(&paletteram16)
|
||||
AM_RANGE(0x500000, 0x500001) AM_WRITE(SMH_NOP) // IRQ Ack
|
||||
AM_RANGE(0x500000, 0x500001) AM_WRITENOP // IRQ Ack
|
||||
AM_RANGE(0x500008, 0x500009) AM_WRITE(esd16_tilemap0_color_w) // Flip Screen + Tileamp0 palette banking
|
||||
AM_RANGE(0x50000a, 0x50000b) AM_WRITE(SMH_NOP) // ? 2 not checked
|
||||
AM_RANGE(0x50000a, 0x50000b) AM_WRITENOP // ? 2 not checked
|
||||
AM_RANGE(0x50000c, 0x50000d) AM_WRITE(esd16_sound_command_w ) // To Sound CPU // ok
|
||||
AM_RANGE(0x50000e, 0x50000f) AM_WRITE(esd_eeprom_w)
|
||||
AM_RANGE(0x600000, 0x6007ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size ) // Sprites
|
||||
@ -229,7 +229,7 @@ static ADDRESS_MAP_START( mchampdx_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x700004, 0x700007) AM_WRITE(SMH_RAM) AM_BASE(&esd16_scroll_1 ) //
|
||||
AM_RANGE(0x700008, 0x700009) AM_WRITE(SMH_RAM) AM_BASE(&headpanic_platform_x) // not used in mchampdx?
|
||||
AM_RANGE(0x70000a, 0x70000b) AM_WRITE(SMH_RAM) AM_BASE(&headpanic_platform_y) // not used in mchampdx?
|
||||
AM_RANGE(0x70000c, 0x70000d) AM_WRITE(SMH_NOP) // ??
|
||||
AM_RANGE(0x70000c, 0x70000d) AM_WRITENOP // ??
|
||||
AM_RANGE(0x70000e, 0x70000f) AM_WRITE(SMH_RAM) AM_BASE(&head_layersize) // ??
|
||||
AM_RANGE(0xd00008, 0xd00009) AM_WRITE(hedpanic_platform_w) // not used in mchampdx?
|
||||
ADDRESS_MAP_END
|
||||
@ -257,11 +257,11 @@ static ADDRESS_MAP_START( tangtang_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x400004, 0x400007) AM_WRITE(SMH_RAM) AM_BASE(&esd16_scroll_1 ) //
|
||||
AM_RANGE(0x400008, 0x400009) AM_WRITE(SMH_RAM) AM_BASE(&headpanic_platform_x) // not used in mchampdx?
|
||||
AM_RANGE(0x40000a, 0x40000b) AM_WRITE(SMH_RAM) AM_BASE(&headpanic_platform_y) // not used in mchampdx?
|
||||
AM_RANGE(0x40000c, 0x40000d) AM_WRITE(SMH_NOP) // ??
|
||||
AM_RANGE(0x40000c, 0x40000d) AM_WRITENOP // ??
|
||||
AM_RANGE(0x40000e, 0x40000f) AM_WRITE(SMH_RAM) AM_BASE(&head_layersize) // ??
|
||||
AM_RANGE(0x500000, 0x500001) AM_WRITE(SMH_NOP) // IRQ Ack
|
||||
AM_RANGE(0x500000, 0x500001) AM_WRITENOP // IRQ Ack
|
||||
AM_RANGE(0x500008, 0x500009) AM_WRITE(esd16_tilemap0_color_w) // Flip Screen + Tileamp0 palette banking
|
||||
AM_RANGE(0x50000a, 0x50000b) AM_WRITE(SMH_NOP) // ? 2 not checked
|
||||
AM_RANGE(0x50000a, 0x50000b) AM_WRITENOP // ? 2 not checked
|
||||
AM_RANGE(0x50000c, 0x50000d) AM_WRITE(esd16_sound_command_w ) // To Sound CPU // ok
|
||||
AM_RANGE(0x50000e, 0x50000f) AM_WRITE(esd_eeprom_w)
|
||||
AM_RANGE(0x600008, 0x600009) AM_WRITE(hedpanic_platform_w)
|
||||
|
@ -58,7 +58,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0xc800, 0xc800) AM_WRITE(soundlatch_w)
|
||||
AM_RANGE(0xc804, 0xc804) AM_WRITE(exedexes_c804_w) /* coin counters + text layer enable */
|
||||
AM_RANGE(0xc806, 0xc806) AM_WRITE(SMH_NOP) /* Watchdog ?? */
|
||||
AM_RANGE(0xc806, 0xc806) AM_WRITENOP /* Watchdog ?? */
|
||||
AM_RANGE(0xd000, 0xd3ff) AM_WRITE(exedexes_videoram_w) AM_BASE(&videoram)
|
||||
AM_RANGE(0xd400, 0xd7ff) AM_WRITE(exedexes_colorram_w) AM_BASE(&colorram)
|
||||
AM_RANGE(0xd800, 0xd801) AM_WRITE(SMH_RAM) AM_BASE(&exedexes_nbg_yscroll)
|
||||
|
@ -276,7 +276,7 @@ static ADDRESS_MAP_START( fax_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x2000, 0x2000) AM_WRITE(fax_bank_select_w)
|
||||
AM_RANGE(0x2000, 0x3fff) AM_ROMBANK(1)
|
||||
AM_RANGE(0x5200, 0x520f) AM_DEVREADWRITE("pia0", pia6821_r, pia6821_w)
|
||||
AM_RANGE(0x5213, 0x5217) AM_WRITE(SMH_NOP) /* empty control lines on color/sound board */
|
||||
AM_RANGE(0x5213, 0x5217) AM_WRITENOP /* empty control lines on color/sound board */
|
||||
AM_RANGE(0x6000, 0x6fff) AM_RAM AM_BASE(&exidy_characterram)
|
||||
AM_RANGE(0x8000, 0xffff) AM_ROM
|
||||
ADDRESS_MAP_END
|
||||
|
@ -182,7 +182,7 @@ static ADDRESS_MAP_START( cpub_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xc000, 0xc5ff) AM_READ(exzisus_objectram_0_r)
|
||||
AM_RANGE(0xc600, 0xdfff) AM_READ(exzisus_videoram_0_r)
|
||||
AM_RANGE(0xe000, 0xefff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0xf000, 0xf000) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0xf000, 0xf000) AM_READNOP
|
||||
AM_RANGE(0xf001, 0xf001) AM_READ(taitosound_comm_r)
|
||||
AM_RANGE(0xf400, 0xf400) AM_READ_PORT("P1")
|
||||
AM_RANGE(0xf401, 0xf401) AM_READ_PORT("P2")
|
||||
@ -201,7 +201,7 @@ static ADDRESS_MAP_START( cpub_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xf001, 0xf001) AM_WRITE(taitosound_comm_w)
|
||||
AM_RANGE(0xf400, 0xf400) AM_WRITE(exzisus_cpub_bankswitch_w)
|
||||
AM_RANGE(0xf402, 0xf402) AM_WRITE(exzisus_coincounter_w)
|
||||
AM_RANGE(0xf404, 0xf404) AM_WRITE(SMH_NOP) // ??
|
||||
AM_RANGE(0xf404, 0xf404) AM_WRITENOP // ??
|
||||
AM_RANGE(0xf800, 0xffff) AM_WRITE(exzisus_sharedram_ab_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -225,7 +225,7 @@ static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x8000, 0x8fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x9000, 0x9001) AM_DEVREAD("ym", ym2151_r)
|
||||
AM_RANGE(0xa000, 0xa000) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0xa000, 0xa000) AM_READNOP
|
||||
AM_RANGE(0xa001, 0xa001) AM_READ(taitosound_slave_comm_r)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -191,7 +191,7 @@ static ADDRESS_MAP_START( jumpcoas_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xe801, 0xe801) AM_READ_PORT("DSW2")
|
||||
AM_RANGE(0xe802, 0xe802) AM_READ_PORT("BUTTONS")
|
||||
AM_RANGE(0xe803, 0xe803) AM_READ_PORT("JOYS")
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) // Unused, but initialized
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITENOP // Unused, but initialized
|
||||
AM_RANGE(0xf001, 0xf001) AM_WRITE(interrupt_enable_w)
|
||||
AM_RANGE(0xf002, 0xf002) AM_WRITE(fastfred_colorbank1_w)
|
||||
AM_RANGE(0xf003, 0xf003) AM_WRITE(fastfred_colorbank2_w)
|
||||
@ -240,7 +240,7 @@ static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x4000, 0x4000) AM_WRITE(SMH_RAM) // Reset PSG's
|
||||
AM_RANGE(0x5000, 0x5001) AM_DEVWRITE("ay8910.1", ay8910_address_data_w)
|
||||
AM_RANGE(0x6000, 0x6001) AM_DEVWRITE("ay8910.2", ay8910_address_data_w)
|
||||
AM_RANGE(0x7000, 0x7000) AM_READ(SMH_NOP) // only for Imago, read but not used
|
||||
AM_RANGE(0x7000, 0x7000) AM_READNOP // only for Imago, read but not used
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -114,7 +114,7 @@ static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0818, 0x0818) AM_WRITE(watchdog_reset_w)
|
||||
AM_RANGE(0x0819, 0x0819) AM_WRITE(finalizr_coin_w)
|
||||
AM_RANGE(0x081a, 0x081a) AM_DEVWRITE("sn", sn76496_w) /* This address triggers the SN chip to read the data port. */
|
||||
AM_RANGE(0x081b, 0x081b) AM_WRITE(SMH_NOP) /* Loads the snd command into the snd latch */
|
||||
AM_RANGE(0x081b, 0x081b) AM_WRITENOP /* Loads the snd command into the snd latch */
|
||||
AM_RANGE(0x081c, 0x081c) AM_WRITE(finalizr_i8039_irq_w) /* custom sound chip */
|
||||
AM_RANGE(0x081d, 0x081d) AM_WRITE(soundlatch_w) /* custom sound chip */
|
||||
AM_RANGE(0x2000, 0x23ff) AM_RAM AM_BASE(&colorram)
|
||||
|
@ -263,7 +263,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xd800, 0xdfff) AM_WRITE(firetrap_bg2videoram_w) AM_BASE(&firetrap_bg2videoram)
|
||||
AM_RANGE(0xe000, 0xe7ff) AM_WRITE(firetrap_fgvideoram_w) AM_BASE(&firetrap_fgvideoram)
|
||||
AM_RANGE(0xe800, 0xe97f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) /* IRQ acknowledge */
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITENOP /* IRQ acknowledge */
|
||||
AM_RANGE(0xf001, 0xf001) AM_WRITE(firetrap_sound_command_w)
|
||||
AM_RANGE(0xf002, 0xf002) AM_WRITE(firetrap_bankselect_w)
|
||||
AM_RANGE(0xf003, 0xf003) AM_WRITE(flip_screen_w)
|
||||
@ -295,12 +295,12 @@ static ADDRESS_MAP_START( writemem_bootleg, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xd800, 0xdfff) AM_WRITE(firetrap_bg2videoram_w) AM_BASE(&firetrap_bg2videoram)
|
||||
AM_RANGE(0xe000, 0xe7ff) AM_WRITE(firetrap_fgvideoram_w) AM_BASE(&firetrap_fgvideoram)
|
||||
AM_RANGE(0xe800, 0xe97f) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) /* IRQ acknowledge */
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITENOP /* IRQ acknowledge */
|
||||
AM_RANGE(0xf001, 0xf001) AM_WRITE(firetrap_sound_command_w)
|
||||
AM_RANGE(0xf002, 0xf002) AM_WRITE(firetrap_bankselect_w)
|
||||
AM_RANGE(0xf003, 0xf003) AM_WRITE(flip_screen_w)
|
||||
AM_RANGE(0xf004, 0xf004) AM_WRITE(firetrap_nmi_disable_w)
|
||||
AM_RANGE(0xf005, 0xf005) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xf005, 0xf005) AM_WRITENOP
|
||||
AM_RANGE(0xf008, 0xf009) AM_WRITE(firetrap_bg1_scrollx_w)
|
||||
AM_RANGE(0xf00a, 0xf00b) AM_WRITE(firetrap_bg1_scrolly_w)
|
||||
AM_RANGE(0xf00c, 0xf00d) AM_WRITE(firetrap_bg2_scrollx_w)
|
||||
|
@ -210,7 +210,7 @@ static ADDRESS_MAP_START( freekckb_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xf000, 0xf003) AM_DEVREAD("ppi8255_1", ppi8255_r)
|
||||
AM_RANGE(0xf800, 0xf800) AM_READ_PORT("IN0")
|
||||
AM_RANGE(0xf801, 0xf801) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0xf802, 0xf802) AM_READ(SMH_NOP) //MUST return bit 0 = 0, otherwise game resets
|
||||
AM_RANGE(0xf802, 0xf802) AM_READNOP //MUST return bit 0 = 0, otherwise game resets
|
||||
AM_RANGE(0xf803, 0xf803) AM_READ(spinner_r)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -247,11 +247,11 @@ static ADDRESS_MAP_START( gigas_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xd000, 0xd7ff) AM_WRITE(freek_videoram_w) AM_BASE(&freek_videoram)
|
||||
AM_RANGE(0xd800, 0xd8ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||
AM_RANGE(0xd900, 0xdfff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0xe000, 0xe001) AM_WRITE(SMH_NOP)// probably not flipscreen
|
||||
AM_RANGE(0xe000, 0xe001) AM_WRITENOP// probably not flipscreen
|
||||
AM_RANGE(0xe002, 0xe003) AM_WRITE(coin_w)
|
||||
AM_RANGE(0xe004, 0xe004) AM_WRITE(nmi_enable_w)
|
||||
AM_RANGE(0xe005, 0xe005) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(SMH_NOP) //bankswitch ?
|
||||
AM_RANGE(0xe005, 0xe005) AM_WRITENOP
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITENOP //bankswitch ?
|
||||
AM_RANGE(0xfc00, 0xfc00) AM_DEVWRITE("sn1", sn76496_w)
|
||||
AM_RANGE(0xfc01, 0xfc01) AM_DEVWRITE("sn2", sn76496_w)
|
||||
AM_RANGE(0xfc02, 0xfc02) AM_DEVWRITE("sn3", sn76496_w)
|
||||
@ -261,13 +261,13 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( gigas_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_READWRITE(spinner_r, spinner_select_w)
|
||||
AM_RANGE(0x01, 0x01) AM_READ(SMH_NOP) //unused dip 3
|
||||
AM_RANGE(0x01, 0x01) AM_READNOP //unused dip 3
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( oigas_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_READWRITE(spinner_r, spinner_select_w)
|
||||
AM_RANGE(0x01, 0x01) AM_READ(SMH_NOP) //unused dip 3
|
||||
AM_RANGE(0x01, 0x01) AM_READNOP //unused dip 3
|
||||
AM_RANGE(0x02, 0x02) AM_READ(oigas_2_r)
|
||||
AM_RANGE(0x03, 0x03) AM_READ(oigas_3_r)
|
||||
AM_RANGE(0x05, 0x05) AM_WRITE(oigas_5_w)
|
||||
|
@ -262,7 +262,7 @@ static WRITE8_HANDLER( fromanc2_subcpu_rombank_w )
|
||||
static ADDRESS_MAP_START( fromanc2_readmem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x000000, 0x07ffff) AM_READ(SMH_ROM) // MAIN ROM
|
||||
|
||||
AM_RANGE(0x802000, 0x802fff) AM_READ(SMH_NOP) // ???
|
||||
AM_RANGE(0x802000, 0x802fff) AM_READNOP // ???
|
||||
|
||||
AM_RANGE(0xa00000, 0xa00fff) AM_READ(fromanc2_paletteram_0_r)// PALETTE (1P)
|
||||
AM_RANGE(0xa80000, 0xa80fff) AM_READ(fromanc2_paletteram_1_r)// PALETTE (2P)
|
||||
@ -290,8 +290,8 @@ static ADDRESS_MAP_START( fromanc2_writemem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xd00200, 0xd00223) AM_WRITE(fromanc2_gfxreg_1_w) // SCROLL REG (1P/2P)
|
||||
AM_RANGE(0xd00300, 0xd00323) AM_WRITE(fromanc2_gfxreg_3_w) // SCROLL REG (1P/2P)
|
||||
|
||||
AM_RANGE(0xd00400, 0xd00413) AM_WRITE(SMH_NOP) // ???
|
||||
AM_RANGE(0xd00500, 0xd00513) AM_WRITE(SMH_NOP) // ???
|
||||
AM_RANGE(0xd00400, 0xd00413) AM_WRITENOP // ???
|
||||
AM_RANGE(0xd00500, 0xd00513) AM_WRITENOP // ???
|
||||
|
||||
AM_RANGE(0xd01000, 0xd01001) AM_WRITE(fromanc2_sndcmd_w) // SOUND REQ (1P/2P)
|
||||
AM_RANGE(0xd01200, 0xd01201) AM_WRITE(fromanc2_subcpu_w) // SUB CPU WRITE
|
||||
@ -322,7 +322,7 @@ static ADDRESS_MAP_START( fromancr_writemem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x800000, 0x803fff) AM_WRITE(fromancr_videoram_0_w) // VRAM BG (1P/2P)
|
||||
AM_RANGE(0x880000, 0x883fff) AM_WRITE(fromancr_videoram_1_w) // VRAM FG (1P/2P)
|
||||
AM_RANGE(0x900000, 0x903fff) AM_WRITE(fromancr_videoram_2_w) // VRAM TEXT (1P/2P)
|
||||
AM_RANGE(0x980000, 0x983fff) AM_WRITE(SMH_NOP) // VRAM Unused ?
|
||||
AM_RANGE(0x980000, 0x983fff) AM_WRITENOP // VRAM Unused ?
|
||||
|
||||
AM_RANGE(0xa00000, 0xa00fff) AM_WRITE(fromancr_paletteram_0_w)// PALETTE (1P)
|
||||
AM_RANGE(0xa80000, 0xa80fff) AM_WRITE(fromancr_paletteram_1_w)// PALETTE (2P)
|
||||
@ -330,14 +330,14 @@ static ADDRESS_MAP_START( fromancr_writemem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xd00000, 0xd00023) AM_WRITE(fromancr_gfxreg_1_w) // SCROLL REG (1P/2P)
|
||||
AM_RANGE(0xd00100, 0xd00123) AM_WRITE(fromancr_gfxreg_0_w) // SCROLL REG (1P/2P)
|
||||
|
||||
AM_RANGE(0xd00200, 0xd002ff) AM_WRITE(SMH_NOP) // ?
|
||||
AM_RANGE(0xd00200, 0xd002ff) AM_WRITENOP // ?
|
||||
|
||||
AM_RANGE(0xd00400, 0xd00413) AM_WRITE(SMH_NOP) // ???
|
||||
AM_RANGE(0xd00500, 0xd00513) AM_WRITE(SMH_NOP) // ???
|
||||
AM_RANGE(0xd00400, 0xd00413) AM_WRITENOP // ???
|
||||
AM_RANGE(0xd00500, 0xd00513) AM_WRITENOP // ???
|
||||
|
||||
AM_RANGE(0xd01000, 0xd01001) AM_WRITE(fromanc2_sndcmd_w) // SOUND REQ (1P/2P)
|
||||
AM_RANGE(0xd01200, 0xd01201) AM_WRITE(fromanc2_subcpu_w) // SUB CPU WRITE
|
||||
AM_RANGE(0xd01400, 0xd01401) AM_WRITE(SMH_NOP) // COIN COUNTER ?
|
||||
AM_RANGE(0xd01400, 0xd01401) AM_WRITENOP // COIN COUNTER ?
|
||||
AM_RANGE(0xd01600, 0xd01601) AM_WRITE(fromancr_eeprom_w) // EEPROM DATA, GFXBANK (1P/2P)
|
||||
AM_RANGE(0xd01a00, 0xd01a01) AM_WRITE(fromanc2_portselect_w) // PORT SELECT (1P/2P)
|
||||
|
||||
@ -356,7 +356,7 @@ static ADDRESS_MAP_START( fromanc4_readmem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xd10000, 0xd10001) AM_READ(fromanc2_keymatrix_r) // INPUT KEY MATRIX
|
||||
AM_RANGE(0xd20000, 0xd20001) AM_READ_PORT("SYSTEM")
|
||||
|
||||
AM_RANGE(0xe5000c, 0xe5000d) AM_READ(SMH_NOP) // EXT-COMM PORT ?
|
||||
AM_RANGE(0xe5000c, 0xe5000d) AM_READNOP // EXT-COMM PORT ?
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( fromanc4_writemem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
@ -367,8 +367,8 @@ static ADDRESS_MAP_START( fromanc4_writemem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
|
||||
AM_RANGE(0xd00000, 0xd00001) AM_WRITE(fromanc2_portselect_w) // PORT SELECT (1P/2P)
|
||||
|
||||
AM_RANGE(0xd10000, 0xd10001) AM_WRITE(SMH_NOP) // ?
|
||||
AM_RANGE(0xd30000, 0xd30001) AM_WRITE(SMH_NOP) // ?
|
||||
AM_RANGE(0xd10000, 0xd10001) AM_WRITENOP // ?
|
||||
AM_RANGE(0xd30000, 0xd30001) AM_WRITENOP // ?
|
||||
AM_RANGE(0xd50000, 0xd50001) AM_WRITE(fromanc4_eeprom_w) // EEPROM DATA
|
||||
|
||||
AM_RANGE(0xd70000, 0xd70001) AM_WRITE(fromanc2_sndcmd_w) // SOUND REQ (1P/2P)
|
||||
@ -384,10 +384,10 @@ static ADDRESS_MAP_START( fromanc4_writemem_main, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0xe10000, 0xe1001d) AM_WRITE(fromanc4_gfxreg_1_w) // SCROLL, GFXBANK (1P/2P)
|
||||
AM_RANGE(0xe20000, 0xe2001d) AM_WRITE(fromanc4_gfxreg_2_w) // SCROLL, GFXBANK (1P/2P)
|
||||
|
||||
AM_RANGE(0xe30000, 0xe30013) AM_WRITE(SMH_NOP) // ???
|
||||
AM_RANGE(0xe40000, 0xe40013) AM_WRITE(SMH_NOP) // ???
|
||||
AM_RANGE(0xe30000, 0xe30013) AM_WRITENOP // ???
|
||||
AM_RANGE(0xe40000, 0xe40013) AM_WRITENOP // ???
|
||||
|
||||
AM_RANGE(0xe50000, 0xe50009) AM_WRITE(SMH_NOP) // EXT-COMM PORT ?
|
||||
AM_RANGE(0xe50000, 0xe50009) AM_WRITENOP // EXT-COMM PORT ?
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
|
@ -251,7 +251,7 @@ static ADDRESS_MAP_START( nekkyoku_writemem_main, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0xbfff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0xc000, 0xdfff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0xf000, 0xf000) AM_WRITE(fromance_portselect_w)
|
||||
AM_RANGE(0xf001, 0xf001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0xf001, 0xf001) AM_WRITENOP
|
||||
AM_RANGE(0xf002, 0xf002) AM_WRITE(fromance_coinctr_w)
|
||||
AM_RANGE(0xf003, 0xf003) AM_WRITE(fromance_commanddata_w)
|
||||
ADDRESS_MAP_END
|
||||
@ -260,7 +260,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( fromance_readmem_main, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0xc000, 0xdfff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x9e89, 0x9e89) AM_READ(SMH_NOP) // unknown (idolmj)
|
||||
AM_RANGE(0x9e89, 0x9e89) AM_READNOP // unknown (idolmj)
|
||||
AM_RANGE(0xe000, 0xe000) AM_READ_PORT("SERVICE")
|
||||
AM_RANGE(0xe001, 0xe001) AM_READ(fromance_keymatrix_r)
|
||||
AM_RANGE(0xe002, 0xe002) AM_READ_PORT("COIN")
|
||||
@ -330,7 +330,7 @@ static ADDRESS_MAP_START( nekkyoku_sub_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x10, 0x10) AM_WRITE(fromance_crtc_data_w)
|
||||
AM_RANGE(0x11, 0x11) AM_WRITE(fromance_crtc_register_w)
|
||||
AM_RANGE(0x12, 0x12) AM_READ(SMH_NOP) // unknown
|
||||
AM_RANGE(0x12, 0x12) AM_READNOP // unknown
|
||||
AM_RANGE(0xe0, 0xe0) AM_WRITE(fromance_rombank_w)
|
||||
AM_RANGE(0xe1, 0xe1) AM_READWRITE(fromance_busycheck_sub_r, fromance_gfxreg_w)
|
||||
AM_RANGE(0xe2, 0xe5) AM_WRITE(fromance_scroll_w)
|
||||
@ -344,7 +344,7 @@ static ADDRESS_MAP_START( idolmj_sub_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x10, 0x10) AM_WRITE(fromance_crtc_data_w)
|
||||
AM_RANGE(0x11, 0x11) AM_WRITE(fromance_crtc_register_w)
|
||||
AM_RANGE(0x12, 0x12) AM_READ(SMH_NOP) // unknown
|
||||
AM_RANGE(0x12, 0x12) AM_READNOP // unknown
|
||||
AM_RANGE(0x20, 0x20) AM_WRITE(fromance_rombank_w)
|
||||
AM_RANGE(0x21, 0x21) AM_READWRITE(fromance_busycheck_sub_r, fromance_gfxreg_w)
|
||||
AM_RANGE(0x22, 0x25) AM_WRITE(fromance_scroll_w)
|
||||
@ -358,7 +358,7 @@ static ADDRESS_MAP_START( fromance_sub_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x10, 0x10) AM_WRITE(fromance_crtc_data_w)
|
||||
AM_RANGE(0x11, 0x11) AM_WRITE(fromance_crtc_register_w)
|
||||
AM_RANGE(0x12, 0x12) AM_READ(SMH_NOP) // unknown
|
||||
AM_RANGE(0x12, 0x12) AM_READNOP // unknown
|
||||
AM_RANGE(0x20, 0x20) AM_WRITE(fromance_rombank_w)
|
||||
AM_RANGE(0x21, 0x21) AM_READWRITE(fromance_busycheck_sub_r, fromance_gfxreg_w)
|
||||
AM_RANGE(0x22, 0x25) AM_WRITE(fromance_scroll_w)
|
||||
|
@ -102,7 +102,7 @@ static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x4fff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x8000, 0x87ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0xa000, 0xdfff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0xf000, 0xf000) AM_READ(SMH_NOP) /* IRQ Ack */
|
||||
AM_RANGE(0xf000, 0xf000) AM_READNOP /* IRQ Ack */
|
||||
AM_RANGE(0xf800, 0xf800) AM_READ(funkybee_input_port_0_r)
|
||||
AM_RANGE(0xf801, 0xf801) AM_READ_PORT("IN1")
|
||||
AM_RANGE(0xf802, 0xf802) AM_READ_PORT("IN2")
|
||||
|
@ -120,8 +120,8 @@ static ADDRESS_MAP_START( funkyjet_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x140000, 0x143fff) AM_WRITE(SMH_RAM)
|
||||
AM_RANGE(0x160000, 0x1607ff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram16)
|
||||
AM_RANGE(0x180000, 0x1807ff) AM_WRITE(deco16_146_funkyjet_prot_w) AM_BASE(&deco16_prot_ram)
|
||||
AM_RANGE(0x184000, 0x184001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x188000, 0x188001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x184000, 0x184001) AM_WRITENOP
|
||||
AM_RANGE(0x188000, 0x188001) AM_WRITENOP
|
||||
AM_RANGE(0x300000, 0x30000f) AM_WRITE(SMH_RAM) AM_BASE(&deco16_pf12_control)
|
||||
AM_RANGE(0x320000, 0x321fff) AM_WRITE(deco16_pf1_data_w) AM_BASE(&deco16_pf1_data)
|
||||
AM_RANGE(0x322000, 0x323fff) AM_WRITE(deco16_pf2_data_w) AM_BASE(&deco16_pf2_data)
|
||||
@ -134,20 +134,20 @@ ADDRESS_MAP_END
|
||||
/* Physical memory map (21 bits) */
|
||||
static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_READ(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_READ(SMH_NOP)
|
||||
AM_RANGE(0x100000, 0x100001) AM_READNOP
|
||||
AM_RANGE(0x110000, 0x110001) AM_DEVREAD("ym", ym2151_r)
|
||||
AM_RANGE(0x120000, 0x120001) AM_DEVREAD("oki", okim6295_r)
|
||||
AM_RANGE(0x130000, 0x130001) AM_READ(SMH_NOP) /* This board only has 1 oki chip */
|
||||
AM_RANGE(0x130000, 0x130001) AM_READNOP /* This board only has 1 oki chip */
|
||||
AM_RANGE(0x140000, 0x140001) AM_READ(soundlatch_r)
|
||||
AM_RANGE(0x1f0000, 0x1f1fff) AM_READ(SMH_BANK8)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x000000, 0x00ffff) AM_WRITE(SMH_ROM)
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITE(SMH_NOP) /* YM2203 - this board doesn't have one */
|
||||
AM_RANGE(0x100000, 0x100001) AM_WRITENOP /* YM2203 - this board doesn't have one */
|
||||
AM_RANGE(0x110000, 0x110001) AM_DEVWRITE("ym", ym2151_w)
|
||||
AM_RANGE(0x120000, 0x120001) AM_DEVWRITE("oki", okim6295_w)
|
||||
AM_RANGE(0x130000, 0x130001) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x130000, 0x130001) AM_WRITENOP
|
||||
AM_RANGE(0x1f0000, 0x1f1fff) AM_WRITE(SMH_BANK8)
|
||||
AM_RANGE(0x1fec00, 0x1fec01) AM_WRITE(h6280_timer_w)
|
||||
AM_RANGE(0x1ff400, 0x1ff403) AM_WRITE(h6280_irq_status_w)
|
||||
|
@ -113,9 +113,9 @@ static ADDRESS_MAP_START( io_map, ADDRESS_SPACE_IO, 8 )
|
||||
AM_RANGE(0x01, 0x01) AM_READ_PORT("P1") AM_WRITE(funybubl_cpurombank_w) // rom bank?
|
||||
AM_RANGE(0x02, 0x02) AM_READ_PORT("P2")
|
||||
AM_RANGE(0x03, 0x03) AM_READ_PORT("DSW") AM_WRITE(funybubl_soundcommand_w)
|
||||
AM_RANGE(0x06, 0x06) AM_READ(SMH_NOP) /* Nothing is done with the data read */
|
||||
AM_RANGE(0x06, 0x06) AM_WRITE(SMH_NOP) /* Written directly after IO port 0 */
|
||||
AM_RANGE(0x07, 0x07) AM_WRITE(SMH_NOP) /* Reset something on startup - Sound CPU ?? */
|
||||
AM_RANGE(0x06, 0x06) AM_READNOP /* Nothing is done with the data read */
|
||||
AM_RANGE(0x06, 0x06) AM_WRITENOP /* Written directly after IO port 0 */
|
||||
AM_RANGE(0x07, 0x07) AM_WRITENOP /* Reset something on startup - Sound CPU ?? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* Sound CPU */
|
||||
|
@ -296,8 +296,8 @@ static ADDRESS_MAP_START( fuuki32_writemem, ADDRESS_SPACE_PROGRAM, 32 )
|
||||
AM_RANGE(0x600000, 0x601fff) AM_WRITE(SMH_RAM) AM_BASE(&spriteram32) AM_SIZE(&spriteram_size ) // Sprites
|
||||
AM_RANGE(0x700000, 0x703fff) AM_WRITE(paletteram32_xRRRRRGGGGGBBBBB_dword_w) AM_BASE(&paletteram32) // Palette
|
||||
|
||||
AM_RANGE(0x800000, 0x800003) AM_WRITE(SMH_NOP) // Clear buffered inputs
|
||||
AM_RANGE(0x810000, 0x810003) AM_WRITE(SMH_NOP) // Clear buffered inputs
|
||||
AM_RANGE(0x800000, 0x800003) AM_WRITENOP // Clear buffered inputs
|
||||
AM_RANGE(0x810000, 0x810003) AM_WRITENOP // Clear buffered inputs
|
||||
|
||||
AM_RANGE(0x8c0000, 0x8c001f) AM_WRITE(fuuki32_vregs_w) AM_BASE(&fuuki32_vregs) // Video Registers
|
||||
|
||||
@ -351,7 +351,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( fuuki32_sound_io_map, ADDRESS_SPACE_IO, 8 )
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x00) AM_WRITE(fuuki32_sound_bw_w)
|
||||
AM_RANGE(0x30, 0x30) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x30, 0x30) AM_WRITENOP
|
||||
AM_RANGE(0x40, 0x45) AM_DEVREADWRITE("ymf", ymf278b_r, ymf278b_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -174,7 +174,7 @@ ADDRESS_MAP_END
|
||||
static ADDRESS_MAP_START( bigkarnk_writemem_snd, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0x0000, 0x07ff) AM_WRITE(SMH_RAM) /* RAM */
|
||||
AM_RANGE(0x0800, 0x0800) AM_DEVWRITE("oki", okim6295_w) /* OKI6295 */
|
||||
// AM_RANGE(0x0900, 0x0900) AM_WRITE(SMH_NOP) /* enable sound output? */
|
||||
// AM_RANGE(0x0900, 0x0900) AM_WRITENOP /* enable sound output? */
|
||||
AM_RANGE(0x0a00, 0x0a01) AM_DEVWRITE("ym", ym3812_w) /* YM3812 */
|
||||
AM_RANGE(0x0c00, 0xffff) AM_WRITE(SMH_ROM) /* ROM */
|
||||
ADDRESS_MAP_END
|
||||
|
@ -74,7 +74,7 @@ static ADDRESS_MAP_START( maniacsq_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x200000, 0x20ffff) AM_WRITE(gaelco2_vram_w) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Video RAM */
|
||||
AM_RANGE(0x210000, 0x211fff) AM_WRITE(gaelco2_palette_w) AM_BASE(&paletteram16) /* Palette */
|
||||
AM_RANGE(0x218004, 0x218009) AM_WRITE(SMH_RAM) AM_BASE(&gaelco2_vregs) /* Video Registers */
|
||||
AM_RANGE(0x30004a, 0x30004b) AM_WRITE(SMH_NOP) /* Sound muting? */
|
||||
AM_RANGE(0x30004a, 0x30004b) AM_WRITENOP /* Sound muting? */
|
||||
AM_RANGE(0x500000, 0x500001) AM_WRITE(gaelco2_coin_w) /* Coin lockout + counters */
|
||||
AM_RANGE(0xfe0000, 0xfeffff) AM_WRITE(SMH_RAM) /* Work RAM */
|
||||
ADDRESS_MAP_END
|
||||
@ -230,7 +230,7 @@ static ADDRESS_MAP_START( bang_readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x210000, 0x211fff) AM_READ(SMH_RAM) /* Palette */
|
||||
AM_RANGE(0x218004, 0x218009) AM_READ(SMH_RAM) /* Video Registers */
|
||||
AM_RANGE(0x300000, 0x300001) AM_READ_PORT("P1")
|
||||
AM_RANGE(0x300002, 0x300003) AM_READ(SMH_NOP) /* Random number generator? */
|
||||
AM_RANGE(0x300002, 0x300003) AM_READNOP /* Random number generator? */
|
||||
AM_RANGE(0x300010, 0x300011) AM_READ_PORT("P2")
|
||||
AM_RANGE(0x300020, 0x300021) AM_READ_PORT("COIN")
|
||||
AM_RANGE(0x310000, 0x310001) AM_READ(p1_gun_x)/* Gun 1P X */
|
||||
@ -246,7 +246,7 @@ static ADDRESS_MAP_START( bang_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x200000, 0x20ffff) AM_WRITE(gaelco2_vram_w) AM_BASE(&spriteram16) AM_SIZE(&spriteram_size) /* Video RAM */
|
||||
AM_RANGE(0x210000, 0x211fff) AM_WRITE(gaelco2_palette_w) AM_BASE(&paletteram16) /* Palette */
|
||||
AM_RANGE(0x218004, 0x218007) AM_WRITE(SMH_RAM) AM_BASE(&gaelco2_vregs) /* Video Registers */
|
||||
AM_RANGE(0x218008, 0x218009) AM_WRITE(SMH_NOP) /* CLR INT Video */
|
||||
AM_RANGE(0x218008, 0x218009) AM_WRITENOP /* CLR INT Video */
|
||||
AM_RANGE(0x300000, 0x300003) AM_WRITE(gaelco2_coin2_w) /* Coin Counters */
|
||||
AM_RANGE(0x300008, 0x300009) AM_WRITE(gaelco2_eeprom_data_w) /* EEPROM data */
|
||||
AM_RANGE(0x30000a, 0x30000b) AM_WRITE(gaelco2_eeprom_sk_w) /* EEPROM serial clock */
|
||||
@ -408,7 +408,7 @@ static ADDRESS_MAP_START( alighunt_writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x210000, 0x211fff) AM_WRITE(gaelco2_palette_w) AM_BASE(&paletteram16) /* Palette */
|
||||
AM_RANGE(0x218004, 0x218009) AM_WRITE(SMH_RAM) AM_BASE(&gaelco2_vregs) /* Video Registers */
|
||||
AM_RANGE(0x500000, 0x500001) AM_WRITE(gaelco2_coin_w) /* Coin lockout + counters */
|
||||
AM_RANGE(0x500006, 0x500007) AM_WRITE(SMH_NOP) /* ??? */
|
||||
AM_RANGE(0x500006, 0x500007) AM_WRITENOP /* ??? */
|
||||
AM_RANGE(0xfe0000, 0xfeffff) AM_WRITE(SMH_RAM) /* Work RAM */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
@ -384,7 +384,7 @@ static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x074000, 0x075fff) AM_READ(gaiden_videoram3_r)
|
||||
AM_RANGE(0x076000, 0x077fff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x078000, 0x0787ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0x078800, 0x079fff) AM_READ(SMH_NOP) /* extra portion of palette RAM, not really used */
|
||||
AM_RANGE(0x078800, 0x079fff) AM_READNOP /* extra portion of palette RAM, not really used */
|
||||
AM_RANGE(0x07a000, 0x07a001) AM_READ_PORT("SYSTEM")
|
||||
AM_RANGE(0x07a002, 0x07a003) AM_READ_PORT("P1_P2")
|
||||
AM_RANGE(0x07a004, 0x07a005) AM_READ_PORT("DSW")
|
||||
@ -406,7 +406,7 @@ static ADDRESS_MAP_START( writemem, ADDRESS_SPACE_PROGRAM, 16 )
|
||||
AM_RANGE(0x07a30c, 0x07a30d) AM_WRITE(gaiden_bgscrollx_w)
|
||||
AM_RANGE(0x07a800, 0x07a801) AM_WRITE(watchdog_reset16_w)
|
||||
AM_RANGE(0x07a802, 0x07a803) AM_WRITE(gaiden_sound_command_w)
|
||||
AM_RANGE(0x07a806, 0x07a807) AM_WRITE(SMH_NOP)
|
||||
AM_RANGE(0x07a806, 0x07a807) AM_WRITENOP
|
||||
AM_RANGE(0x07a808, 0x07a809) AM_WRITE(gaiden_flip_w)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -434,7 +434,7 @@ static ADDRESS_MAP_START( sound_readmem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xe000, 0xefff) AM_READ(SMH_ROM) /* raiga only */
|
||||
AM_RANGE(0xf000, 0xf7ff) AM_READ(SMH_RAM)
|
||||
AM_RANGE(0xf800, 0xf800) AM_DEVREAD("oki", okim6295_r)
|
||||
AM_RANGE(0xfc00, 0xfc00) AM_READ(SMH_NOP) /* ?? */
|
||||
AM_RANGE(0xfc00, 0xfc00) AM_READNOP /* ?? */
|
||||
AM_RANGE(0xfc20, 0xfc20) AM_READ(soundlatch_r)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -445,7 +445,7 @@ static ADDRESS_MAP_START( sound_writemem, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
AM_RANGE(0xf800, 0xf800) AM_DEVWRITE("oki", okim6295_w)
|
||||
AM_RANGE(0xf810, 0xf811) AM_DEVWRITE("ym1", ym2203_w)
|
||||
AM_RANGE(0xf820, 0xf821) AM_DEVWRITE("ym2", ym2203_w)
|
||||
AM_RANGE(0xfc00, 0xfc00) AM_WRITE(SMH_NOP) /* ?? */
|
||||
AM_RANGE(0xfc00, 0xfc00) AM_WRITENOP /* ?? */
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static ADDRESS_MAP_START( drgnbowl_sound_map, ADDRESS_SPACE_PROGRAM, 8 )
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user