src/mess/machine/c64_super_explode.h
| r15032 | r15033 | |
| 39 | 39 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
|
| 40 | 40 | |
| 41 | 41 | // 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);
|
| 44 | 44 | |
| 45 | 45 | private:
|
| 46 | 46 | UINT8 m_bank;
|
src/mess/machine/c64_cpm.h
| r15032 | r15033 | |
| 47 | 47 | virtual void device_config_complete() { m_shortname = "c64_cpm"; }
|
| 48 | 48 | |
| 49 | 49 | // 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);
|
| 51 | 51 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 52 | 52 | |
| 53 | 53 | private:
|
src/mess/machine/c64_tdos.c
| r15032 | r15033 | |
| 215 | 215 | // c64_cd_r - cartridge data read
|
| 216 | 216 | //-------------------------------------------------
|
| 217 | 217 | |
| 218 | | UINT8 c64_tdos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 218 | UINT8 c64_tdos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 219 | 219 | {
|
| 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);
|
| 221 | 221 | |
| 222 | 222 | // TODO
|
| 223 | 223 | |
| r15032 | r15033 | |
| 229 | 229 | // c64_cd_w - cartridge data write
|
| 230 | 230 | //-------------------------------------------------
|
| 231 | 231 | |
| 232 | | void c64_tdos_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 232 | void 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)
|
| 233 | 233 | {
|
| 234 | 234 | // 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);
|
| 236 | 236 | }
|
| 237 | 237 | |
| 238 | 238 | |
src/mess/machine/c64_tdos.h
| r15032 | r15033 | |
| 52 | 52 | virtual void device_reset();
|
| 53 | 53 | |
| 54 | 54 | // 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);
|
| 57 | 57 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 58 | 58 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram);
|
| 59 | 59 | |
src/mess/machine/c64_silverrock.c
| r15032 | r15033 | |
| 92 | 92 | // c64_cd_r - cartridge data read
|
| 93 | 93 | //-------------------------------------------------
|
| 94 | 94 | |
| 95 | | UINT8 c64_silverrock_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 95 | UINT8 c64_silverrock_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 96 | 96 | {
|
| 97 | 97 | UINT8 data = 0;
|
| 98 | 98 | |
| r15032 | r15033 | |
| 111 | 111 | // c64_cd_w - cartridge data write
|
| 112 | 112 | //-------------------------------------------------
|
| 113 | 113 | |
| 114 | | void c64_silverrock_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 114 | void 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)
|
| 115 | 115 | {
|
| 116 | 116 | if (!io1)
|
| 117 | 117 | {
|
src/mess/machine/c64_silverrock.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_kingsoft.c
| r15032 | r15033 | |
| 57 | 57 | // c64_cd_r - cartridge data read
|
| 58 | 58 | //-------------------------------------------------
|
| 59 | 59 | |
| 60 | | UINT8 c64_kingsoft_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 60 | UINT8 c64_kingsoft_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 61 | 61 | {
|
| 62 | 62 | UINT8 data = 0;
|
| 63 | 63 | |
| r15032 | r15033 | |
| 82 | 82 | // c64_cd_w - cartridge data write
|
| 83 | 83 | //-------------------------------------------------
|
| 84 | 84 | |
| 85 | | void c64_kingsoft_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 85 | void 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)
|
| 86 | 86 | {
|
| 87 | 87 | if (!io1)
|
| 88 | 88 | {
|
src/mess/machine/c64_kingsoft.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 44 | 44 | };
|
| 45 | 45 | |
src/mess/machine/c64_sfx_sound_expander.c
| r15032 | r15033 | |
| 235 | 235 | // c64_cd_r - cartridge data read
|
| 236 | 236 | //-------------------------------------------------
|
| 237 | 237 | |
| 238 | | UINT8 c64_sfx_sound_expander_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 238 | UINT8 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)
|
| 239 | 239 | {
|
| 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);
|
| 241 | 241 | |
| 242 | 242 | if (!io2)
|
| 243 | 243 | {
|
| r15032 | r15033 | |
| 269 | 269 | // c64_cd_w - cartridge data write
|
| 270 | 270 | //-------------------------------------------------
|
| 271 | 271 | |
| 272 | | void 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)
|
| 272 | void 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)
|
| 273 | 273 | {
|
| 274 | 274 | if (!io2 && BIT(offset, 5))
|
| 275 | 275 | {
|
| 276 | 276 | ym3526_w(m_opl, BIT(offset, 4), data);
|
| 277 | 277 | }
|
| 278 | 278 | |
| 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);
|
| 280 | 280 | }
|
| 281 | 281 | |
| 282 | 282 | |
src/mess/machine/c64_sfx_sound_expander.h
| r15032 | r15033 | |
| 52 | 52 | virtual void device_reset();
|
| 53 | 53 | |
| 54 | 54 | // 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);
|
| 57 | 57 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 58 | 58 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram);
|
| 59 | 59 | |
src/mess/machine/c64_ocean.c
| r15032 | r15033 | |
| 81 | 81 | // c64_cd_r - cartridge data read
|
| 82 | 82 | //-------------------------------------------------
|
| 83 | 83 | |
| 84 | | UINT8 c64_ocean_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 84 | UINT8 c64_ocean_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 85 | 85 | {
|
| 86 | 86 | UINT8 data = 0;
|
| 87 | 87 | |
| r15032 | r15033 | |
| 108 | 108 | // c64_cd_w - cartridge data write
|
| 109 | 109 | //-------------------------------------------------
|
| 110 | 110 | |
| 111 | | void c64_ocean_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 111 | void 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)
|
| 112 | 112 | {
|
| 113 | 113 | if (!io1)
|
| 114 | 114 | {
|
src/mess/machine/c64_warp_speed.c
| r15032 | r15033 | |
| 127 | 127 | // c64_cd_r - cartridge data read
|
| 128 | 128 | //-------------------------------------------------
|
| 129 | 129 | |
| 130 | | UINT8 c64_warp_speed_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 130 | UINT8 c64_warp_speed_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 131 | 131 | {
|
| 132 | 132 | UINT8 data = 0;
|
| 133 | 133 | |
| r15032 | r15033 | |
| 145 | 145 | // c64_cd_w - cartridge data write
|
| 146 | 146 | //-------------------------------------------------
|
| 147 | 147 | |
| 148 | | void c64_warp_speed_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 148 | void 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)
|
| 149 | 149 | {
|
| 150 | 150 | if (!io1)
|
| 151 | 151 | {
|
src/mess/machine/c64_ocean.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_warp_speed.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_reset();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | |
| 49 | 49 | private:
|
| 50 | 50 | UINT8 m_bank;
|
src/mess/machine/c64_system3.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c64_system3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c64_system3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c64_system3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io1)
|
| 83 | 83 | {
|
src/mess/machine/c64_system3.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_fun_play.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c64_fun_play_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c64_fun_play_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c64_fun_play_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io1)
|
| 83 | 83 | {
|
src/mess/machine/c64_fun_play.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_pagefox.c
| r15032 | r15033 | |
| 81 | 81 | // c64_cd_r - cartridge data read
|
| 82 | 82 | //-------------------------------------------------
|
| 83 | 83 | |
| 84 | | UINT8 c64_pagefox_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 84 | UINT8 c64_pagefox_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 85 | 85 | {
|
| 86 | 86 | UINT8 data = 0;
|
| 87 | 87 | |
| r15032 | r15033 | |
| 108 | 108 | // c64_cd_w - cartridge data write
|
| 109 | 109 | //-------------------------------------------------
|
| 110 | 110 | |
| 111 | | void c64_pagefox_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 111 | void 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)
|
| 112 | 112 | {
|
| 113 | 113 | if (offset >= 0x8000 && offset < 0xc000)
|
| 114 | 114 | {
|
src/mess/machine/c64_xl80.c
| r15032 | r15033 | |
| 209 | 209 | // c64_cd_r - cartridge data read |
| 210 | 210 | //------------------------------------------------- |
| 211 | 211 | |
| 212 | | UINT8 c64_xl80_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 212 | UINT8 c64_xl80_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2) |
| 213 | 213 | { |
| 214 | 214 | UINT8 data = 0; |
| 215 | 215 | |
| r15032 | r15033 | |
| 237 | 237 | // c64_cd_w - cartridge data write |
| 238 | 238 | //------------------------------------------------- |
| 239 | 239 | |
| 240 | | void c64_xl80_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) |
| 240 | void c64_xl80_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2) |
| 241 | 241 | { |
| 242 | 242 | if (offset >= 0x9800 && offset < 0xa000) |
| 243 | 243 | { |
src/mess/machine/c64_pagefox.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_xl80.h
| r15032 | r15033 | |
| 46 | 46 | virtual void device_reset(); |
| 47 | 47 | |
| 48 | 48 | // 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); |
| 51 | 51 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram) { return 1; } |
| 52 | 52 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return 0; } |
| 53 | 53 | |
src/mess/machine/c64_mach5.c
| r15032 | r15033 | |
| 57 | 57 | // c64_cd_r - cartridge data read
|
| 58 | 58 | //-------------------------------------------------
|
| 59 | 59 | |
| 60 | | UINT8 c64_mach5_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 60 | UINT8 c64_mach5_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 61 | 61 | {
|
| 62 | 62 | UINT8 data = 0;
|
| 63 | 63 | |
| r15032 | r15033 | |
| 74 | 74 | // c64_cd_w - cartridge data write
|
| 75 | 75 | //-------------------------------------------------
|
| 76 | 76 | |
| 77 | | void c64_mach5_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 77 | void 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)
|
| 78 | 78 | {
|
| 79 | 79 | if (!io1)
|
| 80 | 80 | {
|
src/mess/machine/c64_mach5.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | };
|
| 44 | 44 | |
| 45 | 45 | |
src/mess/machine/c64_neoram.c
| r15032 | r15033 | |
| 63 | 63 | // c64_cd_r - cartridge data read
|
| 64 | 64 | //-------------------------------------------------
|
| 65 | 65 | |
| 66 | | UINT8 c64_neoram_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 66 | UINT8 c64_neoram_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 67 | 67 | {
|
| 68 | 68 | UINT8 data = 0;
|
| 69 | 69 | |
| r15032 | r15033 | |
| 81 | 81 | // c64_cd_w - cartridge data write
|
| 82 | 82 | //-------------------------------------------------
|
| 83 | 83 | |
| 84 | | void c64_neoram_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 84 | void 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)
|
| 85 | 85 | {
|
| 86 | 86 | if (!io1)
|
| 87 | 87 | {
|
src/mess/machine/c64_neoram.h
| r15032 | r15033 | |
| 44 | 44 | virtual void nvram_write(emu_file &file) { if (m_nvram != NULL) { file.write(m_nvram, m_nvram_size); } }
|
| 45 | 45 | |
| 46 | 46 | // 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);
|
| 49 | 49 | |
| 50 | 50 | private:
|
| 51 | 51 | UINT16 m_bank;
|
src/mess/machine/c64_simons_basic.c
| r15032 | r15033 | |
| 57 | 57 | // c64_cd_r - cartridge data read
|
| 58 | 58 | //-------------------------------------------------
|
| 59 | 59 | |
| 60 | | UINT8 c64_simons_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 60 | UINT8 c64_simons_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 61 | 61 | {
|
| 62 | 62 | UINT8 data = 0;
|
| 63 | 63 | |
| r15032 | r15033 | |
| 78 | 78 | // c64_cd_w - cartridge data write
|
| 79 | 79 | //-------------------------------------------------
|
| 80 | 80 | |
| 81 | | void c64_simons_basic_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 81 | void 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)
|
| 82 | 82 | {
|
| 83 | 83 | if (!io1)
|
| 84 | 84 | {
|
src/mess/machine/c64_simons_basic.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | };
|
| 44 | 44 | |
| 45 | 45 | |
src/mess/machine/c64_final3.c
| r15032 | r15033 | |
| 105 | 105 | // c64_cd_r - cartridge data read
|
| 106 | 106 | //-------------------------------------------------
|
| 107 | 107 | |
| 108 | | UINT8 c64_final3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 108 | UINT8 c64_final3_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 109 | 109 | {
|
| 110 | 110 | UINT8 data = 0;
|
| 111 | 111 | |
| r15032 | r15033 | |
| 123 | 123 | // c64_cd_w - cartridge data write
|
| 124 | 124 | //-------------------------------------------------
|
| 125 | 125 | |
| 126 | | void c64_final3_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 126 | void 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)
|
| 127 | 127 | {
|
| 128 | 128 | if (!m_hidden && !io2 && ((offset & 0xff) == 0xff))
|
| 129 | 129 | {
|
src/mess/machine/c64_final3.h
| r15032 | r15033 | |
| 44 | 44 | virtual void device_reset();
|
| 45 | 45 | |
| 46 | 46 | // 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);
|
| 49 | 49 | |
| 50 | 50 | private:
|
| 51 | 51 | UINT8 m_bank;
|
src/mess/machine/c64_vw64.h
| r15032 | r15033 | |
| 39 | 39 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
|
| 40 | 40 | |
| 41 | 41 | // 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);
|
| 43 | 43 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return 0; }
|
| 44 | 44 | |
| 45 | 45 | private:
|
src/mess/machine/c64_ieee488.c
| r15032 | r15033 | |
| 277 | 277 | // c64_cd_r - cartridge data read
|
| 278 | 278 | //-------------------------------------------------
|
| 279 | 279 | |
| 280 | | UINT8 c64_ieee488_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 280 | UINT8 c64_ieee488_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 281 | 281 | {
|
| 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);
|
| 283 | 283 | |
| 284 | 284 | if (!roml)
|
| 285 | 285 | {
|
| r15032 | r15033 | |
| 301 | 301 | // c64_cd_w - cartridge data write
|
| 302 | 302 | //-------------------------------------------------
|
| 303 | 303 | |
| 304 | | void c64_ieee488_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 304 | void c64_ieee488_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2)
|
| 305 | 305 | {
|
| 306 | 306 | if (!io2)
|
| 307 | 307 | {
|
| 308 | 308 | tpi6525_w(m_tpi, offset & 0x07, data);
|
| 309 | 309 | }
|
| 310 | 310 | |
| 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);
|
| 312 | 312 | }
|
| 313 | 313 | |
| 314 | 314 | |
src/mess/machine/c64_ieee488.h
| r15032 | r15033 | |
| 57 | 57 | virtual void device_reset();
|
| 58 | 58 | |
| 59 | 59 | // 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);
|
| 62 | 62 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 63 | 63 | |
| 64 | 64 | private:
|
src/mess/machine/c64_final.c
| r15032 | r15033 | |
| 95 | 95 | // c64_cd_r - cartridge data read
|
| 96 | 96 | //-------------------------------------------------
|
| 97 | 97 | |
| 98 | | UINT8 c64_final_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 98 | UINT8 c64_final_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 99 | 99 | {
|
| 100 | 100 | UINT8 data = 0;
|
| 101 | 101 | |
| r15032 | r15033 | |
| 123 | 123 | // c64_cd_w - cartridge data write
|
| 124 | 124 | //-------------------------------------------------
|
| 125 | 125 | |
| 126 | | void c64_final_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 126 | void 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)
|
| 127 | 127 | {
|
| 128 | 128 | if (!io1)
|
| 129 | 129 | {
|
src/mess/machine/c64_multiscreen.c
| r15032 | r15033 | |
| 208 | 208 | // c64_cd_r - cartridge data read
|
| 209 | 209 | //-------------------------------------------------
|
| 210 | 210 | |
| 211 | | UINT8 c64_multiscreen_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 211 | UINT8 c64_multiscreen_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 212 | 212 | {
|
| 213 | 213 | UINT8 data = 0;
|
| 214 | 214 | |
| r15032 | r15033 | |
| 247 | 247 | // c64_cd_w - cartridge data write
|
| 248 | 248 | //-------------------------------------------------
|
| 249 | 249 | |
| 250 | | void c64_multiscreen_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 250 | void 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)
|
| 251 | 251 | {
|
| 252 | 252 | if (offset >= 0x8000 && offset < 0xa000)
|
| 253 | 253 | {
|
src/mess/machine/c64_final.h
| r15032 | r15033 | |
| 44 | 44 | virtual void device_reset();
|
| 45 | 45 | |
| 46 | 46 | // 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);
|
| 49 | 49 | };
|
| 50 | 50 | |
| 51 | 51 | |
src/mess/machine/c64_multiscreen.h
| r15032 | r15033 | |
| 44 | 44 | virtual void device_reset();
|
| 45 | 45 | |
| 46 | 46 | // 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);
|
| 49 | 49 | |
| 50 | 50 | private:
|
| 51 | 51 | UINT8 m_bank;
|
src/mess/machine/c64_ide64.c
| r15032 | r15033 | |
| 11 | 11 | |
| 12 | 12 | TODO:
|
| 13 | 13 | |
| 14 | - DS1302
|
| 14 | 15 | - FT245
|
| 15 | 16 | - CompactFlash
|
| 16 | 17 | |
| r15032 | r15033 | |
| 140 | 141 | // c64_cd_r - cartridge data read
|
| 141 | 142 | //-------------------------------------------------
|
| 142 | 143 | |
| 143 | | UINT8 c64_ide64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 144 | UINT8 c64_ide64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 144 | 145 | {
|
| 145 | 146 | if (!m_enable) return 0;
|
| 146 | 147 | |
| 147 | 148 | UINT8 data = 0;
|
| 148 | 149 | int rom_oe = 1, ram_oe = 1;
|
| 149 | 150 | |
| 150 | | if (!m_game && m_exrom)
|
| 151 | if (!m_game && m_exrom && ba)
|
| 151 | 152 | {
|
| 152 | 153 | if (offset >= 0x1000 && offset < 0x8000)
|
| 153 | 154 | {
|
| r15032 | r15033 | |
| 161 | 162 | {
|
| 162 | 163 | ram_oe = 0;
|
| 163 | 164 | }
|
| 164 | | else if (!romh)
|
| 165 | | {
|
| 166 | | rom_oe = 0;
|
| 167 | | }
|
| 168 | 165 | }
|
| 169 | | else
|
| 166 | |
| 167 | if (!roml || !romh)
|
| 170 | 168 | {
|
| 171 | | if (!roml || !romh)
|
| 172 | | {
|
| 173 | | rom_oe = 0;
|
| 174 | | }
|
| 169 | rom_oe = 0;
|
| 175 | 170 | }
|
| 176 | 171 | |
| 177 | 172 | if (!io1)
|
| r15032 | r15033 | |
| 245 | 240 | // c64_cd_w - cartridge data write
|
| 246 | 241 | //-------------------------------------------------
|
| 247 | 242 | |
| 248 | | void c64_ide64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 243 | void 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)
|
| 249 | 244 | {
|
| 250 | 245 | if (!m_enable) return;
|
| 251 | 246 | |
| 252 | | if (!m_game && m_exrom)
|
| 247 | if (!m_game && m_exrom && ba)
|
| 253 | 248 | {
|
| 254 | 249 | if (offset >= 0x1000 && offset < 0x8000)
|
| 255 | 250 | {
|
| r15032 | r15033 | |
| 260 | 255 | m_ram[offset & 0x7fff] = data;
|
| 261 | 256 | }
|
| 262 | 257 | }
|
| 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 | | }
|
| 270 | 258 | |
| 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);
|
| 271 | 263 | }
|
| 272 | 264 | |
| 273 | 265 | if (!io1)
|
src/mess/machine/c64_ide64.h
| r15032 | r15033 | |
| 46 | 46 | virtual void device_reset();
|
| 47 | 47 | |
| 48 | 48 | // 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);
|
| 51 | 51 | |
| 52 | 52 | private:
|
| 53 | 53 | required_device<atmel_29c010_device> m_flash_rom;
|
src/mess/machine/c64_stardos.c
| r15032 | r15033 | |
| 148 | 148 | // c64_cd_r - cartridge data read
|
| 149 | 149 | //-------------------------------------------------
|
| 150 | 150 | |
| 151 | | UINT8 c64_stardos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 151 | UINT8 c64_stardos_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 152 | 152 | {
|
| 153 | 153 | UINT8 data = 0;
|
| 154 | 154 | |
| r15032 | r15033 | |
| 174 | 174 | // c64_cd_w - cartridge data write
|
| 175 | 175 | //-------------------------------------------------
|
| 176 | 176 | |
| 177 | | void c64_stardos_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 177 | void 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)
|
| 178 | 178 | {
|
| 179 | 179 | if (!io1)
|
| 180 | 180 | {
|
src/mess/machine/c64_stardos.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_start();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 49 | 49 | |
| 50 | 50 | private:
|
src/mess/machine/c64_ross.c
| r15032 | r15033 | |
| 62 | 62 | // c64_cd_r - cartridge data read
|
| 63 | 63 | //-------------------------------------------------
|
| 64 | 64 | |
| 65 | | UINT8 c64_ross_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 65 | UINT8 c64_ross_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 66 | 66 | {
|
| 67 | 67 | UINT8 data = 0;
|
| 68 | 68 | |
| r15032 | r15033 | |
| 81 | 81 | // c64_cd_w - cartridge data write
|
| 82 | 82 | //-------------------------------------------------
|
| 83 | 83 | |
| 84 | | void c64_ross_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 84 | void 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)
|
| 85 | 85 | {
|
| 86 | 86 | if (!io1)
|
| 87 | 87 | {
|
src/mess/machine/c64_ross.h
| r15032 | r15033 | |
| 39 | 39 | virtual void device_reset();
|
| 40 | 40 | |
| 41 | 41 | // 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);
|
| 44 | 44 | |
| 45 | 45 | private:
|
| 46 | 46 | UINT8 m_bank;
|
src/mess/machine/c64_comal80.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c64_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c64_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c64_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io1)
|
| 83 | 83 | {
|
src/mess/machine/c64_comal80.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_config_complete() { m_shortname = "c64_comal80"; }
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_prophet64.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c64_prophet64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c64_prophet64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c64_prophet64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io2)
|
| 83 | 83 | {
|
src/mess/machine/c64_prophet64.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_currah_speech.c
| r15032 | r15033 | |
| 200 | 200 | // c64_cd_r - cartridge data read
|
| 201 | 201 | //-------------------------------------------------
|
| 202 | 202 | |
| 203 | | UINT8 c64_currah_speech_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 203 | UINT8 c64_currah_speech_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 204 | 204 | {
|
| 205 | 205 | UINT8 data = 0;
|
| 206 | 206 | |
| r15032 | r15033 | |
| 242 | 242 | // c64_cd_w - cartridge data write
|
| 243 | 243 | //-------------------------------------------------
|
| 244 | 244 | |
| 245 | | void c64_currah_speech_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 245 | void 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)
|
| 246 | 246 | {
|
| 247 | 247 | if (!io1)
|
| 248 | 248 | {
|
src/mess/machine/c64_currah_speech.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_reset();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | |
| 49 | 49 | private:
|
| 50 | 50 | inline void set_osc1(int voice, int intonation);
|
src/mess/machine/c64_easyflash.c
| r15032 | r15033 | |
| 132 | 132 | // c64_cd_r - cartridge data read
|
| 133 | 133 | //-------------------------------------------------
|
| 134 | 134 | |
| 135 | | UINT8 c64_easyflash_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 135 | UINT8 c64_easyflash_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 136 | 136 | {
|
| 137 | 137 | UINT8 data = 0;
|
| 138 | 138 | |
| r15032 | r15033 | |
| 159 | 159 | // c64_cd_w - cartridge data write
|
| 160 | 160 | //-------------------------------------------------
|
| 161 | 161 | |
| 162 | | void c64_easyflash_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 162 | void 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)
|
| 163 | 163 | {
|
| 164 | 164 | if (!roml)
|
| 165 | 165 | {
|
src/mess/machine/c64_easyflash.h
| r15032 | r15033 | |
| 45 | 45 | virtual void device_reset();
|
| 46 | 46 | |
| 47 | 47 | // 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);
|
| 50 | 50 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram);
|
| 51 | 51 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 52 | 52 | |
src/mess/machine/c64_georam.c
| r15032 | r15033 | |
| 62 | 62 | // c64_cd_r - cartridge data read
|
| 63 | 63 | //-------------------------------------------------
|
| 64 | 64 | |
| 65 | | UINT8 c64_georam_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 65 | UINT8 c64_georam_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 66 | 66 | {
|
| 67 | 67 | UINT8 data = 0;
|
| 68 | 68 | |
| r15032 | r15033 | |
| 80 | 80 | // c64_cd_w - cartridge data write
|
| 81 | 81 | //-------------------------------------------------
|
| 82 | 82 | |
| 83 | | void c64_georam_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 83 | void 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)
|
| 84 | 84 | {
|
| 85 | 85 | if (!io1)
|
| 86 | 86 | {
|
src/mess/machine/c64_georam.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT16 m_bank;
|
src/mess/machine/c64_easy_calc_result.c
| r15032 | r15033 | |
| 80 | 80 | // c64_cd_r - cartridge data read
|
| 81 | 81 | //-------------------------------------------------
|
| 82 | 82 | |
| 83 | | UINT8 c64_easy_calc_result_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 83 | UINT8 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)
|
| 84 | 84 | {
|
| 85 | 85 | UINT8 data = 0;
|
| 86 | 86 | |
| r15032 | r15033 | |
| 101 | 101 | // c64_cd_w - cartridge data write
|
| 102 | 102 | //-------------------------------------------------
|
| 103 | 103 | |
| 104 | | void 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)
|
| 104 | void 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)
|
| 105 | 105 | {
|
| 106 | 106 | if (!io1)
|
| 107 | 107 | {
|
src/mess/machine/c64_easy_calc_result.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_config_complete() { m_shortname = "c64_easy_calc_result"; }
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | int m_bank;
|
src/mess/machine/c64_magic_desk.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c64_magic_desk_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c64_magic_desk_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c64_magic_desk_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io1)
|
| 83 | 83 | {
|
src/mess/machine/c64_magic_desk.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_dela_ep64.c
| r15032 | r15033 | |
| 110 | 110 | // c64_cd_r - cartridge data read
|
| 111 | 111 | //-------------------------------------------------
|
| 112 | 112 | |
| 113 | | UINT8 c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 113 | UINT8 c64_dela_ep64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 114 | 114 | {
|
| 115 | 115 | UINT8 data = 0;
|
| 116 | 116 | |
| r15032 | r15033 | |
| 138 | 138 | // c64_cd_w - cartridge data write
|
| 139 | 139 | //-------------------------------------------------
|
| 140 | 140 | |
| 141 | | void c64_dela_ep64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 141 | void 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)
|
| 142 | 142 | {
|
| 143 | 143 | if (!io1)
|
| 144 | 144 | {
|
src/mess/machine/c64_dela_ep64.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_reset();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | |
| 49 | 49 | private:
|
| 50 | 50 | UINT8 *m_rom;
|
src/mess/machine/c64_dqbb.c
| r15032 | r15033 | |
| 76 | 76 | // c64_cd_r - cartridge data read
|
| 77 | 77 | //-------------------------------------------------
|
| 78 | 78 | |
| 79 | | UINT8 c64_dqbb_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 79 | UINT8 c64_dqbb_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 80 | 80 | {
|
| 81 | 81 | UINT8 data = 0;
|
| 82 | 82 | |
| r15032 | r15033 | |
| 93 | 93 | // c64_cd_w - cartridge data write
|
| 94 | 94 | //-------------------------------------------------
|
| 95 | 95 | |
| 96 | | void c64_dqbb_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 96 | void 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)
|
| 97 | 97 | {
|
| 98 | 98 | if (!m_cs && m_we && (offset >= 0x8000 && offset < 0xc000))
|
| 99 | 99 | {
|
src/mess/machine/c64_dqbb.h
| r15032 | r15033 | |
| 45 | 45 | virtual void nvram_write(emu_file &file) { if (m_nvram != NULL) { file.write(m_nvram, m_nvram_size); } }
|
| 46 | 46 | |
| 47 | 47 | // 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);
|
| 50 | 50 | |
| 51 | 51 | private:
|
| 52 | 52 | int m_cs;
|
src/mess/machine/c64_magic_formel.c
| r15032 | r15033 | |
| 223 | 223 | // c64_cd_r - cartridge data read
|
| 224 | 224 | //-------------------------------------------------
|
| 225 | 225 | |
| 226 | | UINT8 c64_magic_formel_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 226 | UINT8 c64_magic_formel_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 227 | 227 | {
|
| 228 | 228 | UINT8 data = 0;
|
| 229 | 229 | |
| r15032 | r15033 | |
| 247 | 247 | // c64_cd_w - cartridge data write
|
| 248 | 248 | //-------------------------------------------------
|
| 249 | 249 | |
| 250 | | void c64_magic_formel_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 250 | void 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)
|
| 251 | 251 | {
|
| 252 | 252 | if (!io1)
|
| 253 | 253 | {
|
src/mess/machine/c64_dela_ep256.c
| r15032 | r15033 | |
| 126 | 126 | // c64_cd_r - cartridge data read
|
| 127 | 127 | //-------------------------------------------------
|
| 128 | 128 | |
| 129 | | UINT8 c64_dela_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 129 | UINT8 c64_dela_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 130 | 130 | {
|
| 131 | 131 | UINT8 data = 0;
|
| 132 | 132 | |
| r15032 | r15033 | |
| 151 | 151 | // c64_cd_w - cartridge data write
|
| 152 | 152 | //-------------------------------------------------
|
| 153 | 153 | |
| 154 | | void c64_dela_ep256_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 154 | void 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)
|
| 155 | 155 | {
|
| 156 | 156 | if (!io2 && ((offset & 0xf0) == 0xa0))
|
| 157 | 157 | {
|
src/mess/machine/c64_magic_formel.h
| r15032 | r15033 | |
| 50 | 50 | virtual void device_reset();
|
| 51 | 51 | |
| 52 | 52 | // 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);
|
| 55 | 55 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram);
|
| 56 | 56 | |
| 57 | 57 | private:
|
src/mess/machine/c64_dela_ep256.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_reset();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | |
| 49 | 49 | private:
|
| 50 | 50 | UINT8 *m_rom;
|
src/mess/machine/c64exp.c
| r15032 | r15033 | |
| 294 | 294 | size = get_software_region_length("nvram"); |
| 295 | 295 | if (size) memset(m_cart->c64_nvram_pointer(machine(), size), 0, size); |
| 296 | 296 | |
| 297 | | m_cart->m_exrom = (atol(get_feature("exrom"))); |
| 297 | m_cart->m_exrom = atol(get_feature("exrom")); |
| 298 | 298 | m_cart->m_game = atol(get_feature("game")); |
| 299 | 299 | } |
| 300 | 300 | } |
| r15032 | r15033 | |
| 340 | 340 | // cd_r - cartridge data read |
| 341 | 341 | //------------------------------------------------- |
| 342 | 342 | |
| 343 | | UINT8 c64_expansion_slot_device::cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) |
| 343 | UINT8 c64_expansion_slot_device::cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2) |
| 344 | 344 | { |
| 345 | 345 | UINT8 data = 0; |
| 346 | 346 | |
| 347 | 347 | if (m_cart != NULL) |
| 348 | 348 | { |
| 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); |
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | return data; |
| r15032 | r15033 | |
| 357 | 357 | // cd_w - cartridge data write |
| 358 | 358 | //------------------------------------------------- |
| 359 | 359 | |
| 360 | | void c64_expansion_slot_device::cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) |
| 360 | void c64_expansion_slot_device::cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int roml, int romh, int io1, int io2) |
| 361 | 361 | { |
| 362 | 362 | if (m_cart != NULL) |
| 363 | 363 | { |
| 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); |
| 365 | 365 | } |
| 366 | 366 | } |
| 367 | 367 | |
src/mess/machine/c64exp.h
| r15032 | r15033 | |
| 97 | 97 | virtual ~c64_expansion_slot_device(); |
| 98 | 98 | |
| 99 | 99 | // 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); |
| 102 | 102 | int game_r(offs_t offset, int ba, int rw, int hiram); |
| 103 | 103 | int exrom_r(offs_t offset, int ba, int rw, int hiram); |
| 104 | 104 | UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| r15032 | r15033 | |
| 166 | 166 | virtual UINT8* c64_nvram_pointer(running_machine &machine, size_t size); |
| 167 | 167 | |
| 168 | 168 | // 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) { }; |
| 171 | 171 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram) { return m_game; } |
| 172 | 172 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return m_exrom; } |
| 173 | 173 | virtual void c64_reset_w() { }; |
src/mess/machine/c64_rex_ep256.c
| r15032 | r15033 | |
| 126 | 126 | // c64_cd_r - cartridge data read
|
| 127 | 127 | //-------------------------------------------------
|
| 128 | 128 | |
| 129 | | UINT8 c64_rex_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 129 | UINT8 c64_rex_ep256_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 130 | 130 | {
|
| 131 | 131 | UINT8 data = 0;
|
| 132 | 132 | |
| r15032 | r15033 | |
| 162 | 162 | // c64_cd_w - cartridge data write
|
| 163 | 163 | //-------------------------------------------------
|
| 164 | 164 | |
| 165 | | void c64_rex_ep256_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 165 | void 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)
|
| 166 | 166 | {
|
| 167 | 167 | if (!io2 && ((offset & 0xf0) == 0xa0))
|
| 168 | 168 | {
|
src/mess/machine/c128_comal80.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c128_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c128_comal80_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c128_comal80_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io1)
|
| 83 | 83 | {
|
src/mess/machine/c64_rex_ep256.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_reset();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | |
| 49 | 49 | private:
|
| 50 | 50 | UINT8 *m_rom;
|
src/mess/machine/c128_comal80.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_config_complete() { m_shortname = "c128_comal80"; }
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_ps64.c
| r15032 | r15033 | |
| 130 | 130 | // c64_cd_r - cartridge data read
|
| 131 | 131 | //-------------------------------------------------
|
| 132 | 132 | |
| 133 | | UINT8 c64_ps64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 133 | UINT8 c64_ps64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 134 | 134 | {
|
| 135 | 135 | UINT8 data = 0;
|
| 136 | 136 | |
| r15032 | r15033 | |
| 151 | 151 | // c64_cd_w - cartridge data write
|
| 152 | 152 | //-------------------------------------------------
|
| 153 | 153 | |
| 154 | | void c64_ps64_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 154 | void 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)
|
| 155 | 155 | {
|
| 156 | 156 | if (!io1)
|
| 157 | 157 | {
|
src/mess/machine/c64_ps64.h
| r15032 | r15033 | |
| 42 | 42 | virtual void device_reset();
|
| 43 | 43 | |
| 44 | 44 | // 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);
|
| 47 | 47 | };
|
| 48 | 48 | |
| 49 | 49 | |
src/mess/machine/c64_epyx_fast_load.c
| r15032 | r15033 | |
| 80 | 80 | // c64_cd_r - cartridge data read
|
| 81 | 81 | //-------------------------------------------------
|
| 82 | 82 | |
| 83 | | UINT8 c64_epyx_fast_load_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 83 | UINT8 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)
|
| 84 | 84 | {
|
| 85 | 85 | UINT8 data = 0;
|
| 86 | 86 | |
| r15032 | r15033 | |
| 109 | 109 | // c64_cd_w - cartridge data write
|
| 110 | 110 | //-------------------------------------------------
|
| 111 | 111 | |
| 112 | | void 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)
|
| 112 | void 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)
|
| 113 | 113 | {
|
| 114 | 114 | if (!io1)
|
| 115 | 115 | {
|
src/mess/machine/c64_epyx_fast_load.h
| r15032 | r15033 | |
| 39 | 39 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
|
| 40 | 40 | |
| 41 | 41 | // 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);
|
| 44 | 44 | |
| 45 | 45 | private:
|
| 46 | 46 | emu_timer *m_exrom_timer;
|
src/mess/machine/c64_super_games.c
| r15032 | r15033 | |
| 59 | 59 | // c64_cd_r - cartridge data read
|
| 60 | 60 | //-------------------------------------------------
|
| 61 | 61 | |
| 62 | | UINT8 c64_super_games_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 62 | UINT8 c64_super_games_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 63 | 63 | {
|
| 64 | 64 | UINT8 data = 0;
|
| 65 | 65 | |
| r15032 | r15033 | |
| 77 | 77 | // c64_cd_w - cartridge data write
|
| 78 | 78 | //-------------------------------------------------
|
| 79 | 79 | |
| 80 | | void c64_super_games_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 80 | void 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)
|
| 81 | 81 | {
|
| 82 | 82 | if (!io2)
|
| 83 | 83 | {
|
src/mess/machine/c64_super_games.h
| r15032 | r15033 | |
| 38 | 38 | virtual void device_reset();
|
| 39 | 39 | |
| 40 | 40 | // 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);
|
| 43 | 43 | |
| 44 | 44 | private:
|
| 45 | 45 | UINT8 m_bank;
|
src/mess/machine/c64_dela_ep7x8.c
| r15032 | r15033 | |
| 120 | 120 | // c64_cd_r - cartridge data read
|
| 121 | 121 | //-------------------------------------------------
|
| 122 | 122 | |
| 123 | | UINT8 c64_dela_ep7x8_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 123 | UINT8 c64_dela_ep7x8_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 124 | 124 | {
|
| 125 | 125 | UINT8 data = 0;
|
| 126 | 126 | |
| r15032 | r15033 | |
| 146 | 146 | // c64_cd_w - cartridge data write
|
| 147 | 147 | //-------------------------------------------------
|
| 148 | 148 | |
| 149 | | void c64_dela_ep7x8_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 149 | void 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)
|
| 150 | 150 | {
|
| 151 | 151 | if (!io1)
|
| 152 | 152 | {
|
src/mess/machine/c64_dela_ep7x8.h
| r15032 | r15033 | |
| 43 | 43 | virtual void device_reset();
|
| 44 | 44 | |
| 45 | 45 | // 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);
|
| 48 | 48 | |
| 49 | 49 | private:
|
| 50 | 50 | UINT8 *m_rom;
|
src/mess/machine/c64_structured_basic.c
| r15032 | r15033 | |
| 61 | 61 | // c64_cd_r - cartridge data read
|
| 62 | 62 | //-------------------------------------------------
|
| 63 | 63 | |
| 64 | | UINT8 c64_structured_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 64 | UINT8 c64_structured_basic_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 65 | 65 | {
|
| 66 | 66 | UINT8 data = 0;
|
| 67 | 67 | |
| r15032 | r15033 | |
| 80 | 80 | // c64_cd_w - cartridge data write
|
| 81 | 81 | //-------------------------------------------------
|
| 82 | 82 | |
| 83 | | void c64_structured_basic_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 83 | void 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)
|
| 84 | 84 | {
|
| 85 | 85 | if (!io1)
|
| 86 | 86 | {
|
src/mess/machine/c64_structured_basic.h
| r15032 | r15033 | |
| 39 | 39 | virtual void device_reset();
|
| 40 | 40 | |
| 41 | 41 | // 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);
|
| 44 | 44 | |
| 45 | 45 | private:
|
| 46 | 46 | UINT8 m_bank;
|
src/mess/machine/c64_super_explode.c
| r15032 | r15033 | |
| 85 | 85 | // c64_cd_r - cartridge data read
|
| 86 | 86 | //-------------------------------------------------
|
| 87 | 87 | |
| 88 | | UINT8 c64_super_explode_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2)
|
| 88 | UINT8 c64_super_explode_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int ba, int roml, int romh, int io1, int io2)
|
| 89 | 89 | {
|
| 90 | 90 | UINT8 data = 0;
|
| 91 | 91 | |
| r15032 | r15033 | |
| 114 | 114 | // c64_cd_w - cartridge data write
|
| 115 | 115 | //-------------------------------------------------
|
| 116 | 116 | |
| 117 | | void c64_super_explode_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2)
|
| 117 | void 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)
|
| 118 | 118 | {
|
| 119 | 119 | if (!io1)
|
| 120 | 120 | {
|
src/mess/includes/c64.h
| r15032 | r15033 | |
| 77 | 77 | |
| 78 | 78 | void check_interrupts(); |
| 79 | 79 | 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); |
| 81 | 81 | |
| 82 | 82 | DECLARE_READ8_MEMBER( read ); |
| 83 | 83 | DECLARE_WRITE8_MEMBER( write ); |
src/mess/drivers/c64.c
| r15032 | r15033 | |
| 81 | 81 | // read_memory - |
| 82 | 82 | //------------------------------------------------- |
| 83 | 83 | |
| 84 | | UINT8 c64_state::read_memory(address_space &space, offs_t offset, int casram, int basic, int kernal, int charom, int io, int roml, int romh) |
| 84 | UINT8 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) |
| 85 | 85 | { |
| 86 | 86 | int io1 = 1; |
| 87 | 87 | int io2 = 1; |
| r15032 | r15033 | |
| 148 | 148 | } |
| 149 | 149 | } |
| 150 | 150 | |
| 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); |
| 152 | 152 | |
| 153 | 153 | return data; |
| 154 | 154 | } |
| r15032 | r15033 | |
| 164 | 164 | |
| 165 | 165 | bankswitch(offset, 0, 1, 0, 1, 0, &casram, &basic, &kernal, &charom, &grw, &io, &roml, &romh); |
| 166 | 166 | |
| 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); |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | |
| r15032 | r15033 | |
| 224 | 224 | } |
| 225 | 225 | } |
| 226 | 226 | |
| 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); |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | |
| r15032 | r15033 | |
| 390 | 390 | |
| 391 | 391 | bankswitch(0, offset, 1, 1, 0, 0, &casram, &basic, &kernal, &charom, &grw, &io, &roml, &romh); |
| 392 | 392 | |
| 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); |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | READ8_MEMBER( c64_state::vic_dma_read_color ) |