Previous 15994 Revisions Next

r14380 Tuesday 7th February, 2012 at 20:41:19 UTC by Angelo Salese
Hooked up dummy functions for S3 SVGA card
[src/emu/video]pc_vga.c pc_vga.h
[src/mess/video]isa_svga_s3.c

src/emu/video/pc_vga.c
r14379r14380
2222    - fix video update.
2323    - rewrite video drawing functions (they are horrible)
2424    - add VESA etc.
25    - "System Information" UI currently crashes the emulation
2625    - (and many more ...)
2726
2827    per-game issues:
r14379r14380
3029    - MAME 0.01: fix 92 Hz refresh rate bug (uses VESA register?).
3130    - Bio Menace: jerky H scrolling (uses EGA mode)
3231    - Virtual Pool: ET4k unrecognized;
33    - California Chase (calchase): init bug causes messed up chars at POST
34      (gfxs works if you soft reset).
32    - California Chase (calchase): various gfx bugs, CPU related?
3533
3634    ROM declarations:
3735
r14379r14380
19961994
19971995   vga_mem_w(space,offset,data);
19981996}
1997
1998/******************************************
1999
2000S3 implementation
2001
2002******************************************/
2003
2004READ8_HANDLER(s3_port_03c0_r)
2005{
2006   UINT8 res;
2007
2008   switch(offset)
2009   {
2010      default:
2011         res = vga_port_03c0_r(space,offset);
2012         break;
2013   }
2014
2015   return res;
2016}
2017
2018WRITE8_HANDLER(s3_port_03c0_w)
2019{
2020   switch(offset)
2021   {
2022      default:
2023         vga_port_03c0_w(space,offset,data);
2024         break;
2025   }
2026}
2027
2028
2029READ8_HANDLER(s3_port_03d0_r)
2030{
2031   UINT8 res = 0xff;
2032
2033   if (CRTC_PORT_ADDR == 0x3d0)
2034   {
2035      switch(offset)
2036      {
2037         default:
2038            res = vga_port_03d0_r(space,offset);
2039            break;
2040      }
2041   }
2042
2043   return res;
2044}
2045
2046WRITE8_HANDLER(s3_port_03d0_w)
2047{
2048   if (CRTC_PORT_ADDR == 0x3d0)
2049   {
2050      switch(offset)
2051      {
2052         default:
2053            vga_port_03d0_w(space,offset,data);
2054            break;
2055      }
2056   }
2057}
2058
2059READ8_HANDLER( s3_mem_r )
2060{
2061   return vga_mem_r(space,offset);
2062}
2063
2064WRITE8_HANDLER( s3_mem_w )
2065{
2066   vga_mem_w(space,offset,data);
2067}
2068
src/emu/video/pc_vga.h
r14379r14380
5555READ8_HANDLER(trident_mem_r);
5656WRITE8_HANDLER(trident_mem_w);
5757
58READ8_HANDLER(s3_port_03c0_r);
59WRITE8_HANDLER(s3_port_03c0_w);
60READ8_HANDLER(s3_port_03d0_r);
61WRITE8_HANDLER(s3_port_03d0_w);
62READ8_HANDLER(s3_mem_r);
63WRITE8_HANDLER(s3_mem_w);
64
5865/*
5966  pega notes (paradise)
6067  build in amstrad pc1640
src/mess/video/isa_svga_s3.c
r14379r14380
5252        device_t(mconfig, ISA8_SVGA_S3, "ISA8_SVGA_S3", tag, owner, clock),
5353      device_isa8_card_interface(mconfig, *this)
5454{
55   m_shortname = "s3_864";
55   m_shortname = "s3_764";
5656}
5757
5858//-------------------------------------------------
r14379r14380
7676   m_isa->install_rom(this, 0xc0000, 0xc7fff, 0, 0, "svga", "s3_764");
7777
7878   m_isa->install_device(0x3b0, 0x3bf, 0, 0, FUNC(vga_port_03b0_r), FUNC(vga_port_03b0_w));
79   m_isa->install_device(0x3c0, 0x3cf, 0, 0, FUNC(vga_port_03c0_r), FUNC(vga_port_03c0_w));
80   m_isa->install_device(0x3d0, 0x3df, 0, 0, FUNC(vga_port_03d0_r), FUNC(vga_port_03d0_w));
79   m_isa->install_device(0x3c0, 0x3cf, 0, 0, FUNC(s3_port_03c0_r), FUNC(s3_port_03c0_w));
80   m_isa->install_device(0x3d0, 0x3df, 0, 0, FUNC(s3_port_03d0_r), FUNC(s3_port_03d0_w));
8181
82   m_isa->install_memory(0xa0000, 0xbffff, 0, 0, FUNC(vga_mem_r), FUNC(vga_mem_w));
82   m_isa->install_memory(0xa0000, 0xbffff, 0, 0, FUNC(s3_mem_r), FUNC(s3_mem_w));
8383}
8484
8585//-------------------------------------------------

Previous 15994 Revisions Next


© 1998-2018 The MESS Team