Previous 15994 Revisions Next

r2783 Saturday 31st May, 2008 at 14:10:25 UTC by Fabio Priuli
[PC] removed occurrences of input_port_read_indexed (to this end, added a few TAGs and changed pc_turbo parameters)
[src/mess/drivers]at.c ip22.c pc.c
[src/mess/includes]amstr_pc.h
[src/mess/machine]amstr_pc.c at.c pc.c pc_turbo.c pclpt.c
[src/mess/video]pc_aga.c

src/mess/includes/amstr_pc.h
r2782r2783
88#define AMSTR_PC_H_
99
1010
11#define PC200_MODE (input_port_read_indexed(machine, 1)&0x30)
11#define PC200_MODE (input_port_read(machine, "DSW0") & 0x30)
1212#define PC200_MDA 0x30
1313
1414
src/mess/video/pc_aga.c
r2782r2783
1515#include "video/pc_video.h"
1616
1717
18#define CGA_MONITOR      (input_port_read_indexed(machine, 20)&0x1C)
18#define CGA_MONITOR      (input_port_read(machine, "VIDEO") & 0x1C)
1919#define CGA_MONITOR_RGB         0x00   /* Colour RGB */
2020#define CGA_MONITOR_MONO      0x04   /* Greyscale RGB */
2121#define CGA_MONITOR_COMPOSITE   0x08   /* Colour composite */
r2782r2783
489489         data = mc6845_register_r( devconf, offset );
490490         break;
491491      case 10:
492         data = (input_port_read_indexed(machine, 0) & 0x80 ) | 0x08 | aga.mda_status;
492         data = (input_port_read(machine, "IN0") & 0x80 ) | 0x08 | aga.mda_status;
493493         aga.mda_status ^= 0x01;
494494         break;
495495      /* 12, 13, 14  are the LPT1 ports */
r2782r2783
867867   case 0xe:
868868      // 0x20 low cga
869869      // 0x10 low special
870      result = input_port_read_indexed(machine, 1)&0x38;
870      result = input_port_read(machine, "DSW0") & 0x38;
871871      break;
872872
873873   default:
src/mess/machine/at.c
r2782r2783
303303static void at_com_refresh_connected_common(const device_config *device, int n, int data)
304304{
305305   /* mouse connected to this port? */
306   if (input_port_read_indexed(device->machine, 3) & (0x80>>n))
306   if (input_port_read(device->machine, "DSW2") & (0x80>>n))
307307      pc_mouse_handshake_in(device,data);
308308}
309309
r2782r2783
469469   };
470470
471471   init_at_common(&at8042);
472   pc_turbo_setup(0, 3, 0x02, 4.77/12, 1);
472   pc_turbo_setup(0, 2, 0x02, 4.77/12, 1);
473473   pc_vga_init(machine, &vga_interface, NULL);
474474}
475475
r2782r2783
482482      KBDC8042_PS2, at_set_gate_a20, at_keyboard_interrupt, at_get_out2
483483   };
484484   init_at_common(&at8042);
485   pc_turbo_setup(0, 3, 0x02, 4.77/12, 1);
485   pc_turbo_setup(0, 2, 0x02, 4.77/12, 1);
486486   pc_vga_init(machine, &vga_interface, NULL);
487487}
488488
src/mess/machine/amstr_pc.c
r2782r2783
202202 READ8_HANDLER( pc200_port378_r )
203203{
204204   int data=pc_parallelport1_r(machine, offset);
205   if (offset==1) data=(data&~7)|(input_port_read_indexed(machine, 1)&7);
206   if (offset==2) data=(data&~0xe0)|(input_port_read_indexed(machine, 1)&0xc0);
205   if (offset == 1)
206      data = (data & ~7) | (input_port_read(machine, "DSW0") & 7);
207   if (offset == 2)
208      data = (data & ~0xe0) | (input_port_read(machine, "DSW0") & 0xc0);
207209   return data;
208210}
209211
r2782r2783
211213 READ8_HANDLER( pc1640_port378_r )
212214{
213215   int data=pc_parallelport1_r(machine, offset);
214   if (offset==1) data=(data&~7)|(input_port_read_indexed(machine, 1)&7);
215   if (offset==2) {
216      switch (pc1640.dipstate) {
216   if (offset == 1)
217      data=(data & ~7) | (input_port_read(machine, "DSW0") & 7);
218   if (offset == 2)
219   {
220      switch (pc1640.dipstate)
221      {
217222      case 0:
218         data=(data&~0xe0)|(input_port_read_indexed(machine, 1)&0xe0);
223         data = (data&~0xe0) | (input_port_read(machine, "DSW0") & 0xe0);
219224         break;
220225      case 1:
221         data=(data&~0xe0)|((input_port_read_indexed(machine, 1)&0xe000)>>8);
226         data = (data&~0xe0) | ((input_port_read(machine, "DSW0") & 0xe000)>>8);
222227         break;
223228      case 2:
224         data=(data&~0xe0)|((input_port_read_indexed(machine, 1)&0xe00)>>4);
229         data = (data&~0xe0) | ((input_port_read(machine, "DSW0") & 0xe00)>>4);
225230         break;
226231
227232      }
r2782r2783
251256
252257static READ8_HANDLER( pc1640_mouse_x_r )
253258{
254   return pc1640.mouse.x-input_port_read_indexed(machine, 13);
259   return pc1640.mouse.x - input_port_read(machine, "pc_mouse_x");
255260}
256261
257262static READ8_HANDLER( pc1640_mouse_y_r )
258263{
259   return pc1640.mouse.y-input_port_read_indexed(machine, 14);
264   return pc1640.mouse.y - input_port_read(machine, "pc_mouse_y");
260265}
261266
262267static WRITE8_HANDLER( pc1640_mouse_x_w )
263268{
264   pc1640.mouse.x=data+input_port_read_indexed(machine, 13);
269   pc1640.mouse.x = data + input_port_read(machine, "pc_mouse_x");
265270}
266271
267272static WRITE8_HANDLER( pc1640_mouse_y_w )
268273{
269   pc1640.mouse.y=data+input_port_read_indexed(machine, 14);
274   pc1640.mouse.y = data + input_port_read(machine, "pc_mouse_y");
270275}
271276
272277READ16_HANDLER( pc1640_16le_mouse_x_r )    { return read16le_with_read8_handler(pc1640_mouse_x_r, machine, offset, mem_mask); }
src/mess/machine/pclpt.c
r2782r2783
5959static void pc_LPT_w(int n, int offset, int data)
6060{
6161   PC_LPT *This=LPT+n;
62   if ( !(input_port_read_indexed(Machine, 2) & (0x08>>n)) ) return;
62   if ( !(input_port_read(Machine, "DSW1") & (0x08>>n)) ) return;
6363//   if (!This->on) return;
6464   switch( offset )
6565   {
r2782r2783
9494{
9595   PC_LPT *This=LPT+n;
9696    int data = 0xff;
97   if ( !(input_port_read_indexed(Machine, 2) & (0x08>>n)) ) return data;
97   if ( !(input_port_read(Machine, "DSW1") & (0x08>>n)) ) return data;
9898//   if (!This->on) return data;
9999   switch( offset )
100100   {
src/mess/machine/pc_turbo.c
r2782r2783
2626{
2727   struct pc_turbo_info *ti = (struct pc_turbo_info *) ptr;
2828   int val;
29   char ipt[6];
2930
30   val = input_port_read_indexed(machine, ti->port) & ti->mask;
31   sprintf(ipt, "DSW%d", ti->port);
32   val = input_port_read(machine, ipt) & ti->mask;
3133
3234   if (val != ti->cur_val)
3335   {
src/mess/machine/pc.c
r2782r2783
313313static void pc_com_refresh_connected_common(const device_config *device, int n, int data)
314314{
315315   /* mouse connected to this port? */
316   if (input_port_read_indexed(device->machine, 3) & (0x80>>n))
316   if (input_port_read(device->machine, "DSW2") & (0x80>>n))
317317      pc_mouse_handshake_in(device,data);
318318}
319319
r2782r2783
571571       *      01 - color 40x25
572572       * 6-7  The number of floppy disk drives
573573       */
574      data = input_port_read_indexed(machine, 1);
574      data = input_port_read(machine, "DSW0");
575575   }
576576   else
577577   {
r2782r2783
607607   if (pc_ppi.portc_switch_high)
608608   {
609609      /* read hi nibble of S2 */
610      data = (data&0xf0)|((input_port_read_indexed(machine, 1) >> 4) & 0x0f);
610      data = (data & 0xf0) | ((input_port_read(machine, "DSW0") >> 4) & 0x0f);
611611      PIO_LOG(1,"PIO_C_r (hi)",("$%02x\n", data));
612612   }
613613   else
614614   {
615615      /* read lo nibble of S2 */
616      data = (data&0xf0)|(input_port_read_indexed(machine, 1) & 0x0f);
616      data = (data & 0xf0) | (input_port_read(machine, "DSW0") & 0x0f);
617617      PIO_LOG(1,"PIO_C_r (lo)",("$%02x\n", data));
618618   }
619619
r2782r2783
840840DRIVER_INIT( bondwell )
841841{
842842   mess_init_pc_common(PCCOMMON_KEYBOARD_PC, pc_set_keyb_int, pc_set_irq_line);
843   pc_turbo_setup(0, 3, 0x02, 4.77/12, 1);
843   pc_turbo_setup(0, 2, 0x02, 4.77/12, 1);
844844}
845845
846846DRIVER_INIT( pcmda )
r2782r2783
878878DRIVER_INIT( t1000hx )
879879{
880880   mess_init_pc_common(PCCOMMON_KEYBOARD_PC, pc_set_keyb_int, pc_set_irq_line);
881   pc_turbo_setup(0, 3, 0x02, 4.77/12, 1);
881   pc_turbo_setup(0, 2, 0x02, 4.77/12, 1);
882882}
883883
884884DRIVER_INIT( pc200 )
src/mess/drivers/ip22.c
r2782r2783
14641464}
14651465
14661466static INPUT_PORTS_START( ip225015 )
1467   PORT_START   // unused IN0
1468   PORT_START   // unused IN1
1469   PORT_START   // unused IN2
1470   PORT_START   // unused IN3
1467   PORT_START_TAG("IN0")   // unused IN0
1468   PORT_START_TAG("DSW0")   // unused IN1
1469   PORT_START_TAG("DSW1")   // unused IN2
1470   PORT_START_TAG("DSW2")   // unused IN3
14711471   PORT_INCLUDE( at_keyboard )      /* IN4 - IN11 */
14721472   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
14731473INPUT_PORTS_END
src/mess/drivers/at.c
r2782r2783
234234#endif
235235
236236static INPUT_PORTS_START( atcga )
237   PORT_START /* IN0 */
237   PORT_START_TAG("IN0") /* IN0 */
238238   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
239239   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
240240   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
241241
242    PORT_START /* IN1 */
242    PORT_START_TAG("DSW0") /* IN1 */
243243   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
244244   PORT_DIPSETTING(   0x00, "1" )
245245   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
262262   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
263263   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
264264
265   PORT_START /* IN2 */
265   PORT_START_TAG("DSW1") /* IN2 */
266266   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
267267   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
268268   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
288288   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
289289    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
290290
291    PORT_START /* IN3 */
291    PORT_START_TAG("DSW2") /* IN3 */
292292   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
293293   PORT_DIPSETTING(   0x80, "COM1" )
294294   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
311311INPUT_PORTS_END
312312
313313static INPUT_PORTS_START( atvga )
314   PORT_START /* IN0 */
314   PORT_START_TAG("IN0") /* IN0 */
315315   PORT_DIPNAME( 0x08, 0x08, "VGA 1")
316316   PORT_DIPSETTING(   0x08, DEF_STR( Off ) )
317317   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
r2782r2783
325325   PORT_DIPSETTING(   0x01, DEF_STR( Off ) )
326326   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
327327
328    PORT_START /* IN1 */
328    PORT_START_TAG("DSW0") /* IN1 */
329329   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
330330   PORT_DIPSETTING(   0x00, "1" )
331331   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
348348   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
349349   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
350350
351   PORT_START /* IN2 */
351   PORT_START_TAG("DSW1") /* IN2 */
352352   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
353353   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
354354   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
374374   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
375375    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
376376
377    PORT_START /* IN3 */
377    PORT_START_TAG("DSW2") /* IN3 */
378378   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
379379   PORT_DIPSETTING(   0x80, "COM1" )
380380   PORT_DIPSETTING(   0x40, "COM2" )
src/mess/drivers/pc.c
r2782r2783
384384
385385
386386static INPUT_PORTS_START( pcmda )
387   PORT_START /* IN0 */
387   PORT_START_TAG("IN0") /* IN0 */
388388   PORT_BIT ( 0x80, 0x80,    IPT_VBLANK )
389389   PORT_BIT ( 0x7f, 0x7f,    IPT_UNUSED )
390390
391   PORT_START /* IN1 */
391   PORT_START_TAG("DSW0") /* IN1 */
392392   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
393393   PORT_DIPSETTING(   0x00, "1" )
394394   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
411411   PORT_DIPSETTING(   0x00, DEF_STR(No) )
412412   PORT_DIPSETTING(   0x01, DEF_STR(Yes) )
413413
414    PORT_START /* IN2 */
414    PORT_START_TAG("DSW1") /* IN2 */
415415   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
416416   PORT_DIPSETTING(   0x00, DEF_STR(No) )
417417   PORT_DIPSETTING(   0x80, DEF_STR(Yes) )
r2782r2783
437437   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
438438   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
439439
440   PORT_START /* IN3 */
440   PORT_START_TAG("DSW2") /* IN3 */
441441   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
442442   PORT_DIPSETTING(   0x80, "COM1" )
443443   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
459459INPUT_PORTS_END
460460
461461static INPUT_PORTS_START( pccga )
462   PORT_START /* IN0 */
462   PORT_START_TAG("IN0") /* IN0 */
463463   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
464464   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
465465   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
466466
467    PORT_START /* IN1 */
467    PORT_START_TAG("DSW0") /* IN1 */
468468   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
469469   PORT_DIPSETTING(   0x00, "1" )
470470   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
486486   PORT_DIPNAME( 0x01, 0x01, "Floppy installed")
487487   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
488488   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
489   PORT_START /* IN2 */
489
490   PORT_START_TAG("DSW1") /* IN2 */
490491   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
491492   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
492493   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
512513   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
513514    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
514515
515    PORT_START /* IN3 */
516    PORT_START_TAG("DSW2") /* IN3 */
516517   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
517518   PORT_DIPSETTING(   0x80, "COM1" )
518519   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
535536INPUT_PORTS_END
536537
537538static INPUT_PORTS_START( europc )
538   PORT_START /* IN0 */
539   PORT_START_TAG("IN0") /* IN0 */
539540   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
540541   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
541542   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
542543
543    PORT_START /* IN1 */
544    PORT_START_TAG("DSW0") /* IN1 */
544545
545   PORT_START /* IN2 */
546   PORT_START_TAG("DSW1") /* IN2 */
546547   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
547548   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
548549   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
568569   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
569570    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
570571
571    PORT_START /* IN3 */
572    PORT_START_TAG("DSW2") /* IN3 */
572573   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
573574   PORT_DIPSETTING(   0x80, "COM1" )
574575   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
591592INPUT_PORTS_END
592593
593594static INPUT_PORTS_START( bondwell )
594   PORT_START /* IN0 */
595   PORT_START_TAG("IN0") /* IN0 */
595596   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
596597   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
597598   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
598599
599    PORT_START /* IN1 */
600    PORT_START_TAG("DSW0") /* IN1 */
600601   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
601602   PORT_DIPSETTING(   0x00, "1" )
602603   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
618619   PORT_DIPNAME( 0x01, 0x01, "Floppy installed")
619620   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
620621   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
621   PORT_START /* IN2 */
622
623   PORT_START_TAG("DSW1") /* IN2 */
622624   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
623625   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
624626   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
644646   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
645647    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
646648
647    PORT_START /* IN3 */
649    PORT_START_TAG("DSW2") /* IN3 */
648650   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
649651   PORT_DIPSETTING(   0x80, "COM1" )
650652   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
668670INPUT_PORTS_END
669671
670672static INPUT_PORTS_START( xtcga )
671   PORT_START /* IN0 */
673   PORT_START_TAG("IN0") /* IN0 */
672674   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
673675   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
674676   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
675677
676    PORT_START /* IN1 */
678    PORT_START_TAG("DSW0") /* IN1 */
677679   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
678680   PORT_DIPSETTING(   0x00, "1" )
679681   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
695697   PORT_DIPNAME( 0x01, 0x01, "Floppy installed")
696698   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
697699   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
698   PORT_START /* IN2 */
700
701   PORT_START_TAG("DSW1") /* IN2 */
699702   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
700703   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
701704   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
721724   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
722725    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
723726
724    PORT_START /* IN3 */
727    PORT_START_TAG("DSW2") /* IN3 */
725728   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
726729   PORT_DIPSETTING(   0x80, "COM1" )
727730   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
746749INPUT_PORTS_END
747750
748751static INPUT_PORTS_START( tandy1t )
749   PORT_START /* IN0 */
752   PORT_START_TAG("IN0") /* IN0 */
750753   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
751754   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
752755   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
753756
754    PORT_START /* IN1 */
757    PORT_START_TAG("DSW0") /* IN1 */
755758   PORT_BIT ( 0xff, 0xff,    IPT_UNUSED )
756759
757    PORT_START /* IN2 */
760    PORT_START_TAG("DSW1") /* IN2 */
758761   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
759762   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
760763   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
770773   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
771774    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
772775
773    PORT_START /* IN3 */
776    PORT_START_TAG("DSW2") /* IN3 */
774777   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
775778   PORT_DIPSETTING(   0x80, "COM1" )
776779   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
792795INPUT_PORTS_END
793796
794797static INPUT_PORTS_START( pc200 )
795   PORT_START /* IN0 */
798   PORT_START_TAG("IN0") /* IN0 */
796799   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
797800   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
798801   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
799802
800    PORT_START /* IN1 */
803    PORT_START_TAG("DSW0") /* IN1 */
801804   PORT_DIPNAME( 0x07, 0x07, "Name/Language")
802805   PORT_DIPSETTING(   0x00, "English/less checks" )
803806   PORT_DIPSETTING(   0x01, DEF_STR( Italian ) ) //prego attendere
r2782r2783
825828   PORT_DIPSETTING(   0x40, "Color 40 Columns" )
826829   PORT_DIPSETTING(   0x80, "Color 80 Columns" )
827830   PORT_DIPSETTING(   0xc0, DEF_STR( Mono ) )
828   PORT_START /* IN2 */
831
832   PORT_START_TAG("DSW1") /* IN2 */
829833PORT_BIT ( 0x80, 0x80,    IPT_UNUSED ) // com 1 on motherboard
830834   PORT_DIPNAME( 0x40, 0x40, "COM2: enable")
831835   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
r2782r2783
847851   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
848852    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
849853
850    PORT_START /* IN3 */
854    PORT_START_TAG("DSW2") /* IN3 */
851855   PORT_DIPNAME( 0xf0, 0x00, "Serial mouse")
852856   PORT_DIPSETTING(   0x80, "COM1" )
853857   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
867871   PORT_INCLUDE( pc_mouse_microsoft )   /* IN12 - IN14 */
868872   PORT_INCLUDE( pc_joystick )         /* IN15 - IN19 */
869873
870    PORT_START /* IN20 */
874    PORT_START_TAG("VIDEO") /* IN20 */
871875   PORT_CONFNAME( 0x03, 0x03, "IDA character set")
872876   PORT_CONFSETTING(0x00, "Greek")
873877   PORT_CONFSETTING(0x01, "Norwegian (Codepage 860)")
r2782r2783
882886INPUT_PORTS_END
883887
884888static INPUT_PORTS_START( pc1512 )
885   PORT_START /* IN0 */
889   PORT_START_TAG("IN0") /* IN0 */
886890   PORT_BIT ( 0xf0, 0xf0,    IPT_UNUSED )
887891   PORT_BIT ( 0x08, 0x08,    IPT_VBLANK )
888892   PORT_BIT ( 0x07, 0x07,    IPT_UNUSED )
889893
890    PORT_START /* IN1 */
894    PORT_START_TAG("DSW0") /* IN1 */
891895   PORT_DIPNAME( 0x07, 0x07, "Name/Language")
892896   PORT_DIPSETTING(   0x00, "English/less checks" )
893897   PORT_DIPSETTING(   0x01, DEF_STR( Italian ) ) //prego attendere
r2782r2783
901905   PORT_BIT( 0xc0, 0x00,   IPT_UNUSED ) // not used in pc1512
902906   PORT_BIT( 0xe00, 0x00,   IPT_UNUSED ) // not used in pc1512
903907   PORT_BIT( 0xe000, 0x00,   IPT_UNUSED ) // not used in pc1512
904   PORT_START /* IN2 */
908
909   PORT_START_TAG("DSW1") /* IN2 */
905910PORT_BIT ( 0x80, 0x80,    IPT_UNUSED ) // com 1 on motherboard
906911   PORT_DIPNAME( 0x40, 0x40, "COM2: enable")
907912   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
r2782r2783
923928   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
924929    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
925930
926    PORT_START /* IN3 */
931    PORT_START_TAG("DSW2") /* IN3 */
927932   PORT_DIPNAME( 0xf0, 0x00, "Serial mouse")
928933   PORT_DIPSETTING(   0x80, "COM1" )
929934   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
947952INPUT_PORTS_END
948953
949954static INPUT_PORTS_START( pc1640 )
950   PORT_START   /* IN0 */
955   PORT_START_TAG("IN0")   /* IN0 */
951956   PORT_DIPNAME( 0x08, 0x08, "VGA 1")
952957   PORT_DIPSETTING(   0x08, DEF_STR( Off ) )
953958   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
r2782r2783
973978   PORT_DIPSETTING(   0x80, DEF_STR( Off ) )
974979   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
975980
976    PORT_START /* IN1 */
981    PORT_START_TAG("DSW0") /* IN1 */
977982   PORT_DIPNAME( 0x07, 0x07, "Name/Language")
978983//  PORT_DIPSETTING(    0x00, "PC 512k" ) // machine crashes with ega bios at 0xc0000
979984   PORT_DIPSETTING(   0x01, DEF_STR( Italian ) ) //prego attendere
r2782r2783
10231028   PORT_DIPSETTING(   0xa000, "CGA 80 Columns" )
10241029   PORT_DIPSETTING(   0xe000, "MDA/Hercules/Multiple Graphic Adapters" )
10251030#endif
1026   PORT_START /* IN2 */
1031
1032   PORT_START_TAG("DSW1") /* IN2 */
10271033PORT_BIT ( 0x80, 0x80,    IPT_UNUSED ) // com 1 on motherboard
10281034   PORT_DIPNAME( 0x40, 0x40, "COM2: enable")
10291035   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
r2782r2783
10451051   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
10461052    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
10471053
1048    PORT_START /* IN3 */
1054    PORT_START_TAG("DSW2") /* IN3 */
10491055   PORT_DIPNAME( 0xf0, 0x00, "Serial mouse")
10501056   PORT_DIPSETTING(   0x80, "COM1" )
10511057   PORT_DIPSETTING(   0x40, "COM2" )
r2782r2783
10681074INPUT_PORTS_END
10691075
10701076static INPUT_PORTS_START( xtvga )
1071   PORT_START /* IN0 */
1077   PORT_START_TAG("IN0") /* IN0 */
10721078   PORT_DIPNAME( 0x08, 0x08, "VGA 1")
10731079   PORT_DIPSETTING(   0x08, DEF_STR( Off ) )
10741080   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
r2782r2783
10821088   PORT_DIPSETTING(   0x01, DEF_STR( Off ) )
10831089   PORT_DIPSETTING(   0x00, DEF_STR( On ) )
10841090
1085    PORT_START /* IN1 */
1091    PORT_START_TAG("DSW0") /* IN1 */
10861092   PORT_DIPNAME( 0xc0, 0x40, "Number of floppy drives")
10871093   PORT_DIPSETTING(   0x00, "1" )
10881094   PORT_DIPSETTING(   0x40, "2" )
r2782r2783
11041110   PORT_DIPNAME( 0x01, 0x01, "Floppy installed")
11051111   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
11061112   PORT_DIPSETTING(   0x01, DEF_STR( Yes ) )
1107   PORT_START /* IN2 */
1113
1114   PORT_START_TAG("DSW1") /* IN2 */
11081115   PORT_DIPNAME( 0x80, 0x80, "COM1: enable")
11091116   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
11101117   PORT_DIPSETTING(   0x80, DEF_STR( Yes ) )
r2782r2783
11301137   PORT_DIPSETTING(   0x00, DEF_STR( No ) )
11311138    PORT_DIPSETTING(    0x01, DEF_STR( Yes ) )
11321139
1133    PORT_START /* IN3 */
1140    PORT_START_TAG("DSW2") /* IN3 */
11341141   PORT_DIPNAME( 0xf0, 0x80, "Serial mouse")
11351142   PORT_DIPSETTING(   0x80, "COM1" )
11361143   PORT_DIPSETTING(   0x40, "COM2" )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team