trunk/src/emu/bus/cpc/cpc_ssa1.c
| r31237 | r31238 | |
| 86 | 86 | ROM_LOAD( "sp0256-al2.bin", 0x1000, 0x0800, CRC(b504ac15) SHA1(e60fcb5fa16ff3f3b69d36c7a6e955744d3feafc) ) |
| 87 | 87 | ROM_END |
| 88 | 88 | |
| 89 | | // Available in ROM and cassette versions. For now, we'll let the user choose to load the software via ROM (using a ROM box slot device) or cassette. |
| 89 | // Available in ROM and cassette versions. We'll add the ROM for convenience. |
| 90 | 90 | ROM_START( cpc_dkspeech ) |
| 91 | 91 | ROM_REGION( 0x10000, "sp0256", 0 ) |
| 92 | 92 | ROM_LOAD( "sp0256-al2.bin", 0x1000, 0x0800, CRC(b504ac15) SHA1(e60fcb5fa16ff3f3b69d36c7a6e955744d3feafc) ) |
| 93 | |
| 94 | ROM_REGION( 0x4000, "exp_rom", 0 ) |
| 95 | ROM_LOAD( "dkspeech.rom", 0x0000, 0x4000, CRC(4957c2f5) SHA1(bf28e07d5fada3678faab77f582b802164e82f62) ) |
| 93 | 96 | ROM_END |
| 94 | 97 | |
| 95 | 98 | //------------------------------------------------- |
trunk/src/emu/bus/cpc/cpc_rs232.c
| r31237 | r31238 | |
| 12 | 12 | //************************************************************************** |
| 13 | 13 | |
| 14 | 14 | const device_type CPC_RS232 = &device_creator<cpc_rs232_device>; |
| 15 | const device_type CPC_RS232_AMS = &device_creator<cpc_ams_rs232_device>; |
| 15 | 16 | |
| 16 | 17 | // device machine config |
| 17 | 18 | static MACHINE_CONFIG_FRAGMENT( cpc_rs232 ) |
| r31237 | r31238 | |
| 44 | 45 | |
| 45 | 46 | MACHINE_CONFIG_END |
| 46 | 47 | |
| 48 | ROM_START( cpc_rs232 ) |
| 49 | ROM_REGION( 0x8000, "exp_rom", 0 ) |
| 50 | ROM_LOAD( "comstar1.rom", 0x0000, 0x4000, CRC(ddcade50) SHA1(d09ee0bd51a8e1cafc5107a75fed839dda3d21e5) ) |
| 51 | ROM_LOAD( "comstar2.rom", 0x4000, 0x4000, CRC(664e788c) SHA1(13d033f2d1cad70140deb903d787ba514f236a59) ) |
| 52 | ROM_END |
| 53 | |
| 54 | ROM_START( cpc_rs232_ams ) |
| 55 | ROM_REGION( 0x4000, "exp_rom", 0 ) |
| 56 | ROM_SYSTEM_BIOS( 0, "amstrad", "Amstrad RS232C interface (v1)" ) |
| 57 | ROMX_LOAD( "rs232101.rom", 0x0000, 0x2000, CRC(c6eb52b2) SHA1(8a7e0a1183fdde8d07bc8827a3e159ca3022f93b), ROM_BIOS(1) ) |
| 58 | ROM_SYSTEM_BIOS( 1, "mercitel", "Amstrad RS232C interface (v1) + Mercitel (v1.4)" ) |
| 59 | ROMX_LOAD( "rs232mercitel14.rom", 0x0000, 0x4000, CRC(8ffb114b) SHA1(145233fe8d4db9f5265eeac767d8ee8d45d14755), ROM_BIOS(2) ) |
| 60 | ROM_END |
| 61 | |
| 47 | 62 | machine_config_constructor cpc_rs232_device::device_mconfig_additions() const |
| 48 | 63 | { |
| 49 | 64 | return MACHINE_CONFIG_NAME( cpc_rs232 ); |
| 50 | 65 | } |
| 51 | 66 | |
| 67 | const rom_entry *cpc_rs232_device::device_rom_region() const |
| 68 | { |
| 69 | return ROM_NAME( cpc_rs232 ); |
| 70 | } |
| 52 | 71 | |
| 72 | const rom_entry *cpc_ams_rs232_device::device_rom_region() const |
| 73 | { |
| 74 | return ROM_NAME( cpc_rs232_ams ); |
| 75 | } |
| 76 | |
| 77 | |
| 53 | 78 | //************************************************************************** |
| 54 | 79 | // LIVE DEVICE |
| 55 | 80 | //************************************************************************** |
| 56 | 81 | |
| 57 | 82 | cpc_rs232_device::cpc_rs232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 58 | | device_t(mconfig, CPC_RS232, "Amstrad/Pace RS232C interface", tag, owner, clock, "cpc_ser", __FILE__), |
| 83 | device_t(mconfig, CPC_RS232, "Pace RS232C interface", tag, owner, clock, "cpc_ser", __FILE__), |
| 59 | 84 | device_cpc_expansion_card_interface(mconfig, *this), |
| 60 | 85 | m_pit(*this,"pit"), |
| 61 | 86 | m_dart(*this,"dart"), |
| r31237 | r31238 | |
| 63 | 88 | { |
| 64 | 89 | } |
| 65 | 90 | |
| 91 | cpc_rs232_device::cpc_rs232_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : |
| 92 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), |
| 93 | device_cpc_expansion_card_interface(mconfig, *this), |
| 94 | m_pit(*this,"pit"), |
| 95 | m_dart(*this,"dart"), |
| 96 | m_rs232(*this,"rs232") |
| 97 | { |
| 98 | } |
| 99 | |
| 100 | cpc_ams_rs232_device::cpc_ams_rs232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 101 | cpc_rs232_device(mconfig, CPC_RS232_AMS, "Amstrad RS232C interface", tag, owner, clock, "cpc_serams", __FILE__) |
| 102 | { |
| 103 | } |
| 104 | |
| 105 | |
| 66 | 106 | //------------------------------------------------- |
| 67 | 107 | // device_start - device-specific startup |
| 68 | 108 | //------------------------------------------------- |
trunk/src/emu/bus/cpc/cpc_rs232.h
| r31237 | r31238 | |
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | cpc_rs232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | cpc_rs232_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); |
| 22 | 23 | |
| 23 | | // optional information overrides |
| 24 | // optional information overrides |
| 24 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| 25 | 26 | |
| 26 | 27 | DECLARE_WRITE_LINE_MEMBER(pit_out0_w); |
| r31237 | r31238 | |
| 39 | 40 | // device-level overrides |
| 40 | 41 | virtual void device_start(); |
| 41 | 42 | virtual void device_reset(); |
| 43 | virtual const rom_entry *device_rom_region() const; |
| 42 | 44 | |
| 43 | 45 | private: |
| 44 | 46 | cpc_expansion_slot_device *m_slot; |
| 45 | 47 | }; |
| 46 | 48 | |
| 49 | class cpc_ams_rs232_device : public cpc_rs232_device |
| 50 | { |
| 51 | public: |
| 52 | // construction/destruction |
| 53 | cpc_ams_rs232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 54 | |
| 55 | protected: |
| 56 | virtual const rom_entry *device_rom_region() const; |
| 57 | }; |
| 58 | |
| 47 | 59 | // device type definition |
| 48 | 60 | extern const device_type CPC_RS232; |
| 61 | extern const device_type CPC_RS232_AMS; |
| 49 | 62 | |
| 50 | 63 | #endif /* CPC_RS232_H_ */ |
trunk/src/mess/drivers/amstrad.c
| r31237 | r31238 | |
| 814 | 814 | SLOT_INTERFACE("multiface2", CPC_MFACE2) |
| 815 | 815 | SLOT_INTERFACE("pds", CPC_PDS) |
| 816 | 816 | SLOT_INTERFACE("rs232", CPC_RS232) |
| 817 | SLOT_INTERFACE("amsrs232", CPC_RS232_AMS) |
| 817 | 818 | SLOT_INTERFACE_END |
| 818 | 819 | |
| 819 | 820 | SLOT_INTERFACE_START(cpcplus_exp_cards) |
| r31237 | r31238 | |
| 822 | 823 | SLOT_INTERFACE("rom", CPC_ROM) |
| 823 | 824 | SLOT_INTERFACE("pds", CPC_PDS) |
| 824 | 825 | SLOT_INTERFACE("rs232", CPC_RS232) |
| 826 | SLOT_INTERFACE("amsrs232", CPC_RS232_AMS) |
| 825 | 827 | SLOT_INTERFACE_END |
| 826 | 828 | |
| 827 | 829 | static MACHINE_CONFIG_START( amstrad_nofdc, amstrad_state ) |