Previous 199869 Revisions Next

r32985 Sunday 26th October, 2014 at 18:28:53 UTC by Sergey Svishchev
isa_hdc: add DIPs, make ROM optional
[src/emu/bus/isa]hdc.c hdc.h
[src/emu/video]upd7220.c
[src/mame/drivers]peplus.c
[src/mess/drivers]pc9801.c

trunk/src/emu/bus/isa/hdc.c
r241496r241497
121121   ROM_LOAD("wdbios.rom",  0x00000, 0x02000, CRC(8e9e2bd4) SHA1(601d7ceab282394ebab50763c267e915a6a2166a)) /* WDC IDE Superbios 2.0 (06/28/89) Expansion Rom C8000-C9FFF  */
122122ROM_END
123123
124static INPUT_PORTS_START( isa_hdc )
125   PORT_START("HDD")
126   PORT_BIT(     0xb0, 0xb0, IPT_UNUSED )
127   PORT_DIPNAME( 0x40, 0x40, "IRQ level")
128   PORT_DIPSETTING(    0x40, "5" )
129   PORT_DIPSETTING(    0x00, "2" )
130   PORT_DIPNAME( 0x0c, 0x0c, "Type of 1st drive")
131   PORT_DIPSETTING(    0x0c, "0" )
132   PORT_DIPSETTING(    0x08, "1" )
133   PORT_DIPSETTING(    0x04, "2" )
134   PORT_DIPSETTING(    0x00, "3" )
135   PORT_DIPNAME( 0x03, 0x03, "Type of 2nd drive")
136   PORT_DIPSETTING(    0x03, "0" )
137   PORT_DIPSETTING(    0x02, "1" )
138   PORT_DIPSETTING(    0x01, "2" )
139   PORT_DIPSETTING(    0x00, "3" )
140
141   PORT_START("ROM")
142   PORT_DIPNAME( 0x01, 0x01, "Install ROM?")
143   PORT_DIPSETTING(    0x01, DEF_STR(Yes) )
144   PORT_DIPSETTING(    0x00, DEF_STR(No) )
145INPUT_PORTS_END
146
124147//**************************************************************************
125148//  GLOBAL VARIABLES
126149//**************************************************************************
r241496r241497
146169   return ROM_NAME( hdc );
147170}
148171
172//-------------------------------------------------
173//  input_ports - device-specific input ports
174//-------------------------------------------------
175
176ioport_constructor isa8_hdc_device::device_input_ports() const
177{
178   return INPUT_PORTS_NAME( isa_hdc );
179}
180
149181//**************************************************************************
150182//  LIVE DEVICE
151183//**************************************************************************
r241496r241497
167199void isa8_hdc_device::device_start()
168200{
169201   set_isa_device();
170   m_isa->install_rom(this, 0xc8000, 0xc9fff, 0, 0, "hdc", "hdc");
171202   m_isa->install_device(0x0320, 0x0323, 0, 0, read8_delegate( FUNC(isa8_hdc_device::pc_hdc_r), this ), write8_delegate( FUNC(isa8_hdc_device::pc_hdc_w), this ) );
172203   m_isa->set_dma_channel(3, this, FALSE);
173204   buffer.resize(17*4*512);
r241496r241497
203234   csb = 0;
204235   status = 0;
205236   error = 0;
206   dip = 0xff;
237   dip = ioport("HDD")->read();
207238
239   if (ioport("ROM")->read() == 1)
240      m_isa->install_rom(this, 0xc8000, 0xc9fff, 0, 0, "hdc", "hdc");
208241}
209242
210243hard_disk_file *isa8_hdc_device::pc_hdc_file(int id)
trunk/src/emu/bus/isa/hdc.h
r241496r241497
3131      virtual const rom_entry *device_rom_region() const;
3232      DECLARE_READ8_MEMBER(pc_hdc_r);
3333      DECLARE_WRITE8_MEMBER(pc_hdc_w);
34      virtual ioport_constructor device_input_ports() const;
35
3436protected:
3537      // device-level overrides
3638      virtual void device_start();
trunk/src/emu/video/upd7220.c
r241496r241497
15921592            addr = ((sad << 1) & 0x3ffff) + (y * (m_pitch << (im ? 0 : 1)));
15931593
15941594            if (!m_display_cb.isnull())
1595               draw_graphics_line(bitmap, addr, y + (bsy / m_lr), wd);
1595               draw_graphics_line(bitmap, addr, y + (im ? bsy : (bsy >> 1)), wd);
15961596         }
15971597      }
15981598      else
trunk/src/mame/drivers/peplus.c
r241496r241497
141141  PPnnnn Poker games. Several different types of poker require specific CG graphics + CAP color prom
142142  IPnnnn International Poker games. Several different types of poker require specific CG graphics + CAP color prom
143143  PSnnnn Slot games. Each slot game requires specific CG graphics + CAP color prom
144  MGnnnn Multi Game programs for the Player's Choice machines that had optional touchscreens and or printers
145144
146145Super PE+
147146 Program Types
r241496r241497
89538952GAMEL(1987, peip0120,  peip0031, peplus,  peplus_poker, peplus_state, nonplus,  ROT0,  "IGT - International Game Technology", "Player's Edge Plus (IP0120) Standard Draw Poker - French",  0, layout_pe_poker )
89548953
89558954/* Normal board : Blackjack */
8956GAMEL(1994, pebe0014, 0,      peplus,  peplus_bjack, peplus_state, peplus,   ROT0,  "IGT - International Game Technology", "Player's Edge Plus (BE0014) Blackjack",                        0, layout_pe_bjack )
8955GAMEL(1994, pebe0014, 0,      peplus,  peplus_bjack, peplus_state, peplus,   ROT0,  "IGT - International Game Technology", "Player's Edge Plus (BE0014) Blackjack",                        0,   layout_pe_bjack )
89578956
89588957/* Normal board : Keno */
89598958GAMEL(1994, peke1012,  0,        peplus, peplus_keno, peplus_state, peplus, ROT0,  "IGT - International Game Technology", "Player's Edge Plus (KE1012) Keno",                              0, layout_pe_keno )
trunk/src/mess/drivers/pc9801.c
r241496r241497
19081908   pcg_offset|= offset & 0x1e;
19091909   pcg_offset|= m_font_lr;
19101910
1911   if(!(m_font_addr & 0xff))
1912   {
1913      int char_size = m_video_ff[FONTSEL_REG];
1914      return m_char_rom[(m_font_addr >> 8) * (8 << char_size) + (char_size * 0x800) + ((offset >> 1) & 0xf)];
1915   }
1916
19171911   /* TODO: investigate on this difference */
19181912   if((m_font_addr & 0xff00) == 0x5600 || (m_font_addr & 0xff00) == 0x5700)
19191913      return m_kanji_rom[pcg_offset];


Previous 199869 Revisions Next


© 1997-2024 The MAME Team