Previous 199869 Revisions Next

r36197 Monday 2nd March, 2015 at 19:32:58 UTC by Angelo Salese
z180, requires make depend
[/branches/kale/src/mame/drivers]asuka.c
[/branches/kale/src/mame/includes]asuka.h

branches/kale/src/mame/drivers/asuka.c
r244708r244709
311311   m_cadash_shared_ram[offset] = data & 0xff;
312312}
313313
314READ16_MEMBER(cadash_state::cadash_share_r_2)
315{
316   return m_cadash_shared_ram_2[offset];
317}
314318
319WRITE16_MEMBER(cadash_state::cadash_share_w_2)
320{
321   m_cadash_shared_ram_2[offset] = data & 0xff;
322}
323
324
315325/***********************************************************
316326             MEMORY STRUCTURES
317327***********************************************************/
r244708r244709
18931903   AM_RANGE(0x0c0000, 0x0c0001) AM_READNOP AM_DEVWRITE8("tc0140syt_2", tc0140syt_device, master_port_w, 0x00ff)
18941904   AM_RANGE(0x0c0002, 0x0c0003) AM_DEVREADWRITE8("tc0140syt_2", tc0140syt_device, master_comm_r, master_comm_w, 0x00ff)
18951905   AM_RANGE(0x100000, 0x107fff) AM_RAM
1896//   AM_RANGE(0x800000, 0x800fff) AM_READWRITE(cadash_share_r,cadash_share_w)    /* network ram */
1906   AM_RANGE(0x800000, 0x800fff) AM_READWRITE(cadash_share_r_2,cadash_share_w_2)    /* network ram */
18971907   AM_RANGE(0x900000, 0x90000f) AM_DEVREADWRITE8("tc0220ioc_2", tc0220ioc_device, read, write, 0x00ff)
18981908   AM_RANGE(0xa00000, 0xa0000f) AM_DEVREADWRITE("tc0110pcr_2", tc0110pcr_device, word_r, step1_4bpg_word_w)
18991909   AM_RANGE(0xb00000, 0xb03fff) AM_DEVREADWRITE("pc090oj_2", pc090oj_device, word_r, word_w)  /* sprite ram */
r244708r244709
19091919   AM_RANGE(0xa000, 0xa000) AM_DEVWRITE("tc0140syt_2", tc0140syt_device, slave_port_w)
19101920   AM_RANGE(0xa001, 0xa001) AM_DEVREADWRITE("tc0140syt_2", tc0140syt_device, slave_comm_r, slave_comm_w)
19111921ADDRESS_MAP_END
1922
1923static ADDRESS_MAP_START( cadash_sub_map_2, AS_PROGRAM, 8, cadash_state )
1924   AM_RANGE(0x0000, 0x7fff) AM_ROM AM_REGION("subcpu",0)
1925   AM_RANGE(0x8000, 0x87ff) AM_RAM AM_SHARE("sharedram_2")
1926ADDRESS_MAP_END
1927
1928static ADDRESS_MAP_START( cadash_sub_io_2, AS_IO, 8, cadash_state )
1929   AM_RANGE(0x00, 0x3f) AM_RAM // z180 internal I/O regs
1930ADDRESS_MAP_END
19121931 
19131932
19141933static MACHINE_CONFIG_START( cadashjl, cadash_state )
r244708r244709
19321951   MCFG_CPU_ADD("audiocpu_2", Z80, XTAL_8MHz/2)  /* verified on pcb */
19331952   MCFG_CPU_PROGRAM_MAP(cadash_z80_map_2)
19341953
1954   MCFG_CPU_ADD("subcpu_2", Z180, 4000000)   /* 4 MHz ??? */
1955   MCFG_CPU_PROGRAM_MAP(cadash_sub_map_2)
1956   MCFG_CPU_IO_MAP(cadash_sub_io_2)
19351957
1958
19361959   MCFG_QUANTUM_TIME(attotime::from_hz(600))
19371960
19381961   // done
branches/kale/src/mame/includes/asuka.h
r244708r244709
9494public:
9595   cadash_state(const machine_config &mconfig, device_type type, const char *tag)
9696      : asuka_state(mconfig, type, tag),
97      m_cadash_shared_ram_2(*this, "sharedram_2"),
9798      m_pc090oj_2(*this, "pc090oj_2"),
9899      m_tc0100scn_2(*this, "tc0100scn_2"),
99100      m_tc0110pcr_2(*this, "tc0110pcr_2"),
r244708r244709
102103   //required_device<cpu_device> m_maincpu;
103104   //required_device<cpu_device> m_audiocpu;
104105   //optional_device<msm5205_device> m_msm;
106   optional_shared_ptr<UINT8> m_cadash_shared_ram_2;
105107   required_device<pc090oj_device> m_pc090oj_2;
106108   required_device<tc0100scn_device> m_tc0100scn_2;
107109   required_device<tc0110pcr_device> m_tc0110pcr_2;
r244708r244709
115117
116118   UINT32 screen_update_cadash(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
117119   void screen_eof_cadash(screen_device &screen, bool state);
120   DECLARE_READ16_MEMBER(cadash_share_r_2);
121   DECLARE_WRITE16_MEMBER(cadash_share_w_2);
118122
119123};
120124


Previous 199869 Revisions Next


© 1997-2024 The MAME Team