Previous 15994 Revisions Next

r12978 Monday 3rd October, 2011 at 14:47:14 UTC by Miodrag Milanović
pdp11 - Added some dips (no whatsnew)
[src/mess/drivers]pdp11.c

src/mess/drivers/pdp11.c
r12977r12978
166166
167167/* Input ports */
168168static INPUT_PORTS_START( pdp11 )
169    PORT_START("S1")
170   PORT_DIPNAME( 0x01, 0x01, "S1-1" )
171   PORT_DIPSETTING(    0x00, "Direct boot" )
172   PORT_DIPSETTING(    0x01, "Console mode" )
173   PORT_DIPNAME( 0x02, 0x02, "S1-2 Boot")
174   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
175   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
176   PORT_START("S1_2")
177   PORT_DIPNAME( 0x80, 0x00, "S1-3" )
178   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
179   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
180   PORT_DIPNAME( 0x40, 0x00, "S1-4" )
181   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
182   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
183   PORT_DIPNAME( 0x20, 0x00, "S1-5" )
184   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
185   PORT_DIPSETTING(    0x20, DEF_STR( On ) )
186   PORT_DIPNAME( 0x10, 0x00, "S1-6" )
187   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
188   PORT_DIPSETTING(    0x10, DEF_STR( On ) )
189   PORT_DIPNAME( 0x08, 0x08, "S1-7" )
190   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
191   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
192   PORT_DIPNAME( 0x04, 0x00, "S1-8" )
193   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
194   PORT_DIPSETTING(    0x04, DEF_STR( On ) )
195   PORT_DIPNAME( 0x02, 0x00, "S1-9" )
196   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
197   PORT_DIPSETTING(    0x02, DEF_STR( On ) )
198   PORT_DIPNAME( 0x01, 0x00, "S1-10" )
199   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
200   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
169201   PORT_START( "CONSPROM" )
170202   PORT_CONFNAME ( 0x01, 0, "Console PROM" )
171203   PORT_CONFSETTING ( 0x00, "11/04/05/34/35/40/45/50/55" )
r12977r12978
235267   UINT8* user1 = machine.region("consproms")->base() + input_port_read(machine,"CONSPROM") * 0x0400;
236268   UINT8* maincpu = machine.region("maincpu")->base();
237269
238   //0165000 EA00
270   //0165000
239271   load9312prom(maincpu + 0165000,user1,0x100);
240   cpu_set_reg(machine.device("maincpu"), T11_PC, 0165020);    // diag*/
241   //cpu_set_reg(machine.device("maincpu"), T11_PC, 0165144);    // no-diag
242272   
243   //0173000 F600   
273   UINT8 s1 = input_port_read(machine,"S1");
274   
275   if (s1 & 0x02) { // if boot enabled
276      UINT16 addr = 0173000;
277      if (s1 & 1) {
278         addr = 0165000;
279      }
280      addr += input_port_read(machine,"S1_2") * 2;
281      cpu_set_reg(machine.device("maincpu"), T11_PC, addr);
282   }
283   
284   //0173000
244285   load9312prom(maincpu + 0173000,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM1") * 0x0200,0x080);
245   //0173200 F680
286   //0173200
246287   load9312prom(maincpu + 0173200,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM2") * 0x0200,0x080);
247   //0173400 F700
288   //0173400
248289   load9312prom(maincpu + 0173400,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM3") * 0x0200,0x080);
249   //0173600 F780
290   //0173600
250291   load9312prom(maincpu + 0173600,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM4") * 0x0200,0x080);
251292   
252293}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team