Viewing File: <root>/src/mame/drivers/model1.c

    1  /*
    2  
    3  Sega Model 1 Hardware Overview
    4  ------------------------------
    5  
    6  Note! This document is a Work-In-Progress and covers all the dumped Sega Model 1 games, including....
    7  
    8  Star Wars Arcade (C) Sega, 1994
    9  Virtua Fighter   (C) Sega, 1993
   10  Virtua Racing    (C) Sega, 1992
   11  Wing War         (C) Sega, 1994
   12  
   13  The Sega Model 1 system comprises several PCB's....
   14  CPU PCB   - This is the main PCB. It holds the main CPU, some surface-mounted ROMs and the 3D co-processors
   15              (manufactured by Fujitsu and known as 'TGP'). The PCB is the same for all Model 1 games, but some
   16              games are not swappable due to a different internal 3D co-processor program.
   17  Video PCB - There is only one known revision of this PCB so any game can use this PCB. It contains a very large
   18              quantity of RAM, some surface-mounted ROMs and some custom Sega video chips. The RGB and Sync is also
   19              outputted from this PCB. The horizontal sync is 24kHz and requires a medium resolution (24kHz) monitor.
   20              The video PCB is plugged in below the CPU PCB.
   21  ROM PCB   - This PCB is the same for all games, only the type and number of ROMs differ per game. The ROM PCB is
   22              plugged in above the CPU PCB.
   23  I/O PCB   - This PCB connects the CPU PCB to the input and output controls via some multi-wire connectors.
   24  Comm PCB  - This PCB is used for communication when linking 2 PCBs together (generally for Virtua Racing only).
   25              It plugs in below the Video PCB.
   26  Sound PCB - This PCB generates the sound for the game. There is no amplification of the sound here, that is done
   27              via the Amp PCB.
   28  Motor PCB - This PCB is used to control the motors and steering column clutch used for the force feedback steering.
   29  Amp PCB   - This PCB amplifies the sound generated by the sound PCB.
   30  
   31  
   32  ROM PCB
   33  -------
   34  
   35  MODEL 1 MEMORY BD 837-7893 171-6079B (C) SEGA 1992
   36  |--------------------------------------------------------------------------------------------|
   37  |J1                                                                                          |
   38  |J2      IC5            IC14                    IC26                   IC27                  |
   39  |J3                                                                                          |
   40  |J4      IC4            IC15                                                                 |
   41  |J5                                             IC28                   IC29                  |
   42  |J12     IC13           IC12                                                                 |
   43  |                                                                                            |
   44  |        IC11           IC10                    IC30                   IC31                  |
   45  |                                                                                            |
   46  | CN1    IC9            IC8       CN2                                                    CN3 |
   47  |                                               IC32                   IC33                  |
   48  |        IC7            IC6                                                                  |
   49  |                                               84256                  84256              J11|
   50  |        IC41           IC42                                                              J10|
   51  |                                               84256                  84256              J9 |
   52  |        IC39           IC40                                                              J8 |
   53  |                                                                                         J7 |
   54  |                                                                     315-5478            J6 |
   55  |--------------------------------------------------------------------------------------------|
   56  Notes:
   57        J1, J2, J4    - Jumpers to configure ROM sizes, all set to 2-3
   58        J3, J5, J6,   \
   59        J7, J8, J9    \
   60        J10, J11,     | Jumpers to configure ROM sizes, all set to 1-2
   61        J12           /
   62        CN1, CN2, CN3 - Connectors for joining ROM PCB to CPU PCB
   63        84256         - Fujitsu 84256 32k x8 SRAM (x4, DIP28)
   64        315-5478      - Lattice GAL16V8A (DIP20)
   65  
   66        IC4, IC5      - Hitachi HN27C1024 128k x16bit EPROM (DIP40)
   67  
   68        IC14, IC15    - Intel 27C040 512k x 8bit EPROM (DIP32)
   69  
   70        IC6, IC7, IC8,\
   71        IC9, IC10,    \
   72        IC11, IC12,   | 834000 4M MASKROM (DIP32)
   73        IC13,         |
   74        IC39, IC40,   /
   75        IC41, IC42    /
   76  
   77        IC26, IC27,   \
   78        IC28, IC29,   | 8316200 16M MASKROM (DIP42)
   79        IC30, IC31,   /
   80        IC32, IC33    /
   81  
   82        IC#   PCB
   83              Label   Virtua Racing    Virtua Fighter    Wing War       Star Wars Arcade
   84        --------------------------------------------------------------------------------
   85        4     B       EPR-14878A       EPR-16080         EPR-16951      -
   86        5     A       EPR-14879A       EPR-16081         EPR-16950      EPR-16467
   87        14    LO      EPR-14882        EPR-16082         EPR-16729      EPR-16468
   88        15    HI      EPR-14883        EPR-16083         EPR-16730      EPR-16469
   89        6     LO      MPR-14880        MPR-16084         MPR-16738      -
   90        7     HI      MPR-14881        MPR-16085         MPR-16737      -
   91        8     LO      MPR-14884        MPR-16086         MPR-16736      -
   92        9     HI      MPR-14885        MPR-16087         MPR-16735      -
   93        10    LO      MPR-14886        MPR-16088         MPR-16734      -
   94        11    HI      MPR-14887        MPR-16089         MPR-16733      -
   95        12    LO      MPR-14888        MPR-16090         -              -
   96        13    HI      MPR-14889        MPR-16091         -              -
   97        39    LO      MPR-14898        -                 MPR-16741      MPR-16472
   98        40    ML      MPR-14899        -                 MPR-16742      MPR-16473
   99        41    MH      MPR-14900        -                 MPR-16739      MPR-16474
  100        42    HI      MPR-14901        -                 MPR-16740      MPR-16475
  101        26    LO      MPR-14890        MPR-16096         MPR-16743      MPR-16476
  102        27    HI      MPR-14891        MPR-16097         MPR-16744      MPR-16477
  103        28    LO      MPR-14892        MPR-16098         MPR-16745      MPR-16478
  104        29    HI      MPR-14893        MPR-16099         MPR-16746      MPR-16479
  105        30    LO      MPR-14894        MPR-16100         MPR-16747      MPR-16480
  106        31    HI      MPR-14895        MPR-16101         MPR-16748      MPR-16481
  107        32    LO      MPR-14896        MPR-16102         MPR-16749      -
  108        33    HI      MPR-14897        MPR-16103         MPR-16750      -
  109  
  110        - denotes socket not populated.
  111  
  112  
  113  CPU PCB
  114  -------
  115  
  116  MODEL-1 CPU BOARD 837-8886171-6298C (C) SEGA 1992
  117  |---------------------------------------------------------------------------------------------------------------------------------|
  118  |                        CN2                                    CN1                                   CN4                         |
  119  |         |---------------------------------|   |---------------------------------|            |---------------|                  |
  120  |         |---------------------------------|   |---------------------------------|            |---------------|                  |
  121  |                                                                                                                                 |
  122  |                       OPR-14746.68    |-|                                    5.5V_BATT                                         |-|
  123  |       |-----------|                   | |                                                                          PC910       | |
  124  |       |           |   OPR-14747.69    | |                                                              *1                      | |
  125  |       | SEGA      |                   | |                                    84256     HM658128                    PC910       | |
  126  |       | 315-5572  |                   | |CN13   |-----------|                                                                  | |CN3
  127  |       |           |                   | |       |NEC        |                84256     HM658128                    PC910       | |
  128  |       |           |                   | |       |D70615GD-16|                                                                  | |
  129  |       |-----------|                   |-|       |V60        |                                                                  |-|
  130  |                                                 |           |                                                                   |
  131  |                                                 |           |                                                                   |
  132  |                      32MHz                      |-----------|            |---------|     |---------|                            |
  133  |                                                                          |SEGA     |     |SEGA     |     MB8421                 |
  134  |       OPR-14745.65                                                       |315-5465 |     |315-5338A|                   *2       |
  135  |                                                                          |         |     |         |                            |
  136  |                                                                          |---------|     |---------|                            |
  137  |       OPR-14744.64            40MHz                                                                                             |
  138  |                                                                                      J6             CN5                         |
  139  |                                                                                      J5      |---------------|                  |
  140  |                                                                                      J4      |---------------|                  |
  141  |                         3771                                                                                                    |
  142  |       |-----------|     3771                   |-----------|                                                                    |
  143  |       |           |                            |           |                                                                    |
  144  |       | SEGA      |                            | SEGA      |                                                           D71051   |
  145  |       | 315-5572  |                            | 315-5573  |                  |-----------|                                     |
  146  |       |           |                            |           |                  |           |     M5M5178     OPR-14743.45        |
  147  |       |           |                            |           |                  | SEGA      |     M5M5178                         |
  148  |       |-----------|                            |-----------|                  | 315-5464  |     M5M5178     OPR-14742.44        |
  149  |                                                                               |           |     M5M5178                         |
  150  |                                                                               |           |                                     |
  151  |                                                                               |-----------|                           315-5546A |
  152  |                                                                                                                                 |
  153  |       |-----------|                            |-----------|                                                |-----------|       |
  154  |       |           |                            |           |                                    84256       |           |       |
  155  |       | SEGA      |                            | SEGA      |                                    84256       | SEGA      |       |
  156  |       | 315-5571  |                            | 315-5571  |                                    84256       | 315-5463  |       |
  157  |       |           |                            |           |                                    84256       |           |       |
  158  |       |           |                            |           |                                                |           |       |
  159  |       |-----------|                            |-----------|                                                |-----------|       |
  160  |                                                                                                                                 |
  161  |                                                                                                     CN6                         |
  162  |                     LED1 LED2 LED3 LED4 LED5                                                 |---------------|                  |
  163  |       LED11         LED6 LED7 LED8 LED9 LED10                                                |---------------|                  |
  164  |---------------------------------------------------------------------------------------------------------------------------------|
  165  Notes:
  166        84256         - Fujitsu 84256A-70LL 32k x8 SRAM (x6, DIP28)
  167        HM658128      - Hitachi HM658128ALP-10 16k x8 SRAM (x2, DIP32)
  168        M5M5178       - Mitsubishi M5M5178AP-25 8k x8 SRAM (x4, DIP28)
  169        CN1, CN2      - Connectors to join CPU board to Video board
  170        CN3           - Connector for power and input/output controls (joins small adapter board to a larger filter board)
  171        CN4, CN5, CN6 - Connectors to join ROM board to CPU board
  172        CN13          - Connector for optional daughterboard (not used)
  173        3771          - Fujitsu MB3771 master reset IC (x2, DIP8)
  174        5.5_BATT      - NEC 5.5 volt battery
  175        PC910         - Sharp PC910 opto-isolator (x3, DIP8)
  176        D71051        - NEC uPD71051C-10 UART (DIP28)
  177        MB8421        - Fujitsu MB8421-12LP RAM? (SDIP52)
  178        *1            - Unpopulated position for Fujitsu MB8421
  179        D70615GD-16   - NEC uPD70615GD-16-S V60 CPU, running at 16.000MHz (QFP120, clock 32 / 2)
  180        315-5546A     - Lattice GAL16V8A (DIP20)
  181        315-5571      - Sega Custom (IC57/IC58, QFP160)  \
  182        315-5572      - Sega Custom (IC60/IC66, QFP160)  / According to test mode, these chips are the TGPs
  183        315-5573      - Sega Custom (QFP160)
  184        315-5463      - Sega Custom (QFP160)
  185        315-5464      - Sega Custom (QFP160)
  186        315-5465      - Sega Custom (QFP100)
  187        315-5338A     - Sega Custom (QFP100)
  188        *2            - Unpopulated position for 315-5338A
  189        J4, J5, J6    - Jumpers, all set to 2-3
  190  
  191        OPR-14742.44  \
  192        OPR-14743.45  - 1M SOP40 MASKROMs, tied to 315-5464
  193  
  194        OPR-14744.64  \
  195        OPR-14745.65  - 1M SOP40 MASKROMs, tied to both 315-5572's
  196  
  197        OPR-14746.68  \
  198        OPR-14747.69  - 1M SOP40 MASKROMs, tied to 315-5572 @ IC66
  199  
  200  
  201  VIDEO PCB
  202  ---------
  203  
  204  837-7894 171-6080D (C) SEGA 1992
  205  |---------------------------------------------------------------------------------------------------------------------------------|
  206  |                        CN2                                    CN1                                                               |
  207  |         |---------------------------------|   |---------------------------------|                                               |
  208  |         |---------------------------------|   |---------------------------------|                                               |
  209  |                                                                                                                     HM65256     |
  210  |                                                                                     J3                                          |
  211  |   HM658512       HM658512                                        HM658128           J2                              HM65256     |
  212  |                                        |-----------|                                      |-----------|                         |
  213  |                                        |           |             HM658128                 |           |                         |
  214  |                                        | SEGA      |                                      | SEGA      |             HM658128    |
  215  |   HM654128       HM654128              | 315-5422  |                                      | 315-5292  |                         |
  216  |                                        |           |                                      |           |             HM658128    |
  217  |                                        |           |             M5M5178                  |           |                         |
  218  |                                        |-----------|                                      |-----------|             HM658128    |
  219  |   HM654128       HM654128                                        M5M5178                                                        |
  220  |                                      |-----------|                                                                  HM658128    |
  221  |   CY7B185           J1               |           |                                             J4                               |
  222  |   CY7B185                            | SEGA      |                                                                              |
  223  |   CY7B185                            | 315-5423  |        OPR-14748.16                315-5483                                  |
  224  |   CY7B185                            |           |                                                                              |
  225  |                                      |           |                                    315-5484                                  |
  226  |                                      |-----------|                                                                              |
  227  |                                                                                                                                 |
  228  |        |-----------|                 |-----------|                                              M5M5178                         |
  229  |        |           |                 |           |                                                                              |
  230  |        | SEGA      |                 | SEGA      |                                              M5M5178                         |
  231  |        | 315-5425  |                 | 315-5424  |        OPR-14748.15                                                          |
  232  |        |           |                 |           |                                                                              |
  233  |        |           |                 |           |                                                                              |
  234  |        |-----------|                 |-----------|                                                                              |
  235  |                                                                                                                                 |
  236  |                                                                                                                                 |
  237  |  HM65256         HM65256          HM65256        HM65256                                     M5M5178                            |
  238  |                                                                                                                                 |
  239  |  HM65256         HM65256          HM65256        HM65256            315-5485                 M5M5178                            |
  240  |                                                                                                                                 |
  241  |  HM65256         HM65256          HM65256        HM65256                                     M5M5178                            |
  242  |                                                                                                                                 |
  243  |  HM65256         HM65256          HM65256        HM65256            36MHz        315-5486                                       |
  244  |                                                                                                                                 |
  245  |  HM65256         HM65256          HM65256        HM65256                         315-5486                                       |
  246  |                                                                                                                                 |
  247  |  HM65256         HM65256          HM65256        HM65256                         315-5486                                       |
  248  |                                                                                                                                 |
  249  |  HM65256         HM65256          HM65256        HM65256                                                                        |
  250  |                                                                                                                                 |
  251  |  HM65256         HM65256          HM65256        HM65256                                        CN4          CN3      LED1      |
  252  |---------------------------------------------------------------------------------------------------------------------------------|
  253  Notes:
  254        HM65256  - Hitachi HM65256BLSP-10 32k x8 SRAM (x34, DIP28)
  255        HM658128 - Hitachi HM658128ALP-10 16k x8 SRAM (x10, DIP32)
  256        HM658512 - Hitachi HM658512LP-8 64k x8 SRAM (x2, DIP32)
  257        M5M5178  - Mitsubishi M5M5178AP-25 8k x8 SRAM (x7, DIP28)
  258        CY7B185  - Cypress CY7B185 8k x8 SRAM (x4, DIP28)
  259        J1       - Jumper, set to 2-3
  260        J2       - Jumper, set to 1-2
  261        J3       - Jumper, set to 2-3
  262        J4       - Jumper, set to 1-2
  263        CN1, CN2 - Connectors to join Video board to CPU board
  264        CN3      - Connector for R/G/B/Sync output (@ 24kHz)
  265        CN4      - 20 pin IDC flat-cable connector (purpose unknown)
  266        315-5483 - PAL CK2605 (DIP20)
  267        315-5484 - Lattice GAL16V8A (DIP20)
  268        315-5485 - Lattice GAL16V8A (DIP20)
  269        315-5486 - Lattice GAL16V8A (x3, DIP20)
  270        315-5422 - Sega Custom (QFP160)
  271        315-5423 - Sega Custom (QFP160)
  272        315-5424 - Sega Custom (QFP160)
  273        315-5425 - Sega Custom (QFP160)
  274        315-5292 - Sega Custom (QFP160)
  275  
  276        OPR-14748.15  \
  277        OPR-14748.16  - 1M SOP40 MASKROMs, tied to 315-5423 & 315-5424. Note both ROMs are identical.
  278  
  279  
  280  I/O PCB
  281  -------
  282  
  283  837-8950-01 (C) SEGA 1992
  284  |-------------------------------------------|
  285  | CN6                           J3   J2     |
  286  |                                        CN5|
  287  |                      DSW3       LED1      |
  288  |                                           |
  289  | SW7    |---------|                        |
  290  |  32MHz |SEGA     |   DSW1                 |
  291  | SW6    |315-5338A|                        |
  292  |        |         |                        |
  293  | SW5    |---------|   DSW2                 |
  294  |                                        CN1|
  295  | SW4      MB8464                           |
  296  |          14869.25                         |
  297  |   3771                                    |
  298  |          Z80                              |
  299  |   93C45                                   |
  300  |                               PC910 PC910 |
  301  |   LED2                           J1       |
  302  |      M6253                                |
  303  | CN3              CN2          CN4     TL1 |
  304  |-------------------------------------------|
  305  Notes:
  306        315-5338A - Sega Custom (QFP100)
  307        Z80       - Zilog Z0840004PSC Z80 CPU, running at 4.000MHz (DIP40, clock 32 / 8)
  308        14869.25  - ST Microelectronics M27C512 64k x8 EPROM (DIP28, labelled 'EPR-14869')
  309                    There is an alternative revision B 'EPR-14869B' also
  310        MB8464    - Fujitsu MB8464 8k x8 SRAM (DIP28)
  311        93C45     - 128bytes x8 EEPROM (DIP8)
  312        M6253     - OKI M6253 (DIP18)
  313        3771      - Fujitsu MB3771 Master Reset IC (DIP8)
  314        PC910     - Sharp PC910 opto-isolator (x2, DIP8)
  315        DSW1/2/3  - 8-position Dip Switch (x3)
  316        J1        - Jumper, set to 2-3
  317        J2, J3    - Jumper, both set to 1-2
  318        CN1       - 50 pin connector (joins to control panel assembly)
  319        CN2       - 26 pin connector (joins to foot pedal assembly)
  320        CN3       - 10 pin connector for power input
  321        CN4       - 6 pin connector (joins to sound PCB -> CN2, used for sound communication from Main PCB to Sound PCB)
  322        CN5       - 12 pin connector for input/output controls
  323        CN6       - 12 pin connector (joins to Motor PCB)
  324        TL1       - Connector for network optical cable link
  325        SW7       - Push Button Service Switch
  326        SW6       - Push Button Test Switch
  327        SW5, SW4  - Push Button Switches (purpose unknown)
  328  
  329  
  330  Motor PCB
  331  ---------
  332  
  333  SJ25-0155-01 838-9081
  334  |------------------------------------------------------|
  335  |          CN6                      CN7        CN8     |
  336  |CN1                                    6A             |
  337  |                         DSW2                         |
  338  |        |---------|                 2A    C4149       |
  339  |        |SEGA     |      DSW1                      CN9|
  340  |        |315-5296 |                                   |
  341  |        |         |                               CN10|
  342  |        |---------|                MB3759             |
  343  |                                                   C11|
  344  |CN2                   |---------|                     |
  345  |                      |SEGA     |                     |
  346  |          8MHz        |315-5296 |                     |
  347  |                      |         |                     |
  348  |      315-5625        |---------|                     |
  349  |           3771                                       |
  350  |CN3            3773                                   |
  351  |                                    2A                |
  352  |              Z80                          C4149      |
  353  |                                                      |
  354  |              15111.12                            CN12|
  355  |                                   MB3759             |
  356  |           M6253   6264                               |
  357  |                                                      |
  358  |CN4        CN5      7-SEG                             |
  359  |------------------------------------------------------|
  360  Notes:
  361        There are also many capacitors/transistors and other power-related components which are not shown.
  362  
  363        315-5296 - Sega Custom (QFP100)
  364        7-SEG    - 7-Segment Display (x4), used for PCB status/diagnostics
  365        15111.12 - ST Microelectronics M27C512 64k x8 EPROM (DIP28, labelled 'EPR-15111')
  366        Z80      - Zilog Z0840004PSC Z80 CPU, running at 4.000MHz (DIP40, clock 8 / 2)
  367        MB8464   - Fujitsu MB8464 8k x8 SRAM (DIP28)
  368        3771     - Fujitsu MB3771 Master Reset IC (DIP8)
  369        3773     - Fujitsu MB3771 Master Reset IC with Watchdog Timer (DIP8)
  370        2A       - Fuse, 2 Amp
  371        6A       - Fuse, 6 Amp
  372        MB3759   - Fujitsu MB3759 Switching Regulator Controller (x2, DIP16)
  373        CN1, CN2 - Connects to Left Side I/O PCB
  374        CN3, CN4 - Connects to Right Side I/O PCB
  375        CN5      - Connects to Steering Voltage Regulator (Left and Right Sides)
  376        CN6      - Connects to Power Supply (+5V)
  377        CN7, CN8 - Connects to 28VAC transformer
  378        CN9      - 2 pin connector (not used?)
  379        CN10     - 2 pin connector (not used?)
  380        CN11     - 7 pin connector (joins to Motor and Clutch Left Side)
  381        CN12     - 7 pin connector (joins to Motor and Clutch Right Side)
  382        DSW1/2   - 8-position Dip Switch (x2)
  383                   +-------------------------------------------------+
  384                   |DSW1               1   2   3   4   5   6   7   8 |
  385                   +---------+-------+---+---+---+---+---+---+---+---+
  386                   |Feedback | Light |OFF|OFF|OFF|   |   |   |   |   |
  387                   |Weight   |       +---+---+---+   |   |   |   |   |
  388                   |PL1      |  /\   |ON |OFF|OFF|   |   |   |   |   |
  389                   |         |  ||   +---+---+---+   |   |   |   |   |
  390                   |         |       |OFF|ON |OFF|   |   |   |   |   |
  391                   |         |       +---+---+---+   |   |   |   |   |
  392                   |         |       |ON |ON |OFF|   |   |   |   |   |
  393                   |         |       +---+---+---+   |   |   |   |   |
  394                   |         |       |OFF|OFF|ON |   |   |   |   |   |
  395                   |         |  ||   +---+---+---+   |   |   |   |   |
  396                   |         |  \/   |ON |OFF|ON |   |   |   |   |   |
  397                   |         |       +---+---+---+   |   |   |   |   |
  398                   |         | Heavy |ON |ON |ON |   |   |   |   |   |
  399                   +---------+-------+---+---+---+---+   |   |   |   |
  400                   |Power On | Yes   |           |OFF|   |   |   |   |
  401                   |Check    +-------+-----------+---+   |   |   |   |
  402                   |         | No    |           |ON |   |   |   |   |
  403                   +---------+-------+-----------+---+---+---+   |   |
  404                   |Not Used |                       |OFF|OFF|   |   |
  405                   +---------+-----------------------+---+---+---+---+
  406                   |Not Used |                               |OFF|OFF|
  407                   +---------+-------------------------------+---+---+
  408  
  409                   +-------------------------------------------------+
  410                   |DSW2               1   2   3   4   5   6   7   8 |
  411                   +---------+-------+---+---+---+---+---+---+---+---+
  412                   |Feedback | Light |OFF|OFF|OFF|   |   |   |   |   |
  413                   |Weight   |       +---+---+---+   |   |   |   |   |
  414                   |PL2      |  /\   |ON |OFF|OFF|   |   |   |   |   |
  415                   |         |  ||   +---+---+---+   |   |   |   |   |
  416                   |         |       |OFF|ON |OFF|   |   |   |   |   |
  417                   |         |       +---+---+---+   |   |   |   |   |
  418                   |         |       |ON |ON |OFF|   |   |   |   |   |
  419                   |         |       +---+---+---+   |   |   |   |   |
  420                   |         |       |OFF|OFF|ON |   |   |   |   |   |
  421                   |         |  ||   +---+---+---+   |   |   |   |   |
  422                   |         |  \/   |ON |OFF|ON |   |   |   |   |   |
  423                   |         |       +---+---+---+   |   |   |   |   |
  424                   |         | Heavy |ON |ON |ON |   |   |   |   |   |
  425                   +---------+-------+---+---+---+---+   |   |   |   |
  426                   |Power On | Yes   |           |OFF|   |   |   |   |
  427                   |Check    +-------+-----------+---+   |   |   |   |
  428                   |         | No    |           |ON |   |   |   |   |
  429                   +---------+-------+-----------+---+---+---+---+---+
  430                   |7-SEG LED|Display V.R. Value 00-80-FF    |OFF|OFF|
  431                   |         +-------------------------------+---+---+
  432                   |         |Display Clutch Value           |ON |OFF|
  433                   |         +-------------------------------+---+---+
  434                   |         |Data from the I/O Board (00-FF)|OFF|ON |
  435                   |         +-------------------------------+---+---+
  436                   |         |Data to the I/O Board (00-FF)  |ON |ON |
  437                   +---------+-------------------------------+---+---+
  438  
  439  
  440  Comm PCB
  441  --------
  442  
  443  MODEL-1 COMMUNICATION BD 837-8842 171-6293B (C) SEGA 1992
  444  |--------------------------------------------------------------------------------|
  445  |                                                                                |
  446  |    MB89237A            MB89374                                                 |
  447  |       JP4                                                                 LED1 |
  448  |    15112.17            Z80                                                     |
  449  |    JP2  JP3                                                       75179        |
  450  |    MB8464              315-5624                                     JP6        |
  451  |                                                       315-5547                 |
  452  |        315-5611                                            SW1    PC910     CN4|
  453  |                                                                                |
  454  |                                                                   PC910     CN5|
  455  |     MB8421             MB8431                                JP7               |
  456  |                                                                   JP5          |
  457  |        JP8                                                                  CN7|
  458  |                CN1                                    CN2                      |
  459  | |---------------------------------|   |---------------------------------|   CN6|
  460  | |---------------------------------|   |---------------------------------|      |
  461  |--------------------------------------------------------------------------------|
  462  Notes:
  463        15112.17 - AMD AM27C100 128k x8 EPROM (DIP32, labelled 'EPR-15112')
  464        Z80      - Zilog Z0840004PSC Z80 CPU, running at 4.000MHz (DIP40)
  465        MB8464   - Fujitsu MB8464 8k x8 SRAM (DIP28)
  466        MB8421   - Fujitsu MB8421-12LP RAM? (SDIP52)
  467        MB8431   - Fujitsu MB8431-90LP RAM? (SDIP52)
  468        MB89237A - Fujitsu MB89237A ? (DIP20)
  469        MB89374  - Fujitsu MB89374 ? (SDIP42)
  470        75179    - Texas Instruments SN75179 Differential Driver and Receiver Pair (DIP8)
  471        315-5547 - AMI 18CV8PC-25 PAL (DIP20)
  472        315-5624 - MMI PAL16L8BCN PAL (DIP20)
  473        315-5611 - Lattice GAL16V8A PAL (DIP20)
  474        PC910    - Sharp PC910 opto-isolator (x2, DIP8)
  475        SW1      - Push Button Switch (purpose unknown)
  476        CN1, CN2 - Connectors to join Comm board to Video board
  477        CN4      - 8 pin connector (purpose unknown)
  478        CN5      - 6 pin connector (purpose unknown)
  479        CN6, CN7 - Connectors for network optical cable link
  480        JP2      - Jumper, set to 2-3
  481        JP3      - Jumper, set to 1-2
  482        JP4      - Jumper, set to 1-2
  483        JP5      - Jumper, shorted
  484        JP6      - Jumper, not shorted
  485        JP7      - Jumper, not shorted
  486        JP8      - Jumper, set to 1-2
  487  
  488  
  489  Sound PCB
  490  ---------
  491  
  492  MODEL-1 SOUND BD 837-8679 (C) SEGA 1992
  493  |-----------------------------------------------------------|   SOUND BD OPTION 837-8680 (C) SEGA 1992
  494  | CN2                    CN1                 CN5  CN6  CN7  |   |--------------------------|
  495  |                   LED5               CN9                  |   |  CN2    CN3  CN4 CN5     |
  496  | PC910                                               TL062 |   |              uPC844C     |
  497  |                JP5                           TL062        |   |     LC78820        TL062 |
  498  | JP3     IC8    JP6                                        |   |                          |
  499  | JP4                MB8464    82C51                 uPC844C|   |             IC5          |
  500  |                    MB8464                YM3438           |   |                          |
  501  | JP1     IC7                                               |   |    IC3                   |
  502  | JP2                                                       |   |             IC4          |
  503  |                                                  LC78820  |   | LED                      |
  504  |                  315-5578                16MHz            |   |JP6           |---------| |
  505  |                                                           |   |JP5           |SEGA     | |
  506  |                  315-5577                                 |   |JP4           |315-5560 | |
  507  |                                                           |   |JP3  315-5579 |         | |
  508  |                           |---------|                     |   |JP2           |---------| |
  509  | |-----------------|       |SEGA     |    CN8              |   |JP1    CN1                |
  510  | |  TMP68000N-10   |       |315-5560 |          315-5579   |   |--------------------------|
  511  | |                 |       |         |                     |   Notes:
  512  | |-----------------|  JP7  |---------|          IC33       |         JP1, JP2 - Jumpers, both set to 2-3
  513  |                                         IC31              |         JP3, JP4,- Jumpers, all set to 1-2
  514  |   LED1 LED2 LED3 LED4                          IC32       |         JP5, JP6 /
  515  |DSW1                3771      20MHz                        |         CN1, CN2 - Connectors to join Sound Option Board to Main Sound Board
  516  |-----------------------------------------------------------|         CN3      - 5 pin connector, unamplified sound out to Amp PCB
  517                                                                        CN4, CN5 - Unamplified audio output, left/right RCA audio connectors (not used)
  518  Notes:
  519        TMP68000N-10- Toshiba TMP68000N-10 CPU, running at 10.000MHz (SDIP64, clock 20 / 2)
  520        82C51       - Toshiba 82C51AM-10 Programmable 8-bit I/O Serial Interface (SOP28)
  521        DSW1        - 4 position Dip Switch
  522        MB8464      - Fujitsu MB8464 8k x8 SRAM (DIP28)
  523        3771        - Fujitsu MB3771 Master Reset IC (DIP8)
  524        TL062       - ST Microelectronics Dual Low Power Operational Amplifier (DIP8)
  525        PC910       - Sharp PC910 opto-isolator (DIP8)
  526        LC78820     - Sanyo LC78820 2-channel 18-bit D/A Converter (DIP20)
  527        uPC844C     - NEC uPC844C Quad High Speed Wide Band Operational Amplifier (DIP14)
  528        315-5560    - Sega Custom (QFP100)
  529        315-5577    - Lattice GAL16V8A (DIP20)
  530        315-5578    - Lattice GAL16V8A (DIP20)
  531        315-5579    - Lattice GAL16V8A (DIP20)
  532        YM3438      - Yamaha YM3438 sound chip, running at 8.000MHz (DIP24, clock 16 / 2)
  533        JP1, JP2    - Jumpers to configure ROM size of IC7, both set to 2-3
  534        JP3, JP4    - Jumpers to configure ROM size of IC8, both set to 2-3
  535        JP5, JP6    - Jumpers to configure size of RAM, both set to 2-3
  536        JP7         - Jumper, set to 2-3
  537        JP13, JP14, \
  538        JP15, JP16, | Jumpers to configure size of ROMs at IC31, IC32 & IC33
  539        JP17, JP18  / JP13 & JP14 set to 2-3, others set to 1-2
  540        CN1         - 10 pin connector for power input (+5V, GND, +12V)
  541        CN2         - 6 pin connector (joins to main PCB, used for sound communication from Main PCB to Sound PCB)
  542        CN5         - 5 pin connector, unamplified sound out to Amp PCB
  543        CN6, CN7    - Unamplified audio output, left/right RCA audio connectors (not used)
  544        CN8, CN9    - Connectors to join Sound Option Board to Main Sound Board
  545  
  546        Sound Main PCB
  547        --------------
  548  
  549                      IC#   PCB
  550                            Label        Virtua Racing    Virtua Fighter    Wing War     Star Wars Arcade
  551                      -----------------------------------------------------------------------------------
  552                      7     1024/4096    EPR-14870A       EPR-16120         EPR-16751    !
  553                      8     1024/4096    -                EPR-16121         EPR-16752    ?
  554                      31    27C4001      -                -                 -            ?
  555                      32    23C16000     MPR-14873        MPR-16122         MPR-16753    !
  556                      33    23C16000     -                MPR-16123         MPR-16754    ?
  557  
  558        Sound Sub PCB
  559        -------------
  560  
  561                      IC#   PCB
  562                            Label        Virtua Racing    Virtua Fighter    Wing War     Star Wars Arcade
  563                      -----------------------------------------------------------------------------------
  564                      3     27C4001      -                -                 -            ?
  565                      4     23C16000     MPR-14876        MPR-16124         MPR-16755    ?
  566                      5     23C16000     -                MPR-16125         MPR-16756    ?
  567  
  568                      - denotes socket known to be not populated.
  569                      ! denotes known to be not dumped.
  570                      ? denotes unknown if socket is populated or not, but not dumped either way.
  571  
  572  
  573  Audio Mix PCB
  574  -------------
  575  
  576  839-0542 (C) SEGA 1992
  577  |-------------|
  578  |             |
  579  |             |
  580  |CN1  CN3  CN2|
  581  |             |
  582  |             |
  583  |-------------|
  584  Notes:
  585        This is a very small PCB with only 3 connectors on it and 4 resistors
  586        which simply mixes the left/right audio into one overall output which
  587        is fed into the Amp PCB.
  588        CN1 - 5 pin connector, right channel audio input
  589        CN2 - 5 pin connectos, mixed audio output to Amp PCB
  590        CN3 - 5 pin connector, left channel audio input
  591  
  592  
  593  Amp PCB
  594  -------
  595  
  596  838-10018 SJ25-0168-03
  597  |----------------------------------|
  598  |             CN1                  |
  599  |                        7812   CN2|
  600  |CN3                               |
  601  |                                  |
  602  |                        TA8225H   |
  603  |                                  |
  604  |                               CN4|
  605  |                                  |
  606  |                                  |
  607  |                        TA8225H   |
  608  |                                  |
  609  |LCH                               |
  610  |RCH                               |
  611  |----------------------------------|
  612  Notes:
  613        There are also many capacitors/transistors and other power-related
  614        components which are not shown.
  615  
  616        7812     - 12V voltage regulator
  617        TA8225H  - Toshiba TA8225H 45W power amplifier (x2)
  618        CN1      - 3 pin connector, 12VAC power input
  619        CN2      - 2 pin 12VDC power output
  620        CN3      - 7 pin connector, joins to credit board and coin mech (power/credit related outputs)
  621        CN4      - 4 pin connector, amplified dual (left/right) speaker audio outputs
  622        RCH, LCH - RCA connectors, left/right sound input from CN2 of Audio Mix PCB
  623  
  624  
  625  */
  626  
  627  #include "emu.h"
  628  #include "cpu/v60/v60.h"
  629  #include "video/segaic24.h"
  630  #include "cpu/m68000/m68000.h"
  631  #include "cpu/mb86233/mb86233.h"
  632  #include "sound/multipcm.h"
  633  #include "sound/2612intf.h"
  634  #include "machine/nvram.h"
  635  #include "includes/model1.h"
  636  
  637  #include "vr.lh"
  638  
  639  
  640  READ16_MEMBER(model1_state::io_r)
  641  {
  642      static const char *const analognames[] = { "AN0", "AN1", "AN2", "AN3", "AN4", "AN5", "AN6", "AN7" };
  643      static const char *const inputnames[] = { "IN0", "IN1", "IN2" };
  644  
  645      if(offset < 0x8)
  646          return ioport(analognames[offset])->read_safe(0x00);
  647  
  648      if(offset == 0x0f)
  649          return m_lamp_state;
  650  
  651      if(offset < 0x10)
  652      {
  653          offset -= 0x8;
  654          if(offset < 3)
  655              return ioport(inputnames[offset])->read();
  656          return 0xff;
  657      }
  658  
  659      logerror("IOR: %02x\n", offset);
  660      return 0xffff;
  661  }
  662  
  663  WRITE16_MEMBER(model1_state::io_w)
  664  {
  665      if(offset == 0x0f){
  666          // tested in vr, vf, swa, wingwar
  667          set_led_status(machine(), 0, data & 0x4);   // START (1)
  668          set_led_status(machine(), 1, data & 0x8);   // VIEW1 (START2 - VF)
  669          set_led_status(machine(), 2, data & 0x10);  // VIEW2 (VIEW - SWA)
  670          set_led_status(machine(), 3, data & 0x20);  // VIEW3
  671          set_led_status(machine(), 4, data & 0x40);  // VIEW4
  672          set_led_status(machine(), 5, data & 0x80);  // RACE LEADER
  673          m_lamp_state = data;
  674          return;
  675      }
  676      logerror("IOW: %02x %02x\n", offset, data);
  677  }
  678  
  679  READ16_MEMBER(model1_state::fifoin_status_r)
  680  {
  681      return 0xffff;
  682  }
  683  
  684  WRITE16_MEMBER(model1_state::bank_w)
  685  {
  686      if(ACCESSING_BITS_0_7) {
  687          switch(data & 0xf) {
  688          case 0x1: // 100000-1fffff data roms banking
  689              membank("bank1")->set_base(machine().root_device().memregion("maincpu")->base() + 0x1000000 + 0x100000*((data >> 4) & 0xf));
  690              logerror("BANK %x\n", 0x1000000 + 0x100000*((data >> 4) & 0xf));
  691              break;
  692          case 0x2: // 200000-2fffff data roms banking (unused, all known games have only one bank)
  693              break;
  694          case 0xf: // f00000-ffffff program roms banking (unused, all known games have only one bank)
  695              break;
  696          }
  697      }
  698  }
  699  
  700  
  701  
  702  void model1_state::irq_raise(int level)
  703  {
  704      //  logerror("irq: raising %d\n", level);
  705      //  irq_status |= (1 << level);
  706      m_last_irq = level;
  707      machine().device("maincpu")->execute().set_input_line(0, HOLD_LINE);
  708  }
  709  
  710  IRQ_CALLBACK_MEMBER(model1_state::irq_callback)
  711  {
  712      return m_last_irq;
  713  }
  714  // vf
  715  // 1 = fe3ed4
  716  // 3 = fe3f5c
  717  // other = fe3ec8 / fe3ebc
  718  
  719  // vr
  720  // 1 = fe02bc
  721  // other = f302a4 / fe02b0
  722  
  723  // swa
  724  // 1 = ff504
  725  // 3 = ff54c
  726  // other = ff568/ff574
  727  
  728  void model1_state::irq_init()
  729  {
  730      machine().device("maincpu")->execute().set_input_line(0, CLEAR_LINE);
  731      machine().device("maincpu")->execute().set_irq_acknowledge_callback(device_irq_acknowledge_delegate(FUNC(model1_state::irq_callback),this));
  732  }
  733  
  734  TIMER_DEVICE_CALLBACK_MEMBER(model1_state::model1_interrupt)
  735  {
  736      int scanline = param;
  737  
  738      if (scanline == 384)
  739      {
  740          irq_raise(1);
  741      }
  742      else if(scanline == 384/2)
  743      {
  744          irq_raise(m_sound_irq);
  745  
  746          // if the FIFO has something in it, signal the 68k too
  747          if (m_fifo_rptr != m_fifo_wptr)
  748          {
  749              machine().device("audiocpu")->execute().set_input_line(2, HOLD_LINE);
  750          }
  751      }
  752  }
  753  
  754  MACHINE_RESET_MEMBER(model1_state,model1)
  755  {
  756      membank("bank1")->set_base(memregion("maincpu")->base() + 0x1000000);
  757      irq_init();
  758      model1_tgp_reset(machine(), !strcmp(machine().system().name, "swa") || !strcmp(machine().system().name, "wingwar") || !strcmp(machine().system().name, "wingwaru") || !strcmp(machine().system().name, "wingwarj"));
  759      if (!strcmp(machine().system().name, "swa"))
  760      {
  761          m_sound_irq = 0;
  762      }
  763      else
  764      {
  765          m_sound_irq = 3;
  766      }
  767  
  768      // init the sound FIFO
  769      m_fifo_rptr = m_fifo_wptr = 0;
  770      memset(m_to_68k, 0, sizeof(m_to_68k));
  771  }
  772  
  773  MACHINE_RESET_MEMBER(model1_state,model1_vr)
  774  {
  775      membank("bank1")->set_base(memregion("maincpu")->base() + 0x1000000);
  776      irq_init();
  777      model1_vr_tgp_reset(machine());
  778      m_sound_irq = 3;
  779  
  780      // init the sound FIFO
  781      m_fifo_rptr = m_fifo_wptr = 0;
  782      memset(m_to_68k, 0, sizeof(m_to_68k));
  783  }
  784  
  785  READ16_MEMBER(model1_state::network_ctl_r)
  786  {
  787      if(offset)
  788          return 0x40;
  789      else
  790          return 0x00;
  791  }
  792  
  793  WRITE16_MEMBER(model1_state::network_ctl_w)
  794  {
  795  }
  796  
  797  WRITE16_MEMBER(model1_state::md1_w)
  798  {
  799      COMBINE_DATA(m_display_list1+offset);
  800      if(0 && offset)
  801          return;
  802      if(1 && m_dump)
  803          logerror("TGP: md1_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc());
  804  }
  805  
  806  WRITE16_MEMBER(model1_state::md0_w)
  807  {
  808      COMBINE_DATA(m_display_list0+offset);
  809      if(0 && offset)
  810          return;
  811      if(1 && m_dump)
  812          logerror("TGP: md0_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc());
  813  }
  814  
  815  WRITE16_MEMBER(model1_state::p_w)
  816  {
  817      UINT16 old = m_generic_paletteram_16[offset];
  818      paletteram_xBBBBBGGGGGRRRRR_word_w(space, offset, data, mem_mask);
  819      if(0 && m_generic_paletteram_16[offset] != old)
  820          logerror("XVIDEO: p_w %x, %04x @ %04x (%x)\n", offset, data, mem_mask, space.device().safe_pc());
  821  }
  822  
  823  WRITE16_MEMBER(model1_state::mr_w)
  824  {
  825      COMBINE_DATA(m_mr+offset);
  826      if(0 && offset == 0x1138/2)
  827          logerror("MR.w %x, %04x @ %04x (%x)\n", offset*2+0x500000, data, mem_mask, space.device().safe_pc());
  828  }
  829  
  830  WRITE16_MEMBER(model1_state::mr2_w)
  831  {
  832      COMBINE_DATA(m_mr2+offset);
  833  #if 0
  834      if(0 && offset == 0x6e8/2) {
  835          logerror("MR.w %x, %04x @ %04x (%x)\n", offset*2+0x400000, data, mem_mask, space.device().safe_pc());
  836      }
  837      if(offset/2 == 0x3680/4)
  838          logerror("MW f80[r25], %04x%04x (%x)\n", m_mr2[0x3680/2+1], m_mr2[0x3680/2], space.device().safe_pc());
  839      if(offset/2 == 0x06ca/4)
  840          logerror("MW fca[r19], %04x%04x (%x)\n", m_mr2[0x06ca/2+1], m_mr2[0x06ca/2], space.device().safe_pc());
  841      if(offset/2 == 0x1eca/4)
  842          logerror("MW fca[r22], %04x%04x (%x)\n", m_mr2[0x1eca/2+1], m_mr2[0x1eca/2], space.device().safe_pc());
  843  #endif
  844  
  845      // wingwar scene position, pc=e1ce -> d735
  846      if(offset/2 == 0x1f08/4)
  847          logerror("MW  8[r10], %f (%x)\n", *(float *)(m_mr2+0x1f08/2), space.device().safe_pc());
  848      if(offset/2 == 0x1f0c/4)
  849          logerror("MW  c[r10], %f (%x)\n", *(float *)(m_mr2+0x1f0c/2), space.device().safe_pc());
  850      if(offset/2 == 0x1f10/4)
  851          logerror("MW 10[r10], %f (%x)\n", *(float *)(m_mr2+0x1f10/2), space.device().safe_pc());
  852  }
  853  
  854  READ16_MEMBER(model1_state::snd_68k_ready_r)
  855  {
  856      int sr = machine().device("audiocpu")->state().state_int(M68K_SR);
  857  
  858      if ((sr & 0x0700) > 0x0100)
  859      {
  860          space.device().execute().spin_until_time(attotime::from_usec(40));
  861          return 0;   // not ready yet, interrupts disabled
  862      }
  863  
  864      return 0xff;
  865  }
  866  
  867  WRITE16_MEMBER(model1_state::snd_latch_to_68k_w)
  868  {
  869      m_to_68k[m_fifo_wptr] = data;
  870      m_fifo_wptr++;
  871      if (m_fifo_wptr >= ARRAY_LENGTH(m_to_68k)) m_fifo_wptr = 0;
  872  
  873      if (data == 0xae)
  874      {
  875          m_snd_cmd_state = 0;
  876      }
  877  
  878      if (m_dsbz80 != NULL)
  879      {
  880  //      printf("%d: %02x (last %02x)\n", m_snd_cmd_state, data, m_last_snd_cmd);
  881          // HACK: on h/w, who filters out commands the DSB shouldn't see?  Need a wiring diagram.
  882          if ((m_snd_cmd_state == 2) && (m_last_snd_cmd == 0x50))
  883          {
  884              m_dsbz80->latch_w(space, 0, data);
  885          }
  886          else    // keep in sync but send a "don't care"
  887          {
  888              m_dsbz80->latch_w(space, 0, 0x70);
  889          }
  890      }
  891  
  892      m_last_snd_cmd = data;
  893      m_snd_cmd_state++;
  894  
  895      // signal the 68000 that there's data waiting
  896      machine().device("audiocpu")->execute().set_input_line(2, HOLD_LINE);
  897      // give the 68k time to reply
  898      space.device().execute().spin_until_time(attotime::from_usec(40));
  899  }
  900  
  901  static ADDRESS_MAP_START( model1_mem, AS_PROGRAM, 16, model1_state )
  902      AM_RANGE(0x000000, 0x0fffff) AM_ROM
  903      AM_RANGE(0x100000, 0x1fffff) AM_ROMBANK("bank1")
  904      AM_RANGE(0x200000, 0x2fffff) AM_ROM
  905  
  906      AM_RANGE(0x400000, 0x40ffff) AM_RAM_WRITE(mr2_w) AM_SHARE("mr2")
  907      AM_RANGE(0x500000, 0x53ffff) AM_RAM_WRITE(mr_w)  AM_SHARE("mr")
  908  
  909      AM_RANGE(0x600000, 0x60ffff) AM_RAM_WRITE(md0_w) AM_SHARE("display_list0")
  910      AM_RANGE(0x610000, 0x61ffff) AM_RAM_WRITE(md1_w) AM_SHARE("display_list1")
  911      AM_RANGE(0x680000, 0x680003) AM_READWRITE(model1_listctl_r, model1_listctl_w)
  912  
  913      AM_RANGE(0x700000, 0x70ffff) AM_DEVREADWRITE("tile", segas24_tile, tile_r, tile_w)
  914      AM_RANGE(0x720000, 0x720001) AM_WRITENOP        // Unknown, always 0
  915      AM_RANGE(0x740000, 0x740001) AM_WRITENOP        // Horizontal synchronization register
  916      AM_RANGE(0x760000, 0x760001) AM_WRITENOP        // Vertical synchronization register
  917      AM_RANGE(0x770000, 0x770001) AM_WRITENOP        // Video synchronization switch
  918      AM_RANGE(0x780000, 0x7fffff) AM_DEVREADWRITE("tile", segas24_tile, char_r, char_w)
  919  
  920      AM_RANGE(0x900000, 0x903fff) AM_RAM_WRITE(p_w) AM_SHARE("paletteram")
  921      AM_RANGE(0x910000, 0x91bfff) AM_RAM  AM_SHARE("color_xlat")
  922  
  923      AM_RANGE(0xc00000, 0xc0003f) AM_READWRITE(io_r, io_w)
  924  
  925      AM_RANGE(0xc00040, 0xc00043) AM_READWRITE(network_ctl_r, network_ctl_w)
  926  
  927      AM_RANGE(0xc00200, 0xc002ff) AM_RAM AM_SHARE("nvram")
  928  
  929      AM_RANGE(0xc40000, 0xc40001) AM_WRITE(snd_latch_to_68k_w)
  930      AM_RANGE(0xc40002, 0xc40003) AM_READ(snd_68k_ready_r)
  931  
  932      AM_RANGE(0xd00000, 0xd00001) AM_READWRITE(model1_tgp_copro_adr_r, model1_tgp_copro_adr_w)
  933      AM_RANGE(0xd20000, 0xd20003) AM_WRITE(model1_tgp_copro_ram_w )
  934      AM_RANGE(0xd80000, 0xd80003) AM_WRITE(model1_tgp_copro_w) AM_MIRROR(0x10)
  935      AM_RANGE(0xdc0000, 0xdc0003) AM_READ(fifoin_status_r)
  936  
  937      AM_RANGE(0xe00000, 0xe00001) AM_WRITENOP        // Watchdog?  IRQ ack? Always 0x20, usually on irq
  938      AM_RANGE(0xe00004, 0xe00005) AM_WRITE(bank_w)
  939      AM_RANGE(0xe0000c, 0xe0000f) AM_WRITENOP
  940  
  941      AM_RANGE(0xfc0000, 0xffffff) AM_ROM
  942  ADDRESS_MAP_END
  943  
  944  static ADDRESS_MAP_START( model1_io, AS_IO, 16, model1_state )
  945      AM_RANGE(0xd20000, 0xd20003) AM_READ(model1_tgp_copro_ram_r)
  946      AM_RANGE(0xd80000, 0xd80003) AM_READ(model1_tgp_copro_r)
  947  ADDRESS_MAP_END
  948  
  949  static ADDRESS_MAP_START( model1_vr_mem, AS_PROGRAM, 16, model1_state )
  950      AM_RANGE(0x000000, 0x0fffff) AM_ROM
  951      AM_RANGE(0x100000, 0x1fffff) AM_ROMBANK("bank1")
  952      AM_RANGE(0x200000, 0x2fffff) AM_ROM
  953  
  954      AM_RANGE(0x400000, 0x40ffff) AM_RAM_WRITE(mr2_w) AM_SHARE("mr2")
  955      AM_RANGE(0x500000, 0x53ffff) AM_RAM_WRITE(mr_w)  AM_SHARE("mr")
  956  
  957      AM_RANGE(0x600000, 0x60ffff) AM_RAM_WRITE(md0_w) AM_SHARE("display_list0")
  958      AM_RANGE(0x610000, 0x61ffff) AM_RAM_WRITE(md1_w) AM_SHARE("display_list1")
  959      AM_RANGE(0x680000, 0x680003) AM_READWRITE(model1_listctl_r, model1_listctl_w)
  960  
  961      AM_RANGE(0x700000, 0x70ffff) AM_DEVREADWRITE("tile", segas24_tile, tile_r, tile_w)
  962      AM_RANGE(0x720000, 0x720001) AM_WRITENOP        // Unknown, always 0
  963      AM_RANGE(0x740000, 0x740001) AM_WRITENOP        // Horizontal synchronization register
  964      AM_RANGE(0x760000, 0x760001) AM_WRITENOP        // Vertical synchronization register
  965      AM_RANGE(0x770000, 0x770001) AM_WRITENOP        // Video synchronization switch
  966      AM_RANGE(0x780000, 0x7fffff) AM_DEVREADWRITE("tile", segas24_tile, char_r, char_w)
  967  
  968      AM_RANGE(0x900000, 0x903fff) AM_RAM_WRITE(p_w) AM_SHARE("paletteram")
  969      AM_RANGE(0x910000, 0x91bfff) AM_RAM  AM_SHARE("color_xlat")
  970  
  971      AM_RANGE(0xc00000, 0xc0003f) AM_READWRITE(io_r, io_w)
  972  
  973      AM_RANGE(0xc00040, 0xc00043) AM_READWRITE(network_ctl_r, network_ctl_w)
  974  
  975      AM_RANGE(0xc00200, 0xc002ff) AM_RAM AM_SHARE("nvram")
  976  
  977      AM_RANGE(0xc40000, 0xc40001) AM_WRITE(snd_latch_to_68k_w)
  978      AM_RANGE(0xc40002, 0xc40003) AM_READ(snd_68k_ready_r)
  979  
  980      AM_RANGE(0xd00000, 0xd00001) AM_READWRITE(model1_tgp_vr_adr_r, model1_tgp_vr_adr_w)
  981      AM_RANGE(0xd20000, 0xd20003) AM_WRITE(model1_vr_tgp_ram_w )
  982      AM_RANGE(0xd80000, 0xd80003) AM_WRITE(model1_vr_tgp_w) AM_MIRROR(0x10)
  983      AM_RANGE(0xdc0000, 0xdc0003) AM_READ(fifoin_status_r)
  984  
  985      AM_RANGE(0xe00000, 0xe00001) AM_WRITENOP        // Watchdog?  IRQ ack? Always 0x20, usually on irq
  986      AM_RANGE(0xe00004, 0xe00005) AM_WRITE(bank_w)
  987      AM_RANGE(0xe0000c, 0xe0000f) AM_WRITENOP
  988  
  989      AM_RANGE(0xfc0000, 0xffffff) AM_ROM
  990  ADDRESS_MAP_END
  991  
  992  static ADDRESS_MAP_START( model1_vr_io, AS_IO, 16, model1_state )
  993      AM_RANGE(0xd20000, 0xd20003) AM_READ(model1_vr_tgp_ram_r)
  994      AM_RANGE(0xd80000, 0xd80003) AM_READ(model1_vr_tgp_r)
  995  ADDRESS_MAP_END
  996  
  997  READ16_MEMBER(model1_state::m1_snd_68k_latch_r)
  998  {
  999      UINT16 retval;
 1000  
 1001      retval = m_to_68k[m_fifo_rptr];
 1002  
 1003      m_fifo_rptr++;
 1004      if (m_fifo_rptr >= ARRAY_LENGTH(m_to_68k)) m_fifo_rptr = 0;
 1005  
 1006      return retval;
 1007  }
 1008  
 1009  READ16_MEMBER(model1_state::m1_snd_v60_ready_r)
 1010  {
 1011      return 1;
 1012  }
 1013  
 1014  WRITE16_MEMBER(model1_state::m1_snd_mpcm_bnk1_w)
 1015  {
 1016      device_t *device = machine().device("sega1");
 1017      multipcm_set_bank(device, 0x100000 * (data & 3), 0x100000 * (data & 3));
 1018  }
 1019  WRITE16_MEMBER(model1_state::m1_snd_mpcm_bnk2_w)
 1020  {
 1021      device_t *device = machine().device("sega2");
 1022      multipcm_set_bank(device, 0x100000 * (data & 3), 0x100000 * (data & 3));
 1023  }
 1024  WRITE16_MEMBER(model1_state::m1_snd_68k_latch1_w)
 1025  {
 1026  }
 1027  
 1028  WRITE16_MEMBER(model1_state::m1_snd_68k_latch2_w)
 1029  {
 1030  }
 1031  
 1032  static ADDRESS_MAP_START( model1_snd, AS_PROGRAM, 16, model1_state )
 1033      AM_RANGE(0x000000, 0x0bffff) AM_ROM
 1034      AM_RANGE(0xc20000, 0xc20001) AM_READWRITE(m1_snd_68k_latch_r, m1_snd_68k_latch1_w )
 1035      AM_RANGE(0xc20002, 0xc20003) AM_READWRITE(m1_snd_v60_ready_r, m1_snd_68k_latch2_w )
 1036      AM_RANGE(0xc40000, 0xc40007) AM_DEVREADWRITE8_LEGACY("sega1", multipcm_r, multipcm_w, 0x00ff )
 1037      AM_RANGE(0xc40012, 0xc40013) AM_WRITENOP
 1038      AM_RANGE(0xc50000, 0xc50001) AM_WRITE(m1_snd_mpcm_bnk1_w )
 1039      AM_RANGE(0xc60000, 0xc60007) AM_DEVREADWRITE8_LEGACY("sega2", multipcm_r, multipcm_w, 0x00ff )
 1040      AM_RANGE(0xc70000, 0xc70001) AM_WRITE(m1_snd_mpcm_bnk2_w )
 1041      AM_RANGE(0xd00000, 0xd00007) AM_DEVREADWRITE8_LEGACY("ymsnd", ym3438_r, ym3438_w, 0x00ff )
 1042      AM_RANGE(0xf00000, 0xf0ffff) AM_RAM
 1043  ADDRESS_MAP_END
 1044  
 1045  
 1046  static INPUT_PORTS_START( vf )
 1047      PORT_START("IN0")
 1048      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
 1049      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
 1050      PORT_SERVICE_NO_TOGGLE(0x0004, IP_ACTIVE_LOW)
 1051      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE1 )
 1052      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 )
 1053      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START2 )
 1054      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1055      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1056      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1057  
 1058      PORT_START("IN1")
 1059      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
 1060      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
 1061      PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
 1062      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED )
 1063      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(1)
 1064      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(1)
 1065      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)
 1066      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(1)
 1067      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1068  
 1069      PORT_START("IN2")
 1070      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
 1071      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
 1072      PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
 1073      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED )
 1074      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(2)
 1075      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_PLAYER(2)
 1076      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)
 1077      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(2)
 1078      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1079  INPUT_PORTS_END
 1080  
 1081  static INPUT_PORTS_START( vr )
 1082      PORT_START("AN0")   /* Steering */
 1083      PORT_BIT( 0xff, 0x80, IPT_PADDLE ) PORT_SENSITIVITY(100) PORT_KEYDELTA(3)
 1084  
 1085      PORT_START("AN1")   /* Accel / Decel */
 1086      PORT_BIT( 0xff, 0x30, IPT_PEDAL ) PORT_MINMAX(1,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(16)
 1087  
 1088      PORT_START("AN2")   /* Brake */
 1089      PORT_BIT( 0xff, 0x30, IPT_PEDAL2 ) PORT_MINMAX(1,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(16)
 1090  
 1091      PORT_START("IN0")
 1092      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
 1093      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
 1094      PORT_SERVICE_NO_TOGGLE(0x0004, IP_ACTIVE_LOW)
 1095      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE1 )
 1096      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 )
 1097      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("VR1 (Red)") PORT_PLAYER(1)
 1098      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME("VR2 (Blue)") PORT_PLAYER(1)
 1099      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_NAME("VR3 (Yellow)") PORT_PLAYER(1)
 1100      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1101  
 1102      PORT_START("IN1")
 1103      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_NAME("VR4 (Green)") PORT_PLAYER(1)
 1104      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
 1105      PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED )
 1106      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED )
 1107      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_NAME("Shift Down") PORT_PLAYER(1)
 1108      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON8 ) PORT_NAME("Shift Up") PORT_PLAYER(1)
 1109      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_UNUSED )
 1110      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED )
 1111      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1112  
 1113      PORT_START("IN2")
 1114      PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
 1115      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1116  INPUT_PORTS_END
 1117  
 1118  static INPUT_PORTS_START( wingwar )
 1119      PORT_START("AN0")   /* X */
 1120      PORT_BIT( 0xff, 0x80, IPT_AD_STICK_X ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
 1121  
 1122      PORT_START("AN1")   /* Y */
 1123      PORT_BIT( 0xff, 0x80, IPT_AD_STICK_Y ) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
 1124  
 1125      PORT_START("AN2")   /* Throttle */
 1126      PORT_BIT( 0xff, 0x01, IPT_PEDAL ) PORT_MINMAX(1,0xff) PORT_SENSITIVITY(100) PORT_KEYDELTA(16)
 1127  
 1128      PORT_START("IN0")
 1129      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
 1130      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
 1131      PORT_SERVICE_NO_TOGGLE(0x0004, IP_ACTIVE_LOW)
 1132      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE1 )
 1133      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 )
 1134      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_NAME("View 1")
 1135      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1) PORT_NAME("View 2")
 1136      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1) PORT_NAME("View 3")
 1137      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1138  
 1139      PORT_START("IN1")
 1140      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_PLAYER(1) PORT_NAME("View 4")
 1141      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_UNUSED )
 1142      PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_UNUSED )
 1143      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_UNUSED )
 1144      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON5 ) PORT_PLAYER(1) PORT_NAME("Machine Gun")
 1145      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON6 ) PORT_PLAYER(1) PORT_NAME("Missile")
 1146      PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON7 ) PORT_PLAYER(1) PORT_NAME("Smoke")
 1147      PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNUSED )
 1148      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1149  
 1150      PORT_START("IN2")
 1151      PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
 1152      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1153  INPUT_PORTS_END
 1154  
 1155  static INPUT_PORTS_START( swa )
 1156      PORT_START("AN0")   /* X */
 1157      PORT_BIT( 0xff, 127, IPT_AD_STICK_X ) PORT_MINMAX(27,227) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
 1158  
 1159      PORT_START("AN1")   /* Y */
 1160      PORT_BIT( 0xff, 127, IPT_AD_STICK_Y ) PORT_MINMAX(27,227) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE
 1161  
 1162      PORT_START("AN2")   /* Throttle */
 1163      PORT_BIT( 0xff, 228, IPT_PEDAL ) PORT_MINMAX(28,228) PORT_SENSITIVITY(100) PORT_KEYDELTA(16) PORT_REVERSE
 1164  
 1165      PORT_START("AN4")   /* X */
 1166      PORT_BIT( 0xff, 127, IPT_AD_STICK_X ) PORT_MINMAX(27,227) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_REVERSE PORT_PLAYER(2)
 1167  
 1168      PORT_START("AN5")   /* Y */
 1169      PORT_BIT( 0xff, 127, IPT_AD_STICK_Y ) PORT_MINMAX(27,227) PORT_SENSITIVITY(100) PORT_KEYDELTA(4) PORT_PLAYER(2)
 1170  
 1171      PORT_START("IN0")
 1172      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_COIN1 )
 1173      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_COIN2 )
 1174      PORT_SERVICE_NO_TOGGLE(0x0004, IP_ACTIVE_LOW)
 1175      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_SERVICE1 )
 1176      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_START1 )
 1177      PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_START2 )
 1178      PORT_BIT( 0x00c0, IP_ACTIVE_LOW, IPT_UNUSED )
 1179      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1180  
 1181      PORT_START("IN1")
 1182      PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)
 1183      PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)
 1184      PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
 1185      PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
 1186      PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)
 1187      PORT_BIT( 0x00e0, IP_ACTIVE_LOW, IPT_UNUSED )
 1188      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1189  
 1190      PORT_START("IN2")
 1191      PORT_BIT( 0x00ff, IP_ACTIVE_LOW, IPT_UNUSED )
 1192      PORT_BIT( 0xff00, IP_ACTIVE_LOW, IPT_UNKNOWN )
 1193  INPUT_PORTS_END
 1194  
 1195  #define MODEL1_CPU_BOARD \
 1196      ROM_REGION( 0xe0000, "user5", 0 ) \
 1197      ROM_LOAD32_WORD("opr14742.bin",  0x000000,  0x20000, CRC(446a1085) SHA1(51b3f4d3a35a36087ea0ba4e26d6e7d17b6418e2) ) \
 1198      ROM_LOAD32_WORD("opr14743.bin",  0x000002,  0x20000, CRC(e8953554) SHA1(1499f8e30ac15affc66e6f04ae031bb8680d9260) ) \
 1199      ROM_LOAD("opr14744.bin",   0x040000,  0x20000, CRC(730ea9e0) SHA1(651f1db4089a400d073b19ada299b4b08b08f372) ) \
 1200      ROM_LOAD("opr14745.bin",   0x060000,  0x20000, CRC(4c934d96) SHA1(e3349ece0e47f684d61ad11bfea4a90602287350) ) \
 1201      ROM_LOAD("opr14746.bin",   0x080000,  0x20000, CRC(2a266cbd) SHA1(34e047a93459406c22acf4c25089d1a4955f94ca) ) \
 1202      ROM_LOAD("opr14747.bin",   0x0a0000,  0x20000, CRC(a4ad5e19) SHA1(7d7ec300eeb9a8de1590011e37108688c092f329) ) \
 1203      ROM_LOAD("opr14748.bin",   0x0c0000,  0x20000, CRC(4a532cb8) SHA1(23280ebbcd6b2bc8a8e643a2d07a58d6598301b8) )
 1204  
 1205  ROM_START( vf )
 1206  
 1207      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1208      ROM_LOAD16_BYTE( "epr-16082.14", 0x200000, 0x80000, CRC(b23f22ee) SHA1(9fd5b5a5974703a60a54de3d2bce4301bfc0e533) ) /* Rom board with Sega ID# 834-10170 */
 1209      ROM_LOAD16_BYTE( "epr-16083.15", 0x200001, 0x80000, CRC(d12c77f8) SHA1(b4aeba8d5f1ab4aec024391407a2cb58ce2e94b0) )
 1210  
 1211      ROM_LOAD( "epr-16080.4", 0xfc0000, 0x20000, CRC(3662E1A5) SHA1(6bfceb1a7c1c7912679c907f2b7516ae9c7dda67) )
 1212      ROM_LOAD( "epr-16081.5", 0xfe0000, 0x20000, CRC(6DEC06CE) SHA1(7891544456bccd2fc647bccd058945ad50466636) )
 1213  
 1214      ROM_LOAD16_BYTE( "mpr-16084.6", 0x1000000, 0x80000, CRC(483f453b) SHA1(41a5527be73f5dd1c87b2a8113235bdd247ec049) )
 1215      ROM_LOAD16_BYTE( "mpr-16085.7", 0x1000001, 0x80000, CRC(5fa01277) SHA1(dfa7ddff0a7daf29071431f26b93dd8e8e5793b6) )
 1216      ROM_LOAD16_BYTE( "mpr-16086.8", 0x1100000, 0x80000, CRC(deac47a1) SHA1(3a8016124e4dc579d4aae745d4af1905ad0e4fbd) )
 1217      ROM_LOAD16_BYTE( "mpr-16087.9", 0x1100001, 0x80000, CRC(7a64daac) SHA1(da6a9cad4b0cb2af4299e664c0889f3fbdc25530) )
 1218      ROM_LOAD16_BYTE( "mpr-16088.10", 0x1200000, 0x80000, CRC(fcda2d1e) SHA1(0f7d0f604d429a1da0d1c3f31694520bada49680) )
 1219      ROM_LOAD16_BYTE( "mpr-16089.11", 0x1200001, 0x80000, CRC(39befbe0) SHA1(362c493092cd0536fadee7326ecc7f973e23fb58) )
 1220      ROM_LOAD16_BYTE( "mpr-16090.12", 0x1300000, 0x80000, CRC(90c76831) SHA1(5a3c25f2a131cfbb2ad067bef1ab7b1c95645d41) )
 1221      ROM_LOAD16_BYTE( "mpr-16091.13", 0x1300001, 0x80000, CRC(53115448) SHA1(af798d5b1fcb720d7288a5ac48839d9ace16a2f2) )
 1222  
 1223      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1224      ROM_LOAD16_WORD_SWAP( "epr-16120.7", 0x00000, 0x20000, CRC(2bff8378) SHA1(854b08ab983e4e98cb666f2f44de9a6829b1eb52) )
 1225      ROM_LOAD16_WORD_SWAP( "epr-16121.8", 0x20000, 0x20000, CRC(ff6723f9) SHA1(53498b8c103745883657dfd6efe27edfd48b356f) )
 1226      ROM_RELOAD( 0x80000, 0x20000)
 1227  
 1228      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1229      ROM_LOAD( "mpr-16122.32", 0x000000, 0x200000, CRC(568bc64e) SHA1(31fd0ef8319efe258011b4621adebb790b620770) )
 1230      ROM_LOAD( "mpr-16123.33", 0x200000, 0x200000, CRC(15d78844) SHA1(37c17e38604cf7004a951408024941cd06b1d93e) )
 1231  
 1232      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1233      ROM_LOAD( "mpr-16124.4", 0x000000, 0x200000, CRC(45520ba1) SHA1(c33e3c12639961016e5fa6b5025d0a67dff28907) )
 1234      ROM_LOAD( "mpr-16125.5", 0x200000, 0x200000, CRC(9b4998b6) SHA1(0418d9b0acf79f35d0f7575c21f1be9a0ea343da) )
 1235  
 1236      ROM_REGION32_LE( 0x1000000, "user1", 0 ) /* TGP model roms */
 1237      ROM_LOAD32_WORD( "mpr-16096.26", 0x000000, 0x200000, CRC(a92b0bf3) SHA1(fd3adff5f41f0b0be98df548c848eda04fc0da48) )
 1238      ROM_LOAD32_WORD( "mpr-16097.27", 0x000002, 0x200000, CRC(0232955a) SHA1(df934fb6d022032620932571ff5ed176d5dcb017) )
 1239      ROM_LOAD32_WORD( "mpr-16098.28", 0x400000, 0x200000, CRC(cf2e1b84) SHA1(f3d16c72344f7f218a792ce7f1dd7cad910a8c97) )
 1240      ROM_LOAD32_WORD( "mpr-16099.29", 0x400002, 0x200000, CRC(20e46854) SHA1(423d3642bd2f14e68d29029c027b791de2c1ec53) )
 1241      ROM_LOAD32_WORD( "mpr-16100.30", 0x800000, 0x200000, CRC(e13e983d) SHA1(120637caa2404ad4124b676fd6fcd721f30948df) )
 1242      ROM_LOAD32_WORD( "mpr-16101.31", 0x800002, 0x200000, CRC(0dbed94d) SHA1(df1cddcc1d3976816bd786c2d6211a8563f6f690) )
 1243      ROM_LOAD32_WORD( "mpr-16102.32", 0xc00000, 0x200000, CRC(4cb41fb6) SHA1(4a07bfad4f221508de8c931861424dcc5be3f46a) )
 1244      ROM_LOAD32_WORD( "mpr-16103.33", 0xc00002, 0x200000, CRC(526d1c76) SHA1(edc8dafc9261cd0e970c3b50e3c1ca51a32a4cdf) )
 1245  ROM_END
 1246  
 1247  ROM_START( vr )
 1248      MODEL1_CPU_BOARD
 1249  
 1250      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1251      ROM_LOAD16_BYTE( "epr-14882.14", 0x200000, 0x80000, CRC(547D75AD) SHA1(a57c11966886c37de1d7df131ad60457669231dd) ) /* Rom board with Sega ID# 834-8941 */
 1252      ROM_LOAD16_BYTE( "epr-14883.15", 0x200001, 0x80000, CRC(6BFAD8B1) SHA1(c1f780e456b405abd42d92f4e03e40aad88f8c22) )
 1253  
 1254      ROM_LOAD( "epr-14878a.4", 0xfc0000, 0x20000, CRC(6D69E695) SHA1(12d3612d3dfd474b8020cdfb8ffc5dcc64e2e1a3) )
 1255      ROM_LOAD( "epr-14879a.5", 0xfe0000, 0x20000, CRC(D45AF9DD) SHA1(48f2bf940c78e3ae4273a56e9f32371d870e41e0) )
 1256  
 1257      ROM_LOAD16_BYTE( "mpr-14880.6",  0x1000000, 0x80000, CRC(ADC7C208) SHA1(967b6f522011f17fd2821ccbe20bcb6d4680a4a0) )
 1258      ROM_LOAD16_BYTE( "mpr-14881.7",  0x1000001, 0x80000, CRC(E5AB89DF) SHA1(873dea86628457e69f732158e3efb05d133eaa44) )
 1259      ROM_LOAD16_BYTE( "mpr-14884.8",  0x1100000, 0x80000, CRC(6CF9C026) SHA1(f4d717958dba6b6402f5ffe7638fe0bf353b61ed) )
 1260      ROM_LOAD16_BYTE( "mpr-14885.9",  0x1100001, 0x80000, CRC(F65C9262) SHA1(511a22bcfaf199737bfc5a809fd66cb4439dd386) )
 1261      ROM_LOAD16_BYTE( "mpr-14886.10", 0x1200000, 0x80000, CRC(92868734) SHA1(e1dfb134dc3ba7e0b1d40681621e09ac5a222518) )
 1262      ROM_LOAD16_BYTE( "mpr-14887.11", 0x1200001, 0x80000, CRC(10C7C636) SHA1(c77d55460bba4354349e473e129f21afeed05e91) )
 1263      ROM_LOAD16_BYTE( "mpr-14888.12", 0x1300000, 0x80000, CRC(04BFDC5B) SHA1(bb8788a761620d0440a62ae51c3b41f70a04b5e4) )
 1264      ROM_LOAD16_BYTE( "mpr-14889.13", 0x1300001, 0x80000, CRC(C49F0486) SHA1(cc2bb9059c016ba2c4f6e7508bd1687df07b8b48) )
 1265  
 1266      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1267      ROM_LOAD16_WORD_SWAP( "epr-14870a.7", 0x00000, 0x20000, CRC(919d9b75) SHA1(27be79881cc9a2b5cf37e18f1e2d87251426b428) )
 1268  
 1269      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1270      ROM_LOAD( "mpr-14873.32", 0x000000, 0x200000, CRC(b1965190) SHA1(fc47e9ed4a44d48477bd9a35e42c26508c0f4a0c) )
 1271  
 1272      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1273      ROM_LOAD( "mpr-14876.4", 0x000000, 0x200000, CRC(ba6b2327) SHA1(02285520624a4e612cb4b65510e3458b13b1c6ba) )
 1274  
 1275      ROM_REGION32_LE( 0x1000000, "user1", 0 ) /* TGP model roms */
 1276      ROM_LOAD32_WORD( "mpr-14890.26", 0x000000, 0x200000, CRC(dcbe006b) SHA1(195be7fabec405ca1b4e1338d3b8d7bb4a06dd73) )
 1277      ROM_LOAD32_WORD( "mpr-14891.27", 0x000002, 0x200000, CRC(25832b38) SHA1(a8d74538149c92bae661334e327b031eaca2a8f2) )
 1278      ROM_LOAD32_WORD( "mpr-14892.28", 0x400000, 0x200000, CRC(5136f3ba) SHA1(ce8312975764db09bbfa2068b99559a5c1798a36) )
 1279      ROM_LOAD32_WORD( "mpr-14893.29", 0x400002, 0x200000, CRC(1c531ada) SHA1(8b373ac97a3649c64f48eb3d1dd95c5833f330b6) )
 1280      ROM_LOAD32_WORD( "mpr-14894.30", 0x800000, 0x200000, CRC(830a71bc) SHA1(884378e8a5afeb819daf5285d0d205986d566340) )
 1281      ROM_LOAD32_WORD( "mpr-14895.31", 0x800002, 0x200000, CRC(af027ac5) SHA1(523f03d90358ddb7d0e96fd06b9a65cebfc09f24) )
 1282      ROM_LOAD32_WORD( "mpr-14896.32", 0xc00000, 0x200000, CRC(382091dc) SHA1(efa266f0f6bfe36ad1c365e588fff33b01e166dd) )
 1283      ROM_LOAD32_WORD( "mpr-14879.33", 0xc00002, 0x200000, CRC(74873195) SHA1(80705ec577d14570f9bba77cc26766f831c41f42) )
 1284  
 1285      ROM_REGION32_LE( 0x200000, "user2", 0 ) /* TGP data roms */
 1286      ROM_LOAD32_BYTE( "mpr-14898.39", 0x000000, 0x80000, CRC(61da2bb6) SHA1(7a12ba522d64a1aeec1ca6f5a87ee063692131f9) )
 1287      ROM_LOAD32_BYTE( "mpr-14899.40", 0x000001, 0x80000, CRC(2cd58bee) SHA1(73defec823de4244a387af55fea7210edc1b314f) )
 1288      ROM_LOAD32_BYTE( "mpr-14900.41", 0x000002, 0x80000, CRC(aa7c017d) SHA1(0fa2b59a8bb5f5907b2b2567e69d11c73b398dc1) )
 1289      ROM_LOAD32_BYTE( "mpr-14901.42", 0x000003, 0x80000, CRC(175b7a9a) SHA1(c86602e771cd49bab425b4ba7926d2f44858bd39) )
 1290  
 1291      ROM_REGION( 0x2000, "tgp", 0 ) /* TGP program rom */
 1292      // this is the Daytona TGP program with some modifications needed for Virtua Racing
 1293      // the real TGP program is an internal ROM and still needs dumping
 1294      ROM_LOAD("vr-tgp.bin", 0x000000, 0x2000, BAD_DUMP CRC(3de33c7f) SHA1(acecc779c9d8fe39ded6c22492be5b7c25fd52db) )
 1295  
 1296      ROM_REGION( 0x100, "nvram", 0 ) // default nvram
 1297      ROM_LOAD( "vr_defaults.nv", 0x000, 0x100, CRC(5ccdc835) SHA1(7e809de470f78fb897b938ca2aee2e12f1c8f3a4) )
 1298  ROM_END
 1299  
 1300  ROM_START( vformula )
 1301      MODEL1_CPU_BOARD
 1302  
 1303      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1304      ROM_LOAD16_BYTE( "epr-15638.14", 0x200000, 0x80000, CRC(b9db21a2) SHA1(db58c047977f5fc37f278afe7159a78e3fa6c015) )
 1305      ROM_LOAD16_BYTE( "epr-15639.15", 0x200001, 0x80000, CRC(4c3796f5) SHA1(1bf312a4999a15fbc5d194627f9c0ad9dbc1f2c0) )
 1306  
 1307      ROM_LOAD( "epr-15623.4", 0xfc0000, 0x20000, CRC(155fa5be) SHA1(a0a3fd8980c52279adbc1c64aa22e42a0b196dd9) )
 1308      ROM_LOAD( "epr-15622.5", 0xfe0000, 0x20000, CRC(18007f6f) SHA1(61573742627ec027abd2cc700e79f04da5215bfd) )
 1309  
 1310      ROM_LOAD16_BYTE( "epr-15641.6",  0x1000000, 0x80000, CRC(bf01e4d5) SHA1(53ad9ecd2de2ea1d7b446f9db61352e10a55ea05) )
 1311      ROM_LOAD16_BYTE( "epr-15640.7",  0x1000001, 0x80000, CRC(3e6d83dc) SHA1(62aa552a38ee193e0dfab5d1261756fe237db42c) )
 1312      ROM_LOAD16_BYTE( "mpr-14884.8",  0x1100000, 0x80000, CRC(6CF9C026) SHA1(f4d717958dba6b6402f5ffe7638fe0bf353b61ed) )
 1313      ROM_LOAD16_BYTE( "mpr-14885.9",  0x1100001, 0x80000, CRC(F65C9262) SHA1(511a22bcfaf199737bfc5a809fd66cb4439dd386) )
 1314      ROM_LOAD16_BYTE( "mpr-14886.10", 0x1200000, 0x80000, CRC(92868734) SHA1(e1dfb134dc3ba7e0b1d40681621e09ac5a222518) )
 1315      ROM_LOAD16_BYTE( "mpr-14887.11", 0x1200001, 0x80000, CRC(10C7C636) SHA1(c77d55460bba4354349e473e129f21afeed05e91) )
 1316      ROM_LOAD16_BYTE( "mpr-14888.12", 0x1300000, 0x80000, CRC(04BFDC5B) SHA1(bb8788a761620d0440a62ae51c3b41f70a04b5e4) )
 1317      ROM_LOAD16_BYTE( "mpr-14889.13", 0x1300001, 0x80000, CRC(C49F0486) SHA1(cc2bb9059c016ba2c4f6e7508bd1687df07b8b48) )
 1318  
 1319      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1320      ROM_LOAD16_WORD_SWAP( "epr-14870a.7", 0x00000, 0x20000, CRC(919d9b75) SHA1(27be79881cc9a2b5cf37e18f1e2d87251426b428) )
 1321  
 1322      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1323      ROM_LOAD( "mpr-14873.32", 0x000000, 0x200000, CRC(b1965190) SHA1(fc47e9ed4a44d48477bd9a35e42c26508c0f4a0c) )
 1324  
 1325      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1326      ROM_LOAD( "mpr-14876.4", 0x000000, 0x200000, CRC(ba6b2327) SHA1(02285520624a4e612cb4b65510e3458b13b1c6ba) )
 1327  
 1328      ROM_REGION32_LE( 0x1000000, "user1", 0 ) /* TGP model roms */
 1329      ROM_LOAD32_WORD( "mpr-14890.26", 0x000000, 0x200000, CRC(dcbe006b) SHA1(195be7fabec405ca1b4e1338d3b8d7bb4a06dd73) )
 1330      ROM_LOAD32_WORD( "mpr-14891.27", 0x000002, 0x200000, CRC(25832b38) SHA1(a8d74538149c92bae661334e327b031eaca2a8f2) )
 1331      ROM_LOAD32_WORD( "mpr-14892.28", 0x400000, 0x200000, CRC(5136f3ba) SHA1(ce8312975764db09bbfa2068b99559a5c1798a36) )
 1332      ROM_LOAD32_WORD( "mpr-14893.29", 0x400002, 0x200000, CRC(1c531ada) SHA1(8b373ac97a3649c64f48eb3d1dd95c5833f330b6) )
 1333      ROM_LOAD32_WORD( "mpr-14894.30", 0x800000, 0x200000, CRC(830a71bc) SHA1(884378e8a5afeb819daf5285d0d205986d566340) )
 1334      ROM_LOAD32_WORD( "mpr-14895.31", 0x800002, 0x200000, CRC(af027ac5) SHA1(523f03d90358ddb7d0e96fd06b9a65cebfc09f24) )
 1335      ROM_LOAD32_WORD( "mpr-14896.32", 0xc00000, 0x200000, CRC(382091dc) SHA1(efa266f0f6bfe36ad1c365e588fff33b01e166dd) )
 1336      ROM_LOAD32_WORD( "mpr-14879.33", 0xc00002, 0x200000, CRC(74873195) SHA1(80705ec577d14570f9bba77cc26766f831c41f42) )
 1337  
 1338      ROM_REGION32_LE( 0x200000, "user2", 0 ) /* TGP data roms */
 1339      ROM_LOAD32_BYTE( "mpr-14898.39", 0x000000, 0x80000, CRC(61da2bb6) SHA1(7a12ba522d64a1aeec1ca6f5a87ee063692131f9) )
 1340      ROM_LOAD32_BYTE( "mpr-14899.40", 0x000001, 0x80000, CRC(2cd58bee) SHA1(73defec823de4244a387af55fea7210edc1b314f) )
 1341      ROM_LOAD32_BYTE( "mpr-14900.41", 0x000002, 0x80000, CRC(aa7c017d) SHA1(0fa2b59a8bb5f5907b2b2567e69d11c73b398dc1) )
 1342      ROM_LOAD32_BYTE( "mpr-14901.42", 0x000003, 0x80000, CRC(175b7a9a) SHA1(c86602e771cd49bab425b4ba7926d2f44858bd39) )
 1343  
 1344      ROM_REGION( 0x20000, "user3", 0 ) /* Comms Board */
 1345      ROM_LOAD( "epr-15624.17", 0x00000, 0x20000, CRC(9b3ba315) SHA1(0cd0983cc8b2f2d6b41617d0d0a24cc6c188e62a) )
 1346  
 1347      ROM_REGION( 0x2000, "tgp", 0 ) /* TGP program rom */
 1348      // this is the Daytona TGP program with some modifications needed for Virtua Racing
 1349      // the real TGP program is an internal ROM and still needs dumping
 1350      ROM_LOAD("vr-tgp.bin", 0x000000, 0x2000, BAD_DUMP CRC(3de33c7f) SHA1(acecc779c9d8fe39ded6c22492be5b7c25fd52db) )
 1351  ROM_END
 1352  
 1353  
 1354  ROM_START( swa )
 1355      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1356      ROM_LOAD16_BYTE( "epr-16468.14", 0x200000, 0x80000, CRC(681d03c0) SHA1(4d21e26ce211466d429b84bca69a8147ff31ec6c) )
 1357      ROM_LOAD16_BYTE( "epr-16469.15", 0x200001, 0x80000, CRC(6f281f7c) SHA1(6a9179e48d14838bb2a1a3f63fdd3a68ed009e03) )
 1358  
 1359      ROM_LOAD( "epr-16467.5", 0xf80000, 0x80000, CRC(605068f5) SHA1(99d7e171ce3353477c282d7567dedb9947206f14) )
 1360      ROM_RELOAD(          0x000000, 0x80000 )
 1361      ROM_RELOAD(          0x080000, 0x80000 )
 1362  
 1363      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1364          ROM_LOAD16_WORD_SWAP( "epr-16470.bin", 0x000000, 0x020000, CRC(7da18cf7) SHA1(bd432d882d217277faee120e2577357a32eb4a6e) )
 1365      ROM_RELOAD(0x80000, 0x20000)
 1366  
 1367      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1368          ROM_LOAD( "mpr-16486.bin", 0x000000, 0x200000, CRC(7df50533) SHA1(f2fb876738e37d70eb9005e5629a9ae89aa413a8) )
 1369          ROM_LOAD( "mpr-16487.bin", 0x200000, 0x200000, CRC(31b28dfa) SHA1(bd1ac11bf2f9161f61f8af3b9ff4c2709b7ee700) )
 1370  
 1371      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1372          ROM_LOAD( "mpr-16484.bin", 0x000000, 0x200000, CRC(9d4c334d) SHA1(8b4d903f14559fed425d225bb23ccfe8da23cbd3) )
 1373          ROM_LOAD( "mpr-16485.bin", 0x200000, 0x200000, CRC(95aadcad) SHA1(4276db655db9834692c3843eb96a3e3a89cb7252) )
 1374  
 1375      ROM_REGION( 0x20000, "mpegcpu", 0 ) /* Z80 DSB code */
 1376      ROM_LOAD( "epr-16471.bin", 0x000000, 0x020000, CRC(f4ee84a4) SHA1(f12b214e6f195b0e5f49ba9f41d8e54bfcea9acc) )
 1377  
 1378      ROM_REGION( 0x400000, "mpeg", 0 ) /* DSB MPEG data */
 1379      ROM_LOAD( "mpr-16514.bin", 0x000000, 0x200000, CRC(3175b0be) SHA1(63649d053c8c17ce1746d16d0cc8202be20c302f) )
 1380      ROM_LOAD( "mpr-16515.bin", 0x200000, 0x200000, CRC(3114d748) SHA1(9ef090623cdd2a1d06b5d1bc4b9a07ab4eff5b76) )
 1381  
 1382      ROM_REGION32_LE( 0xc00000, "user1", 0 ) /* TGP model roms */
 1383      ROM_LOAD32_WORD( "mpr-16476.26", 0x000000, 0x200000, CRC(d48609ae) SHA1(8c8686a5c9ca4837447a7f70ed194e2f1882b66d) )
 1384  // original dump (which one is right?)
 1385  //  ROM_LOAD32_WORD( "mpr-16477.27", 0x000002, 0x200000, CRC(b979b082) SHA1(0c60d259093e987f3856730b57b43bde7e9562e3) )
 1386  // new dump
 1387          ROM_LOAD32_WORD( "mpr16477.bin", 0x000002, 0x200000, CRC(971ff194) SHA1(9665ede3ca22885489f1f1b5865ccfac42364206) )
 1388      ROM_LOAD32_WORD( "mpr-16478.28", 0x400000, 0x200000, CRC(80c780f7) SHA1(2f57c5373b02765d302bcd81e24f7b7bc4181387) )
 1389      ROM_LOAD32_WORD( "mpr-16479.29", 0x400002, 0x200000, CRC(e43183b3) SHA1(4e62c67cdf7a6fdac0ded86d5f9e81044b9dea8d) )
 1390      ROM_LOAD32_WORD( "mpr-16480.30", 0x800000, 0x200000, CRC(3185547a) SHA1(9871937372c2c755717802117a3ad39e1a11410e) )
 1391      ROM_LOAD32_WORD( "mpr-16481.31", 0x800002, 0x200000, CRC(ce8d76fe) SHA1(0406f0500d19d6707515627b4143f92a9a5db769) )
 1392  
 1393      ROM_REGION32_LE( 0x200000, "user2", 0 ) /* TGP data roms */
 1394      ROM_LOAD32_BYTE( "mpr-16472.39", 0x000000, 0x80000, CRC(5a0d7553) SHA1(ba8e08e5a0c6b7fbc10084ad7ad3edf61efb0d70) )
 1395      ROM_LOAD32_BYTE( "mpr-16473.40", 0x000001, 0x80000, CRC(876c5399) SHA1(be7e40c77a385600941f11c24852cd73c71696f0) )
 1396      ROM_LOAD32_BYTE( "mpr-16474.41", 0x000002, 0x80000, CRC(5864a26f) SHA1(be0c22dfff37408f6b401b1970f7fcc6fc7fbcd2) )
 1397      ROM_LOAD32_BYTE( "mpr-16475.42", 0x000003, 0x80000, CRC(b9266be9) SHA1(cf195cd89c9d191b9eb8c5299f8cc154c2b4bd82) )
 1398  ROM_END
 1399  
 1400  
 1401  ROM_START( wingwar )
 1402      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1403      ROM_LOAD16_BYTE( "epr-16729.14", 0x200000, 0x80000, CRC(7edec2cc) SHA1(3e423a868ca7c8475fbb5bc1a10526e69d94d865) )
 1404      ROM_LOAD16_BYTE( "epr-16730.15", 0x200001, 0x80000, CRC(bab24dee) SHA1(26c95139c1aa7f34b6a5cce39e5bd1dd2ef0dd49) )
 1405  
 1406      ROM_LOAD( "epr16953.4", 0xfc0000, 0x20000, CRC(c821a920) SHA1(7fc9ea5d828aac664514fa6d38f708f1ffd26220) )
 1407      ROM_RELOAD(          0x000000, 0x20000 )
 1408      ROM_LOAD( "epr16952.5", 0xfe0000, 0x20000, CRC(03a3ecc5) SHA1(5c4aa221302b0a0800e1af99a41ab46fe4325184) )
 1409      ROM_RELOAD(          0x020000, 0x20000 )
 1410  
 1411      ROM_LOAD16_BYTE( "mpr-16738.6",  0x1000000, 0x80000, CRC(51518ffa) SHA1(e4674ddfed4205957b14e133c6fdf6454872f324) )
 1412      ROM_LOAD16_BYTE( "mpr-16737.7",  0x1000001, 0x80000, CRC(37b1379c) SHA1(98620c324268e1dd906c077ac8a8cd903b9de1f7) )
 1413      ROM_LOAD16_BYTE( "mpr-16736.8",  0x1100000, 0x80000, CRC(10b6a025) SHA1(7a4f624ceb7c0b92044a5db8ff55440562ef836b) )
 1414      ROM_LOAD16_BYTE( "mpr-16735.9",  0x1100001, 0x80000, CRC(c82fd198) SHA1(d9e53ae1e14dfc8e84a14c0026ef0b904863bb1b) )
 1415      ROM_LOAD16_BYTE( "mpr-16734.10", 0x1200000, 0x80000, CRC(f76371c1) SHA1(0ff082db3877383d0dd977dc60c932b725e3d164) )
 1416      ROM_LOAD16_BYTE( "mpr-16733.11", 0x1200001, 0x80000, CRC(e105847b) SHA1(8489a6c91fd6d1e9ba81e8eaf36c514da30dccbe) )
 1417  
 1418      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1419      ROM_LOAD16_WORD_SWAP("epr-17126.7", 0x000000, 0x20000, CRC(50178e40) SHA1(fb01aecfbe4e90adc997de0d45a63c16ef353b37) )
 1420      ROM_LOAD16_WORD_SWAP("epr-16752.8", 0x020000, 0x20000, CRC(6541c48f) SHA1(9341eff160e31a8574b9545fafc1c4059323fa0c) )
 1421      ROM_RELOAD(0x80000, 0x20000)
 1422  
 1423      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1424      ROM_LOAD("mpr-16753.32", 0x000000, 0x200000, CRC(324a8333) SHA1(960342e08db637c6f72615d49cffd9fb0889620b) )
 1425      ROM_LOAD("mpr-16754.33", 0x200000, 0x200000, CRC(144f3cf5) SHA1(d2f8cc9086affbbc5ef2195272200230f724e5d1) )
 1426  
 1427      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1428      ROM_LOAD("mpr-16755.4", 0x000000, 0x200000, CRC(4baaf878) SHA1(661d4ea9be6a4952852d0ef94becee7ed42bf4a1) )
 1429      ROM_LOAD("mpr-16756.5", 0x200000, 0x200000, CRC(d9c40672) SHA1(83e6f1156b30888d3a00103f079dc74f4fca8446) )
 1430  
 1431      ROM_REGION32_LE( 0x1000000, "user1", 0 ) /* TGP model roms */
 1432      ROM_LOAD32_WORD( "mpr-16743.26", 0x000000, 0x200000, CRC(a710d33c) SHA1(1d0184545b34789ed511caaa25d57db3cd9a8e2f) )
 1433      ROM_LOAD32_WORD( "mpr-16744.27", 0x000002, 0x200000, CRC(de796e1f) SHA1(397efb86a21b178770f29d2464bacf5f893619a0) )
 1434      ROM_LOAD32_WORD( "mpr-16745.28", 0x400000, 0x200000, CRC(905b689c) SHA1(685dec2a65d5b3a386bda0af1bb5ae7e2b73a01a) )
 1435      ROM_LOAD32_WORD( "mpr-16746.29", 0x400002, 0x200000, CRC(163b312e) SHA1(6b45007d6a9d17c8a0b46d81ec84ce9bfefb1695) )
 1436      ROM_LOAD32_WORD( "mpr-16747.30", 0x800000, 0x200000, CRC(7353bb12) SHA1(608c5d561e909b8ba31d53db18e6e199855eaaec) )
 1437      ROM_LOAD32_WORD( "mpr-16748.31", 0x800002, 0x200000, CRC(8ce98d3a) SHA1(1978776a0e2ea817508e30ba232d5f8d9c158f70) )
 1438      ROM_LOAD32_WORD( "mpr-16749.32", 0xc00000, 0x200000, CRC(0e36dc1a) SHA1(4939177a6ac51ca57d0acd118ff14af4f4e438bb) )
 1439      ROM_LOAD32_WORD( "mpr-16750.33", 0xc00002, 0x200000, CRC(e4f0b98d) SHA1(e69de2e5ccea2834fb8326bdd61fc6b517bc60b7) )
 1440  
 1441      ROM_REGION32_LE( 0x200000, "user2", 0 ) /* TGP data roms */
 1442      ROM_LOAD32_BYTE( "mpr-16741.39", 0x000000, 0x80000, CRC(84b2ffd8) SHA1(0eba3855d20b88567c6fa08046e12429664d87cb) )
 1443      ROM_LOAD32_BYTE( "mpr-16742.40", 0x000001, 0x80000, CRC(e9cc12bb) SHA1(40c83c968be3b11fad193a00e7b760f074450683) )
 1444      ROM_LOAD32_BYTE( "mpr-16739.41", 0x000002, 0x80000, CRC(6c73e98f) SHA1(7b31e62922ab6d0df97c3ecc52b78e6d086c8635) )
 1445      ROM_LOAD32_BYTE( "mpr-16740.42", 0x000003, 0x80000, CRC(44b31007) SHA1(4bb265fea25a7bbcbb8ab080fdcf09849b18f1de) )
 1446  ROM_END
 1447  
 1448  ROM_START( wingwaru )
 1449      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1450      ROM_LOAD16_BYTE( "epr-16729.14", 0x200000, 0x80000, CRC(7edec2cc) SHA1(3e423a868ca7c8475fbb5bc1a10526e69d94d865) )
 1451      ROM_LOAD16_BYTE( "epr-16730.15", 0x200001, 0x80000, CRC(bab24dee) SHA1(26c95139c1aa7f34b6a5cce39e5bd1dd2ef0dd49) )
 1452  
 1453      ROM_LOAD( "epr-16951.4", 0xfc0000, 0x20000, CRC(8df5a798) SHA1(ef2756f237933ecf429dab0f362e572eb1965f4d) )
 1454      ROM_RELOAD(          0x000000, 0x20000 )
 1455      ROM_LOAD( "epr-16950.5", 0xfe0000, 0x20000, CRC(841e2195) SHA1(66f465aaf71955496e6f83335f7b836ad1d8c724) )
 1456      ROM_RELOAD(          0x020000, 0x20000 )
 1457  
 1458      ROM_LOAD16_BYTE( "mpr-16738.6",  0x1000000, 0x80000, CRC(51518ffa) SHA1(e4674ddfed4205957b14e133c6fdf6454872f324) )
 1459      ROM_LOAD16_BYTE( "mpr-16737.7",  0x1000001, 0x80000, CRC(37b1379c) SHA1(98620c324268e1dd906c077ac8a8cd903b9de1f7) )
 1460      ROM_LOAD16_BYTE( "mpr-16736.8",  0x1100000, 0x80000, CRC(10b6a025) SHA1(7a4f624ceb7c0b92044a5db8ff55440562ef836b) )
 1461      ROM_LOAD16_BYTE( "mpr-16735.9",  0x1100001, 0x80000, CRC(c82fd198) SHA1(d9e53ae1e14dfc8e84a14c0026ef0b904863bb1b) )
 1462      ROM_LOAD16_BYTE( "mpr-16734.10", 0x1200000, 0x80000, CRC(f76371c1) SHA1(0ff082db3877383d0dd977dc60c932b725e3d164) )
 1463      ROM_LOAD16_BYTE( "mpr-16733.11", 0x1200001, 0x80000, CRC(e105847b) SHA1(8489a6c91fd6d1e9ba81e8eaf36c514da30dccbe) )
 1464  
 1465      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1466      ROM_LOAD16_WORD_SWAP("epr-16751.7", 0x000000, 0x20000, CRC(23ba5ebc) SHA1(b98aab546c5e980baeedbada4e7472eb4c588260) )
 1467      ROM_LOAD16_WORD_SWAP("epr-16752.8", 0x020000, 0x20000, CRC(6541c48f) SHA1(9341eff160e31a8574b9545fafc1c4059323fa0c) )
 1468      ROM_RELOAD(0x80000, 0x20000)
 1469  
 1470      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1471      ROM_LOAD("mpr-16753.32", 0x000000, 0x200000, CRC(324a8333) SHA1(960342e08db637c6f72615d49cffd9fb0889620b) )
 1472      ROM_LOAD("mpr-16754.33", 0x200000, 0x200000, CRC(144f3cf5) SHA1(d2f8cc9086affbbc5ef2195272200230f724e5d1) )
 1473  
 1474      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1475      ROM_LOAD("mpr-16755.4", 0x000000, 0x200000, CRC(4baaf878) SHA1(661d4ea9be6a4952852d0ef94becee7ed42bf4a1) )
 1476      ROM_LOAD("mpr-16756.5", 0x200000, 0x200000, CRC(d9c40672) SHA1(83e6f1156b30888d3a00103f079dc74f4fca8446) )
 1477  
 1478      ROM_REGION32_LE( 0x1000000, "user1", 0 ) /* TGP model roms */
 1479      ROM_LOAD32_WORD( "mpr-16743.26", 0x000000, 0x200000, CRC(a710d33c) SHA1(1d0184545b34789ed511caaa25d57db3cd9a8e2f) )
 1480      ROM_LOAD32_WORD( "mpr-16744.27", 0x000002, 0x200000, CRC(de796e1f) SHA1(397efb86a21b178770f29d2464bacf5f893619a0) )
 1481      ROM_LOAD32_WORD( "mpr-16745.28", 0x400000, 0x200000, CRC(905b689c) SHA1(685dec2a65d5b3a386bda0af1bb5ae7e2b73a01a) )
 1482      ROM_LOAD32_WORD( "mpr-16746.29", 0x400002, 0x200000, CRC(163b312e) SHA1(6b45007d6a9d17c8a0b46d81ec84ce9bfefb1695) )
 1483      ROM_LOAD32_WORD( "mpr-16747.30", 0x800000, 0x200000, CRC(7353bb12) SHA1(608c5d561e909b8ba31d53db18e6e199855eaaec) )
 1484      ROM_LOAD32_WORD( "mpr-16748.31", 0x800002, 0x200000, CRC(8ce98d3a) SHA1(1978776a0e2ea817508e30ba232d5f8d9c158f70) )
 1485      ROM_LOAD32_WORD( "mpr-16749.32", 0xc00000, 0x200000, CRC(0e36dc1a) SHA1(4939177a6ac51ca57d0acd118ff14af4f4e438bb) )
 1486      ROM_LOAD32_WORD( "mpr-16750.33", 0xc00002, 0x200000, CRC(e4f0b98d) SHA1(e69de2e5ccea2834fb8326bdd61fc6b517bc60b7) )
 1487  
 1488      ROM_REGION32_LE( 0x200000, "user2", 0 ) /* TGP data roms */
 1489      ROM_LOAD32_BYTE( "mpr-16741.39", 0x000000, 0x80000, CRC(84b2ffd8) SHA1(0eba3855d20b88567c6fa08046e12429664d87cb) )
 1490      ROM_LOAD32_BYTE( "mpr-16742.40", 0x000001, 0x80000, CRC(e9cc12bb) SHA1(40c83c968be3b11fad193a00e7b760f074450683) )
 1491      ROM_LOAD32_BYTE( "mpr-16739.41", 0x000002, 0x80000, CRC(6c73e98f) SHA1(7b31e62922ab6d0df97c3ecc52b78e6d086c8635) )
 1492      ROM_LOAD32_BYTE( "mpr-16740.42", 0x000003, 0x80000, CRC(44b31007) SHA1(4bb265fea25a7bbcbb8ab080fdcf09849b18f1de) )
 1493  ROM_END
 1494  
 1495  ROM_START( wingwarj )
 1496      ROM_REGION( 0x2000000, "maincpu", ROMREGION_ERASEFF ) /* v60 code */
 1497      ROM_LOAD16_BYTE( "epr-16729.14", 0x200000, 0x80000, CRC(7edec2cc) SHA1(3e423a868ca7c8475fbb5bc1a10526e69d94d865) )
 1498      ROM_LOAD16_BYTE( "epr-16730.15", 0x200001, 0x80000, CRC(bab24dee) SHA1(26c95139c1aa7f34b6a5cce39e5bd1dd2ef0dd49) )
 1499  
 1500      ROM_LOAD( "epr-16728.4", 0xfc0000, 0x20000, CRC(194d58ff) SHA1(281201cbb9bb148a06fe88edeccf680f837dcc10) )
 1501      ROM_RELOAD(          0x000000, 0x20000 )
 1502      ROM_LOAD( "epr-16727.5", 0xfe0000, 0x20000, CRC(430380eb) SHA1(25bd81a69a9b4cdc644f912283b65b3eab988327) )
 1503      ROM_RELOAD(          0x020000, 0x20000 )
 1504  
 1505      ROM_LOAD16_BYTE( "mpr-16738.6",  0x1000000, 0x80000, CRC(51518ffa) SHA1(e4674ddfed4205957b14e133c6fdf6454872f324) )
 1506      ROM_LOAD16_BYTE( "mpr-16737.7",  0x1000001, 0x80000, CRC(37b1379c) SHA1(98620c324268e1dd906c077ac8a8cd903b9de1f7) )
 1507      ROM_LOAD16_BYTE( "mpr-16736.8",  0x1100000, 0x80000, CRC(10b6a025) SHA1(7a4f624ceb7c0b92044a5db8ff55440562ef836b) )
 1508      ROM_LOAD16_BYTE( "mpr-16735.9",  0x1100001, 0x80000, CRC(c82fd198) SHA1(d9e53ae1e14dfc8e84a14c0026ef0b904863bb1b) )
 1509      ROM_LOAD16_BYTE( "mpr-16734.10", 0x1200000, 0x80000, CRC(f76371c1) SHA1(0ff082db3877383d0dd977dc60c932b725e3d164) )
 1510      ROM_LOAD16_BYTE( "mpr-16733.11", 0x1200001, 0x80000, CRC(e105847b) SHA1(8489a6c91fd6d1e9ba81e8eaf36c514da30dccbe) )
 1511  
 1512      ROM_REGION( 0xc0000, "audiocpu", 0 )  /* 68K code */
 1513      ROM_LOAD16_WORD_SWAP("epr-16751.7", 0x000000, 0x20000, CRC(23ba5ebc) SHA1(b98aab546c5e980baeedbada4e7472eb4c588260) )
 1514      ROM_LOAD16_WORD_SWAP("epr-16752.8", 0x020000, 0x20000, CRC(6541c48f) SHA1(9341eff160e31a8574b9545fafc1c4059323fa0c) )
 1515      ROM_RELOAD(0x80000, 0x20000)
 1516  
 1517      ROM_REGION( 0x400000, "sega1", 0 ) /* Samples */
 1518      ROM_LOAD("mpr-16753.32", 0x000000, 0x200000, CRC(324a8333) SHA1(960342e08db637c6f72615d49cffd9fb0889620b) )
 1519      ROM_LOAD("mpr-16754.33", 0x200000, 0x200000, CRC(144f3cf5) SHA1(d2f8cc9086affbbc5ef2195272200230f724e5d1) )
 1520  
 1521      ROM_REGION( 0x400000, "sega2", 0 ) /* Samples */
 1522      ROM_LOAD("mpr-16755.4", 0x000000, 0x200000, CRC(4baaf878) SHA1(661d4ea9be6a4952852d0ef94becee7ed42bf4a1) )
 1523      ROM_LOAD("mpr-16756.5", 0x200000, 0x200000, CRC(d9c40672) SHA1(83e6f1156b30888d3a00103f079dc74f4fca8446) )
 1524  
 1525      ROM_REGION32_LE( 0x1000000, "user1", 0 ) /* TGP model roms */
 1526      ROM_LOAD32_WORD( "mpr-16743.26", 0x000000, 0x200000, CRC(a710d33c) SHA1(1d0184545b34789ed511caaa25d57db3cd9a8e2f) )
 1527      ROM_LOAD32_WORD( "mpr-16744.27", 0x000002, 0x200000, CRC(de796e1f) SHA1(397efb86a21b178770f29d2464bacf5f893619a0) )
 1528      ROM_LOAD32_WORD( "mpr-16745.28", 0x400000, 0x200000, CRC(905b689c) SHA1(685dec2a65d5b3a386bda0af1bb5ae7e2b73a01a) )
 1529      ROM_LOAD32_WORD( "mpr-16746.29", 0x400002, 0x200000, CRC(163b312e) SHA1(6b45007d6a9d17c8a0b46d81ec84ce9bfefb1695) )
 1530      ROM_LOAD32_WORD( "mpr-16747.30", 0x800000, 0x200000, CRC(7353bb12) SHA1(608c5d561e909b8ba31d53db18e6e199855eaaec) )
 1531      ROM_LOAD32_WORD( "mpr-16748.31", 0x800002, 0x200000, CRC(8ce98d3a) SHA1(1978776a0e2ea817508e30ba232d5f8d9c158f70) )
 1532      ROM_LOAD32_WORD( "mpr-16749.32", 0xc00000, 0x200000, CRC(0e36dc1a) SHA1(4939177a6ac51ca57d0acd118ff14af4f4e438bb) )
 1533      ROM_LOAD32_WORD( "mpr-16750.33", 0xc00002, 0x200000, CRC(e4f0b98d) SHA1(e69de2e5ccea2834fb8326bdd61fc6b517bc60b7) )
 1534  
 1535      ROM_REGION32_LE( 0x200000, "user2", 0 ) /* TGP data roms */
 1536      ROM_LOAD32_BYTE( "mpr-16741.39", 0x000000, 0x80000, CRC(84b2ffd8) SHA1(0eba3855d20b88567c6fa08046e12429664d87cb) )
 1537      ROM_LOAD32_BYTE( "mpr-16742.40", 0x000001, 0x80000, CRC(e9cc12bb) SHA1(40c83c968be3b11fad193a00e7b760f074450683) )
 1538      ROM_LOAD32_BYTE( "mpr-16739.41", 0x000002, 0x80000, CRC(6c73e98f) SHA1(7b31e62922ab6d0df97c3ecc52b78e6d086c8635) )
 1539      ROM_LOAD32_BYTE( "mpr-16740.42", 0x000003, 0x80000, CRC(44b31007) SHA1(4bb265fea25a7bbcbb8ab080fdcf09849b18f1de) )
 1540  ROM_END
 1541  
 1542  
 1543  static MACHINE_CONFIG_START( model1, model1_state )
 1544      MCFG_CPU_ADD("maincpu", V60, 16000000)
 1545      MCFG_CPU_PROGRAM_MAP(model1_mem)
 1546      MCFG_CPU_IO_MAP(model1_io)
 1547      MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", model1_state, model1_interrupt, "screen", 0, 1)
 1548  
 1549      MCFG_CPU_ADD("audiocpu", M68000, 10000000)  // verified on real h/w
 1550      MCFG_CPU_PROGRAM_MAP(model1_snd)
 1551  
 1552      MCFG_MACHINE_START_OVERRIDE(model1_state,model1)
 1553      MCFG_MACHINE_RESET_OVERRIDE(model1_state,model1)
 1554      MCFG_NVRAM_ADD_0FILL("nvram")
 1555  
 1556      MCFG_S24TILE_DEVICE_ADD("tile", 0x3fff)
 1557  
 1558      MCFG_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK )
 1559  
 1560      MCFG_SCREEN_ADD("screen", RASTER)
 1561      MCFG_SCREEN_RAW_PARAMS(XTAL_16MHz, 656, 0/*+69*/, 496/*+69*/, 424, 0/*+25*/, 384/*+25*/)
 1562      MCFG_SCREEN_UPDATE_DRIVER(model1_state, screen_update_model1)
 1563      MCFG_SCREEN_VBLANK_DRIVER(model1_state, screen_eof_model1)
 1564  
 1565      MCFG_PALETTE_LENGTH(8192)
 1566  
 1567      MCFG_VIDEO_START_OVERRIDE(model1_state,model1)
 1568  
 1569      MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
 1570  
 1571      MCFG_SOUND_ADD("ymsnd", YM3438, 8000000)
 1572      MCFG_SOUND_ROUTE(0, "lspeaker", 0.60)
 1573      MCFG_SOUND_ROUTE(1, "rspeaker", 0.60)
 1574  
 1575      MCFG_SOUND_ADD("sega1", MULTIPCM, 8000000)
 1576      MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
 1577      MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
 1578  
 1579      MCFG_SOUND_ADD("sega2", MULTIPCM, 8000000)
 1580      MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
 1581      MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
 1582  MACHINE_CONFIG_END
 1583  
 1584  static MACHINE_CONFIG_DERIVED(swa, model1)
 1585      MCFG_DSBZ80_ADD(DSBZ80_TAG)
 1586      MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
 1587      MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
 1588  MACHINE_CONFIG_END
 1589  
 1590  static MACHINE_CONFIG_START( model1_vr, model1_state )
 1591      MCFG_CPU_ADD("maincpu", V60, 16000000)
 1592      MCFG_CPU_PROGRAM_MAP(model1_vr_mem)
 1593      MCFG_CPU_IO_MAP(model1_vr_io)
 1594      MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", model1_state, model1_interrupt, "screen", 0, 1)
 1595  
 1596      MCFG_CPU_ADD("audiocpu", M68000, 10000000)  // verified on real h/w
 1597      MCFG_CPU_PROGRAM_MAP(model1_snd)
 1598  
 1599      MCFG_CPU_ADD("tgp", MB86233, 16000000)
 1600      MCFG_CPU_CONFIG(model1_vr_tgp_config)
 1601      MCFG_CPU_PROGRAM_MAP(model1_vr_tgp_map)
 1602  
 1603      MCFG_MACHINE_START_OVERRIDE(model1_state,model1)
 1604      MCFG_MACHINE_RESET_OVERRIDE(model1_state,model1_vr)
 1605      MCFG_NVRAM_ADD_0FILL("nvram")
 1606  
 1607      MCFG_S24TILE_DEVICE_ADD("tile", 0x3fff)
 1608  
 1609      MCFG_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK )
 1610  
 1611      MCFG_SCREEN_ADD("screen", RASTER)
 1612      MCFG_SCREEN_RAW_PARAMS(XTAL_16MHz, 656, 0/*+69*/, 496/*+69*/, 424, 0/*+25*/, 384/*+25*/)
 1613      MCFG_SCREEN_UPDATE_DRIVER(model1_state, screen_update_model1)
 1614      MCFG_SCREEN_VBLANK_DRIVER(model1_state, screen_eof_model1)
 1615  
 1616      MCFG_PALETTE_LENGTH(8192)
 1617  
 1618      MCFG_VIDEO_START_OVERRIDE(model1_state,model1)
 1619  
 1620      MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
 1621  
 1622      MCFG_SOUND_ADD("ymsnd", YM3438, 8000000)
 1623      MCFG_SOUND_ROUTE(0, "lspeaker", 0.60)
 1624      MCFG_SOUND_ROUTE(1, "rspeaker", 0.60)
 1625  
 1626      MCFG_SOUND_ADD("sega1", MULTIPCM, 8000000)
 1627      MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
 1628      MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
 1629  
 1630      MCFG_SOUND_ADD("sega2", MULTIPCM, 8000000)
 1631      MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
 1632      MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
 1633  MACHINE_CONFIG_END
 1634  
 1635  GAME( 1993, vf,       0,       model1,    vf, driver_device,       0, ROT0, "Sega", "Virtua Fighter", GAME_IMPERFECT_GRAPHICS )
 1636  GAMEL(1992, vr,       0,       model1_vr, vr, driver_device,       0, ROT0, "Sega", "Virtua Racing", GAME_IMPERFECT_GRAPHICS, layout_vr )
 1637  GAME( 1993, vformula, vr,      model1_vr, vr, driver_device,       0, ROT0, "Sega", "Virtua Formula", GAME_IMPERFECT_GRAPHICS )
 1638  GAME( 1993, swa,      0,       swa,       swa, driver_device,      0, ROT0, "Sega", "Star Wars Arcade", GAME_NOT_WORKING | GAME_IMPERFECT_SOUND )
 1639  GAME( 1994, wingwar,  0,       model1,    wingwar, driver_device,  0, ROT0, "Sega", "Wing War (World)", GAME_NOT_WORKING )
 1640  GAME( 1994, wingwaru, wingwar, model1,    wingwar, driver_device,  0, ROT0, "Sega", "Wing War (US)", GAME_NOT_WORKING )
 1641  GAME( 1994, wingwarj, wingwar, model1,    wingwar, driver_device,  0, ROT0, "Sega", "Wing War (Japan)", GAME_NOT_WORKING )