trunk/src/emu/bus/msx_cart/yamaha.c
| r30963 | r30964 | |
| 1 | /************************************************************************** |
| 2 | |
| 3 | Yamaha SFG01/SFG05 emulation |
| 4 | |
| 5 | TODO: |
| 6 | - Use a real YM2164 implementation for SFG05 |
| 7 | - Implement midi functionality (YM2148) |
| 8 | |
| 9 | **************************************************************************/ |
| 10 | |
| 1 | 11 | #include "emu.h" |
| 2 | 12 | #include "yamaha.h" |
| 3 | 13 | |
| r30963 | r30964 | |
| 3 | 13 | |
| 4 | 14 | const device_type MSX_CART_SFG01 = &device_creator<msx_cart_sfg01>; |
| 15 | const device_type MSX_CART_SFG05 = &device_creator<msx_cart_sfg05>; |
| 5 | 16 | |
| 6 | 17 | |
| 7 | | msx_cart_sfg01::msx_cart_sfg01(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 8 | | : device_t(mconfig, MSX_CART_SFG01, "MSX Cartridge - SFG01", tag, owner, clock, "msx_cart_sfg01", __FILE__) |
| 18 | msx_cart_sfg::msx_cart_sfg(const machine_config &mconfig, const device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname) |
| 19 | : device_t(mconfig, type, name, tag, owner, clock, shortname, __FILE__) |
| 9 | 20 | , msx_cart_interface(mconfig, *this) |
| 10 | | , m_region_sfg01(*this, "sfg01") |
| 21 | , m_region_sfg(*this, "sfg") |
| 11 | 22 | , m_ym2151(*this, "ym2151") |
| 12 | 23 | , m_kbdc(*this, "kbdc") |
| 13 | 24 | , m_ym2151_irq_state(CLEAR_LINE) |
| 14 | 25 | , m_ym2148_irq_state(CLEAR_LINE) |
| 26 | , m_rom_mask(0) |
| 27 | , m_ym2148_irq_vector(0xff) |
| 28 | , m_ym2148_external_irq_vector(0xff) |
| 15 | 29 | { |
| 16 | 30 | } |
| 17 | 31 | |
| 18 | 32 | |
| 19 | | static MACHINE_CONFIG_FRAGMENT( msx_sfg01 ) |
| 33 | msx_cart_sfg01::msx_cart_sfg01(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 34 | : msx_cart_sfg(mconfig, MSX_CART_SFG01, "MSX Cartridge - SFG01", tag, owner, clock, "msx_cart_sfg01") |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | |
| 39 | msx_cart_sfg05::msx_cart_sfg05(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 40 | : msx_cart_sfg(mconfig, MSX_CART_SFG05, "MSX Cartridge - SFG05", tag, owner, clock, "msx_cart_sfg05") |
| 41 | { |
| 42 | } |
| 43 | |
| 44 | |
| 45 | static MACHINE_CONFIG_FRAGMENT( msx_sfg ) |
| 20 | 46 | // YM2151 (OPM) |
| 21 | 47 | // YM3012 (DAC) |
| 22 | 48 | // YM2148 (MKS) |
| 23 | 49 | |
| 24 | 50 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 25 | | MCFG_YM2151_ADD("ym2151", XTAL_4MHz) |
| 26 | | MCFG_YM2151_IRQ_HANDLER(WRITELINE(msx_cart_sfg01, ym2151_irq_w)) |
| 27 | | // MCFG_YM2151_PORT_WRITE_HANDLER(WRITE8(msx_cart_sfg01, port_w)) |
| 28 | | MCFG_SOUND_ROUTE(0, "lspeaker", 0.50) |
| 29 | | MCFG_SOUND_ROUTE(1, "rspeaker", 0.50) |
| 51 | MCFG_YM2151_ADD("ym2151", XTAL_4MHz) // The SFG01 uses a YM2151, the SFG05 uses a YM2164 |
| 52 | MCFG_YM2151_IRQ_HANDLER(WRITELINE(msx_cart_sfg, ym2151_irq_w)) |
| 53 | // MCFG_YM2151_PORT_WRITE_HANDLER(WRITE8(msx_cart_sfg, port_w)) |
| 54 | MCFG_SOUND_ROUTE(0, "lspeaker", 0.80) |
| 55 | MCFG_SOUND_ROUTE(1, "rspeaker", 0.80) |
| 30 | 56 | |
| 31 | 57 | MCFG_MSX_AUDIO_KBDC_PORT_ADD("kbdc", msx_audio_keyboards, NULL) |
| 32 | 58 | MACHINE_CONFIG_END |
| 33 | 59 | |
| 34 | 60 | |
| 35 | | machine_config_constructor msx_cart_sfg01::device_mconfig_additions() const |
| 61 | machine_config_constructor msx_cart_sfg::device_mconfig_additions() const |
| 36 | 62 | { |
| 37 | | return MACHINE_CONFIG_NAME( msx_sfg01 ); |
| 63 | return MACHINE_CONFIG_NAME( msx_sfg ); |
| 38 | 64 | } |
| 39 | 65 | |
| 40 | 66 | |
| 41 | 67 | ROM_START( msx_sfg01 ) |
| 42 | | ROM_REGION(0x4000, "sfg01", 0) |
| 68 | ROM_REGION(0x4000, "sfg", 0) |
| 43 | 69 | ROM_LOAD("sfg01.rom", 0x0, 0x4000, CRC(0995fb36) SHA1(434651305f92aa770a89e40b81125fb22d91603d)) |
| 44 | 70 | ROM_END |
| r30963 | r30964 | |
| 51 | 77 | } |
| 52 | 78 | |
| 53 | 79 | |
| 54 | | void msx_cart_sfg01::device_start() |
| 80 | ROM_START( msx_sfg05 ) |
| 81 | ROM_REGION(0x8000, "sfg", 0) |
| 82 | ROM_LOAD("sfg05.rom", 0x0, 0x8000, CRC(2425c279) SHA1(d956167e234f60ad916120437120f86fc8c3c321)) |
| 83 | ROM_END |
| 84 | |
| 85 | |
| 86 | const rom_entry *msx_cart_sfg05::device_rom_region() const |
| 55 | 87 | { |
| 88 | return ROM_NAME( msx_sfg05 ); |
| 56 | 89 | } |
| 57 | 90 | |
| 58 | 91 | |
| 59 | | void msx_cart_sfg01::initialize_cartridge() |
| 92 | void msx_cart_sfg::device_start() |
| 60 | 93 | { |
| 94 | // Set rom mask |
| 95 | m_rom_mask = m_region_sfg->bytes() - 1; |
| 96 | |
| 97 | // This should probably moved up in the bus/slot hierarchy for the msx driver |
| 98 | cpu_device *maincpu = machine().device<cpu_device>("maincpu"); |
| 99 | device_execute_interface::static_set_irq_acknowledge_callback(*maincpu, device_irq_acknowledge_delegate(FUNC(msx_cart_sfg::irq_callback),this)); |
| 61 | 100 | } |
| 62 | 101 | |
| 63 | 102 | |
| 64 | | WRITE_LINE_MEMBER(msx_cart_sfg01::ym2151_irq_w) |
| 103 | IRQ_CALLBACK_MEMBER(msx_cart_sfg::irq_callback) |
| 65 | 104 | { |
| 105 | if (m_ym2148_irq_state == ASSERT_LINE) |
| 106 | { |
| 107 | return m_ym2148_irq_vector; |
| 108 | } |
| 109 | |
| 110 | return m_ym2148_external_irq_vector; |
| 111 | } |
| 112 | |
| 113 | |
| 114 | WRITE_LINE_MEMBER(msx_cart_sfg::ym2151_irq_w) |
| 115 | { |
| 66 | 116 | m_ym2151_irq_state = state ? ASSERT_LINE : CLEAR_LINE; |
| 67 | 117 | check_irq(); |
| 68 | 118 | } |
| 69 | 119 | |
| 70 | 120 | |
| 71 | | WRITE_LINE_MEMBER(msx_cart_sfg01::ym2148_irq_w) |
| 121 | WRITE_LINE_MEMBER(msx_cart_sfg::ym2148_irq_w) |
| 72 | 122 | { |
| 73 | 123 | m_ym2148_irq_state = state ? ASSERT_LINE : CLEAR_LINE; |
| 74 | 124 | check_irq(); |
| 75 | 125 | } |
| 76 | 126 | |
| 77 | 127 | |
| 78 | | void msx_cart_sfg01::check_irq() |
| 128 | void msx_cart_sfg::check_irq() |
| 79 | 129 | { |
| 80 | 130 | if (m_ym2151_irq_state != CLEAR_LINE || m_ym2148_irq_state != CLEAR_LINE) |
| 81 | 131 | { |
| r30963 | r30964 | |
| 88 | 138 | } |
| 89 | 139 | |
| 90 | 140 | |
| 91 | | READ8_MEMBER(msx_cart_sfg01::read_cart) |
| 141 | READ8_MEMBER(msx_cart_sfg::read_cart) |
| 92 | 142 | { |
| 93 | | switch (offset) |
| 143 | switch (offset & 0x3fff) |
| 94 | 144 | { |
| 95 | 145 | case 0x3ff0: // YM-2151 status read |
| 96 | 146 | case 0x3ff1: // YM-2151 status read mirror? |
| r30963 | r30964 | |
| 108 | 158 | |
| 109 | 159 | if (offset < 0x8000) |
| 110 | 160 | { |
| 111 | | return m_region_sfg01->u8(offset & 0x3fff); |
| 161 | return m_region_sfg->u8(offset & m_rom_mask); |
| 112 | 162 | } |
| 113 | 163 | |
| 114 | 164 | return 0xff; |
| 115 | 165 | } |
| 116 | 166 | |
| 117 | 167 | |
| 118 | | WRITE8_MEMBER(msx_cart_sfg01::write_cart) |
| 168 | WRITE8_MEMBER(msx_cart_sfg::write_cart) |
| 119 | 169 | { |
| 120 | | switch (offset) |
| 170 | switch (offset & 0x3fff) |
| 121 | 171 | { |
| 122 | 172 | case 0x3ff0: // YM-2151 register |
| 123 | 173 | m_ym2151->register_w(space, 0, data); |
| r30963 | r30964 | |
| 132 | 182 | break; |
| 133 | 183 | |
| 134 | 184 | case 0x3ff3: // YM-2148 MIDI IRQ vector |
| 185 | m_ym2148_irq_vector = data; |
| 186 | break; |
| 187 | |
| 135 | 188 | case 0x3ff4: // YM-2148 External IRQ vector |
| 189 | m_ym2148_external_irq_vector = data; |
| 190 | break; |
| 191 | |
| 136 | 192 | case 0x3ff5: // YM-2148 MIDI UART data write register |
| 137 | 193 | case 0x3ff6: // YM-2148 MIDI UART command register |
| 138 | 194 | default: |
| 139 | | logerror("msx_cart_sfg01::write_cart: write %02x to %04x\n", data, offset); |
| 195 | logerror("msx_cart_sfg::write_cart: write %02x to %04x\n", data, offset); |
| 140 | 196 | break; |
| 141 | 197 | } |
| 142 | 198 | } |
trunk/src/emu/bus/msx_cart/yamaha.h
| r30963 | r30964 | |
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | extern const device_type MSX_CART_SFG01; |
| 10 | | //extern const device_type MSX_CART_SFG05; |
| 10 | extern const device_type MSX_CART_SFG05; |
| 11 | 11 | |
| 12 | 12 | |
| 13 | | class msx_cart_sfg01 : public device_t |
| 14 | | , public msx_cart_interface |
| 13 | class msx_cart_sfg : public device_t |
| 14 | , public msx_cart_interface |
| 15 | 15 | { |
| 16 | 16 | public: |
| 17 | | msx_cart_sfg01(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 17 | msx_cart_sfg(const machine_config &mconfig, const device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname); |
| 18 | 18 | |
| 19 | 19 | // device-level overrides |
| 20 | 20 | virtual machine_config_constructor device_mconfig_additions() const; |
| 21 | | virtual const rom_entry *device_rom_region() const; |
| 22 | 21 | virtual void device_start(); |
| 23 | 22 | |
| 24 | | virtual void initialize_cartridge(); |
| 25 | | |
| 26 | 23 | virtual DECLARE_READ8_MEMBER(read_cart); |
| 27 | 24 | virtual DECLARE_WRITE8_MEMBER(write_cart); |
| 28 | 25 | |
| 29 | 26 | DECLARE_WRITE_LINE_MEMBER(ym2151_irq_w); |
| 30 | 27 | DECLARE_WRITE_LINE_MEMBER(ym2148_irq_w); |
| 31 | 28 | |
| 29 | IRQ_CALLBACK_MEMBER(irq_callback); |
| 30 | |
| 32 | 31 | private: |
| 33 | | required_memory_region m_region_sfg01; |
| 32 | required_memory_region m_region_sfg; |
| 34 | 33 | required_device<ym2151_device> m_ym2151; |
| 35 | 34 | required_device<msx_audio_kbdc_port_device> m_kbdc; |
| 36 | 35 | int m_ym2151_irq_state; |
| 37 | 36 | int m_ym2148_irq_state; |
| 37 | UINT32 m_rom_mask; |
| 38 | UINT8 m_ym2148_irq_vector; |
| 39 | UINT8 m_ym2148_external_irq_vector; |
| 38 | 40 | |
| 39 | 41 | void check_irq(); |
| 40 | 42 | }; |
| 41 | 43 | |
| 44 | |
| 45 | class msx_cart_sfg01 : public msx_cart_sfg |
| 46 | { |
| 47 | public: |
| 48 | msx_cart_sfg01(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 49 | |
| 50 | virtual const rom_entry *device_rom_region() const; |
| 51 | }; |
| 52 | |
| 53 | |
| 54 | class msx_cart_sfg05 : public msx_cart_sfg |
| 55 | { |
| 56 | public: |
| 57 | msx_cart_sfg05(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 58 | |
| 59 | virtual const rom_entry *device_rom_region() const; |
| 60 | }; |
| 61 | |
| 42 | 62 | #endif |
| 43 | 63 | |
trunk/src/mess/drivers/msx.c
| r30963 | r30964 | |
| 20 | 20 | ** - svi738: v9938 not emulated |
| 21 | 21 | ** - svi738: rs232c not emulated |
| 22 | 22 | ** - hx10: Expansion slot not emulated (hx10s also??) |
| 23 | | ** - cx5m, cx5m128, cx5m2: sfg not emulated |
| 24 | 23 | ** - cx5m128: Firmware not emulated? |
| 25 | 24 | ** - y503iir: Keyboard not responding correctly |
| 26 | 25 | ** - y503iir, y503iir2: RTC not emulated |
| 27 | 26 | ** - y503iir, y503iir2: Net not emulated |
| 28 | 27 | ** - y503iir, y503iir2: Floppy support broken |
| 29 | | ** - yis503m: sfg not emulated |
| 30 | 28 | ** - cpc300: Config for MSX Tutor ON/OFF is not saved |
| 31 | 29 | ** - expert20: Does not boot |
| 32 | 30 | ** - fs4600: Kanji12 not emulated; how to trigger usage of kanji12?? |
| r30963 | r30964 | |
| 43 | 41 | ** - tpc310: Floppy support broken |
| 44 | 42 | ** 7fbb <- c7 => seek 199??? |
| 45 | 43 | ** - hx23f: The builtin word processor displays white squares instead of text |
| 46 | | ** - cx7m: sfg not emulated |
| 47 | 44 | ** - expert3i: IDE not emulated |
| 48 | 45 | ** - expert3t: Turbo not emulated |
| 49 | 46 | ** - expertac: Does not boot |
| r30963 | r30964 | |
| 2767 | 2764 | ROM_START (cx5m) |
| 2768 | 2765 | ROM_REGION (0x10000, "maincpu",0) |
| 2769 | 2766 | ROM_LOAD ("cx5mbios.rom", 0x0000, 0x8000, CRC(e2242b53) SHA1(706dd67036baeec7127e4ccd8c8db8f6ce7d0e4c)) |
| 2770 | | ROM_LOAD ("sfg05m.rom", 0x8000, 0x8000, CRC(6c2545c9) SHA1(bc4b242647116f4886bb92e86421f97b1be51938)) |
| 2771 | 2767 | ROM_END |
| 2772 | 2768 | |
| 2773 | 2769 | static MACHINE_CONFIG_DERIVED( cx5m, msx_pal ) |
| r30963 | r30964 | |
| 2780 | 2776 | MCFG_MSX_LAYOUT_RAM("ram", 0, 0, 2, 2) /* 32KB RAM */ |
| 2781 | 2777 | MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0) |
| 2782 | 2778 | MCFG_MSX_LAYOUT_CARTRIDGE("cartslot2", 2, 0) |
| 2783 | | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 0) |
| 2784 | | // MCFG_MSX_LAYOUT_ROM("sfg", 3, 0, 0, 2, "maincpu", 0x8000) /* SFG */ |
| 2779 | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 0, "sfg01") |
| 2785 | 2780 | |
| 2786 | 2781 | MCFG_FRAGMENT_ADD( msx1_cartlist ) |
| 2787 | 2782 | MACHINE_CONFIG_END |
| r30963 | r30964 | |
| 2792 | 2787 | ROM_REGION (0x18000, "maincpu",0) |
| 2793 | 2788 | ROM_LOAD ("cx5m128bios.rom", 0x0000, 0x8000, CRC(507b2caa) SHA1(0dde59e8d98fa524961cd37b0e100dbfb42cf576)) |
| 2794 | 2789 | ROM_LOAD ("cx5m128ext.rom", 0x8000, 0x4000, CRC(feada82e) SHA1(48b0c2ff1f1e407cc44394219f7b3878efaa919f)) |
| 2795 | | ROM_LOAD ("sfg05.rom", 0xc000, 0x8000, CRC(2425c279) SHA1(d956167e234f60ad916120437120f86fc8c3c321)) |
| 2796 | 2790 | ROM_LOAD ("yrm502.rom", 0x14000,0x4000, CRC(5330fe21) SHA1(7b1798561ee1844a7d6432924fbee9b4fc591c19)) |
| 2797 | 2791 | ROM_END |
| 2798 | 2792 | |
| r30963 | r30964 | |
| 2807 | 2801 | MCFG_MSX_LAYOUT_ROM("ext", 3, 0, 1, 1, "maincpu", 0x8000) |
| 2808 | 2802 | MCFG_MSX_LAYOUT_ROM("yrm", 3, 1, 1, 1, "maincpu", 0x14000) /* YRM-502 */ |
| 2809 | 2803 | MCFG_MSX_LAYOUT_RAM_MM("ram_mm", 3, 2, 0x20000) /* 128KB Mapper RAM */ |
| 2810 | | MCFG_MSX_LAYOUT_ROM("sfg", 3, 3, 0, 2, "maincpu", 0xc000) /* SFG-05 */ |
| 2804 | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 3, "sfg05") |
| 2811 | 2805 | |
| 2812 | 2806 | MCFG_FRAGMENT_ADD( msx1_cartlist ) |
| 2813 | 2807 | MACHINE_CONFIG_END |
| r30963 | r30964 | |
| 2818 | 2812 | ROM_REGION (0x14000, "maincpu",0) |
| 2819 | 2813 | ROM_LOAD ("cx5m2bios.rom", 0x0000, 0x8000, CRC(507b2caa) SHA1(0dde59e8d98fa524961cd37b0e100dbfb42cf576)) |
| 2820 | 2814 | ROM_LOAD ("cx5m2ext.rom", 0x8000, 0x4000, CRC(feada82e) SHA1(48b0c2ff1f1e407cc44394219f7b3878efaa919f)) |
| 2821 | | ROM_LOAD ("sfg05.rom", 0xc000, 0x8000, CRC(2425c279) SHA1(d956167e234f60ad916120437120f86fc8c3c321)) |
| 2822 | 2815 | ROM_END |
| 2823 | 2816 | |
| 2824 | 2817 | static MACHINE_CONFIG_DERIVED( cx5m2, msx_pal ) |
| r30963 | r30964 | |
| 2831 | 2824 | MCFG_MSX_LAYOUT_CARTRIDGE("cartslot2", 2, 0) |
| 2832 | 2825 | MCFG_MSX_LAYOUT_ROM("ext", 3, 0, 1, 1, "maincpu", 0x8000) |
| 2833 | 2826 | MCFG_MSX_LAYOUT_RAM_MM("ram_mm", 3, 2, 0x10000) /* 64KB Mapper RAM */ |
| 2834 | | MCFG_MSX_LAYOUT_ROM("sfg", 3, 3, 0, 2, "maincpu", 0xc000) |
| 2827 | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 3, "sfg05") |
| 2835 | 2828 | |
| 2836 | 2829 | MCFG_FRAGMENT_ADD( msx1_cartlist ) |
| 2837 | 2830 | MACHINE_CONFIG_END |
| r30963 | r30964 | |
| 2984 | 2977 | ROM_START (yis503m) |
| 2985 | 2978 | ROM_REGION (0x10000, "maincpu",0) |
| 2986 | 2979 | ROM_LOAD ("yis503mbios.rom", 0x0000, 0x8000, CRC(e2242b53) SHA1(706dd67036baeec7127e4ccd8c8db8f6ce7d0e4c)) |
| 2987 | | ROM_LOAD ("sfg05m.rom", 0x8000, 0x8000, CRC(6c2545c9) SHA1(bc4b242647116f4886bb92e86421f97b1be51938)) |
| 2988 | 2980 | ROM_END |
| 2989 | 2981 | |
| 2990 | 2982 | static MACHINE_CONFIG_DERIVED( yis503m, msx_pal ) |
| r30963 | r30964 | |
| 2995 | 2987 | MCFG_MSX_LAYOUT_ROM("bios", 0, 0, 0, 2, "maincpu", 0x0000) |
| 2996 | 2988 | MCFG_MSX_LAYOUT_CARTRIDGE("cartslot1", 1, 0) |
| 2997 | 2989 | MCFG_MSX_LAYOUT_CARTRIDGE("cartslot2", 2, 0) |
| 2998 | | MCFG_MSX_LAYOUT_ROM("sfg", 3, 0, 0, 2, "maincpu", 0x8000) |
| 2990 | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 0, "sfg05") |
| 2999 | 2991 | MCFG_MSX_LAYOUT_RAM("ram", 3, 0, 2, 2) /* 32KB RAM */ |
| 3000 | 2992 | |
| 3001 | 2993 | MCFG_FRAGMENT_ADD( msx1_cartlist ) |
| r30963 | r30964 | |
| 5094 | 5086 | ROM_LOAD ("cx7mext.rom", 0x8000, 0x4000, CRC(66237ecf) SHA1(5c1f9c7fb655e43d38e5dd1fcc6b942b2ff68b02)) |
| 5095 | 5087 | /* 0xc000 - 0x1ffff reserved for optional fmpac roms from msx2 parent set */ |
| 5096 | 5088 | ROM_FILL (0xc000, 0x14000, 0) |
| 5097 | | ROM_LOAD ("sfg05m.rom", 0x20000, 0x8000, CRC(6c2545c9) SHA1(bc4b242647116f4886bb92e86421f97b1be51938)) |
| 5098 | 5089 | ROM_END |
| 5099 | 5090 | |
| 5100 | 5091 | static MACHINE_CONFIG_DERIVED( cx7m, msx2_pal ) |
| r30963 | r30964 | |
| 5108 | 5099 | MCFG_MSX_LAYOUT_CARTRIDGE("cartslot2", 2, 0) |
| 5109 | 5100 | MCFG_MSX_LAYOUT_RAM_MM("ram_mm", 3, 2, 0x10000) /* 64KB Mapper RAM */ |
| 5110 | 5101 | MCFG_MSX_RAMIO_SET_BITS(0x80) |
| 5111 | | MCFG_MSX_LAYOUT_ROM("sfg", 3, 3, 0, 2, "maincpu", 0x20000) |
| 5102 | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 3, "sfg05") |
| 5112 | 5103 | |
| 5113 | 5104 | MCFG_FRAGMENT_ADD( msx2_cartlist ) |
| 5114 | 5105 | MACHINE_CONFIG_END |
| r30963 | r30964 | |
| 5121 | 5112 | ROM_LOAD ("cx7mext.rom", 0x8000, 0x4000, CRC(66237ecf) SHA1(5c1f9c7fb655e43d38e5dd1fcc6b942b2ff68b02)) |
| 5122 | 5113 | /* 0xc000 - 0x1ffff reserved for optional fmpac roms from msx2 parent set */ |
| 5123 | 5114 | ROM_FILL (0xc000, 0x14000, 0) |
| 5124 | | ROM_LOAD ("sfg05m.rom", 0x20000, 0x8000, CRC(6c2545c9) SHA1(bc4b242647116f4886bb92e86421f97b1be51938)) |
| 5125 | 5115 | ROM_LOAD ("yrm502.rom", 0x28000, 0x4000, CRC(51f7ddd1) SHA1(2a4b4a4657e3077df8a88f98210b76883d3702b1)) |
| 5126 | 5116 | ROM_END |
| 5127 | 5117 | |
| r30963 | r30964 | |
| 5137 | 5127 | MCFG_MSX_LAYOUT_ROM("yrm502", 3, 1, 1, 1, "maincpu", 0x28000) |
| 5138 | 5128 | MCFG_MSX_LAYOUT_RAM_MM("ram_mm", 3, 2, 0x10000) /* 64KB Mapper RAM */ |
| 5139 | 5129 | MCFG_MSX_RAMIO_SET_BITS(0x80) |
| 5140 | | MCFG_MSX_LAYOUT_ROM("sfg", 3, 3, 0, 2, "maincpu", 0x20000) |
| 5130 | MCFG_MSX_LAYOUT_YAMAHA_EXPANSION("expansion", 3, 3, "sfg05") |
| 5141 | 5131 | |
| 5142 | 5132 | MCFG_FRAGMENT_ADD( msx2_cartlist ) |
| 5143 | 5133 | MACHINE_CONFIG_END |