Previous 199869 Revisions Next

r32988 Sunday 26th October, 2014 at 18:37:09 UTC by Sergey Svishchev
iskr103x: CGA clone
[src/emu/bus/isa]cga.c cga.h
[src/mess/drivers]iskr103x.c

trunk/src/emu/bus/isa/cga.c
r241499r241500
17501750   m_p3df = 0;
17511751}
17521752
1753ROM_START( iskr1031 )
1754   ROM_REGION(0x2000,"gfx1", 0)
1755   ROM_LOAD( "iskra-1031_font.bin", 0x0000, 0x2000, CRC(f4d62e80) SHA1(ad7e81a0c9abc224671422bbcf6f6262da92b510))
1756ROM_END
1757
1758const rom_entry *isa8_ec1841_0002_device::device_rom_region() const
1759{
1760   return ROM_NAME( iskr1031 );
1761}
1762
17631753WRITE8_MEMBER( isa8_ec1841_0002_device::char_ram_write )
17641754{
17651755   offset ^= BIT(offset, 12);
r241499r241500
18271817
18281818}
18291819
1820ROM_START( cga_iskr1031 )
1821   ROM_REGION(0x2000,"gfx1", 0)
1822   ROM_LOAD( "iskra-1031_font.bin", 0x0000, 0x2000, CRC(f4d62e80) SHA1(ad7e81a0c9abc224671422bbcf6f6262da92b510))
1823ROM_END
1824
1825//-------------------------------------------------
1826//  rom_region - device-specific ROM region
1827//-------------------------------------------------
1828
1829const rom_entry *isa8_cga_iskr1031_device::device_rom_region() const
1830{
1831   return ROM_NAME( cga_iskr1031 );
1832}
1833
1834const device_type ISA8_CGA_ISKR1031 = &device_creator<isa8_cga_iskr1031_device>;
1835
1836//-------------------------------------------------
1837//  isa8_cga_iskr1031_device - constructor
1838//-------------------------------------------------
1839
1840isa8_cga_iskr1031_device::isa8_cga_iskr1031_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1841      isa8_cga_device( mconfig, ISA8_CGA_ISKR1031, "Iskra-1031 CGA", tag, owner, clock, "cga_iskr1031", __FILE__)
1842{
1843}
1844
1845ROM_START( cga_iskr1030m )
1846   ROM_REGION(0x2000,"gfx1", 0)
1847   ROM_LOAD( "iskra-1030m.chr", 0x0000, 0x2000, CRC(50b162eb) SHA1(5bd7cb1705a69bd16115a4c9ed1c2748a5c8ad51))
1848ROM_END
1849
1850//-------------------------------------------------
1851//  rom_region - device-specific ROM region
1852//-------------------------------------------------
1853
1854const rom_entry *isa8_cga_iskr1030m_device::device_rom_region() const
1855{
1856   return ROM_NAME( cga_iskr1030m );
1857}
1858
1859const device_type ISA8_CGA_ISKR1030M = &device_creator<isa8_cga_iskr1030m_device>;
1860
1861//-------------------------------------------------
1862//  isa8_cga_iskr1030m_device - constructor
1863//-------------------------------------------------
1864
1865isa8_cga_iskr1030m_device::isa8_cga_iskr1030m_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1866      isa8_cga_device( mconfig, ISA8_CGA_ISKR1030M, "Iskra-1030M CGA", tag, owner, clock, "cga_iskr1030m", __FILE__)
1867{
1868}
1869
1870// XXX
1871
18301872ROM_START( mc1502 )
18311873   ROM_REGION(0x2000,"gfx1", 0)
18321874   // taken from mc1502
trunk/src/emu/bus/isa/cga.h
r241499r241500
198198public:
199199   // construction/destruction
200200   isa8_ec1841_0002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
201   // optional information overrides
202   virtual const rom_entry *device_rom_region() const;
203201
204202protected:
205203   // device-level overrides
r241499r241500
218216// device type definition
219217extern const device_type ISA8_EC1841_0002;
220218
219// ======================> isa8_cga_iskr1031_device
220
221class isa8_cga_iskr1030m_device :
222      public isa8_cga_device
223{
224public:
225   // construction/destruction
226   isa8_cga_iskr1030m_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
227   virtual const rom_entry *device_rom_region() const;
228};
229
230// device type definition
231extern const device_type ISA8_CGA_ISKR1030M;
232
233// ======================> isa8_cga_iskr1031_device
234
235class isa8_cga_iskr1031_device :
236      public isa8_cga_device
237{
238public:
239   // construction/destruction
240   isa8_cga_iskr1031_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
241   virtual const rom_entry *device_rom_region() const;
242};
243
244// device type definition
245extern const device_type ISA8_CGA_ISKR1031;
246
221247// ======================> isa8_cga_mc1502_device
222248
223249class isa8_cga_mc1502_device :
trunk/src/mess/drivers/iskr103x.c
r241499r241500
120120   ROM_REGION16_LE(0x100000,"maincpu", 0)
121121   ROMX_LOAD( "iskra-1030m_0.rom", 0xfc000, 0x2000, CRC(0d698e19) SHA1(2fe117c9f4f8c4b59085d5a41f919d743c425fdd), ROM_SKIP(1))
122122   ROMX_LOAD( "iskra-1030m_1.rom", 0xfc001, 0x2000, CRC(fe808337) SHA1(b0b7ebe14324ada8aa9a6926a82b18e80f78a257), ROM_SKIP(1))
123
124   ROM_REGION(0x2000,"gfx1", 0)
125   ROM_LOAD( "iskra-1030m.chr", 0x0000, 0x2000, CRC(50b162eb) SHA1(5bd7cb1705a69bd16115a4c9ed1c2748a5c8ad51))
126123ROM_END
127124
128125ROM_START( iskr1031 )
r241499r241500
133130   ROM_SYSTEM_BIOS(1, "v2", "v2")
134131   ROMX_LOAD( "150-06.bin", 0xfc000, 0x2000, CRC(1adbf969) SHA1(08c0a0fc50a75e6207b1987bae389cca60893eac), ROM_SKIP(1) | ROM_BIOS(2))
135132   ROMX_LOAD( "150-07.bin", 0xfc001, 0x2000, CRC(0dc4b65a) SHA1(c96f066251a7343eac8113ea9dcb2cb12d0334d5), ROM_SKIP(1) | ROM_BIOS(2))
136
137   //ROM_REGION(0x2000,"gfx1", 0)
138   //ROM_LOAD( "iskra-1031_font.bin", 0x0000, 0x2000, CRC(f4d62e80) SHA1(ad7e81a0c9abc224671422bbcf6f6262da92b510))
139133ROM_END
140134
141135/***************************************************************************


Previous 199869 Revisions Next


© 1997-2024 The MAME Team