Previous 15994 Revisions Next

r15033 Wednesday 25th April, 2012 at 16:26:24 UTC by Curt Coder
[C64] IDE64 WIP, fixed boot screen text. (nw)
[src/emu/machine]idectrl.c
[src/mess/drivers]c64.c
[src/mess/includes]c64.h
[src/mess/machine]c128_comal80.c c128_comal80.h c64_comal80.c c64_comal80.h c64_cpm.c c64_cpm.h c64_currah_speech.c c64_currah_speech.h c64_dela_ep256.c c64_dela_ep256.h c64_dela_ep64.c c64_dela_ep64.h c64_dela_ep7x8.c c64_dela_ep7x8.h c64_dinamic.c c64_dinamic.h c64_dqbb.c c64_dqbb.h c64_easy_calc_result.c c64_easy_calc_result.h c64_easyflash.c c64_easyflash.h c64_epyx_fast_load.c c64_epyx_fast_load.h c64_exos.c c64_exos.h c64_final.c c64_final.h c64_final3.c c64_final3.h c64_fun_play.c c64_fun_play.h c64_georam.c c64_georam.h c64_ide64.c c64_ide64.h c64_ieee488.c c64_ieee488.h c64_kingsoft.c c64_kingsoft.h c64_mach5.c c64_mach5.h c64_magic_desk.c c64_magic_desk.h c64_magic_formel.c c64_magic_formel.h c64_mikro_assembler.c c64_mikro_assembler.h c64_multiscreen.c c64_multiscreen.h c64_neoram.c c64_neoram.h c64_ocean.c c64_ocean.h c64_pagefox.c c64_pagefox.h c64_prophet64.c c64_prophet64.h c64_ps64.c c64_ps64.h c64_rex.c c64_rex.h c64_rex_ep256.c c64_rex_ep256.h c64_ross.c c64_ross.h c64_sfx_sound_expander.c c64_sfx_sound_expander.h c64_silverrock.c c64_silverrock.h c64_simons_basic.c c64_simons_basic.h c64_stardos.c c64_stardos.h c64_std.c c64_std.h c64_structured_basic.c c64_structured_basic.h c64_super_explode.c c64_super_explode.h c64_super_games.c c64_super_games.h c64_sw8k.c c64_sw8k.h c64_system3.c c64_system3.h c64_tdos.c c64_tdos.h c64_vw64.c c64_vw64.h c64_warp_speed.c c64_warp_speed.h c64_westermann.c c64_westermann.h c64_xl80.c c64_xl80.h c64_zaxxon.c c64_zaxxon.h c64exp.c c64exp.h

src/emu/machine/idectrl.c
r15032r15033
12891289   if (ide->drive[ide->cur_drive].slot->is_ready()) {
12901290      ide->status |= IDE_STATUS_DRIVE_READY;
12911291   } else {
1292      ide->status &= ~IDE_STATUS_DRIVE_READY;
1292      ide->status |= IDE_STATUS_DRIVE_READY;
1293      ide->status |= IDE_STATUS_ERROR;
1294      ide->error = IDE_ERROR_DEFAULT;
12931295   }
12941296
12951297   switch (BANK(bank, offset))
src/mess/machine/c64_super_explode.h
r15032r15033
3939   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
4040 
4141   // device_c64_expansion_card_interface overrides
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4444 
4545private:
4646   UINT8 m_bank;
src/mess/machine/c64_cpm.c
r15032r15033
162162//  c64_cd_w - cartridge data write
163163//-------------------------------------------------
164164 
165void c64_cpm_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
165void c64_cpm_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
166166{
167167   if (!io1)
168168   {
src/mess/machine/c64_cpm.h
r15032r15033
4747   virtual void device_config_complete() { m_shortname = "c64_cpm"; }
4848 
4949   // device_c64_expansion_card_interface overrides
50   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
50   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5151   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
5252 
5353private:
src/mess/machine/c64_tdos.c
r15032r15033
215215//  c64_cd_r - cartridge data read
216216//-------------------------------------------------
217217 
218UINT8 c64_tdos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
218UINT8 c64_tdos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
219219{
220   UINT8 data = m_exp->cd_r(space, offset, roml, romh, io1, io2);
220   UINT8 data = m_exp->cd_r(space, offset, ba, roml, romh, io1, io2);
221221 
222222   // TODO
223223 
r15032r15033
229229//  c64_cd_w - cartridge data write
230230//-------------------------------------------------
231231 
232void c64_tdos_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
232void c64_tdos_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
233233{
234234   // TODO
235   m_exp->cd_w(space, offset, data, roml, romh, io1, io2);
235   m_exp->cd_w(space, offset, data, ba, roml, romh, io1, io2);
236236}
237237 
238238 
src/mess/machine/c64_tdos.h
r15032r15033
5252   virtual void device_reset();
5353 
5454   // device_c64_expansion_card_interface overrides
55   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
56   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
55   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
56   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5757   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
5858   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram);
5959 
src/mess/machine/c64_silverrock.c
r15032r15033
9292//  c64_cd_r - cartridge data read
9393//-------------------------------------------------
9494 
95UINT8 c64_silverrock_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
95UINT8 c64_silverrock_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
9696{
9797   UINT8 data = 0;
9898 
r15032r15033
111111//  c64_cd_w - cartridge data write
112112//-------------------------------------------------
113113 
114void c64_silverrock_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
114void c64_silverrock_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
115115{
116116   if (!io1)
117117   {
src/mess/machine/c64_silverrock.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_kingsoft.c
r15032r15033
5757//  c64_cd_r - cartridge data read
5858//-------------------------------------------------
5959 
60UINT8 c64_kingsoft_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
60UINT8 c64_kingsoft_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6161{
6262   UINT8 data = 0;
6363 
r15032r15033
8282//  c64_cd_w - cartridge data write
8383//-------------------------------------------------
8484 
85void c64_kingsoft_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
85void c64_kingsoft_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8686{
8787   if (!io1)
8888   {
src/mess/machine/c64_kingsoft.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
4444};
4545 
src/mess/machine/c64_sfx_sound_expander.c
r15032r15033
235235//  c64_cd_r - cartridge data read
236236//-------------------------------------------------
237237 
238UINT8 c64_sfx_sound_expander_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
238UINT8 c64_sfx_sound_expander_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
239239{
240   UINT8 data = m_exp->cd_r(space, offset, roml, romh, io1, io2);
240   UINT8 data = m_exp->cd_r(space, offset, ba, roml, romh, io1, io2);
241241 
242242   if (!io2)
243243   {
r15032r15033
269269//  c64_cd_w - cartridge data write
270270//-------------------------------------------------
271271 
272void c64_sfx_sound_expander_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
272void c64_sfx_sound_expander_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
273273{
274274   if (!io2 && BIT(offset, 5))
275275   {
276276      ym3526_w(m_opl, BIT(offset, 4), data);
277277   }
278278 
279   m_exp->cd_w(space, offset, data, roml, romh, io1, io2);
279   m_exp->cd_w(space, offset, data, ba, roml, romh, io1, io2);
280280}
281281 
282282 
src/mess/machine/c64_sfx_sound_expander.h
r15032r15033
5252   virtual void device_reset();
5353 
5454   // device_c64_expansion_card_interface overrides
55   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
56   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
55   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
56   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5757   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
5858   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram);
5959 
src/mess/machine/c64_ocean.c
r15032r15033
8181//  c64_cd_r - cartridge data read
8282//-------------------------------------------------
8383 
84UINT8 c64_ocean_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
84UINT8 c64_ocean_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
8585{
8686   UINT8 data = 0;
8787 
r15032r15033
108108//  c64_cd_w - cartridge data write
109109//-------------------------------------------------
110110 
111void c64_ocean_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
111void c64_ocean_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
112112{
113113   if (!io1)
114114   {
src/mess/machine/c64_warp_speed.c
r15032r15033
127127//  c64_cd_r - cartridge data read
128128//-------------------------------------------------
129129 
130UINT8 c64_warp_speed_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
130UINT8 c64_warp_speed_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
131131{
132132   UINT8 data = 0;
133133 
r15032r15033
145145//  c64_cd_w - cartridge data write
146146//-------------------------------------------------
147147 
148void c64_warp_speed_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
148void c64_warp_speed_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
149149{
150150   if (!io1)
151151   {
src/mess/machine/c64_ocean.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_warp_speed.h
r15032r15033
4343   virtual void device_reset();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848 
4949private:
5050   UINT8 m_bank;
src/mess/machine/c64_system3.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_system3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_system3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c64_system3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c64_system3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io1)
8383   {
src/mess/machine/c64_system3.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_fun_play.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_fun_play_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_fun_play_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c64_fun_play_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c64_fun_play_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io1)
8383   {
src/mess/machine/c64_exos.c
r15032r15033
4747//  c64_cd_r - cartridge data read
4848//-------------------------------------------------
4949 
50UINT8 c64_exos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
50UINT8 c64_exos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
5151{
5252   UINT8 data = 0;
5353 
src/mess/machine/c64_fun_play.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_exos.h
r15032r15033
3737   virtual void device_start();
3838 
3939   // device_c64_expansion_card_interface overrides
40   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
40   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4141   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
4242};
4343 
src/mess/machine/c64_pagefox.c
r15032r15033
8181//  c64_cd_r - cartridge data read
8282//-------------------------------------------------
8383 
84UINT8 c64_pagefox_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
84UINT8 c64_pagefox_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
8585{
8686   UINT8 data = 0;
8787 
r15032r15033
108108//  c64_cd_w - cartridge data write
109109//-------------------------------------------------
110110 
111void c64_pagefox_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
111void c64_pagefox_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
112112{
113113   if (offset >= 0x8000 && offset < 0xc000)
114114   {
src/mess/machine/c64_xl80.c
r15032r15033
209209//  c64_cd_r - cartridge data read
210210//-------------------------------------------------
211211
212UINT8 c64_xl80_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
212UINT8 c64_xl80_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
213213{
214214   UINT8 data = 0;
215215
r15032r15033
237237//  c64_cd_w - cartridge data write
238238//-------------------------------------------------
239239
240void c64_xl80_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
240void c64_xl80_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
241241{
242242   if (offset >= 0x9800 && offset < 0xa000)
243243   {
src/mess/machine/c64_pagefox.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_xl80.h
r15032r15033
4646   virtual void device_reset();
4747
4848   // device_c64_expansion_card_interface overrides
49   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
50   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
49   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
50   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5151   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram) { return 1; }
5252   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return 0; }
5353
src/mess/machine/c64_mach5.c
r15032r15033
5757//  c64_cd_r - cartridge data read
5858//-------------------------------------------------
5959 
60UINT8 c64_mach5_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
60UINT8 c64_mach5_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6161{
6262   UINT8 data = 0;
6363 
r15032r15033
7474//  c64_cd_w - cartridge data write
7575//-------------------------------------------------
7676 
77void c64_mach5_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
77void c64_mach5_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
7878{
7979   if (!io1)
8080   {
src/mess/machine/c64_mach5.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343};
4444 
4545 
src/mess/machine/c64_neoram.c
r15032r15033
6363//  c64_cd_r - cartridge data read
6464//-------------------------------------------------
6565 
66UINT8 c64_neoram_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
66UINT8 c64_neoram_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6767{
6868   UINT8 data = 0;
6969 
r15032r15033
8181//  c64_cd_w - cartridge data write
8282//-------------------------------------------------
8383 
84void c64_neoram_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
84void c64_neoram_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8585{
8686   if (!io1)
8787   {
src/mess/machine/c64_neoram.h
r15032r15033
4444   virtual void nvram_write(emu_file &file) { if (m_nvram != NULL) { file.write(m_nvram, m_nvram_size); } }
4545 
4646   // device_c64_expansion_card_interface overrides
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4949 
5050private:
5151   UINT16 m_bank;
src/mess/machine/c64_simons_basic.c
r15032r15033
5757//  c64_cd_r - cartridge data read
5858//-------------------------------------------------
5959 
60UINT8 c64_simons_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
60UINT8 c64_simons_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6161{
6262   UINT8 data = 0;
6363 
r15032r15033
7878//  c64_cd_w - cartridge data write
7979//-------------------------------------------------
8080 
81void c64_simons_basic_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
81void c64_simons_basic_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8282{
8383   if (!io1)
8484   {
src/mess/machine/c64_simons_basic.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343};
4444 
4545 
src/mess/machine/c64_final3.c
r15032r15033
105105//  c64_cd_r - cartridge data read
106106//-------------------------------------------------
107107 
108UINT8 c64_final3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
108UINT8 c64_final3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
109109{
110110   UINT8 data = 0;
111111 
r15032r15033
123123//  c64_cd_w - cartridge data write
124124//-------------------------------------------------
125125 
126void c64_final3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
126void c64_final3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
127127{
128128   if (!m_hidden && !io2 && ((offset & 0xff) == 0xff))
129129   {
src/mess/machine/c64_final3.h
r15032r15033
4444   virtual void device_reset();
4545 
4646   // device_c64_expansion_card_interface overrides
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4949 
5050private:
5151   UINT8 m_bank;
src/mess/machine/c64_westermann.c
r15032r15033
5757//  c64_cd_r - cartridge data read
5858//-------------------------------------------------
5959 
60UINT8 c64_westermann_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
60UINT8 c64_westermann_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6161{
6262   UINT8 data = 0;
6363 
src/mess/machine/c64_westermann.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4242};
4343 
4444 
src/mess/machine/c64_vw64.c
r15032r15033
111111//  c64_cd_r - cartridge data read
112112//-------------------------------------------------
113113 
114UINT8 c64_vizawrite_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
114UINT8 c64_vizawrite_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
115115{
116116   UINT8 data = 0;
117117 
src/mess/machine/c64_vw64.h
r15032r15033
3939   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
4040 
4141   // device_c64_expansion_card_interface overrides
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4343   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return 0; }
4444 
4545private:
src/mess/machine/c64_ieee488.c
r15032r15033
277277//  c64_cd_r - cartridge data read
278278//-------------------------------------------------
279279 
280UINT8 c64_ieee488_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
280UINT8 c64_ieee488_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
281281{
282   UINT8 data = m_exp->cd_r(space, offset, roml, romh, io1, io2);
282   UINT8 data = m_exp->cd_r(space, offset, ba, roml, romh, io1, io2);
283283 
284284   if (!roml)
285285   {
r15032r15033
301301//  c64_cd_w - cartridge data write
302302//-------------------------------------------------
303303 
304void c64_ieee488_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
304void c64_ieee488_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
305305{
306306   if (!io2)
307307   {
308308      tpi6525_w(m_tpi, offset & 0x07, data);
309309   }
310310 
311   m_exp->cd_w(space, offset, data, roml, romh, io1, io2);
311   m_exp->cd_w(space, offset, data, ba, roml, romh, io1, io2);
312312}
313313 
314314 
src/mess/machine/c64_ieee488.h
r15032r15033
5757   virtual void device_reset();
5858 
5959   // device_c64_expansion_card_interface overrides
60   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
61   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
60   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
61   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
6262   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
6363 
6464private:
src/mess/machine/c64_final.c
r15032r15033
9595//  c64_cd_r - cartridge data read
9696//-------------------------------------------------
9797 
98UINT8 c64_final_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
98UINT8 c64_final_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
9999{
100100   UINT8 data = 0;
101101 
r15032r15033
123123//  c64_cd_w - cartridge data write
124124//-------------------------------------------------
125125 
126void c64_final_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
126void c64_final_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
127127{
128128   if (!io1)
129129   {
src/mess/machine/c64_multiscreen.c
r15032r15033
208208//  c64_cd_r - cartridge data read
209209//-------------------------------------------------
210210 
211UINT8 c64_multiscreen_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
211UINT8 c64_multiscreen_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
212212{
213213   UINT8 data = 0;
214214 
r15032r15033
247247//  c64_cd_w - cartridge data write
248248//-------------------------------------------------
249249 
250void c64_multiscreen_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
250void c64_multiscreen_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
251251{
252252   if (offset >= 0x8000 && offset < 0xa000)
253253   {
src/mess/machine/c64_final.h
r15032r15033
4444   virtual void device_reset();
4545 
4646   // device_c64_expansion_card_interface overrides
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4949};
5050 
5151 
src/mess/machine/c64_multiscreen.h
r15032r15033
4444   virtual void device_reset();
4545 
4646   // device_c64_expansion_card_interface overrides
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
47   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
48   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4949 
5050private:
5151   UINT8 m_bank;
src/mess/machine/c64_ide64.c
r15032r15033
1111 
1212    TODO:
1313 
14   - DS1302
1415    - FT245
1516    - CompactFlash
1617 
r15032r15033
140141//  c64_cd_r - cartridge data read
141142//-------------------------------------------------
142143 
143UINT8 c64_ide64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
144UINT8 c64_ide64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
144145{
145146   if (!m_enable) return 0;
146147 
147148   UINT8 data = 0;
148149   int rom_oe = 1, ram_oe = 1;
149150 
150   if (!m_game && m_exrom)
151   if (!m_game && m_exrom && ba)
151152   {
152153      if (offset >= 0x1000 && offset < 0x8000)
153154      {
r15032r15033
161162      {
162163         ram_oe = 0;
163164      }
164      else if (!romh)
165      {
166         rom_oe = 0;
167      }
168165   }
169   else
166 
167   if (!roml || !romh)
170168   {
171      if (!roml || !romh)
172      {
173         rom_oe = 0;
174      }
169      rom_oe = 0;
175170   }
176171 
177172   if (!io1)
r15032r15033
245240//  c64_cd_w - cartridge data write
246241//-------------------------------------------------
247242 
248void c64_ide64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
243void c64_ide64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
249244{
250245   if (!m_enable) return;
251246 
252   if (!m_game && m_exrom)
247   if (!m_game && m_exrom && ba)
253248   {
254249      if (offset >= 0x1000 && offset < 0x8000)
255250      {
r15032r15033
260255         m_ram[offset & 0x7fff] = data;
261256      }
262257   }
263   else
264   {
265      if ((offset >= 0x8000 && offset < 0xc000) && !m_wp)
266      {
267         offs_t addr = (m_bank << 14) | (offset & 0x3fff);
268         m_flash_rom->write(addr, data);
269      }
270258 
259   if ((offset >= 0x8000 && offset < 0xc000) && !m_wp)
260   {
261      offs_t addr = (m_bank << 14) | (offset & 0x3fff);
262      m_flash_rom->write(addr, data);
271263   }
272264 
273265   if (!io1)
src/mess/machine/c64_ide64.h
r15032r15033
4646   virtual void device_reset();
4747 
4848   // device_c64_expansion_card_interface overrides
49   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
50   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
49   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
50   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5151 
5252private:
5353   required_device<atmel_29c010_device> m_flash_rom;
src/mess/machine/c64_stardos.c
r15032r15033
148148//  c64_cd_r - cartridge data read
149149//-------------------------------------------------
150150 
151UINT8 c64_stardos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
151UINT8 c64_stardos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
152152{
153153   UINT8 data = 0;
154154 
r15032r15033
174174//  c64_cd_w - cartridge data write
175175//-------------------------------------------------
176176 
177void c64_stardos_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
177void c64_stardos_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
178178{
179179   if (!io1)
180180   {
src/mess/machine/c64_stardos.h
r15032r15033
4343   virtual void device_start();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
4949 
5050private:
src/mess/machine/c64_ross.c
r15032r15033
6262//  c64_cd_r - cartridge data read
6363//-------------------------------------------------
6464 
65UINT8 c64_ross_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
65UINT8 c64_ross_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6666{
6767   UINT8 data = 0;
6868 
r15032r15033
8181//  c64_cd_w - cartridge data write
8282//-------------------------------------------------
8383 
84void c64_ross_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
84void c64_ross_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8585{
8686   if (!io1)
8787   {
src/mess/machine/c64_ross.h
r15032r15033
3939   virtual void device_reset();
4040 
4141   // device_c64_expansion_card_interface overrides
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4444 
4545private:
4646   UINT8 m_bank;
src/mess/machine/c64_comal80.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c64_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c64_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io1)
8383   {
src/mess/machine/c64_comal80.h
r15032r15033
3838   virtual void device_config_complete() { m_shortname = "c64_comal80"; }
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_prophet64.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_prophet64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_prophet64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c64_prophet64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c64_prophet64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io2)
8383   {
src/mess/machine/c64_prophet64.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_currah_speech.c
r15032r15033
200200//  c64_cd_r - cartridge data read
201201//-------------------------------------------------
202202 
203UINT8 c64_currah_speech_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
203UINT8 c64_currah_speech_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
204204{
205205   UINT8 data = 0;
206206 
r15032r15033
242242//  c64_cd_w - cartridge data write
243243//-------------------------------------------------
244244 
245void c64_currah_speech_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
245void c64_currah_speech_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
246246{
247247   if (!io1)
248248   {
src/mess/machine/c64_mikro_assembler.c
r15032r15033
4747//  c64_cd_r - cartridge data read
4848//-------------------------------------------------
4949 
50UINT8 c64_mikro_assembler_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
50UINT8 c64_mikro_assembler_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
5151{
5252   UINT8 data = 0;
5353 
src/mess/machine/c64_currah_speech.h
r15032r15033
4343   virtual void device_reset();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848 
4949private:
5050   inline void set_osc1(int voice, int intonation);
src/mess/machine/c64_mikro_assembler.h
r15032r15033
3737   virtual void device_start();
3838 
3939   // device_c64_expansion_card_interface overrides
40   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
40   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4141};
4242 
4343 
src/mess/machine/c64_sw8k.c
r15032r15033
102102//  c64_cd_r - cartridge data read
103103//-------------------------------------------------
104104 
105UINT8 c64_switchable_8k_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
105UINT8 c64_switchable_8k_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
106106{
107107   UINT8 data = 0;
108108 
src/mess/machine/c64_rex.c
r15032r15033
5757//  c64_cd_r - cartridge data read
5858//-------------------------------------------------
5959 
60UINT8 c64_rex_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
60UINT8 c64_rex_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6161{
6262   UINT8 data = 0;
6363 
src/mess/machine/c64_sw8k.h
r15032r15033
4141   virtual void device_reset();
4242 
4343   // device_c64_expansion_card_interface overrides
44   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
44   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4545 
4646private:
4747   int m_bank;
src/mess/machine/c64_rex.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4242};
4343 
4444 
src/mess/machine/c64_dinamic.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_dinamic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_dinamic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
src/mess/machine/c64_dinamic.h
r15032r15033
3838   virtual void device_config_complete() { m_shortname = "c64_dinamic"; }
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4242 
4343private:
4444   UINT8 m_bank;
src/mess/machine/c64_easyflash.c
r15032r15033
132132//  c64_cd_r - cartridge data read
133133//-------------------------------------------------
134134 
135UINT8 c64_easyflash_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
135UINT8 c64_easyflash_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
136136{
137137   UINT8 data = 0;
138138 
r15032r15033
159159//  c64_cd_w - cartridge data write
160160//-------------------------------------------------
161161 
162void c64_easyflash_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
162void c64_easyflash_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
163163{
164164   if (!roml)
165165   {
src/mess/machine/c64_easyflash.h
r15032r15033
4545   virtual void device_reset();
4646 
4747   // device_c64_expansion_card_interface overrides
48   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
49   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
48   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
49   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5050   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram);
5151   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
5252 
src/mess/machine/c64_zaxxon.c
r15032r15033
4949//  c64_cd_r - cartridge data read
5050//-------------------------------------------------
5151 
52UINT8 c64_zaxxon_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
52UINT8 c64_zaxxon_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
5353{
5454   UINT8 data = 0;
5555 
src/mess/machine/c64_zaxxon.h
r15032r15033
3737   virtual void device_start();
3838 
3939   // device_c64_expansion_card_interface overrides
40   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
40   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4141 
4242private:
4343   int m_bank;
src/mess/machine/c64_georam.c
r15032r15033
6262//  c64_cd_r - cartridge data read
6363//-------------------------------------------------
6464 
65UINT8 c64_georam_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
65UINT8 c64_georam_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6666{
6767   UINT8 data = 0;
6868 
r15032r15033
8080//  c64_cd_w - cartridge data write
8181//-------------------------------------------------
8282 
83void c64_georam_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
83void c64_georam_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8484{
8585   if (!io1)
8686   {
src/mess/machine/c64_georam.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT16 m_bank;
src/mess/machine/c64_easy_calc_result.c
r15032r15033
8080//  c64_cd_r - cartridge data read
8181//-------------------------------------------------
8282 
83UINT8 c64_easy_calc_result_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
83UINT8 c64_easy_calc_result_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
8484{
8585   UINT8 data = 0;
8686 
r15032r15033
101101//  c64_cd_w - cartridge data write
102102//-------------------------------------------------
103103 
104void c64_easy_calc_result_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
104void c64_easy_calc_result_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
105105{
106106   if (!io1)
107107   {
src/mess/machine/c64_easy_calc_result.h
r15032r15033
3838   virtual void device_config_complete() { m_shortname = "c64_easy_calc_result"; }
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   int m_bank;
src/mess/machine/c64_magic_desk.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_magic_desk_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_magic_desk_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c64_magic_desk_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c64_magic_desk_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io1)
8383   {
src/mess/machine/c64_std.c
r15032r15033
4747//  c64_cd_r - cartridge data read
4848//-------------------------------------------------
4949
50UINT8 c64_standard_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
50UINT8 c64_standard_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
5151{
5252   UINT8 data = 0;
5353
src/mess/machine/c64_magic_desk.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_std.h
r15032r15033
3838   virtual void device_start();
3939
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
4242};
4343
4444
src/mess/machine/c64_dela_ep64.c
r15032r15033
110110//  c64_cd_r - cartridge data read
111111//-------------------------------------------------
112112 
113UINT8 c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
113UINT8 c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
114114{
115115   UINT8 data = 0;
116116 
r15032r15033
138138//  c64_cd_w - cartridge data write
139139//-------------------------------------------------
140140 
141void c64_dela_ep64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
141void c64_dela_ep64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
142142{
143143   if (!io1)
144144   {
src/mess/machine/c64_dela_ep64.h
r15032r15033
4343   virtual void device_reset();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848 
4949private:
5050   UINT8 *m_rom;
src/mess/machine/c64_dqbb.c
r15032r15033
7676//  c64_cd_r - cartridge data read
7777//-------------------------------------------------
7878 
79UINT8 c64_dqbb_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
79UINT8 c64_dqbb_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
8080{
8181   UINT8 data = 0;
8282 
r15032r15033
9393//  c64_cd_w - cartridge data write
9494//-------------------------------------------------
9595 
96void c64_dqbb_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
96void c64_dqbb_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
9797{
9898   if (!m_cs && m_we && (offset >= 0x8000 && offset < 0xc000))
9999   {
src/mess/machine/c64_dqbb.h
r15032r15033
4545   virtual void nvram_write(emu_file &file) { if (m_nvram != NULL) { file.write(m_nvram, m_nvram_size); } }
4646 
4747   // device_c64_expansion_card_interface overrides
48   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
49   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
48   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
49   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5050 
5151private:
5252   int m_cs;
src/mess/machine/c64_magic_formel.c
r15032r15033
223223//  c64_cd_r - cartridge data read
224224//-------------------------------------------------
225225 
226UINT8 c64_magic_formel_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
226UINT8 c64_magic_formel_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
227227{
228228   UINT8 data = 0;
229229 
r15032r15033
247247//  c64_cd_w - cartridge data write
248248//-------------------------------------------------
249249 
250void c64_magic_formel_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
250void c64_magic_formel_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
251251{
252252   if (!io1)
253253   {
src/mess/machine/c64_dela_ep256.c
r15032r15033
126126//  c64_cd_r - cartridge data read
127127//-------------------------------------------------
128128 
129UINT8 c64_dela_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
129UINT8 c64_dela_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
130130{
131131   UINT8 data = 0;
132132 
r15032r15033
151151//  c64_cd_w - cartridge data write
152152//-------------------------------------------------
153153 
154void c64_dela_ep256_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
154void c64_dela_ep256_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
155155{
156156   if (!io2 && ((offset & 0xf0) == 0xa0))
157157   {
src/mess/machine/c64_magic_formel.h
r15032r15033
5050   virtual void device_reset();
5151 
5252   // device_c64_expansion_card_interface overrides
53   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
54   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
53   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
54   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
5555   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
5656 
5757private:
src/mess/machine/c64_dela_ep256.h
r15032r15033
4343   virtual void device_reset();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848 
4949private:
5050   UINT8 *m_rom;
src/mess/machine/c64exp.c
r15032r15033
294294            size = get_software_region_length("nvram");
295295            if (size) memset(m_cart->c64_nvram_pointer(machine(), size), 0, size);
296296
297            m_cart->m_exrom = (atol(get_feature("exrom")));
297            m_cart->m_exrom = atol(get_feature("exrom"));
298298            m_cart->m_game = atol(get_feature("game"));
299299         }
300300      }
r15032r15033
340340//  cd_r - cartridge data read
341341//-------------------------------------------------
342342
343UINT8 c64_expansion_slot_device::cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
343UINT8 c64_expansion_slot_device::cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
344344{
345345   UINT8 data = 0;
346346
347347   if (m_cart != NULL)
348348   {
349      data = m_cart->c64_cd_r(space, offset, roml, romh, io1, io2);
349      data = m_cart->c64_cd_r(space, offset, ba, roml, romh, io1, io2);
350350   }
351351
352352   return data;
r15032r15033
357357//  cd_w - cartridge data write
358358//-------------------------------------------------
359359
360void c64_expansion_slot_device::cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
360void c64_expansion_slot_device::cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
361361{
362362   if (m_cart != NULL)
363363   {
364      m_cart->c64_cd_w(space, offset, data, roml, romh, io1, io2);
364      m_cart->c64_cd_w(space, offset, data, ba, roml, romh, io1, io2);
365365   }
366366}
367367
src/mess/machine/c64exp.h
r15032r15033
9797   virtual ~c64_expansion_slot_device();
9898
9999   // computer interface
100   UINT8 cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
101   void cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
100   UINT8 cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
101   void cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
102102   int game_r(offs_t offset, int ba, int rw, int hiram);
103103   int exrom_r(offs_t offset, int ba, int rw, int hiram);
104104   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
r15032r15033
166166   virtual UINT8* c64_nvram_pointer(running_machine &machine, size_t size);
167167
168168   // runtime
169   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) { return 0; };
170   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) { };
169   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2) { return 0; };
170   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2) { };
171171   virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram) { return m_game; }
172172   virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return m_exrom; }
173173   virtual void c64_reset_w() { };
src/mess/machine/c64_rex_ep256.c
r15032r15033
126126//  c64_cd_r - cartridge data read
127127//-------------------------------------------------
128128 
129UINT8 c64_rex_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
129UINT8 c64_rex_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
130130{
131131   UINT8 data = 0;
132132 
r15032r15033
162162//  c64_cd_w - cartridge data write
163163//-------------------------------------------------
164164 
165void c64_rex_ep256_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
165void c64_rex_ep256_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
166166{
167167   if (!io2 && ((offset & 0xf0) == 0xa0))
168168   {
src/mess/machine/c128_comal80.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c128_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c128_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c128_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c128_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io1)
8383   {
src/mess/machine/c64_rex_ep256.h
r15032r15033
4343   virtual void device_reset();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848 
4949private:
5050   UINT8 *m_rom;
src/mess/machine/c128_comal80.h
r15032r15033
3838   virtual void device_config_complete() { m_shortname = "c128_comal80"; }
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_ps64.c
r15032r15033
130130//  c64_cd_r - cartridge data read
131131//-------------------------------------------------
132132 
133UINT8 c64_ps64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
133UINT8 c64_ps64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
134134{
135135   UINT8 data = 0;
136136 
r15032r15033
151151//  c64_cd_w - cartridge data write
152152//-------------------------------------------------
153153 
154void c64_ps64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
154void c64_ps64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
155155{
156156   if (!io1)
157157   {
src/mess/machine/c64_ps64.h
r15032r15033
4242   virtual void device_reset();
4343 
4444   // device_c64_expansion_card_interface overrides
45   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
46   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
45   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
46   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4747};
4848 
4949 
src/mess/machine/c64_epyx_fast_load.c
r15032r15033
8080//  c64_cd_r - cartridge data read
8181//-------------------------------------------------
8282 
83UINT8 c64_epyx_fast_load_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
83UINT8 c64_epyx_fast_load_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
8484{
8585   UINT8 data = 0;
8686 
r15032r15033
109109//  c64_cd_w - cartridge data write
110110//-------------------------------------------------
111111 
112void c64_epyx_fast_load_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
112void c64_epyx_fast_load_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
113113{
114114   if (!io1)
115115   {
src/mess/machine/c64_epyx_fast_load.h
r15032r15033
3939   virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
4040 
4141   // device_c64_expansion_card_interface overrides
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4444 
4545private:
4646   emu_timer *m_exrom_timer;
src/mess/machine/c64_super_games.c
r15032r15033
5959//  c64_cd_r - cartridge data read
6060//-------------------------------------------------
6161 
62UINT8 c64_super_games_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
62UINT8 c64_super_games_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6363{
6464   UINT8 data = 0;
6565 
r15032r15033
7777//  c64_cd_w - cartridge data write
7878//-------------------------------------------------
7979 
80void c64_super_games_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
80void c64_super_games_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8181{
8282   if (!io2)
8383   {
src/mess/machine/c64_super_games.h
r15032r15033
3838   virtual void device_reset();
3939 
4040   // device_c64_expansion_card_interface overrides
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
41   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
42   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4343 
4444private:
4545   UINT8 m_bank;
src/mess/machine/c64_dela_ep7x8.c
r15032r15033
120120//  c64_cd_r - cartridge data read
121121//-------------------------------------------------
122122 
123UINT8 c64_dela_ep7x8_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
123UINT8 c64_dela_ep7x8_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
124124{
125125   UINT8 data = 0;
126126 
r15032r15033
146146//  c64_cd_w - cartridge data write
147147//-------------------------------------------------
148148 
149void c64_dela_ep7x8_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
149void c64_dela_ep7x8_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
150150{
151151   if (!io1)
152152   {
src/mess/machine/c64_dela_ep7x8.h
r15032r15033
4343   virtual void device_reset();
4444 
4545   // device_c64_expansion_card_interface overrides
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
46   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
47   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4848 
4949private:
5050   UINT8 *m_rom;
src/mess/machine/c64_structured_basic.c
r15032r15033
6161//  c64_cd_r - cartridge data read
6262//-------------------------------------------------
6363 
64UINT8 c64_structured_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
64UINT8 c64_structured_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
6565{
6666   UINT8 data = 0;
6767 
r15032r15033
8080//  c64_cd_w - cartridge data write
8181//-------------------------------------------------
8282 
83void c64_structured_basic_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
83void c64_structured_basic_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
8484{
8585   if (!io1)
8686   {
src/mess/machine/c64_structured_basic.h
r15032r15033
3939   virtual void device_reset();
4040 
4141   // device_c64_expansion_card_interface overrides
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2);
42   virtual UINT8 c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2);
43   virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2);
4444 
4545private:
4646   UINT8 m_bank;
src/mess/machine/c64_super_explode.c
r15032r15033
8585//  c64_cd_r - cartridge data read
8686//-------------------------------------------------
8787 
88UINT8 c64_super_explode_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
88UINT8 c64_super_explode_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
8989{
9090   UINT8 data = 0;
9191 
r15032r15033
114114//  c64_cd_w - cartridge data write
115115//-------------------------------------------------
116116 
117void c64_super_explode_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
117void c64_super_explode_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
118118{
119119   if (!io1)
120120   {
src/mess/includes/c64.h
r15032r15033
7777
7878   void check_interrupts();
7979   void bankswitch(offs_t offset, offs_t va, int rw, int aec, int ba, int cas, int *casram, int *basic, int *kernal, int *charom, int *grw, int *io, int *roml, int *romh);
80   UINT8 read_memory(address_space &space, offs_t offset, int casram, int basic, int kernal, int charom, int io, int roml, int romh);
80   UINT8 read_memory(address_space &space, offs_t offset, int ba, int casram, int basic, int kernal, int charom, int io, int roml, int romh);
8181
8282   DECLARE_READ8_MEMBER( read );
8383   DECLARE_WRITE8_MEMBER( write );
src/mess/drivers/c64.c
r15032r15033
8181//  read_memory -
8282//-------------------------------------------------
8383
84UINT8 c64_state::read_memory(address_space &space, offs_t offset, int casram, int basic, int kernal, int charom, int io, int roml, int romh)
84UINT8 c64_state::read_memory(address_space &space, offs_t offset, int ba, int casram, int basic, int kernal, int charom, int io, int roml, int romh)
8585{
8686   int io1 = 1;
8787   int io2 = 1;
r15032r15033
148148      }
149149   }
150150
151   data |= m_exp->cd_r(space, offset, roml, romh, io1, io2);
151   data |= m_exp->cd_r(space, offset, ba, roml, romh, io1, io2);
152152
153153   return data;
154154}
r15032r15033
164164
165165   bankswitch(offset, 0, 1, 0, 1, 0, &casram, &basic, &kernal, &charom, &grw, &io, &roml, &romh);
166166
167   return read_memory(space, offset, casram, basic, kernal, charom, io, roml, romh);
167   return read_memory(space, offset, 1, casram, basic, kernal, charom, io, roml, romh);
168168}
169169
170170
r15032r15033
224224      }
225225   }
226226
227   m_exp->cd_w(space, offset, data, roml, romh, io1, io2);
227   m_exp->cd_w(space, offset, data, 1, roml, romh, io1, io2);
228228}
229229
230230
r15032r15033
390390
391391   bankswitch(0, offset, 1, 1, 0, 0, &casram, &basic, &kernal, &charom, &grw, &io, &roml, &romh);
392392
393   return read_memory(space, offset, casram, basic, kernal, charom, io, roml, romh);
393   return read_memory(space, offset, 0, casram, basic, kernal, charom, io, roml, romh);
394394}
395395
396396READ8_MEMBER( c64_state::vic_dma_read_color )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team