| Previous | 15994 Revisions | Next |
| r14587 Thursday 23rd February, 2012 at 14:40:48 UTC by Curt Coder |
|---|
| [C64] Added support for the Final Cartridge and Prophet-64 cartridges. [Curt Coder] |
| [hash] | c64_cart.xml |
| [src/mess] | mess.mak |
| [src/mess/machine] | c64_dqbb.c* c64_dqbb.h* c64_final.c* c64_final.h* c64_prophet64.c* c64_prophet64.h* c64_sfx_sound_expander.c* c64_sfx_sound_expander.h* cbmipt.c cbmipt.h |
| r14586 | r14587 | |
|---|---|---|
| 5774 | 5774 | <year>1986</year> |
| 5775 | 5775 | <publisher>Riska H&P</publisher> |
| 5776 | 5776 | <part name="cart" interface="c64_cart"> |
| 5777 | <feature name="slot" value="final | |
| 5777 | <feature name="slot" value="final | |
| 5778 | 5778 | <feature name="exrom" value="1" /> |
| 5779 | 5779 | <feature name="game" value="1" /> |
| 5780 | 5780 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5788 | 5788 | <year>198?</year> |
| 5789 | 5789 | <publisher>Riska H&P</publisher> |
| 5790 | 5790 | <part name="cart" interface="c64_cart"> |
| 5791 | <feature name="slot" value="final_ | |
| 5791 | <feature name="slot" value="final_p | |
| 5792 | 5792 | <feature name="exrom" value="1" /> |
| 5793 | 5793 | <feature name="game" value="1" /> |
| 5794 | 5794 | <dataarea name="rom" size="0x6000"> |
| r14586 | r14587 | |
| 5803 | 5803 | <year>1986</year> |
| 5804 | 5804 | <publisher>Riska H&P</publisher> |
| 5805 | 5805 | <part name="cart" interface="c64_cart"> |
| 5806 | <feature name="slot" value="final | |
| 5806 | <feature name="slot" value="final | |
| 5807 | 5807 | <feature name="exrom" value="1" /> |
| 5808 | 5808 | <feature name="game" value="1" /> |
| 5809 | 5809 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5817 | 5817 | <year>1986</year> |
| 5818 | 5818 | <publisher>Riska H&P</publisher> |
| 5819 | 5819 | <part name="cart" interface="c64_cart"> |
| 5820 | <feature name="slot" value="final | |
| 5820 | <feature name="slot" value="final | |
| 5821 | 5821 | <feature name="exrom" value="1" /> |
| 5822 | 5822 | <feature name="game" value="1" /> |
| 5823 | 5823 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5831 | 5831 | <year>1986</year> |
| 5832 | 5832 | <publisher>Riska H&P</publisher> |
| 5833 | 5833 | <part name="cart" interface="c64_cart"> |
| 5834 | <feature name="slot" value="final | |
| 5834 | <feature name="slot" value="final | |
| 5835 | 5835 | <feature name="exrom" value="1" /> |
| 5836 | 5836 | <feature name="game" value="1" /> |
| 5837 | 5837 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5845 | 5845 | <year>1986</year> |
| 5846 | 5846 | <publisher><unknown></publisher> |
| 5847 | 5847 | <part name="cart" interface="c64_cart"> |
| 5848 | <feature name="slot" value="final | |
| 5848 | <feature name="slot" value="final | |
| 5849 | 5849 | <feature name="exrom" value="1" /> |
| 5850 | 5850 | <feature name="game" value="1" /> |
| 5851 | 5851 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5859 | 5859 | <year>1986</year> |
| 5860 | 5860 | <publisher>Eurosystems</publisher> |
| 5861 | 5861 | <part name="cart" interface="c64_cart"> |
| 5862 | <feature name="slot" value="final | |
| 5862 | <feature name="slot" value="final | |
| 5863 | 5863 | <feature name="exrom" value="1" /> |
| 5864 | 5864 | <feature name="game" value="1" /> |
| 5865 | 5865 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5873 | 5873 | <year>1986</year> |
| 5874 | 5874 | <publisher>Riska H&P</publisher> |
| 5875 | 5875 | <part name="cart" interface="c64_cart"> |
| 5876 | <feature name="slot" value="final_ | |
| 5876 | <feature name="slot" value="final_plus | |
| 5877 | 5877 | <feature name="exrom" value="1" /> |
| 5878 | 5878 | <feature name="game" value="1" /> |
| 5879 | 5879 | <dataarea name="roml" size="0x8000"> |
| r14586 | r14587 | |
| 5887 | 5887 | <year>1986</year> |
| 5888 | 5888 | <publisher>Riska H&P</publisher> |
| 5889 | 5889 | <part name="cart" interface="c64_cart"> |
| 5890 | <feature name="slot" value="final_ | |
| 5890 | <feature name="slot" value="final_plus | |
| 5891 | 5891 | <feature name="exrom" value="1" /> |
| 5892 | 5892 | <feature name="game" value="1" /> |
| 5893 | 5893 | <dataarea name="roml" size="0x8000"> |
| r14586 | r14587 | |
| 5901 | 5901 | <year>1986</year> |
| 5902 | 5902 | <publisher>Riska H&P</publisher> |
| 5903 | 5903 | <part name="cart" interface="c64_cart"> |
| 5904 | <feature name="slot" value="final_ | |
| 5904 | <feature name="slot" value="final_plus | |
| 5905 | 5905 | <feature name="exrom" value="1" /> |
| 5906 | 5906 | <feature name="game" value="1" /> |
| 5907 | 5907 | <dataarea name="roml" size="0x8000"> |
| r14586 | r14587 | |
| 5915 | 5915 | <year>1987</year> |
| 5916 | 5916 | <publisher>Riska H&P</publisher> |
| 5917 | 5917 | <part name="cart" interface="c64_cart"> |
| 5918 | <feature name="slot" value="final | |
| 5918 | <feature name="slot" value="final | |
| 5919 | 5919 | <feature name="exrom" value="1" /> |
| 5920 | 5920 | <feature name="game" value="1" /> |
| 5921 | 5921 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5929 | 5929 | <year>1986</year> |
| 5930 | 5930 | <publisher>Micro-Luc</publisher> |
| 5931 | 5931 | <part name="cart" interface="c64_cart"> |
| 5932 | <feature name="slot" value="final | |
| 5932 | <feature name="slot" value="final | |
| 5933 | 5933 | <feature name="exrom" value="1" /> |
| 5934 | 5934 | <feature name="game" value="1" /> |
| 5935 | 5935 | <dataarea name="roml" size="0x4000"> |
| r14586 | r14587 | |
| 5943 | 5943 | <year>1988</year> |
| 5944 | 5944 | <publisher>Riska H&P</publisher> |
| 5945 | 5945 | <part name="cart" interface="c64_cart"> |
| 5946 | <feature name="slot" value="final | |
| 5946 | <feature name="slot" value="final | |
| 5947 | 5947 | <feature name="exrom" value="1" /> |
| 5948 | 5948 | <feature name="game" value="1" /> |
| 5949 | 5949 | <dataarea name="roml" size="0x10000"> |
| r14586 | r14587 | |
| 5957 | 5957 | <year>1988</year> |
| 5958 | 5958 | <publisher>Riska H&P</publisher> |
| 5959 | 5959 | <part name="cart" interface="c64_cart"> |
| 5960 | <feature name="slot" value="final | |
| 5960 | <feature name="slot" value="final | |
| 5961 | 5961 | <feature name="exrom" value="1" /> |
| 5962 | 5962 | <feature name="game" value="1" /> |
| 5963 | 5963 | <dataarea name="roml" size="0x10000"> |
| r14586 | r14587 | |
| 5971 | 5971 | <year>1987</year> |
| 5972 | 5972 | <publisher>Riska H&P</publisher> |
| 5973 | 5973 | <part name="cart" interface="c64_cart"> |
| 5974 | <feature name="slot" value="final | |
| 5974 | <feature name="slot" value="final | |
| 5975 | 5975 | <feature name="exrom" value="1" /> |
| 5976 | 5976 | <feature name="game" value="1" /> |
| 5977 | 5977 | <dataarea name="roml" size="0x10000"> |
| r14586 | r14587 | |
| 5985 | 5985 | <year>1987</year> |
| 5986 | 5986 | <publisher>Riska H&P</publisher> |
| 5987 | 5987 | <part name="cart" interface="c64_cart"> |
| 5988 | <feature name="slot" value="final | |
| 5988 | <feature name="slot" value="final | |
| 5989 | 5989 | <feature name="exrom" value="1" /> |
| 5990 | 5990 | <feature name="game" value="1" /> |
| 5991 | 5991 | <dataarea name="roml" size="0x10000"> |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Commodore SFX Sound Expander cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_sfx_sound_expander.h" | |
| 11 | ||
| 12 | #define YM3526_TAG "ic3" | |
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_SFX_SOUND_EXPANDER = &device_creator<c64_sfx_sound_expander_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | //------------------------------------------------- | |
| 22 | // ym3526_interface ym3526_config | |
| 23 | //------------------------------------------------- | |
| 24 | ||
| 25 | static void irqhandler(device_t *device, int linestate) | |
| 26 | { | |
| 27 | /* c64_sfx_sound_expander_cartridge_device *me = downcast<c64_sfx_sound_expander_cartridge_device*>(device->owner()); | |
| 28 | ||
| 29 | me->m_slot->irq_w(linestate);*/ | |
| 30 | } | |
| 31 | ||
| 32 | static const ym3526_interface ym3526_config = | |
| 33 | { | |
| 34 | irqhandler | |
| 35 | }; | |
| 36 | ||
| 37 | ||
| 38 | //------------------------------------------------- | |
| 39 | // C64_EXPANSION_INTERFACE( expansion_intf ) | |
| 40 | //------------------------------------------------- | |
| 41 | ||
| 42 | WRITE_LINE_MEMBER( c64_sfx_sound_expander_cartridge_device::irq_w ) | |
| 43 | { | |
| 44 | m_slot->irq_w(state); | |
| 45 | } | |
| 46 | ||
| 47 | WRITE_LINE_MEMBER( c64_sfx_sound_expander_cartridge_device::nmi_w ) | |
| 48 | { | |
| 49 | m_slot->nmi_w(state); | |
| 50 | } | |
| 51 | ||
| 52 | WRITE_LINE_MEMBER( c64_sfx_sound_expander_cartridge_device::dma_w ) | |
| 53 | { | |
| 54 | m_slot->dma_w(state); | |
| 55 | } | |
| 56 | ||
| 57 | WRITE_LINE_MEMBER( c64_sfx_sound_expander_cartridge_device::reset_w ) | |
| 58 | { | |
| 59 | m_slot->reset_w(state); | |
| 60 | } | |
| 61 | ||
| 62 | static C64_EXPANSION_INTERFACE( expansion_intf ) | |
| 63 | { | |
| 64 | DEVCB_LINE_MEMBER(c64_sfx_sound_expander_cartridge_device, irq_w), | |
| 65 | DEVCB_LINE_MEMBER(c64_sfx_sound_expander_cartridge_device, nmi_w), | |
| 66 | DEVCB_LINE_MEMBER(c64_sfx_sound_expander_cartridge_device, dma_w), | |
| 67 | DEVCB_LINE_MEMBER(c64_sfx_sound_expander_cartridge_device, reset_w) | |
| 68 | }; | |
| 69 | ||
| 70 | ||
| 71 | //------------------------------------------------- | |
| 72 | // MACHINE_CONFIG_FRAGMENT( c64_sfx_sound_expander ) | |
| 73 | //------------------------------------------------- | |
| 74 | ||
| 75 | static MACHINE_CONFIG_FRAGMENT( c64_sfx_sound_expander ) | |
| 76 | MCFG_SPEAKER_STANDARD_MONO("mono") | |
| 77 | MCFG_SOUND_ADD(YM3526_TAG, YM3526, XTAL_3_579545MHz) | |
| 78 | MCFG_SOUND_CONFIG(ym3526_config) | |
| 79 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.70) | |
| 80 | ||
| 81 | MCFG_C64_EXPANSION_SLOT_ADD(C64_EXPANSION_SLOT_TAG, expansion_intf, c64_expansion_cards, NULL, NULL) | |
| 82 | MACHINE_CONFIG_END | |
| 83 | ||
| 84 | ||
| 85 | //------------------------------------------------- | |
| 86 | // machine_config_additions - device-specific | |
| 87 | // machine configurations | |
| 88 | //------------------------------------------------- | |
| 89 | ||
| 90 | machine_config_constructor c64_sfx_sound_expander_cartridge_device::device_mconfig_additions() const | |
| 91 | { | |
| 92 | return MACHINE_CONFIG_NAME( c64_sfx_sound_expander ); | |
| 93 | } | |
| 94 | ||
| 95 | ||
| 96 | //------------------------------------------------- | |
| 97 | // INPUT_PORTS( c64_sfx_sound_expander ) | |
| 98 | //------------------------------------------------- | |
| 99 | ||
| 100 | static INPUT_PORTS_START( c64_sfx_sound_expander ) | |
| 101 | PORT_START("KB0") | |
| 102 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 103 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 104 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 105 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 106 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 107 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 108 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 109 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 110 | ||
| 111 | PORT_START("KB1") | |
| 112 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 113 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 114 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 115 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 116 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 117 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 118 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 119 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 120 | ||
| 121 | PORT_START("KB2") | |
| 122 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 123 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 124 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 125 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 126 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 127 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 128 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 129 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 130 | ||
| 131 | PORT_START("KB3") | |
| 132 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 133 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 134 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 135 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 136 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 137 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 138 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 139 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 140 | ||
| 141 | PORT_START("KB4") | |
| 142 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 143 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 144 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 145 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 146 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 147 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 148 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 149 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 150 | ||
| 151 | PORT_START("KB5") | |
| 152 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 153 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 154 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 155 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 156 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 157 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 158 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 159 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 160 | ||
| 161 | PORT_START("KB6") | |
| 162 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 163 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 164 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 165 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 166 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 167 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 168 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 169 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 170 | ||
| 171 | PORT_START("KB7") | |
| 172 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 173 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 174 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 175 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 176 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 177 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 178 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 179 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) | |
| 180 | INPUT_PORTS_END | |
| 181 | ||
| 182 | ||
| 183 | //------------------------------------------------- | |
| 184 | // input_ports - device-specific input ports | |
| 185 | //------------------------------------------------- | |
| 186 | ||
| 187 | ioport_constructor c64_sfx_sound_expander_cartridge_device::device_input_ports() const | |
| 188 | { | |
| 189 | return INPUT_PORTS_NAME( c64_sfx_sound_expander ); | |
| 190 | } | |
| 191 | ||
| 192 | ||
| 193 | ||
| 194 | //************************************************************************** | |
| 195 | // LIVE DEVICE | |
| 196 | //************************************************************************** | |
| 197 | ||
| 198 | //------------------------------------------------- | |
| 199 | // c64_sfx_sound_expander_cartridge_device - constructor | |
| 200 | //------------------------------------------------- | |
| 201 | ||
| 202 | c64_sfx_sound_expander_cartridge_device::c64_sfx_sound_expander_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 203 | device_t(mconfig, C64_SFX_SOUND_EXPANDER, "C64 Magic Formel cartridge", tag, owner, clock), | |
| 204 | device_c64_expansion_card_interface(mconfig, *this), | |
| 205 | m_opl(*this, YM3526_TAG), | |
| 206 | m_exp(*this, C64_EXPANSION_SLOT_TAG) | |
| 207 | { | |
| 208 | } | |
| 209 | ||
| 210 | ||
| 211 | //------------------------------------------------- | |
| 212 | // device_start - device-specific startup | |
| 213 | //------------------------------------------------- | |
| 214 | ||
| 215 | void c64_sfx_sound_expander_cartridge_device::device_start() | |
| 216 | { | |
| 217 | } | |
| 218 | ||
| 219 | ||
| 220 | //------------------------------------------------- | |
| 221 | // device_reset - device-specific reset | |
| 222 | //------------------------------------------------- | |
| 223 | ||
| 224 | void c64_sfx_sound_expander_cartridge_device::device_reset() | |
| 225 | { | |
| 226 | } | |
| 227 | ||
| 228 | ||
| 229 | //------------------------------------------------- | |
| 230 | // c64_cd_r - cartridge data read | |
| 231 | //------------------------------------------------- | |
| 232 | ||
| 233 | UINT8 c64_sfx_sound_expander_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 234 | { | |
| 235 | UINT8 data = m_exp->cd_r(space, offset, roml, romh, io1, io2); | |
| 236 | ||
| 237 | if (!io2) | |
| 238 | { | |
| 239 | if (BIT(offset, 3)) | |
| 240 | { | |
| 241 | switch (offset & 0x07) | |
| 242 | { | |
| 243 | case 0: data |= input_port_read(*this, "KB0"); break; | |
| 244 | case 1: data |= input_port_read(*this, "KB1"); break; | |
| 245 | case 2: data |= input_port_read(*this, "KB2"); break; | |
| 246 | case 3: data |= input_port_read(*this, "KB3"); break; | |
| 247 | case 4: data |= input_port_read(*this, "KB4"); break; | |
| 248 | case 5: data |= input_port_read(*this, "KB5"); break; | |
| 249 | case 6: data |= input_port_read(*this, "KB6"); break; | |
| 250 | case 7: data |= input_port_read(*this, "KB7"); break; | |
| 251 | } | |
| 252 | } | |
| 253 | else if (BIT(offset, 5)) | |
| 254 | { | |
| 255 | data |= ym3526_r(m_opl, BIT(offset, 4)); | |
| 256 | } | |
| 257 | } | |
| 258 | ||
| 259 | return data; | |
| 260 | } | |
| 261 | ||
| 262 | ||
| 263 | //------------------------------------------------- | |
| 264 | // c64_cd_w - cartridge data write | |
| 265 | //------------------------------------------------- | |
| 266 | ||
| 267 | 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) | |
| 268 | { | |
| 269 | if (!io2 && BIT(offset, 5)) | |
| 270 | { | |
| 271 | ym3526_w(m_opl, BIT(offset, 4), data); | |
| 272 | } | |
| 273 | ||
| 274 | m_exp->cd_w(space, offset, data, roml, romh, io1, io2); | |
| 275 | } | |
| 276 | ||
| 277 | ||
| 278 | //------------------------------------------------- | |
| 279 | // c64_game_r - GAME read | |
| 280 | //------------------------------------------------- | |
| 281 | ||
| 282 | int c64_sfx_sound_expander_cartridge_device::c64_game_r(offs_t offset, int ba, int rw, int hiram) | |
| 283 | { | |
| 284 | return m_exp->game_r(offset, ba, rw, hiram); | |
| 285 | } | |
| 286 | ||
| 287 | ||
| 288 | //------------------------------------------------- | |
| 289 | // c64_exrom_r - EXROM read | |
| 290 | //------------------------------------------------- | |
| 291 | ||
| 292 | int c64_sfx_sound_expander_cartridge_device::c64_exrom_r() | |
| 293 | { | |
| 294 | return m_exp->exrom_r(); | |
| 295 | } |
| r14586 | r14587 | |
|---|---|---|
| 1142 | 1142 | SLOT_INTERFACE_END |
| 1143 | 1143 | |
| 1144 | 1144 | SLOT_INTERFACE_START( c64_expansion_cards ) |
| 1145 | SLOT_INTERFACE("dqbb", C64_DQBB) | |
| 1146 | SLOT_INTERFACE("easyflash", C64_EASYFLASH) | |
| 1145 | 1147 | SLOT_INTERFACE("georam", C64_GEORAM) |
| 1148 | SLOT_INTERFACE("sfxse", C64_SFX_SOUND_EXPANDER) | |
| 1146 | 1149 | SLOT_INTERFACE("xl80", C64_XL80) |
| 1147 | SLOT_INTERFACE("easyflash", C64_EASYFLASH) | |
| 1148 | 1150 | |
| 1149 | 1151 | // the following need ROMs from the software list |
| 1150 | 1152 | SLOT_INTERFACE("ieee488", C64_IEEE488) |
| r14586 | r14587 | |
| 1157 | 1159 | SLOT_INTERFACE("easycalcres", C64_EASY_CALC_RESULT) |
| 1158 | 1160 | SLOT_INTERFACE("epyxfastload", C64_EPYX_FAST_LOAD) |
| 1159 | 1161 | SLOT_INTERFACE("exos", C64_EXOS) |
| 1162 | SLOT_INTERFACE("final", C64_FINAL) | |
| 1160 | 1163 | SLOT_INTERFACE("fun_play", C64_FUN_PLAY) |
| 1161 | 1164 | SLOT_INTERFACE("mach5", C64_MACH5) |
| 1162 | 1165 | SLOT_INTERFACE("magic_desk", C64_MAGIC_DESK) |
| r14586 | r14587 | |
| 1165 | 1168 | SLOT_INTERFACE("multiscreen", C64_MULTISCREEN) |
| 1166 | 1169 | SLOT_INTERFACE("ocean", C64_OCEAN) |
| 1167 | 1170 | SLOT_INTERFACE("pagefox", C64_PAGEFOX) |
| 1171 | SLOT_INTERFACE("prophet64", C64_PROPHET64) | |
| 1168 | 1172 | SLOT_INTERFACE("rex", C64_REX) |
| 1169 | 1173 | SLOT_INTERFACE("rex_ep256", C64_REX_EP256) |
| 1170 | 1174 | SLOT_INTERFACE("ross", C64_ROSS) |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Commodore SFX Sound Expander cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __SFX_SOUND_EXPANDER__ | |
| 13 | #define __SFX_SOUND_EXPANDER__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | #include "machine/cbmipt.h" | |
| 20 | #include "sound/3526intf.h" | |
| 21 | ||
| 22 | ||
| 23 | ||
| 24 | //************************************************************************** | |
| 25 | // TYPE DEFINITIONS | |
| 26 | //************************************************************************** | |
| 27 | ||
| 28 | // ======================> c64_sfx_sound_expander_cartridge_device | |
| 29 | ||
| 30 | class c64_sfx_sound_expander_cartridge_device : public device_t, | |
| 31 | public device_c64_expansion_card_interface | |
| 32 | { | |
| 33 | public: | |
| 34 | // construction/destruction | |
| 35 | c64_sfx_sound_expander_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 36 | ||
| 37 | // optional information overrides | |
| 38 | virtual machine_config_constructor device_mconfig_additions() const; | |
| 39 | virtual ioport_constructor device_input_ports() const; | |
| 40 | ||
| 41 | // not really public | |
| 42 | DECLARE_WRITE_LINE_MEMBER( irq_w ); | |
| 43 | DECLARE_WRITE_LINE_MEMBER( nmi_w ); | |
| 44 | DECLARE_WRITE_LINE_MEMBER( dma_w ); | |
| 45 | DECLARE_WRITE_LINE_MEMBER( reset_w ); | |
| 46 | ||
| 47 | protected: | |
| 48 | // device-level overrides | |
| 49 | virtual void device_start(); | |
| 50 | virtual void device_reset(); | |
| 51 | ||
| 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); | |
| 55 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram); | |
| 56 | virtual int c64_exrom_r(); | |
| 57 | ||
| 58 | private: | |
| 59 | required_device<device_t> m_opl; | |
| 60 | required_device<c64_expansion_slot_device> m_exp; | |
| 61 | }; | |
| 62 | ||
| 63 | ||
| 64 | // device type definition | |
| 65 | extern const device_type C64_SFX_SOUND_EXPANDER; | |
| 66 | ||
| 67 | ||
| 68 | #endif |
| r14586 | r14587 | |
|---|---|---|
| 8 | 8 | #include "machine/c64_dela_ep64.h" |
| 9 | 9 | #include "machine/c64_dela_ep7x8.h" |
| 10 | 10 | #include "machine/c64_dinamic.h" |
| 11 | #include "machine/c64_dqbb.h" | |
| 11 | 12 | #include "machine/c64_easy_calc_result.h" |
| 12 | 13 | #include "machine/c64_easyflash.h" |
| 13 | 14 | #include "machine/c64_epyx_fast_load.h" |
| 14 | 15 | #include "machine/c64_exos.h" |
| 16 | #include "machine/c64_final.h" | |
| 15 | 17 | #include "machine/c64_fun_play.h" |
| 16 | 18 | #include "machine/c64_georam.h" |
| 17 | 19 | #include "machine/c64_ieee488.h" |
| r14586 | r14587 | |
| 22 | 24 | #include "machine/c64_multiscreen.h" |
| 23 | 25 | #include "machine/c64_ocean.h" |
| 24 | 26 | #include "machine/c64_pagefox.h" |
| 27 | #include "machine/c64_prophet64.h" | |
| 25 | 28 | #include "machine/c64_rex.h" |
| 26 | 29 | #include "machine/c64_rex_ep256.h" |
| 27 | 30 | #include "machine/c64_ross.h" |
| 31 | #include "machine/c64_sfx_sound_expander.h" | |
| 28 | 32 | #include "machine/c64_silverrock.h" |
| 29 | 33 | #include "machine/c64_simons_basic.h" |
| 30 | 34 | #include "machine/c64_stardos.h" |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Final Cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_final.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_FINAL = &device_creator<c64_final_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_final_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_final_cartridge_device::c64_final_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_FINAL, "C64 Final cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_final_cartridge_device::device_start() | |
| 42 | { | |
| 43 | } | |
| 44 | ||
| 45 | ||
| 46 | //------------------------------------------------- | |
| 47 | // device_reset - device-specific reset | |
| 48 | //------------------------------------------------- | |
| 49 | ||
| 50 | void c64_final_cartridge_device::device_reset() | |
| 51 | { | |
| 52 | m_exrom = 0; | |
| 53 | m_game = 0; | |
| 54 | } | |
| 55 | ||
| 56 | ||
| 57 | //------------------------------------------------- | |
| 58 | // c64_cd_r - cartridge data read | |
| 59 | //------------------------------------------------- | |
| 60 | ||
| 61 | UINT8 c64_final_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 62 | { | |
| 63 | UINT8 data = 0; | |
| 64 | ||
| 65 | if (!roml || !romh || !io1 || !io2) | |
| 66 | { | |
| 67 | data = m_roml[offset & 0x3fff]; | |
| 68 | } | |
| 69 | ||
| 70 | if (!io1) | |
| 71 | { | |
| 72 | m_game = 1; | |
| 73 | m_exrom = 1; | |
| 74 | } | |
| 75 | else if (!io2) | |
| 76 | { | |
| 77 | m_exrom = 0; | |
| 78 | m_game = 0; | |
| 79 | } | |
| 80 | ||
| 81 | return data; | |
| 82 | } | |
| 83 | ||
| 84 | ||
| 85 | //------------------------------------------------- | |
| 86 | // c64_cd_w - cartridge data write | |
| 87 | //------------------------------------------------- | |
| 88 | ||
| 89 | void c64_final_cartridge_device::c64_cd_w(address_space &space, offs_t offset, UINT8 data, int roml, int romh, int io1, int io2) | |
| 90 | { | |
| 91 | if (!io1) | |
| 92 | { | |
| 93 | m_game = 1; | |
| 94 | m_exrom = 1; | |
| 95 | } | |
| 96 | else if (!io2) | |
| 97 | { | |
| 98 | m_exrom = 0; | |
| 99 | m_game = 0; | |
| 100 | } | |
| 101 | } |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Final Cartridge emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __FINAL__ | |
| 13 | #define __FINAL__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_final_cartridge_device | |
| 27 | ||
| 28 | class c64_final_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_final_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 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); | |
| 43 | }; | |
| 44 | ||
| 45 | ||
| 46 | // device type definition | |
| 47 | extern const device_type C64_FINAL; | |
| 48 | ||
| 49 | ||
| 50 | #endif |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Prophet-64 emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #include "c64_prophet64.h" | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | //************************************************************************** | |
| 15 | // DEVICE DEFINITIONS | |
| 16 | //************************************************************************** | |
| 17 | ||
| 18 | const device_type C64_PROPHET64 = &device_creator<c64_prophet64_cartridge_device>; | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // LIVE DEVICE | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | //------------------------------------------------- | |
| 27 | // c64_prophet64_cartridge_device - constructor | |
| 28 | //------------------------------------------------- | |
| 29 | ||
| 30 | c64_prophet64_cartridge_device::c64_prophet64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | device_t(mconfig, C64_PROPHET64, "C64 Prophet-64 cartridge", tag, owner, clock), | |
| 32 | device_c64_expansion_card_interface(mconfig, *this) | |
| 33 | { | |
| 34 | } | |
| 35 | ||
| 36 | ||
| 37 | //------------------------------------------------- | |
| 38 | // device_start - device-specific startup | |
| 39 | //------------------------------------------------- | |
| 40 | ||
| 41 | void c64_prophet64_cartridge_device::device_start() | |
| 42 | { | |
| 43 | // state saving | |
| 44 | save_item(NAME(m_bank)); | |
| 45 | } | |
| 46 | ||
| 47 | ||
| 48 | //------------------------------------------------- | |
| 49 | // device_reset - device-specific reset | |
| 50 | //------------------------------------------------- | |
| 51 | ||
| 52 | void c64_prophet64_cartridge_device::device_reset() | |
| 53 | { | |
| 54 | m_exrom = 0; | |
| 55 | } | |
| 56 | ||
| 57 | ||
| 58 | //------------------------------------------------- | |
| 59 | // c64_cd_r - cartridge data read | |
| 60 | //------------------------------------------------- | |
| 61 | ||
| 62 | UINT8 c64_prophet64_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 63 | { | |
| 64 | UINT8 data = 0; | |
| 65 | ||
| 66 | if (!roml) | |
| 67 | { | |
| 68 | offs_t addr = (m_bank << 13) | (offset & 0x1fff); | |
| 69 | data = m_roml[addr]; | |
| 70 | } | |
| 71 | ||
| 72 | return data; | |
| 73 | } | |
| 74 | ||
| 75 | ||
| 76 | //------------------------------------------------- | |
| 77 | // c64_cd_w - cartridge data write | |
| 78 | //------------------------------------------------- | |
| 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) | |
| 81 | { | |
| 82 | if (!io2) | |
| 83 | { | |
| 84 | m_bank = data & 0x1f; | |
| 85 | m_exrom = BIT(data, 5); | |
| 86 | } | |
| 87 | } |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Prophet-64 emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __PROPHET64__ | |
| 13 | #define __PROPHET64__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | ||
| 20 | ||
| 21 | ||
| 22 | //************************************************************************** | |
| 23 | // TYPE DEFINITIONS | |
| 24 | //************************************************************************** | |
| 25 | ||
| 26 | // ======================> c64_prophet64_cartridge_device | |
| 27 | ||
| 28 | class c64_prophet64_cartridge_device : public device_t, | |
| 29 | public device_c64_expansion_card_interface | |
| 30 | { | |
| 31 | public: | |
| 32 | // construction/destruction | |
| 33 | c64_prophet64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | ||
| 35 | protected: | |
| 36 | // device-level overrides | |
| 37 | virtual void device_start(); | |
| 38 | virtual void device_reset(); | |
| 39 | ||
| 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); | |
| 43 | ||
| 44 | private: | |
| 45 | UINT8 m_bank; | |
| 46 | }; | |
| 47 | ||
| 48 | ||
| 49 | // device type definition | |
| 50 | extern const device_type C64_PROPHET64; | |
| 51 | ||
| 52 | ||
| 53 | #endif |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Brown Boxes Double Quick Brown Box emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | /* | |
| 11 | ||
| 12 | TODO: | |
| 13 | ||
| 14 | - NVRAM | |
| 15 | - 64/128 mode switch | |
| 16 | - dump of the initial NVRAM contents | |
| 17 | ||
| 18 | */ | |
| 19 | ||
| 20 | #include "c64_dqbb.h" | |
| 21 | ||
| 22 | ||
| 23 | ||
| 24 | //************************************************************************** | |
| 25 | // DEVICE DEFINITIONS | |
| 26 | //************************************************************************** | |
| 27 | ||
| 28 | const device_type C64_DQBB = &device_creator<c64_dqbb_cartridge_device>; | |
| 29 | ||
| 30 | ||
| 31 | ||
| 32 | //************************************************************************** | |
| 33 | // LIVE DEVICE | |
| 34 | //************************************************************************** | |
| 35 | ||
| 36 | //------------------------------------------------- | |
| 37 | // c64_dqbb_cartridge_device - constructor | |
| 38 | //------------------------------------------------- | |
| 39 | ||
| 40 | c64_dqbb_cartridge_device::c64_dqbb_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 41 | device_t(mconfig, C64_DQBB, "C64 Double Quick Brown Box cartridge", tag, owner, clock), | |
| 42 | device_c64_expansion_card_interface(mconfig, *this) | |
| 43 | { | |
| 44 | } | |
| 45 | ||
| 46 | ||
| 47 | //------------------------------------------------- | |
| 48 | // device_start - device-specific startup | |
| 49 | //------------------------------------------------- | |
| 50 | ||
| 51 | void c64_dqbb_cartridge_device::device_start() | |
| 52 | { | |
| 53 | // allocate memory | |
| 54 | m_ram = auto_alloc_array(machine(), UINT8, 0x4000); | |
| 55 | ||
| 56 | // state saving | |
| 57 | save_item(NAME(m_cs)); | |
| 58 | save_item(NAME(m_we)); | |
| 59 | } | |
| 60 | ||
| 61 | ||
| 62 | //------------------------------------------------- | |
| 63 | // device_reset - device-specific reset | |
| 64 | //------------------------------------------------- | |
| 65 | ||
| 66 | void c64_dqbb_cartridge_device::device_reset() | |
| 67 | { | |
| 68 | m_exrom = 0; // TODO 1 in 128 mode | |
| 69 | m_game = 1; | |
| 70 | m_cs = 0; | |
| 71 | m_we = 0; | |
| 72 | } | |
| 73 | ||
| 74 | ||
| 75 | //------------------------------------------------- | |
| 76 | // c64_cd_r - cartridge data read | |
| 77 | //------------------------------------------------- | |
| 78 | ||
| 79 | UINT8 c64_dqbb_cartridge_device::c64_cd_r(address_space &space, offs_t offset, int roml, int romh, int io1, int io2) | |
| 80 | { | |
| 81 | UINT8 data = 0; | |
| 82 | ||
| 83 | if (!m_cs && (!roml || !romh)) | |
| 84 | { | |
| 85 | data = m_ram[offset & 0x3fff]; | |
| 86 | } | |
| 87 | ||
| 88 | return data; | |
| 89 | } | |
| 90 | ||
| 91 | ||
| 92 | //------------------------------------------------- | |
| 93 | // c64_cd_w - cartridge data write | |
| 94 | //------------------------------------------------- | |
| 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) | |
| 97 | { | |
| 98 | if (!m_cs && m_we && (offset >= 0x8000 && offset < 0xc000)) | |
| 99 | { | |
| 100 | m_ram[offset & 0x3fff] = data; | |
| 101 | } | |
| 102 | else if (!io1) | |
| 103 | { | |
| 104 | /* | |
| 105 | ||
| 106 | bit description | |
| 107 | ||
| 108 | 0 | |
| 109 | 1 | |
| 110 | 2 GAME | |
| 111 | 3 | |
| 112 | 4 WE | |
| 113 | 5 | |
| 114 | 6 EXROM | |
| 115 | 7 _CS | |
| 116 | ||
| 117 | */ | |
| 118 | ||
| 119 | m_exrom = !BIT(data, 6); | |
| 120 | m_game = !BIT(data, 2); | |
| 121 | m_we = BIT(data, 4); | |
| 122 | m_cs = BIT(data, 7); | |
| 123 | } | |
| 124 | } |
| r0 | r14587 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 2 | ||
| 3 | Brown Boxes Double Quick Brown Box emulation | |
| 4 | ||
| 5 | Copyright MESS Team. | |
| 6 | Visit http://mamedev.org for licensing and usage restrictions. | |
| 7 | ||
| 8 | **********************************************************************/ | |
| 9 | ||
| 10 | #pragma once | |
| 11 | ||
| 12 | #ifndef __DQBB__ | |
| 13 | #define __DQBB__ | |
| 14 | ||
| 15 | #define ADDRESS_MAP_MODERN | |
| 16 | ||
| 17 | #include "emu.h" | |
| 18 | #include "machine/c64exp.h" | |
| 19 | #include "machine/nvram.h" | |
| 20 | ||
| 21 | ||
| 22 | ||
| 23 | //************************************************************************** | |
| 24 | // TYPE DEFINITIONS | |
| 25 | //************************************************************************** | |
| 26 | ||
| 27 | // ======================> c64_dqbb_cartridge_device | |
| 28 | ||
| 29 | class c64_dqbb_cartridge_device : public device_t, | |
| 30 | public device_c64_expansion_card_interface | |
| 31 | { | |
| 32 | public: | |
| 33 | // construction/destruction | |
| 34 | c64_dqbb_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); | |
| 35 | ||
| 36 | protected: | |
| 37 | // device-level overrides | |
| 38 | virtual void device_start(); | |
| 39 | virtual void device_reset(); | |
| 40 | ||
| 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); | |
| 44 | ||
| 45 | private: | |
| 46 | int m_cs; | |
| 47 | int m_we; | |
| 48 | }; | |
| 49 | ||
| 50 | ||
| 51 | // device type definition | |
| 52 | extern const device_type C64_DQBB; | |
| 53 | ||
| 54 | ||
| 55 | #endif |
| r14586 | r14587 | |
|---|---|---|
| 132 | 132 | SOUNDS += YM2612 |
| 133 | 133 | #SOUNDS += YM3438 |
| 134 | 134 | SOUNDS += YM3812 |
| 135 | ||
| 135 | ||
| 136 | 136 | #SOUNDS += Y8950 |
| 137 | 137 | #SOUNDS += YMF262 |
| 138 | 138 | #SOUNDS += YMF271 |
| r14586 | r14587 | |
| 771 | 771 | $(MESS_MACHINE)/c64_dela_ep64.o \ |
| 772 | 772 | $(MESS_MACHINE)/c64_dela_ep7x8.o \ |
| 773 | 773 | $(MESS_MACHINE)/c64_dinamic.o \ |
| 774 | $(MESS_MACHINE)/c64_dqbb.o \ | |
| 774 | 775 | $(MESS_MACHINE)/c64_easy_calc_result.o \ |
| 775 | 776 | $(MESS_MACHINE)/c64_easyflash.o \ |
| 776 | 777 | $(MESS_MACHINE)/c64_epyx_fast_load.o \ |
| 777 | 778 | $(MESS_MACHINE)/c64_exos.o \ |
| 779 | $(MESS_MACHINE)/c64_final.o \ | |
| 778 | 780 | $(MESS_MACHINE)/c64_fun_play.o \ |
| 779 | 781 | $(MESS_MACHINE)/c64_georam.o \ |
| 780 | 782 | $(MESS_MACHINE)/c64_ieee488.o \ |
| r14586 | r14587 | |
| 785 | 787 | $(MESS_MACHINE)/c64_multiscreen.o \ |
| 786 | 788 | $(MESS_MACHINE)/c64_ocean.o \ |
| 787 | 789 | $(MESS_MACHINE)/c64_pagefox.o \ |
| 790 | $(MESS_MACHINE)/c64_prophet64.o \ | |
| 788 | 791 | $(MESS_MACHINE)/c64_rex.o \ |
| 789 | 792 | $(MESS_MACHINE)/c64_rex_ep256.o \ |
| 790 | 793 | $(MESS_MACHINE)/c64_ross.o \ |
| 794 | $(MESS_MACHINE)/c64_sfx_sound_expander.o \ | |
| 791 | 795 | $(MESS_MACHINE)/c64_silverrock.o \ |
| 792 | 796 | $(MESS_MACHINE)/c64_simons_basic.o \ |
| 793 | 797 | $(MESS_MACHINE)/c64_stardos.o \ |
| Previous | 15994 Revisions | Next |