Previous 15994 Revisions Next

r9467 Thursday 28th October, 2010 at 16:01:13 UTC by Angelo Salese
[PC-88VA]: misc improvements
[src/mess/drivers]pc88va.c

src/mess/drivers/pc88va.c
r9466r9467
589589   return mame_rand(space->machine);
590590}
591591
592static READ16_HANDLER( sysop_r )
593{
594   static UINT8 sys_op;
595
596   sys_op = input_port_read(space->machine, "SYSOP_SW") & 3;
597
598   return 0xfffc | sys_op; // docs says all the other bits are high
599}
600
592601static ADDRESS_MAP_START( pc88va_io_map, ADDRESS_SPACE_IO, 16 )
593602   AM_RANGE(0x0000, 0x000f) AM_READ8(key_r,0xffff) // Keyboard ROW reading
594603//   AM_RANGE(0x0010, 0x0010) Printer / Calendar Clock Interface
r9466r9467
632641   AM_RANGE(0x0146, 0x0147) AM_WRITE8(idp_param_w,0x00ff) //Text Controller (IDP) - (R/W) Parameter
633642//   AM_RANGE(0x0148, 0x0149) Text control port 1
634643//   AM_RANGE(0x014c, 0x014f) ? CG Port
635//   AM_RANGE(0x0150, 0x0151) System Operational Mode
644   AM_RANGE(0x0150, 0x0151) AM_READ(sysop_r) // System Operational Mode
636645   AM_RANGE(0x0152, 0x0153) AM_READWRITE(bios_bank_r,bios_bank_w) // Memory Map Register
637646//   AM_RANGE(0x0154, 0x0155) Refresh Register (wait states)
638647   AM_RANGE(0x0156, 0x0157) AM_READ8(rom_bank_r,0x00ff) // ROM bank status
r9466r9467
648657//   AM_RANGE(0x01a8, 0x01a9) General-purpose timer 3 control port
649658   AM_RANGE(0x01b0, 0x01bb) AM_READ8(fdc_r,0xffff)// FDC related (765)
650659//   AM_RANGE(0x01c0, 0x01c1) ?
660   AM_RANGE(0x01c6, 0x01c7) AM_WRITENOP // ???
651661   AM_RANGE(0x01c8, 0x01cf) AM_DEVREADWRITE8("d8255_3", i8255a_r,i8255a_w,0xff00) //i8255 3 (byte access)
652662//   AM_RANGE(0x01d0, 0x01d1) Expansion RAM bank selection
653663//   AM_RANGE(0x0200, 0x021f) Frame buffer 0 control parameter
r9466r9467
658668
659669//   AM_RANGE(0x0500, 0x05ff) GVRAM
660670//   AM_RANGE(0x1000, 0xfeff) user area (???)
661//   AM_RANGE(0xff00, 0xffff) CPU internal use
671   AM_RANGE(0xff00, 0xffff) AM_NOP // CPU internal use
662672ADDRESS_MAP_END
663673// (*) are specific N88 V1 / V2 ports
664674
r9466r9467
851861   PORT_DIPNAME( 0x01, 0x01, "Speed Mode" )
852862   PORT_DIPSETTING(    0x01, "H Mode" )
853863   PORT_DIPSETTING(    0x00, "S Mode" )
864
865   PORT_START("SYSOP_SW")
866   PORT_DIPNAME( 0x03, 0x01, "System Operational Mode" )
867//   PORT_DIPSETTING(    0x00, "Reserved" )
868   PORT_DIPSETTING(    0x02, "N88 V1 Mode" )
869   PORT_DIPSETTING(    0x01, "N88 V2 Mode" )
870//   PORT_DIPSETTING(    0x03, "???" )
854871INPUT_PORTS_END
855872
856873static MACHINE_RESET( pc88va )
r9466r9467
863880
864881   bank_reg = 0x4100;
865882   backupram_wp = 1;
883
884   /* default palette */
885   {
886      UINT8 i;
887      for(i=0;i<32;i++)
888         palette_set_color_rgb(machine,i,pal1bit((i & 2) >> 1),pal1bit((i & 4) >> 2),pal1bit(i & 1));
889   }
866890}
867891
868892static const gfx_layout pc88va_chars_8x8 =

Previous 15994 Revisions Next


© 1998-2018 The MESS Team