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

    1  /******************************************************************************
    2  
    3     - NORAUT POKER SYSTEM -
    4    -------------------------
    5  
    6    Driver by Roberto Fresca & Angelo Salese.
    7  
    8  
    9    Games running on this hardware:
   10  
   11    -- Z80 based --
   12  
   13     * Noraut Poker,                        1988,  Noraut Ltd.
   14     * Noraut Deluxe Poker (console),       198?,  Noraut Ltd.
   15     * Noraut Deluxe Poker (bootleg),       198?,  Unknown.
   16     * Noraut Joker Poker (original),       198?,  Noraut Ltd.
   17     * Noraut Joker Poker (Prologic HW),    198?,  Video Fun Games Ltd.
   18     * Noraut Joker Poker (alt),            1988,  Noraut Ltd.
   19     * Noraut Red Hot Joker Poker,          1988,  Noraut Ltd.
   20     * Noraut Red Hot Joker Poker (alt HW), 198?,  Noraut Ltd.
   21     * Noraut Poker (NTX10A),               1988,  Noraut Ltd.
   22     * Noraut Joker Poker (V3.010a),        2002,  Noraut Ltd.
   23     * Noraut Joker Poker (V3.011a),        2003,  Noraut Ltd.
   24     * Noraut unknown set 1 (console),      198?,  Noraut Ltd.
   25     * Noraut unknown set 2 (console),      198?,  Noraut Ltd.
   26     * Mainline Double Joker Poker,         198?,  Mainline London.
   27     * Double Joker Poker (45%-75% payout), 199?,  DellFern Ltd.
   28     * Royal on Ten (Noraut Deluxe hack),   2005,  Unknown.
   29     * Credit Poker (ver.30c, standard),    1999,  CGI.
   30     * Kimble Double HI-LO (z80 version),   198?,  Kimble Ireland.
   31     * PMA Poker,                           198?,  PMA.
   32     * Poker / Black Jack (Model 7521),     198?,  M. Kramer Manufacturing.
   33  
   34    -- 8080 based --
   35  
   36     * Draw Poker HI-LO,                    1983,  M. Kramer Manufacturing.
   37     * Draw Poker HI-LO (alt),              1983,  Unknown.
   38     * Draw Poker HI-LO (Japanese),         198?,  Unknown.
   39     * Kimble Double HI-LO,                 198?,  Kimble Ireland.
   40     * GTI Poker,                           1983,  GTI Inc.
   41     * HI-LO Double Up Joker Poker,         1983,  SMS Manufacturing Corp.
   42     * Drews Revenge (v.2.89, set 1),       1986,  Drews Inc.
   43     * Drews Revenge (v.2.89, set 2),       1986,  Drews Inc.
   44     * Turbo Poker 2,                       1993,  Micro Manufacturing, Inc.
   45     * Southern Systems Joker Poker,        1982,  Southern Systems & Assembly, Ltd.
   46     * Fast Draw (poker conversion kit)?,   198?,  Stern Electronics?
   47     * Draw Poker HI-LO (unknown, rev 1),   198?,  SMS Manufacturing Corp?.
   48     * Draw Poker HI-LO (unknown, rev 2),   198?,  SMS Manufacturing Corp?.
   49  
   50  
   51    This hardware emulation opened a big can of worms. :)
   52  
   53    Seems that the original hardware/game was created by M.Kramer Manufacturing,
   54    and then reprogrammed, copied, bootlegged, used & abused by other companies
   55    like Noraut Ltd, Kimble Ireland, GTI, DellFern, Merit Industries, Red Card,
   56    Blue Games, CGI, Micro Manufacturing, SMS Manufacturing, Drews Distributing,
   57    Drew Industries, Lynch Enterprises Inc, Hillside Gaming Corp, Electro Sport,
   58    Mainline London, Southern Systems, Americade Amusement Inc, Prologic Ireland,
   59    Mosfat, Unique, GEI, Southern Systems & Assembly Ltd., etc...
   60  
   61    You can see some legal issues in the following links:
   62    http://cases.justia.com/us-court-of-appeals/F2/783/421/41759/
   63  
   64  
   65    Special thanks to Alan Griffin, that kindly helped providing good references
   66    that allowed me to improve the Noraut system emulation.
   67  
   68  
   69  *******************************************************************************
   70  
   71  
   72    HARDWARE NOTES:
   73    ---------------
   74  
   75    Noraut Edge Connector (pinouts)
   76    --------------------------------
   77    Component     PN   Solder Side
   78    --------------------------------
   79    GND           01   GND
   80    5v DC         02   5v DC
   81                  03
   82    12v DC        04   12v DC
   83                  05
   84                  06
   85                  07
   86    0v            08   Readout Switch
   87    0v            09   Low level hopper
   88    0v            10   50p in
   89    0v            11   pound in
   90    0v            12   Bet switch
   91    0v            13   Deal switch
   92    0v            14   Hold 1 switch
   93    0v            15   Half Gamble switch
   94    0v            16   Change Card switch
   95    Refil         17   Coin count/sense from hopper
   96    Low Switch    18   High swicth
   97    Hold 3 Switch 19   Hold 2 switch
   98    Hold 5 Switch 20   Hold 4 switch
   99    10p coin      21   Deflect
  100                  22   50p in meter
  101                  23   Hopper Motor Drive (low volt switch line NOT 24v)
  102                  24
  103                  25   spk+
  104                  26   Panel lamps clock
  105    Monitor sync  27   Hold 1 lamp
  106    Bet lamp      28   Deal lamp
  107    Change lamp   29   Hold 4 lamp
  108    Hold 5 lamp   30   Panel lights reset
  109    High lamp     31   Half Gamble lamp
  110    Hold 2 lamp   32   Low lamp
  111    10p Meter out 33   Meter refil
  112    Video Green   34   Hold 3 lamp
  113    Video Blue    35   10p in Meter
  114    Video Red     36   Spark Detect (Not on all boards)
  115  
  116  
  117  *******************************************************************************
  118  
  119    Control Panel
  120    -------------
  121  
  122    There are 2 control panel schemes:
  123  
  124    * The default one (11 button-lamps) for systems without CANCEL button.
  125  
  126    .--------------------------------------------------------------------------.
  127    |                                              .-------. .------. .------. |
  128    | .------. .------. .------. .------. .------. |  BET  | | HALF | |  HI  | |
  129    | |      | |      | |      | |      | |      | |COLLECT| |GAMBLE| |      | |
  130    | | HOLD | | HOLD | | HOLD | | HOLD | | HOLD | '-------' '------' '------' |
  131    | |CANCEL| |CANCEL| |CANCEL| |CANCEL| |CANCEL| .-------. .------. .------. |
  132    | |      | |      | |      | |      | |      | | DEAL  | |CHANGE| |  LO  | |
  133    | '------' '------' '------' '------' '------' | DRAW  | | CARD | |      | |
  134    |                                              '-------' '------' '------' |
  135    '--------------------------------------------------------------------------'
  136  
  137     HOLD buttons              = red.
  138     BET, DEAL, HI & LO        = yellow.
  139     HALF GAMBLE & CHANGE CARD = orange.
  140  
  141  
  142    * The alternate one (12 button-lamps) for systems with CANCEL button.
  143  
  144    .-------------------------------------------------------------.
  145    | .------. .------. .------. .------. .------.   .----------. |
  146    | | HOLD | | HOLD | | HOLD | | HOLD | | HOLD |   |   HIGH   | |
  147    | '------' '------' '------' '------' '------'   '----------' |
  148    | .------. .------. .------. .------. .------.   .----------. |
  149    | |CANCEL| |STAND | | SAVE | | DEAL | | BET  |   |   LOW    | |
  150    | '------' '------' '------' '------' '------'   '----------' |
  151    '-------------------------------------------------------------'
  152  
  153     HOLD & CANCEL buttons     = yellow (1).
  154     STAND & DEAL buttons      = orange (1).
  155     SAVE (HALF GAMBLE) button = blued-green (1).
  156     BET button                = red (1).
  157     HIGH & LOW buttons        = yellow.
  158  
  159     (1) Circular-shaped buttons.
  160  
  161    Some lamps are wired in different way in this scheme.
  162  
  163  
  164  *******************************************************************************
  165  
  166  
  167    Narout System Ports Map
  168    -----------------------
  169  
  170    (*) Confirmed lines.
  171  
  172  
  173    PPI-0 (60h-63h); PortA IN.
  174    DIP Switches bank:
  175  
  176    7654 3210
  177    ---- ---x  * DIP switch 8
  178    ---- --x-  * DIP switch 7
  179    ---- -x--  * DIP switch 6
  180    ---- x---  * DIP switch 5
  181    ---x ----  * DIP switch 4
  182    --x- ----  * DIP switch 3
  183    -x-- ----  * DIP switch 2
  184    x--- ----  * DIP switch 1
  185  
  186  
  187    PPI-0 (60h-63h); PortB OUT.
  188    Lamps:
  189  
  190    7654 3210
  191    ---- ---x  * CHANGE CARD lamp.
  192    ---- --x-  * SAVE / HALF GAMBLE lamp.
  193    ---- -x--  * HOLD 1 lamp.
  194    ---- x---  * HOLD 2 lamp.
  195    ---x ----  * HOLD 3 lamp.
  196    --x- ----  * HOLD 4 lamp.
  197    -x-- ----  * HOLD 5 lamp.
  198    x--- ----  * CANCEL lamp.
  199  
  200  
  201    PPI-0 (60h-63h); PortC OUT.
  202    Lamps & Coin Counters:
  203  
  204    7654 3210
  205    ---- ---x  * HI lamp.
  206    ---- --x-  * LO lamp.
  207    ---- -x--  * HOPPER MOTOR DRIVE
  208    ---- x---  * Payout pulse.
  209    ---x ----  * Coin 2 counter.
  210    --x- ----  * Coin 1 counter.
  211    -x-- ----  + Coin counter related.
  212    x--- ----  + DEFLECT (always activated).
  213  
  214  
  215  -----------------------------------------------------------
  216  
  217    PPI-1 (a0h-a3h); PortA IN.
  218    Regular Inputs:
  219  
  220    7654 3210
  221    ---- ---x  * DEAL / DRAW button.
  222    ---- --x-  * BET / CHANGE CARD button.
  223    ---- -x--  * COIN 1 mech.
  224    ---- x---  * COIN 2 mech.
  225    ---x ----  * READOUT button (noraut11).
  226    --x- ----  * HI button.
  227    -x-- ----  * LO button.
  228    x--- ----  * PAYOUT button.
  229  
  230  
  231    PPI-1 (a0h-a3h); PortB IN.
  232    Regular Inputs:
  233  
  234    7654 3210
  235    ---- ---x  * STAND / TAKE button.
  236    ---- --x-  * SAVE / HALF GAMBLE button.
  237    ---- -x--  * HOLD 1 button.
  238    ---- x---  * HOLD 2 button.
  239    ---x ----  * HOLD 3 button.
  240    --x- ----  * HOLD 4 button.
  241    -x-- ----  * HOLD 5 button.
  242    x--- ----  * CANCEL button.
  243  
  244  
  245    PPI-1 (a0h-a3h); PortC OUT.
  246    Sound & Lamps:
  247  
  248    7654 3210
  249    ---- ---x  * DEAL / DRAW Lamp.
  250    ---- --x-  * BET / COLLECT Lamp.
  251    ---- -x--  + PANEL LIGHTS RESET (always activated after initalize).
  252    ---- x---  + PANEL LAMPS CLOCK
  253    xxxx ----  * Discrete Sound Lines.
  254  
  255  
  256  -----------------------------------------------------------
  257  
  258    PPI-2 (a0h-a3h); PortA IN/OUT
  259    VRAM Handlers:
  260  
  261    7654 3210
  262    xxxx xxxx  VRAM DATA.
  263  
  264  
  265    PPI-2 (a0h-a3h); PortB OUT
  266    VRAM Handlers:
  267  
  268    7654 3210
  269    xxxx xxxx  VRAM ADDRESSING.
  270  
  271  
  272    PPI-2 (a0h-a3h); PortC IN/OUT.
  273    PortA handshake lines & PC0-PC2 (noraut11 = OUT; noraut12 = IN):
  274  
  275    7654 3210
  276    ---- ---x  * N/C (noraut11).
  277    ---- --x-  * N/C (noraut11).
  278    ---- -x--  * N/C (noraut11).
  279    ---- ---x  * N/C (noraut12).
  280    ---- --x-  * READOUT SWITCH (noraut12).
  281    ---- -x--  * LOW LEVEL HOPPER (noraut12).
  282    xxxx x---  * PortA HANDSHAKE LINES (all systems).
  283  
  284  
  285  *******************************************************************************
  286  
  287  
  288    *** Game Notes ***
  289  
  290  
  291    - norautjp:
  292  
  293      At the first start-up, the game will give you a very clever
  294      "FU" screen. Press the following buttons *together* on different times
  295      to get rid of it (and actually initialize the machine):
  296  
  297      * start + bet buttons (1+2);
  298      * Hold 3 + Hold 2 + Save (Half Gamble) + Change Card (C+X+F+D)
  299  
  300      Also notice that you actually need to map the last four buttons on the
  301      same button / on a joypad since MAME's steady key doesn't seem to work on
  302      my end...
  303  
  304  
  305  *******************************************************************************
  306  
  307    --------------------
  308    ***  Memory Map  ***
  309    --------------------
  310  
  311  
  312    Noraut HW:
  313  
  314    0x0000 - 0x1FFF    ; ROM space.
  315    0x2000 - 0x27FF    ; NVRAM.
  316  
  317    0x60 - 0x63        ; PPI 8255 0 - DIP Switches, lamps & counters.
  318    0xA0 - 0xA3        ; PPI 8255 1 - Regular Inputs, sound lines & remaining lamps.
  319    0xC0 - 0xC3        ; PPI 8255 2 - Video RAM access & other stuff.
  320  
  321  
  322    DPHL HW:
  323  
  324    0x0000 - 0x1FFF    ; ROM space.
  325    0x5000 - 0x53FF    ; NVRAM.
  326  
  327    0x7C - 0x7F        ; PPI 8255 0 - DIP Switches, lamps & counters.
  328    0xBC - 0xBF        ; PPI 8255 1 - Regular Inputs, sound lines & remaining lamps.
  329    0xDC - 0xDF        ; PPI 8255 2 - Video RAM access & other stuff.
  330  
  331  
  332  *******************************************************************************
  333  
  334  
  335    DRIVER UPDATES:
  336  
  337  
  338    [2009-01-27]
  339  
  340    - Initial release.
  341    - Defined ROM, RAM.
  342    - Added 2x PPI 8255 for regular I/O.
  343    - Added complete inputs and hooked DIP switches.
  344    - Added video RAM support.
  345    - Added NVRAM.
  346    - Added lamps support.
  347    - Added coin counters.
  348    - Identified the sound writes.
  349    - Added hardware description.
  350    - Added pinout scheme.
  351    - Added technical notes.
  352  
  353  
  354    [2009-01-28]
  355  
  356    - Merged GTI Poker (gtipoker.c) with this driver.
  357    - Added new memory map and machine driver for gtipoker.
  358    - Hooked 2x PPI 8255 to gtipoker.
  359    - Hooked the video RAM access ports to gtipoker.
  360    - Changed norautpn description from Noraut Poker (No Payout),
  361      to Noraut Poker (bootleg), since the game has payout system.
  362    - Some clean-ups.
  363  
  364  
  365    [2009-08-21]
  366  
  367    - Switched to pre-defined Xtal clock.
  368    - Changed the way how graphics are banked/accessed.
  369    - Fixed the graphics offset and number of tiles per bank.
  370    - Added new set: Noraut Red Hot Joker Poker.
  371    - Added new set: Noraut Poker (NTX10A).
  372    - Added new set: Noraut Joker Poker (V3.010a).
  373    - Fixed the tile size/decode for the first GFX bank.
  374    - Added proper norautrh inputs, including the readout button.
  375    - Added partial DIP switches to norautrh.
  376    - Added more technical notes.
  377  
  378  
  379    [2009-08-23/26]
  380  
  381    - Added a default NVRAM to Noraut Joker Poker to bypass the 'F U' screen.
  382      This is due to the phisical keyboard limitation when needs to enter
  383      4 simultaneous inputs.
  384    - Executed a trojan on 2 noraut systems to confirm the way 16x32 tiles are decoded.
  385    - Fixed the x-offset for 32x32 tiles lines.
  386    - Fixed the screen aspect and visible area.
  387    - Confirmed correct colors. No bipolar PROM involved.
  388    - Added Noraut Joker Poker hardware and PCB layouts.
  389    - Documented the discrete audio circuitry. Added a full diagram.
  390  
  391  
  392    [2009-08-29]
  393  
  394    - Fixed the coin counters.
  395    - Documented all the output ports.
  396    - Added a scheme with descriptions for every existent port.
  397    - Added full lamps support to naroutp, naroutjp, naroutrh and naroutpn.
  398    - Created lamps layouts for 11 and 12-lamps scheme.
  399    - Rerouted some inputs to mantain the inputs layout.
  400    - Renamed some inputs to match the text with the real cab buttons.
  401    - Removed the imperfect colors flag from the existent sets.
  402    - Added 2 different control panel layouts to the source.
  403    - Updated technical notes.
  404  
  405  
  406    [2009-08-30]
  407  
  408    - Corrected CPU clock to Xtal/8.
  409    - Discovered 3 new I/O lines coming from PPI-2, PC0-PC2. They are mixed with the handshake ones.
  410    - Added the READOUT button to noraut12 games.
  411    - Splitted the main machine driver to cover 2 different Noraut systems.
  412    - Added partial support for PPI-2, PC0-PC2 output lines on noraut11 games.
  413    - Figured out other remaining I/O lines.
  414    - Added new handlers to simulate the handshake lines. Still need real support through PPI-2.
  415    - Updated technical notes.
  416  
  417  
  418    [2009-09-03]
  419  
  420    - Routed the whole video RAM access through PPI-2.
  421      (bypassed the handshake lines for now).
  422    - Merged back the noraut machine drivers after the 3rd PPI connection.
  423    - Added Low Level Hopper manual input.
  424    - Added a new machine driver for extended hardware.
  425      It has 2 jumpers that cut the a14 and a15 addressing lines.
  426  
  427  
  428    [2009-09-09]
  429  
  430    - Added accurate discrete sound system emulation.
  431    - Fixed the discrete sound system diagram, based on real sound references.
  432  
  433  
  434    [2009-10-12]
  435  
  436    - Added Draw Poker HI-LO hardware support, based on 8080A CPU.
  437    - Mirrored the PPI's offsets to simplify/merge the hardware emulation.
  438    - Added hardware documentation and PCB layouts from both DPHL sets.
  439    - Added DPHL discrete sound circuitry scheme/documentation.
  440    - Added Turbo Poker 2 from Micro Manufacturing.
  441    - Added PMA poker.
  442    - Documented the Turbo Poker 2 hardware.
  443    - Added Turbo Poker 2 PCB layout from hi-res picture.
  444    - Switched to the new PPI core.
  445    - Commented out the 3rd PPI device till handshaked strobe lines can be
  446      properly emulated. For now, all VRAM access is through direct handlers.
  447      This allow to remove the hacks per set needed to boot the games.
  448  
  449  
  450    [2009-10-13]
  451  
  452    - Added Draw Poker HI-LO (japanese), based on 8080A CPU.
  453    - Merged the gtipoker memory map and machine driver with dphl.
  454    - Created a base machine driver and then derivatives by hardware.
  455    - Splitted the regular RAM and NVRAM systems.
  456    - Added 'HI-LO Double Up Joker Poker' from SMS Manufacturing.
  457    - Added smshilo hardware details and PCB layout.
  458    - Added smshilo discrete sound circuitry scheme/documentation.
  459  
  460  
  461    [2009-11-26]
  462  
  463    - A lot of work in memory maps and machine driver stuff.
  464    - Improved Inputs / DIP switches for some games.
  465    - Added lamps support / layouts to new working games.
  466    - Added preliminary support to Kimble hardware.
  467    - Added support to CGI's Credit Poker 30x games.
  468    - Added new (and fixed old) technical notes.
  469    - Added Noraut Deluxe Poker (console).
  470    - Added Noraut Joker Poker (original).
  471    - Added Noraut Red Hot Joker Poker (alt HW).
  472    - Added Noraut Joker Poker (V3.011a).
  473    - Added Noraut unknown set 1 (console).
  474    - Added Noraut unknown set 2 (console).
  475    - Added Mainline Double Joker Poker.
  476    - Added Double Joker Poker (45%-75% payout).
  477    - Added Royal on Ten (Noraut Deluxe hack).
  478    - Added Credit Poker (ver.30c, standard).
  479    - Added Poker / Black Jack (Model 7521).
  480    - Added Kimble Joker Poker.
  481    - Added DRHL Poker (v.2.89).
  482    - Renamed norautpn descripion to Noraut Deluxe Poker (bootleg).
  483    - Added a placeholder for tpoker2's undumped 68705 MCU.
  484    - Reorganized the driver, plus some clean-ups.
  485    - Renamed kimblejp to kimbldhl. Changed game description to Kimble Double HI-LO.
  486    - Added specific memory map & machine driver to Kimble Double HI-LO.
  487    - Fix the Kimble Double HI-LO CPU type.
  488    - Added notes about the code obfuscation and PPI's handling/offsets.
  489  
  490  
  491    [2009-12-04]
  492  
  493    - Added new technical notes.
  494    - Added Kimble Double HI-LO (z80 HW mod).
  495    - Added Noraut Joker Poker (Prologic HW).
  496    - Added proper discrete sound support to Kimble games,
  497      and Prologic-Noraut Joker Poker.
  498    - Slightly adjusted the visual area.
  499      This can be wrong and must be rechecked.
  500    - Relocated the hardware notes and layouts to ROM_LOAD section,
  501      so can be seen/maintained in a cleaner way.
  502    - Fixed the default lamps state.
  503  
  504  
  505    [2009-12-08]
  506  
  507    - Added Fast Draw (poker conversion kit)?. Seems based on 8080 CPU hardware.
  508    - Added Draw Poker HI-LO (unknown, rev 1). Seems based on 8080 CPU hardware.
  509    - Added Draw Poker HI-LO (unknown, rev 2). Seems based on 8080 CPU hardware.
  510    - Added a PCB layout for M.Kramer's Black Jack Poker, based on a hi-res pic.
  511    - Added undumped devices as NO_DUMP.
  512    - Added some technical notes.
  513  
  514  
  515    [2009-12-08]
  516  
  517    - Added Southern Systems Joker Poker. Based on 8080 CPU.
  518    - Added some technical notes.
  519  
  520  
  521    [2011-01-24]
  522  
  523    - Changed DRHL description to "Drews Revenge (v.2.89, set 1)"
  524    - Added Drews Revenge (v.2.89, set 2). Based on 8080 CPU.
  525  
  526  
  527    TODO:
  528  
  529    - Analize and hook the 3rd PPI device at 0xc0-0xc3.
  530      /OBF handshake line (PC7) doesn't seems to work properly.
  531    - Interrupts in 8080 based games.
  532    - Find if wide chars are hardcoded or tied to a bit.
  533    - Save support.
  534    - Parent/clone relationship.
  535  
  536  
  537  *******************************************************************************/
  538  
  539  
  540  #define NORAUT_MASTER_CLOCK     XTAL_18_432MHz
  541  #define DPHL_MASTER_CLOCK       XTAL_18MHz
  542  #define NORAUT_CPU_CLOCK        NORAUT_MASTER_CLOCK / 8     /* 2.30275 MHz - Measured: 2.305 MHz */
  543  #define DPHL_CPU_CLOCK          DPHL_MASTER_CLOCK / 9       /* 2 MHz (from 8224) */
  544  
  545  #include "emu.h"
  546  #include "cpu/z80/z80.h"
  547  #include "cpu/i8085/i8085.h"
  548  #include "machine/i8255.h"
  549  #include "machine/nvram.h"
  550  #include "includes/norautp.h"
  551  
  552  #include "noraut11.lh"
  553  #include "noraut12.lh"
  554  
  555  
  556  /*************************
  557  *     Video Hardware     *
  558  *************************/
  559  
  560  void norautp_state::video_start()
  561  {
  562      m_np_vram = auto_alloc_array_clear(machine(), UINT16, 0x1000/2);
  563  }
  564  
  565  
  566  UINT32 norautp_state::screen_update_norautp(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
  567  {
  568      int x, y, count;
  569  
  570      count = 0;
  571  
  572      bitmap.fill(machine().pens[0], cliprect); //black pen
  573  
  574      for(y = 0; y < 8; y++)
  575      {
  576          /* Double width, displaced 8 pixels in X */
  577          if(y == 2 || (y >= 4 && y < 6))
  578          {
  579              for(x = 0; x < 16; x++)
  580              {
  581                  int tile = m_np_vram[count] & 0x3f;
  582                  int colour = (m_np_vram[count] & 0xc0) >> 6;
  583  
  584                  drawgfx_opaque(bitmap,cliprect, machine().gfx[1], tile, colour, 0, 0, (x * 32) + 8, y * 32);
  585  
  586                  count+=2;
  587              }
  588          }
  589          else
  590          {
  591              for(x = 0; x < 32; x++)
  592              {
  593                  int tile = m_np_vram[count] & 0x3f;
  594                  int colour = (m_np_vram[count] & 0xc0) >> 6;
  595  
  596                  drawgfx_opaque(bitmap,cliprect, machine().gfx[0], tile, colour, 0, 0, x * 16, y * 32);
  597  
  598                  count++;
  599              }
  600          }
  601      }
  602  
  603      return 0;
  604  }
  605  
  606  
  607  void norautp_state::palette_init()
  608  {
  609      /* 1st gfx bank */
  610      palette_set_color(machine(), 0, MAKE_RGB(0x00, 0x00, 0xff));    /* blue */
  611      palette_set_color(machine(), 1, MAKE_RGB(0xff, 0xff, 0x00));    /* yellow */
  612      palette_set_color(machine(), 2, MAKE_RGB(0x00, 0x00, 0xff));    /* blue */
  613      palette_set_color(machine(), 3, MAKE_RGB(0xff, 0xff, 0xff));    /* white */
  614      palette_set_color(machine(), 4, MAKE_RGB(0xff, 0xff, 0xff));    /* white */
  615      palette_set_color(machine(), 5, MAKE_RGB(0xff, 0x00, 0x00));    /* red */
  616      palette_set_color(machine(), 6, MAKE_RGB(0xff, 0xff, 0xff));    /* white */
  617      palette_set_color(machine(), 7, MAKE_RGB(0x00, 0x00, 0x00));    /* black */
  618  }
  619  
  620  
  621  /*************************
  622  *      R/W Handlers      *
  623  *************************/
  624  
  625  WRITE8_MEMBER(norautp_state::mainlamps_w)
  626  {
  627  /*  PPI-0 (60h-63h); PortB OUT.
  628      Lamps:
  629  
  630      7654 3210
  631      ---- ---x  * CHANGE CARD lamp.
  632      ---- --x-  * SAVE / HALF GAMBLE lamp.
  633      ---- -x--  * HOLD 1 lamp.
  634      ---- x---  * HOLD 2 lamp.
  635      ---x ----  * HOLD 3 lamp.
  636      --x- ----  * HOLD 4 lamp.
  637      -x-- ----  * HOLD 5 lamp.
  638      x--- ----  * CANCEL lamp.
  639  */
  640      output_set_lamp_value(0, (data >> 0) & 1);  /* CHANGE CARD lamp */
  641      output_set_lamp_value(1, (data >> 1) & 1);  /* SAVE / HALF GAMBLE lamp */
  642      output_set_lamp_value(2, (data >> 2) & 1);  /* HOLD 1 lamp */
  643      output_set_lamp_value(3, (data >> 3) & 1);  /* HOLD 2 lamp */
  644      output_set_lamp_value(4, (data >> 4) & 1);  /* HOLD 3 lamp */
  645      output_set_lamp_value(5, (data >> 5) & 1);  /* HOLD 4 lamp */
  646      output_set_lamp_value(6, (data >> 6) & 1);  /* HOLD 5 lamp */
  647      output_set_lamp_value(7, (data >> 7) & 1);  /* CANCEL lamp */
  648  
  649  //  popmessage("lamps: %02x", data);
  650  }
  651  
  652  WRITE8_MEMBER(norautp_state::soundlamps_w)
  653  {
  654  /*  PPI-1 (a0h-a3h); PortC OUT.
  655      Sound & Lamps:
  656  
  657    7654 3210
  658    ---- ---x  * DEAL / DRAW Lamp.
  659    ---- --x-  * BET / COLLECT Lamp.
  660    ---- -x--  + PANEL LIGHTS RESET (always activated after initalize).
  661    ---- x---  + PANEL LAMPS CLOCK
  662    xxxx ----  * Discrete Sound Lines.
  663  */
  664  
  665      device_t *discrete = machine().device("discrete");
  666  
  667      output_set_lamp_value(8, (data >> 0) & 1);  /* DEAL / DRAW lamp */
  668      output_set_lamp_value(9, (data >> 1) & 1);  /* BET / COLLECT lamp */
  669  
  670      /* the 4 MSB are for discrete sound */
  671      discrete_sound_w(discrete, space, NORAUTP_SND_EN, (data >> 7) & 0x01);
  672      discrete_sound_w(discrete, space, NORAUTP_FREQ_DATA, (data >> 4) & 0x07);
  673  
  674  //  popmessage("sound bits 4-5-6-7: %02x, %02x, %02x, %02x", ((data >> 4) & 0x01), ((data >> 5) & 0x01), ((data >> 6) & 0x01), ((data >> 7) & 0x01));
  675  }
  676  
  677  WRITE8_MEMBER(norautp_state::counterlamps_w)
  678  {
  679  /*  PPI-0 (60h-63h); PortC OUT.
  680      Lamps & Coin Counters:
  681  
  682      7654 3210
  683      ---- ---x  * HI lamp.
  684      ---- --x-  * LO lamp.
  685      ---- -x--  * HOPPER MOTOR DRIVE
  686      ---- x---  * Payout pulse.
  687      ---x ----  * Coin 2 counter.
  688      --x- ----  * Coin 1 counter.
  689      -x-- ----  + Coin counter related.
  690      x--- ----  + DEFLECT (always activated).
  691  */
  692      output_set_lamp_value(10, (data >> 0) & 1); /* HI lamp */
  693      output_set_lamp_value(11, (data >> 1) & 1); /* LO lamp */
  694  
  695      coin_counter_w(machine(), 0, data & 0x10);  /* Coin1/3 counter */
  696      coin_counter_w(machine(), 1, data & 0x20);  /* Coin2 counter */
  697      coin_counter_w(machine(), 2, data & 0x08);  /* Payout pulse */
  698  }
  699  
  700  
  701  /* Game waits for bit 7 (0x80) to be set.
  702     This should be the /OBF line (PC7) from PPI-2 (handshake).
  703     PC0-PC2 could be set as input or output.
  704  */
  705  
  706  //static READ8_DEVICE_HANDLER( ppi2_portc_r )
  707  //{
  708  //  return;
  709  //}
  710  
  711  //static WRITE8_DEVICE_HANDLER( ppi2_portc_w )
  712  //{
  713  //  /* PC0-PC2 don't seems to be connected to any output */
  714  //}
  715  
  716  
  717  /*game waits for /OBF signal (bit 7) to be set.*/
  718  READ8_MEMBER(norautp_state::test_r)
  719  {
  720      return 0xff;
  721  }
  722  
  723  READ8_MEMBER(norautp_state::vram_data_r)
  724  //static READ8_DEVICE_HANDLER( vram_data_r )
  725  {
  726      return m_np_vram[m_np_addr];
  727  }
  728  
  729  WRITE8_MEMBER(norautp_state::vram_data_w)
  730  //static WRITE8_DEVICE_HANDLER( vram_data_w )
  731  {
  732      m_np_vram[m_np_addr] = data & 0xff;
  733  
  734      /* trigger 8255-2 port C bit 7 (/OBF) */
  735  //  i8255a_pc7_w(device->machine().device("ppi8255_2"), 0);
  736  //  i8255a_pc7_w(device->machine().device("ppi8255_2"), 1);
  737  
  738  }
  739  
  740  WRITE8_MEMBER(norautp_state::vram_addr_w)
  741  //static WRITE8_DEVICE_HANDLER( vram_addr_w )
  742  {
  743      m_np_addr = data;
  744  }
  745  
  746  /* game waits for bit 4 (0x10) to be reset.*/
  747  READ8_MEMBER(norautp_state::test2_r)
  748  {
  749      return 0x00;
  750  }
  751  
  752  
  753  /*************************
  754  * Memory Map Information *
  755  *************************/
  756  /*
  757  
  758    CPU & PPI settings by set...
  759  
  760    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  761    |   Set    |   CPU   | PPI-0 offset | config | PPI-1 offset | config | PPI-2 offset |         config         |
  762    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  763    | norautp  |   Z80   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |  0xC1 (PC0-2 as input) |
  764    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  765    | norautdx |   Z80   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  766    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  767    | norautpn |   Z80   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  768    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  769    | norautjp |   Z80   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |  0xC1 (PC0-2 as input) |
  770    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  771    | norautrh |   Z80   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  772    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  773    | norautu  |  BOXED  |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  774    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  775    | norautv3 |   Z80   |   unknown    |        |   unknown    |        |   unknown    |                        |
  776    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  777    | pma      |   Z80   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  778    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  779    | bjpoker  |   Z80   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  780    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  781    | dphl     |  8080   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  782    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  783    | dphla    |  8080   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  784    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  785    | dphljp   |  8080   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  786    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  787    | kimbldhl |  8080   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  788    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  789    | gtipoker |  8080   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  790    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  791    | smshilo  |  8080   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  792    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  793    | tpoker2  |  8080   |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  794    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  795    | drhl     |  8080?  |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  796    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  797    | ssjkrpkr |  8080   |  0x60-0x63   |  0x90  |  0xA0-0xA3   |  0x92  |  0xC0-0xC3   |          0xC0          |
  798    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  799    | fastdrwp |  8080?  |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  800    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  801    | dphlunka |  8080?  |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  802    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  803    | dphlunkb |  8080?  |  0x7C-0x7F   |  0x90  |  0xBC-0xBF   |  0x92  |  0xDC-0xDF   |          0xC0          |
  804    +----------+---------+--------------+--------+--------------+--------+--------------+------------------------+
  805  
  806  */
  807  static ADDRESS_MAP_START( norautp_map, AS_PROGRAM, 8, norautp_state )
  808      ADDRESS_MAP_GLOBAL_MASK(0x3fff)
  809      AM_RANGE(0x0000, 0x1fff) AM_ROM
  810      AM_RANGE(0x2000, 0x27ff) AM_RAM AM_SHARE("nvram")   /* 6116 */
  811  ADDRESS_MAP_END
  812  
  813  static ADDRESS_MAP_START( norautp_portmap, AS_IO, 8, norautp_state )
  814      ADDRESS_MAP_GLOBAL_MASK(0xff)
  815      AM_RANGE(0x60, 0x63) AM_MIRROR(0x1c) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
  816      AM_RANGE(0xa0, 0xa3) AM_MIRROR(0x1c) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
  817  //  AM_RANGE(0xc0, 0xc3) AM_MIRROR(0x3c) AM_DEVREADWRITE("ppi8255_2", i8255_device, read, write)
  818      AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x3c) AM_READWRITE(vram_data_r, vram_data_w)
  819      AM_RANGE(0xc1, 0xc1) AM_MIRROR(0x3c) AM_WRITE(vram_addr_w)
  820      AM_RANGE(0xc2, 0xc2) AM_MIRROR(0x3c) AM_READ(test_r)
  821      AM_RANGE(0xef, 0xef) AM_READ(test2_r)
  822  ADDRESS_MAP_END
  823  
  824  /*
  825    Video RAM R/W:
  826  
  827    c0 --> W  ; data (hanshaked)
  828    c1 --> W  ; addressing
  829    c2 --> R  ; status (handshaking lines) + input (PC0-2)
  830    c3 --> W  ; PPI control + alternate 00 & 01 (PC1 out?)
  831  
  832    PPI Mirror isn't accurate.
  833    There are writes to 0xF7 and reads + compare to 0xEF.
  834    Don't know what's supposed to be mirrored there.
  835  
  836  */
  837  
  838  static ADDRESS_MAP_START( nortest1_map, AS_PROGRAM, 8, norautp_state )
  839      ADDRESS_MAP_GLOBAL_MASK(0x7fff)
  840      AM_RANGE(0x0000, 0x2fff) AM_ROM
  841      AM_RANGE(0x5000, 0x57ff) AM_RAM AM_SHARE("nvram")
  842  ADDRESS_MAP_END
  843  
  844  static ADDRESS_MAP_START( norautxp_map, AS_PROGRAM, 8, norautp_state )
  845  //  ADDRESS_MAP_GLOBAL_MASK(~0x4000)
  846      ADDRESS_MAP_GLOBAL_MASK(0x7fff)
  847      AM_RANGE(0x0000, 0x3fff) AM_ROM /* need to be checked */
  848      AM_RANGE(0x6000, 0x67ff) AM_RAM AM_SHARE("nvram") /* HM6116 */
  849  ADDRESS_MAP_END
  850  
  851  static ADDRESS_MAP_START( norautx4_map, AS_PROGRAM, 8, norautp_state )
  852      AM_RANGE(0x0000, 0x3fff) AM_ROM
  853      AM_RANGE(0x6000, 0x67ff) AM_RAM AM_SHARE("nvram") /* 6116 */
  854  ADDRESS_MAP_END
  855  
  856  #ifdef UNUSED_CODE
  857  static ADDRESS_MAP_START( norautx8_map, AS_PROGRAM, 8, norautp_state )
  858      AM_RANGE(0x0000, 0x7fff) AM_ROM /* need to be checked */
  859      AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE("nvram") /* 6116 */
  860  ADDRESS_MAP_END
  861  #endif
  862  
  863  static ADDRESS_MAP_START( kimble_map, AS_PROGRAM, 8, norautp_state )
  864      AM_RANGE(0x0000, 0xbfff) AM_ROM
  865      AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE("nvram")
  866      AM_RANGE(0xc800, 0xc9ff) AM_RAM /* working RAM? */
  867  ADDRESS_MAP_END
  868  
  869  #ifdef UNUSED_CODE
  870  static ADDRESS_MAP_START( norautxp_portmap, AS_IO, 8, norautp_state )
  871      ADDRESS_MAP_GLOBAL_MASK(0xff)
  872  ADDRESS_MAP_END
  873  #endif
  874  
  875  static ADDRESS_MAP_START( newhilop_map, AS_PROGRAM, 8, norautp_state )
  876      AM_RANGE(0x0000, 0x1fff) AM_ROM
  877      AM_RANGE(0xd000, 0xd7ff) AM_RAM AM_SHARE("nvram")   /* 6116 */
  878  ADDRESS_MAP_END
  879  
  880  /*********** 8080 based **********/
  881  
  882  static ADDRESS_MAP_START( dphl_map, AS_PROGRAM, 8, norautp_state )
  883      ADDRESS_MAP_GLOBAL_MASK(0x7fff) /* A15 not connected */
  884      AM_RANGE(0x0000, 0x3fff) AM_ROM
  885      AM_RANGE(0x5000, 0x53ff) AM_RAM AM_SHARE("nvram")   /* should be 2x 0x100 segments (4x 2111) */
  886  ADDRESS_MAP_END
  887  
  888  static ADDRESS_MAP_START( dphla_map, AS_PROGRAM, 8, norautp_state )
  889      ADDRESS_MAP_GLOBAL_MASK(0x3fff)
  890      AM_RANGE(0x0000, 0x1fff) AM_ROM
  891      AM_RANGE(0x2000, 0x23ff) AM_RAM AM_SHARE("nvram")
  892  ADDRESS_MAP_END
  893  
  894  static ADDRESS_MAP_START( ssjkrpkr_map, AS_PROGRAM, 8, norautp_state )
  895      ADDRESS_MAP_GLOBAL_MASK(0x7fff)
  896      AM_RANGE(0x0000, 0x1fff) AM_ROM
  897      AM_RANGE(0x4000, 0x43ff) AM_RAM AM_SHARE("nvram")
  898  ADDRESS_MAP_END
  899  
  900  static ADDRESS_MAP_START( dphltest_map, AS_PROGRAM, 8, norautp_state )
  901  //  ADDRESS_MAP_GLOBAL_MASK(0x7fff) /* A15 not connected */
  902      AM_RANGE(0x0000, 0x6fff) AM_ROM
  903      AM_RANGE(0x7000, 0x7fff) AM_RAM
  904      AM_RANGE(0x8000, 0x87ff) AM_RAM AM_SHARE("nvram")
  905  ADDRESS_MAP_END
  906  
  907  /*
  908    Kimble:
  909  
  910    Program obfuscation to transfer the flow control.
  911    Has involved calculations and boolean operations
  912    to modify the PC and transfer the control.
  913  
  914    Create dynamic code in RAM at $C276 to handle the I/O through the PPI8255's.
  915    Also initialize the devices and handle the handshaking lines in the same way.
  916  
  917    The code read on port $62, when is suppossed to be set as output.
  918  
  919  */
  920  static ADDRESS_MAP_START( kimbldhl_map, AS_PROGRAM, 8, norautp_state )
  921      AM_RANGE(0x0000, 0x7fff) AM_ROM
  922      AM_RANGE(0xc000, 0xc7ff) AM_RAM AM_SHARE("nvram")
  923  ADDRESS_MAP_END
  924  
  925  static ADDRESS_MAP_START( drhl_map, AS_PROGRAM, 8, norautp_state )
  926      ADDRESS_MAP_GLOBAL_MASK(0x7fff) /* A15 not connected */
  927      AM_RANGE(0x0000, 0x3fff) AM_ROM
  928      AM_RANGE(0x5000, 0x53ff) AM_RAM AM_SHARE("nvram")
  929      AM_RANGE(0x5400, 0x57ff) AM_RAM
  930  ADDRESS_MAP_END
  931  
  932  
  933  /*************************
  934  *      Input Ports       *
  935  *************************/
  936  
  937  static INPUT_PORTS_START( norautp )
  938  
  939      PORT_START("IN0")
  940      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_DEAL ) PORT_NAME("Deal / Draw")
  941      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_BET )   PORT_NAME("Bet / Collect")
  942      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)  /* Coin A */
  943      PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2)  /* Coin B */
  944      PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_OTHER )       PORT_CODE(KEYCODE_K) PORT_NAME("IN0-5")
  945      PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Hi")
  946      PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_LOW )  PORT_NAME("Lo")
  947      PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
  948  
  949      PORT_START("IN1")
  950      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 )     PORT_CODE(KEYCODE_F) PORT_NAME("Change Card")
  951      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_HALF ) PORT_NAME("Half Gamble / Save")
  952      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD1 )
  953      PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD2 )
  954      PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD3 )
  955      PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
  956      PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
  957      PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN3 ) PORT_IMPULSE(2)  /* Coin C */
  958  
  959      PORT_START("IN2")   /* Only 3 lines: PPI-2; PC0-PC2 */
  960      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_OTHER )       PORT_CODE(KEYCODE_J) PORT_NAME("IN2-1")
  961      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE )     PORT_CODE(KEYCODE_9) PORT_NAME("Readout")
  962      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_OTHER )       PORT_CODE(KEYCODE_L) PORT_NAME("Low Level Hopper")
  963  
  964  
  965      PORT_START("DSW1")
  966      PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
  967      PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
  968      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  969      PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
  970      PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
  971      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  972      PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) )
  973      PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
  974      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  975      PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) )
  976      PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
  977      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  978      PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
  979      PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
  980      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  981      PORT_DIPNAME( 0x20, 0x20, DEF_STR( Coinage ) )
  982      PORT_DIPSETTING(    0x20, "A=5; B=25; C=1" )
  983      PORT_DIPSETTING(    0x00, "A=50; B=25; C=5" )
  984      PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
  985      PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
  986      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
  987      PORT_DIPNAME( 0x80, 0x80, "Set Value" )
  988      PORT_DIPSETTING(    0x80, "2 Pence" )
  989      PORT_DIPSETTING(    0x00, "10 Pence" )
  990  INPUT_PORTS_END
  991  
  992  static INPUT_PORTS_START( norautrh )
  993  
  994      PORT_START("IN0")
  995      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_DEAL ) PORT_NAME("Deal / Draw")
  996      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_BET )   PORT_NAME("Bet / Change Card")
  997      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)  /* Coin A */
  998      PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2)  /* Coin B */
  999      PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE )     PORT_NAME("Readout") PORT_CODE(KEYCODE_9)
 1000      PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Hi")
 1001      PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_LOW )  PORT_NAME("Lo")
 1002      PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
 1003  
 1004      PORT_START("IN1")
 1005      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) PORT_NAME("Stand / Take")
 1006      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_HALF ) PORT_NAME("Save / Half Gamble")
 1007      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD1 )
 1008      PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD2 )
 1009      PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD3 )
 1010      PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
 1011      PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
 1012      PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_POKER_CANCEL )   /* Coin C for other games */
 1013  
 1014      PORT_START("IN2")   /* Only 3 lines: PPI-2; PC0-PC2 */
 1015      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
 1016      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
 1017      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
 1018  
 1019  
 1020      PORT_START("DSW1")
 1021      PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )  PORT_DIPLOCATION("DSW1:8")
 1022      PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
 1023      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1024      PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )  PORT_DIPLOCATION("DSW1:7")
 1025      PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
 1026      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1027      PORT_DIPNAME( 0x04, 0x04, "Bet Max" )           PORT_DIPLOCATION("DSW1:6")
 1028      PORT_DIPSETTING(    0x04, "5" )
 1029      PORT_DIPSETTING(    0x00, "25" )
 1030      PORT_DIPNAME( 0x08, 0x08, "Raise Ante" )        PORT_DIPLOCATION("DSW1:5")
 1031      PORT_DIPSETTING(    0x08, "Random" )
 1032      PORT_DIPSETTING(    0x00, "Always" )
 1033      PORT_DIPNAME( 0x10, 0x00, "Type of Game" )      PORT_DIPLOCATION("DSW1:4")
 1034      PORT_DIPSETTING(    0x10, "Jacks Plus" )
 1035      PORT_DIPSETTING(    0x00, "Joker Poker" )
 1036      PORT_DIPNAME( 0xa0, 0x20, DEF_STR( Coinage ) )  PORT_DIPLOCATION("DSW1:3,1")
 1037      PORT_DIPSETTING(    0x00, "A=1; B=5" )
 1038      PORT_DIPSETTING(    0xa0, "A=5; B=25" )
 1039      PORT_DIPSETTING(    0x20, "A=10; B=5" )
 1040      PORT_DIPSETTING(    0x80, "A=50; B=25" )
 1041      PORT_DIPNAME( 0x40, 0x00, "Show Bet")           PORT_DIPLOCATION("DSW1:2")
 1042      PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
 1043      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1044  INPUT_PORTS_END
 1045  
 1046  static INPUT_PORTS_START( norautpn )
 1047  
 1048      PORT_START("IN0")
 1049      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_DEAL ) PORT_NAME("Deal / Start")
 1050      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_POKER_BET )   PORT_NAME("Bet / Change Card")
 1051      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(2)  /* Coin A */
 1052      PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(2)  /* Coin B */
 1053      PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE )     PORT_NAME("Readout") PORT_CODE(KEYCODE_9)
 1054      PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_GAMBLE_HIGH ) PORT_NAME("Hi")
 1055      PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_LOW )  PORT_NAME("Lo")
 1056      PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
 1057  
 1058      PORT_START("IN1")
 1059      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_TAKE ) PORT_NAME("Stand / Take")
 1060      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_GAMBLE_HALF ) PORT_NAME("Save / Half Gamble")
 1061      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_POKER_HOLD1 )
 1062      PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_POKER_HOLD2 )
 1063      PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_POKER_HOLD3 )
 1064      PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_POKER_HOLD4 )
 1065      PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_POKER_HOLD5 )
 1066      PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_POKER_CANCEL )
 1067  
 1068      PORT_START("IN2")   /* Only 3 lines: PPI-2; PC0-PC2 */
 1069      PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNUSED )
 1070      PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNUSED )
 1071      PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNUSED )
 1072  
 1073  
 1074      PORT_START("DSW1")
 1075      PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
 1076      PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
 1077      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1078      PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )
 1079      PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
 1080      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1081      PORT_DIPNAME( 0x04, 0x04, "Bet Max" )
 1082      PORT_DIPSETTING(    0x04, "1" )
 1083      PORT_DIPSETTING(    0x00, "5" )
 1084      PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )
 1085      PORT_DIPSETTING(    0x08, "A=1; B=5" )
 1086      PORT_DIPSETTING(    0x00, "A=50; B=5" )
 1087      PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) )
 1088      PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
 1089      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1090      PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) )
 1091      PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
 1092      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1093      PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) )
 1094      PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
 1095      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1096      PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
 1097      PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
 1098      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1099  INPUT_PORTS_END
 1100  
 1101  static INPUT_PORTS_START( mainline )
 1102  
 1103      PORT_INCLUDE( norautrh )
 1104  
 1105      PORT_MODIFY("DSW1")
 1106      PORT_DIPNAME( 0xa0, 0x20, DEF_STR( Coinage ) )  PORT_DIPLOCATION("DSW1:3,1")
 1107      PORT_DIPSETTING(    0x00, "A=1; B=10" )
 1108      PORT_DIPSETTING(    0xa0, "A=1; B=25" )
 1109      PORT_DIPSETTING(    0x20, "A=10; B=10" )
 1110      PORT_DIPSETTING(    0x80, "A=50; B=25" )
 1111  INPUT_PORTS_END
 1112  
 1113  static INPUT_PORTS_START( ndxron10 )
 1114  
 1115      PORT_INCLUDE( norautpn )
 1116  
 1117      PORT_MODIFY("DSW1")
 1118      PORT_DIPNAME( 0x08, 0x08, DEF_STR( Coinage ) )
 1119      PORT_DIPSETTING(    0x08, "A=1; B=5" )
 1120      PORT_DIPSETTING(    0x00, "A=1; B=25" )
 1121  INPUT_PORTS_END
 1122  
 1123  static INPUT_PORTS_START( norautkl )
 1124  
 1125      PORT_INCLUDE( norautrh )
 1126  
 1127      PORT_MODIFY("DSW1")
 1128      PORT_DIPNAME( 0x01, 0x00, "Bet Max" )               PORT_DIPLOCATION("DSW1:8")
 1129      PORT_DIPSETTING(    0x01, "25" )
 1130      PORT_DIPSETTING(    0x00, "10" )
 1131      PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) )      PORT_DIPLOCATION("DSW1:7")
 1132      PORT_DIPSETTING(    0x02, DEF_STR( Off ) )
 1133      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1134      PORT_DIPNAME( 0x04, 0x00, "Raise Ante" )            PORT_DIPLOCATION("DSW1:6")
 1135      PORT_DIPSETTING(    0x04, DEF_STR( None ) )
 1136      PORT_DIPSETTING(    0x00, "Random" )
 1137      PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown )  )     PORT_DIPLOCATION("DSW1:5")
 1138      PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
 1139      PORT_DIPSETTING(    0x00, DEF_STR( On ) )
 1140      PORT_DIPNAME( 0x10, 0x00, "Type of Game" )          PORT_DIPLOCATION("DSW1:4")
 1141      PORT_DIPSETTING(    0x10, "Deluxe Poker" )
 1142      PORT_DIPSETTING(    0x00, "Joker Poker" )
 1143      PORT_DIPNAME( 0x20, 0x20, "Min Bet for Jokers" )    PORT_DIPLOCATION("DSW1:3")
 1144      PORT_DIPSETTING(    0x00, "2" )
 1145      PORT_DIPSETTING(    0x20, "4" )
 1146      PORT_DIPNAME( 0x40, 0x00, "Deal Speed")             PORT_DIPLOCATION("DSW1:2")
 1147      PORT_DIPSETTING(    0x40, "Slow" )
 1148      PORT_DIPSETTING(    0x00, "Fast" )
 1149      PORT_DIPNAME( 0x80, 0x00, DEF_STR( Coinage ) )      PORT_DIPLOCATION("DSW1:1")
 1150      PORT_DIPSETTING(    0x00, "A=5; B=2" )
 1151      PORT_DIPSETTING(    0x80, "A=1; B=1" )
 1152  INPUT_PORTS_END
 1153  
 1154  
 1155  /*************************
 1156  *    Graphics Layouts    *
 1157  *************************/
 1158  
 1159  static const gfx_layout charlayout =
 1160  /*
 1161    Trojanned 2 Narout Poker PCBs to see how the hardware decodes
 1162    the 16x32 tiles. The following GFX layout is 100% accurate.
 1163  */
 1164  {
 1165      16, 32,
 1166      RGN_FRAC(1,2),
 1167      1,
 1168      { 0 },
 1169      { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
 1170      { 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, 1*16, 2*16, 3*16, 4*16, 5*16, 6*16, 7*16,
 1171          8*16, 9*16, 10*16, 11*16, 12*16, 13*16, 14*16, 15*16, 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, 0*16, },
 1172      16*16
 1173  };
 1174  
 1175  static const gfx_layout charlayout32x32 =
 1176  {
 1177      32,32,
 1178      RGN_FRAC(1,2),
 1179      1,
 1180      { 0 },
 1181      { 0,0, 1,1, 2,2, 3,3, 4,4, 5,5, 6,6, 7,7, 8,8, 9,9, 10,10, 11,11, 12,12, 13,13, 14,14, 15,15 },
 1182      { 0*16, 0*16, 1*16, 1*16, 2*16, 2*16, 3*16, 3*16, 4*16, 4*16, 5*16, 5*16, 6*16, 6*16, 7*16, 7*16,
 1183          8*16, 8*16, 9*16, 9*16, 10*16,10*16,11*16,11*16,12*16,12*16,13*16,13*16,14*16,14*16,15*16,15*16 },
 1184      16*16
 1185  };
 1186  
 1187  
 1188  /******************************
 1189  * Graphics Decode Information *
 1190  ******************************/
 1191  
 1192  /* GFX are stored in the 2nd half... Maybe the HW could handle 2 bitplanes? */
 1193  static GFXDECODE_START( norautp )
 1194      GFXDECODE_ENTRY( "gfx", 0x800, charlayout,      0, 4 )
 1195      GFXDECODE_ENTRY( "gfx", 0x800, charlayout32x32, 0, 4 )
 1196  GFXDECODE_END
 1197  
 1198  
 1199  /************************************
 1200  *      PPI 8255 (x3) Interface      *
 1201  ************************************/
 1202  
 1203  static I8255_INTERFACE (ppi8255_intf_0)
 1204  {
 1205      /* (60-63) Mode 0 - Port A set as input */
 1206      DEVCB_INPUT_PORT("DSW1"),       /* Port A read */
 1207      DEVCB_NULL,                     /* Port A write */
 1208      DEVCB_NULL,                     /* Port B read */
 1209      DEVCB_DRIVER_MEMBER(norautp_state,mainlamps_w),     /* Port B write */
 1210      DEVCB_NULL,                     /* Port C read */
 1211      DEVCB_DRIVER_MEMBER(norautp_state,counterlamps_w)   /* Port C write */
 1212  };
 1213  
 1214  static I8255_INTERFACE (ppi8255_intf_1)
 1215  {
 1216      /* (a0-a3) Mode 0 - Ports A & B set as input */
 1217      DEVCB_INPUT_PORT("IN0"),        /* Port A read */
 1218      DEVCB_NULL,                     /* Port A write */
 1219      DEVCB_INPUT_PORT("IN1"),        /* Port B read */
 1220      DEVCB_NULL,                     /* Port B write */
 1221      DEVCB_NULL,                     /* Port C read */
 1222      DEVCB_DRIVER_MEMBER(norautp_state,soundlamps_w)     /* Port C write */
 1223  };
 1224  
 1225  //static I8255A_INTERFACE (ppi8255_intf_2)
 1226  //{
 1227      /* (c0-c3) Group A Mode 2 (5-lines handshacked bidirectional port)
 1228                 Group B Mode 0, output;  (see below for lines PC0-PC2) */
 1229  //  DEVCB_HANDLER(vram_data_r),     /* Port A read (VRAM data read)*/
 1230  //  DEVCB_HANDLER(vram_data_w),     /* Port A write (VRAM data write) */
 1231  //  DEVCB_NULL,                     /* Port B read */
 1232  //  DEVCB_HANDLER(vram_addr_w),     /* Port B write (VRAM address write) */
 1233  //  DEVCB_HANDLER(ppi2_portc_r),    /* Port C read */
 1234  //  DEVCB_HANDLER(ppi2_portc_w)     /* Port C write */
 1235  
 1236      /*  PPI-2 is configured as mixed mode2 and mode0 output.
 1237          It means that port A should be bidirectional and port B just as output.
 1238          Port C as hshk regs, and P0-P2 as input (norautp, norautjp) or output (other sets).
 1239      */
 1240  //};
 1241  
 1242  
 1243  /*************************
 1244  *    Machine Drivers     *
 1245  *************************/
 1246  
 1247  static MACHINE_CONFIG_START( noraut_base, norautp_state )
 1248  
 1249      /* basic machine hardware */
 1250      MCFG_CPU_ADD("maincpu", Z80, NORAUT_CPU_CLOCK)
 1251      MCFG_CPU_PROGRAM_MAP(norautp_map)
 1252      MCFG_CPU_IO_MAP(norautp_portmap)
 1253  
 1254      MCFG_NVRAM_ADD_0FILL("nvram")   /* doesn't work if placed at derivative drivers */
 1255  
 1256      /* 3x 8255 */
 1257      MCFG_I8255_ADD( "ppi8255_0", ppi8255_intf_0 )
 1258      MCFG_I8255_ADD( "ppi8255_1", ppi8255_intf_1 )
 1259  //  MCFG_I8255_ADD( "ppi8255_2", ppi8255_intf_2 )
 1260  
 1261      /* video hardware */
 1262      MCFG_SCREEN_ADD("screen", RASTER)
 1263      MCFG_SCREEN_REFRESH_RATE(60)
 1264      MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
 1265      MCFG_SCREEN_SIZE(32*16, 32*16)
 1266      MCFG_SCREEN_VISIBLE_AREA(2*16, 31*16-1, (0*16) + 8, 16*16-1)    /* the hardware clips the top 8 pixels */
 1267      MCFG_SCREEN_UPDATE_DRIVER(norautp_state, screen_update_norautp)
 1268  
 1269      MCFG_GFXDECODE(norautp)
 1270  
 1271      MCFG_PALETTE_LENGTH(8)
 1272  
 1273      /* sound hardware */
 1274      MCFG_SPEAKER_STANDARD_MONO("mono")
 1275      MCFG_SOUND_ADD("discrete", DISCRETE, 0)
 1276      MCFG_SOUND_CONFIG_DISCRETE(norautp)
 1277      MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
 1278  MACHINE_CONFIG_END
 1279  
 1280  
 1281  static MACHINE_CONFIG_DERIVED( norautp, noraut_base )
 1282  
 1283      /* basic machine hardware */
 1284      MCFG_CPU_MODIFY("maincpu")
 1285      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1286  MACHINE_CONFIG_END
 1287  
 1288  
 1289  static MACHINE_CONFIG_DERIVED( norautpl, noraut_base )
 1290  
 1291      /* basic machine hardware */
 1292      MCFG_CPU_MODIFY("maincpu")
 1293      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1294  
 1295      /* sound hardware */
 1296      MCFG_SOUND_MODIFY("discrete")
 1297      MCFG_SOUND_CONFIG_DISCRETE(kimble)
 1298  MACHINE_CONFIG_END
 1299  
 1300  
 1301  static MACHINE_CONFIG_DERIVED( norautxp, noraut_base )
 1302  
 1303      /* basic machine hardware */
 1304      MCFG_CPU_MODIFY("maincpu")
 1305      MCFG_CPU_PROGRAM_MAP(norautxp_map)
 1306      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1307  MACHINE_CONFIG_END
 1308  
 1309  
 1310  static MACHINE_CONFIG_DERIVED( nortest1, noraut_base )
 1311  
 1312      /* basic machine hardware */
 1313      MCFG_CPU_MODIFY("maincpu")
 1314      MCFG_CPU_PROGRAM_MAP(nortest1_map)
 1315      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1316  MACHINE_CONFIG_END
 1317  
 1318  
 1319  static MACHINE_CONFIG_DERIVED( norautx4, noraut_base )
 1320  
 1321      /* basic machine hardware */
 1322      MCFG_CPU_MODIFY("maincpu")
 1323      MCFG_CPU_PROGRAM_MAP(norautx4_map)
 1324      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1325  MACHINE_CONFIG_END
 1326  
 1327  
 1328  #ifdef UNUSED_CODE
 1329  static MACHINE_CONFIG_DERIVED( norautx8, noraut_base )
 1330  
 1331      /* basic machine hardware */
 1332      MCFG_CPU_MODIFY("maincpu")
 1333      MCFG_CPU_PROGRAM_MAP(norautx8_map)
 1334      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1335  MACHINE_CONFIG_END
 1336  #endif
 1337  
 1338  
 1339  static MACHINE_CONFIG_DERIVED( kimble, noraut_base )
 1340  
 1341      /* basic machine hardware */
 1342      MCFG_CPU_MODIFY("maincpu")
 1343      MCFG_CPU_PROGRAM_MAP(kimble_map)
 1344      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1345  
 1346      /* sound hardware */
 1347      MCFG_SOUND_MODIFY("discrete")
 1348      MCFG_SOUND_CONFIG_DISCRETE(kimble)
 1349  MACHINE_CONFIG_END
 1350  
 1351  static MACHINE_CONFIG_DERIVED( newhilop, noraut_base )
 1352  
 1353      /* basic machine hardware */
 1354      MCFG_CPU_MODIFY("maincpu")
 1355      MCFG_CPU_PROGRAM_MAP(newhilop_map)
 1356  //  MCFG_CPU_IO_MAP(newhilop_portmap)
 1357      MCFG_CPU_VBLANK_INT_DRIVER("screen", norautp_state,  irq0_line_hold)
 1358  MACHINE_CONFIG_END
 1359  
 1360  /********** 8080 based **********/
 1361  
 1362  
 1363  static MACHINE_CONFIG_DERIVED( dphl, noraut_base )
 1364  
 1365      /* basic machine hardware */
 1366      MCFG_CPU_REPLACE("maincpu", I8080, DPHL_CPU_CLOCK)
 1367      MCFG_CPU_PROGRAM_MAP(dphl_map)
 1368      MCFG_CPU_IO_MAP(norautp_portmap)
 1369  
 1370      /* sound hardware */
 1371      MCFG_SOUND_MODIFY("discrete")
 1372      MCFG_SOUND_CONFIG_DISCRETE(dphl)
 1373  MACHINE_CONFIG_END
 1374  
 1375  
 1376  static MACHINE_CONFIG_DERIVED( dphla, noraut_base )
 1377  
 1378      /* basic machine hardware */
 1379      MCFG_CPU_REPLACE("maincpu", I8080, DPHL_CPU_CLOCK)
 1380      MCFG_CPU_PROGRAM_MAP(dphla_map)
 1381      MCFG_CPU_IO_MAP(norautp_portmap)
 1382  
 1383      /* sound hardware */
 1384      MCFG_SOUND_MODIFY("discrete")
 1385      MCFG_SOUND_CONFIG_DISCRETE(dphl)
 1386  MACHINE_CONFIG_END
 1387  
 1388  
 1389  static MACHINE_CONFIG_DERIVED( kimbldhl, noraut_base )
 1390  
 1391      /* basic machine hardware */
 1392      MCFG_CPU_REPLACE("maincpu", I8080, DPHL_CPU_CLOCK)
 1393      MCFG_CPU_PROGRAM_MAP(kimbldhl_map)
 1394      MCFG_CPU_IO_MAP(norautp_portmap)
 1395  
 1396      /* sound hardware */
 1397      MCFG_SOUND_MODIFY("discrete")
 1398      MCFG_SOUND_CONFIG_DISCRETE(kimble)
 1399  MACHINE_CONFIG_END
 1400  
 1401  
 1402  static MACHINE_CONFIG_DERIVED( dphltest, noraut_base )
 1403  
 1404      /* basic machine hardware */
 1405      MCFG_CPU_REPLACE("maincpu", I8080, DPHL_CPU_CLOCK)
 1406      MCFG_CPU_PROGRAM_MAP(dphltest_map)
 1407      MCFG_CPU_IO_MAP(norautp_portmap)
 1408  
 1409      /* sound hardware */
 1410      MCFG_SOUND_MODIFY("discrete")
 1411      MCFG_SOUND_CONFIG_DISCRETE(dphl)
 1412  MACHINE_CONFIG_END
 1413  
 1414  
 1415  static MACHINE_CONFIG_DERIVED( drhl, noraut_base )
 1416  
 1417      /* basic machine hardware */
 1418      MCFG_CPU_REPLACE("maincpu", I8080, DPHL_CPU_CLOCK)
 1419      MCFG_CPU_PROGRAM_MAP(drhl_map)
 1420      MCFG_CPU_IO_MAP(norautp_portmap)
 1421  
 1422      /* sound hardware */
 1423      MCFG_SOUND_MODIFY("discrete")
 1424      MCFG_SOUND_CONFIG_DISCRETE(dphl)
 1425  MACHINE_CONFIG_END
 1426  
 1427  
 1428  static MACHINE_CONFIG_DERIVED( ssjkrpkr, noraut_base )
 1429  
 1430      /* basic machine hardware */
 1431      MCFG_CPU_REPLACE("maincpu", I8080, DPHL_CPU_CLOCK)
 1432      MCFG_CPU_PROGRAM_MAP(ssjkrpkr_map)
 1433      MCFG_CPU_IO_MAP(norautp_portmap)
 1434  
 1435      /* sound hardware */
 1436      MCFG_SOUND_MODIFY("discrete")
 1437      MCFG_SOUND_CONFIG_DISCRETE(dphl)
 1438  MACHINE_CONFIG_END
 1439  
 1440  
 1441  /*************************
 1442  *        Rom Load        *
 1443  *************************/
 1444  
 1445  /*************************************** Z80 sets ***************************************/
 1446  /*                                                                                      */
 1447  /*   The following ones are 'Draw Poker HI-LO' type, running in a Z80 based hardware    */
 1448  /*                                                                                      */
 1449  /****************************************************************************************/
 1450  
 1451  /*
 1452  
 1453    Noraut Poker.
 1454    -------------
 1455  
 1456    The First one released by Noraut.
 1457  
 1458    Hardware Layout:
 1459  
 1460    1x Z80
 1461    3x PPI 8255
 1462    2x 6116 SRAM
 1463    1x 3.6 Vcc Battery.
 1464    1x 18.432 MHz. Xtal.
 1465  
 1466    1x 555 + unknown yellow resonator, near the edge connector.
 1467    1x 555 + resnet, near the battery.
 1468  
 1469    1x 10 DIP switches bank.
 1470    2x 3pins jumpers (between the Z80 and ROM)
 1471  
 1472       JP1 (ABC);  JP2 (DEF)
 1473  
 1474    PCB silksceened:  AB+DE=512  BC+DE=256
 1475                      (CUT BC)   EF=64/128
 1476  
 1477    PCB silksceened:  SMART-BOARD 131191 ISS.E (Made in USA)
 1478  
 1479  
 1480    Noraut Poker discrete audio circuitry
 1481    -------------------------------------
 1482  
 1483    3x ULN2003A (Darlington transistor array)
 1484    1x D5555C   (CMOS timer)
 1485    1x KN2222A  (Epitaxial planar general purpose NPN transistor)
 1486    1x VR/POT
 1487  
 1488    .------.                              .------------.               .-------.
 1489    |      |                              |   D5555C   |               |KN2222A|
 1490    |      |                             4|            |3     R3       |       |      -->
 1491    |   PC7|------------------------------|RST      OUT|-----ZZZZ------|B     E|>----ZZZZZ-----> Audio Out.
 1492    |   PC6|----------.                  6|            |8              |   C   |      VR1
 1493    |   PC5|-----.    |2-in         .-----|THR      VCC|-----------.   '---+---'          .----> Audio Out.
 1494    |   PC4|--.  |  .-+------.      |    5|            |7          |       |              |
 1495    |      |  |  |  |ULN2003A|      |  .--|CVOLT   DISC|--.        |       |              |
 1496    |      |  |  |  '-+------'      |  |  |            |  |        +-------'            --+--
 1497    |      |  |  |    |2-out   C1   |  |  |    GND     |  |        |                     GND
 1498    | 8255 |  |  |    '--------||---+  |  '-----+------'  |        |                      -
 1499    |  AP  |  |  '--.               |  |        |1        |        |                      '
 1500    |      |  |     |3-in           |  |        |         |        |
 1501    '------'  |  .--+-----.         |  |   C5   |         |        |
 1502              |  |ULN2003A|         |  '---||---+         |        |    +5V
 1503              |  '--+-----'         |           |         |        |    -+-
 1504              |     |3-out     C2   |      C4   |         |    C6  |     |
 1505              |     '----------||---+------||---+-------. | .--||--+-----'
 1506              |2-in                 |           |       | | |      |
 1507            .-+------.              |         --+--      '-'       |
 1508            |ULN2003A|              |          GND        |        |
 1509            '-+------'              |           -         |        |
 1510              |2-out           C3   |     R1    '         |   R2   |
 1511              '----------------||---+----ZZZZ-------------+--ZZZZ--'
 1512  
 1513    VR1 = 100 ohms
 1514  
 1515    R1 = 120 K ; Tolerance +/- 5%
 1516    R2 = 2.2 K ; Tolerance +/- 5%
 1517    R3 = 1 K   ; Tolerance +/- 5%
 1518  
 1519    C1 = 103J = 10000 pF  =  10 nF = 0.01 uF  ; Tolerance +/- 5%
 1520    C2 = 223J = 22000 pF  =  22 nF = 0.022 uF ; Tolerance +/- 5%
 1521    C3 = 473J = 47000 pF  =  47 nF = 0.047 uF ; Tolerance +/- 5%
 1522    C4 = 103J = 10000 pF  =  10 nF = 0.01 uF  ; Tolerance +/- 5%
 1523  
 1524    C5 = 103  = 10000 pF  =  10 nF = 0.01 uF
 1525    C6 = 104  = 100000 pF = 100 nF = 0.1 uF
 1526  
 1527    - C1, C2, C3 & C4 are polyester film / mylar capacitors.
 1528    - C5 & C6 are ceramic capacitors.
 1529    - All Capacitors are non-polarised.
 1530  
 1531  */
 1532  
 1533  ROM_START( norautp )
 1534      ROM_REGION( 0x10000, "maincpu", 0 )
 1535      ROM_LOAD( "jpoker.bin",     0x0000,  0x2000,  CRC(e22ed34d) SHA1(108f034335b5bed183ee316a61880f7b9485b34f) )
 1536  
 1537      ROM_REGION( 0x10000, "gfx", 0 )
 1538      ROM_LOAD( "displayrom.bin", 0x00000, 0x10000, CRC(ed3605bd) SHA1(0174e880835815558328789226234e36b673b249) )
 1539  ROM_END
 1540  
 1541  /*
 1542  
 1543    Noraut Deluxe Poker (console).
 1544    From PCB with daghterboard.
 1545  
 1546    ----
 1547  
 1548    - Noraut deluxe 24 pin z80.bin
 1549  
 1550    Norauts original or first launch into the market.
 1551    No Jokers, lose on same card in gamble.
 1552  
 1553    - Noraut deluxe 24pin console.bin
 1554  
 1555    Requires daughterboard console in z80 to run.
 1556    Same as Noraut 24 pin chip with z80, but more stable.
 1557  
 1558  */
 1559  
 1560  ROM_START( norautdx )
 1561      ROM_REGION( 0x10000, "maincpu", 0 ) /* console version */
 1562      ROM_LOAD( "noraut_deluxe_24pin_console.bin", 0x0000, 0x1000, CRC(d41bd404) SHA1(52e984ca28a15a1485ca672dd1fef973cf0c7617) )
 1563      ROM_LOAD( "noraut_deluxe_24pin_z80.bin",     0x1000, 0x0800, CRC(c70bc8f9) SHA1(d947be4e6741f3a884ceca76d1a0fd13625a5f78) )
 1564  
 1565      ROM_REGION( 0x1000,  "gfx", 0 )
 1566      ROM_FILL(                     0x0000, 0x0800, 0xff )
 1567      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 1568  ROM_END
 1569  
 1570  /*
 1571  
 1572    Poker game - manufacturer unknown.
 1573    Seems a bootleg of Noraut Deluxe poker.
 1574  
 1575    Z80 CPU
 1576  
 1577    Program rom = 2764 (2nd Half blank)
 1578    Character rom = 2732
 1579  
 1580    18.432 Mhz crystal
 1581  
 1582    sound discrete with ne555 timer chip (located near amp/volume control).
 1583  
 1584  */
 1585  
 1586  ROM_START( norautpn )
 1587      ROM_REGION( 0x10000, "maincpu", 0 )
 1588      ROM_LOAD( "prog.bin",   0x0000, 0x2000, CRC(8b1cfd24) SHA1(d673baed1c1e5b54a34b7a5857b269a725737e92) )
 1589  
 1590      ROM_REGION( 0x1000,  "gfx", 0 )
 1591      ROM_LOAD( "char.bin",   0x0000, 0x1000, CRC(955eac6f) SHA1(470d8bad1a5d2a0a08dd129e6393c3c3a4ef2159) )
 1592  ROM_END
 1593  
 1594  /*
 1595  
 1596    Noraut Joker Poker (original)
 1597  
 1598    Noraut 4bet joker chip U1 24pin z80.
 1599    Noraut 4bet joker chip U16 24pin z80.
 1600  
 1601    ----
 1602  
 1603    Above two program chips used in old boards
 1604    with 2x 32k program sockets.
 1605  
 1606  */
 1607  
 1608  ROM_START( norautjo )
 1609      ROM_REGION( 0x10000, "maincpu", 0 )
 1610      ROM_LOAD( "noraut4betjoker.u1",  0x0000, 0x1000, CRC(082f28c6) SHA1(995b991dad50373c8ba9b63002f124b3f87e7889) )
 1611      ROM_LOAD( "noraut4betjoker.u16", 0x1000, 0x1000, CRC(1452cac3) SHA1(ddc4b195c3bd8a3ff56f5c7da050d6136e442323) )
 1612  
 1613      ROM_REGION( 0x1000,  "gfx", 0 )
 1614      ROM_FILL(                     0x0000, 0x0800, 0xff )
 1615      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 1616  ROM_END
 1617  
 1618  /*
 1619  
 1620    Noraut Joker Poker (Prologic HW)
 1621  
 1622  
 1623    - CPU:      1x Z084004PSC (Frequency measured 2.3025MHz.)
 1624    - RAM:      4x 2114
 1625    - I/O:      3x 8255 Peripeheral Interface Adapter.
 1626    - Prg ROM:  2x 2732, U11,U16
 1627    - Gfx ROM:  1x 2716 U27 Eprom
 1628    - Sound:    Discrete.
 1629    - Crystal:  1x 18.432 MHz
 1630  
 1631  
 1632    NOTE: PIN NO 5 LIFTED FROM CPU SOCKET (A15)
 1633    PCB DOES NOT BOOT IF PIN IS PUT BACK IN SOCKET.
 1634  
 1635    PCB silksceened:
 1636    PROLOGIC MADE IN (IRL) - 131191
 1637  
 1638  
 1639    PCB Layout (PROLOGIC):                                                       Edge Connector 36x2
 1640     ______________________________________________________________________________________________
 1641    |  _____                  _________    _________    _____         .........    _________       |
 1642    | |  555|                |74LS174N |  |74LS153N |  | 555 |        .........   |ULN2003A |      |
 1643    | |_____|                |_________|  |_________|  |_____|        D16-A-2K2   |_________|      |
 1644    |   U46                      U45          U44        U43             U42          U41          |
 1645    |                                                                                              |
 1646    |              DIP SW x4                                                                       |
 1647    |  ________     _______                                                                        |
 1648    | |Battery |   |1|2|3|4|  _________    _________    _________    _________     _________       |
 1649    | |  3.6v  |   |_|_|_|_| |74LS157N |  |74LS153N |  |74LS161AP|  |74LS86AN |   |ULN2003A |      |
 1650    | |________|      U40    |_________|  |_________|  |_________|  |_________|   |_________|      |
 1651    |                            U39          U38          U37          U36           U35          |
 1652    |                                                                                              |
 1653    |                                                                                              | 36
 1654    |  _________              _________    .........    _________    _________     _________       |___
 1655    | | 74LS04  |            |74LS166AP|   .........   |74LS161AN|  |74LS153N |   |ULN2003A |       ___|
 1656    | |_________|            |_________|   D16-A-2K2   |_________|  |_________|   |_________|       ___|
 1657    |     U34                    U33          U32          U31          U30           U29           ___|
 1658    |                                                                            ________________   ___|
 1659    |               _____________    _______________    _________    _________  |                |  ___|
 1660    |   _________  |             |  |1|2|3|4|5|6|7|8|  |74LS161AN|  |74LS157N | |    D8255AC-2   |  ___|
 1661    |  |  2114   | |    2716     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 1662    |  |_________| |_____________|     DIP SW x 8          U25          U24            U23          ___|
 1663    |      U28           U27               U26                                                      ___|
 1664    |                                                                            ________________   ___|
 1665    |                                                                           |                |  ___|
 1666    |                                                                           |    D8255AC-2   |  ___|
 1667    |                                                                           |________________|  ___|
 1668    |    _________   _________   _________                                             U17          ___|
 1669    |   |  2114   | |  2114   | |  2114   |             _________    _________                      ___|
 1670    |   |_________| |_________| |_________|            |74LS161AN|  |74LS157N |                     ___|
 1671    |       U22         U21         U20                |_________|  |_________|                     ___|
 1672    |                                                      U19          U18                         ___|
 1673    |  ______________       ________________                                                        ___|
 1674    | |              |     |                |           _________    _________                      ___|
 1675    | |     2732     |     |    D8255AC-2   |          |74LS161AN|  |74LS157N |     .........       ___|
 1676    | |______________|     |________________|          |_________|  |_________|     .........       ___|
 1677    |       U16                   U15                      U14          U13         D16-A-2K2       ___|
 1678    |  ______________                                                                   U12        |
 1679    | |              |                                                                             | 1
 1680    | |     2732     |     _________                    _________    _________    _________        |
 1681    | |______________|    | 74LS32N |                  |74LS161AN|  | 74LS86P |  | 74LS04N |       |
 1682    |       U11           |_________|                  |_________|  |_________|  |_________|       |
 1683    |                         U10                           U9          U8           U7            |
 1684    |                                             XTAL                                             |
 1685    |                                            .----.                                            |
 1686    |  ____________________     __________      _________    _________    _________    _________   |
 1687    | |                    |   |74LS138N  |    | 74LS04N |  |74LS157N |  | 74LS11N |  |74LS74AN |  |
 1688    | |   Z084004PSC       |   |__________|    |_________|  |_________|  |_________|  |_________|  |
 1689    | |____________________|       U5               U4           U3           U2           U1      |
 1690    |          U5                                                                                  |
 1691    |______________________________________________________________________________________________|
 1692  
 1693  
 1694    Discrete audio circuitry: SAME AS KIMBLE DIAGRAM.
 1695  
 1696  */
 1697  
 1698  ROM_START( norautpl )
 1699      ROM_REGION( 0x10000, "maincpu", 0 ) /* slightly different than original JP */
 1700      ROM_LOAD( "u11.bin",  0x0000, 0x1000, CRC(2abd1b82) SHA1(8cbe9ea481ec2465faaf79fcfc22ec78d83bd98d) )
 1701      ROM_LOAD( "u16.bin",  0x1000, 0x1000, CRC(dbc3960a) SHA1(d58ee89134f9d8db80d3e066fd01e4e484126d00) )
 1702  
 1703      ROM_REGION( 0x1000,  "gfx", 0 )
 1704      ROM_FILL(             0x0000, 0x0800, 0xff )
 1705      ROM_LOAD( "char.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 1706  ROM_END
 1707  
 1708  /*
 1709  
 1710    Noraut Joker Poker
 1711  
 1712    Hardware Layout:
 1713  
 1714    - CPU:             1x TMPZ84C00AP-8
 1715    - RAM:             2x HM6116LP-4 CMOS Static Ram
 1716    - I/O:             3x D8255AC-2 Peripeheral Interface Adapter
 1717    - Prg ROMs:        1x 2764 Eprom
 1718    - Gfx ROMs:        1x 2732 Eprom
 1719    - Sound:           Discrete
 1720    - Battery:         1x 3.6v Ni-cd 65Mah
 1721    - Crystal:         1x 18.432Mhz
 1722    - Resistor Array:  4x 9 Pin SIP 472G
 1723  
 1724    Program:27C64
 1725    Marked:
 1726    "MX10A JOKER G.L
 1727     N.C.R  C.C  M.S"
 1728  
 1729    Char:2732
 1730    Marked:
 1731    "N1-057-5"
 1732  
 1733  
 1734    PCB Layout (norautjp):                                                       Edge Connector 36x2
 1735     ______________________________________________________________________________________________
 1736    |  _____                  _________    _________    _____         .........    _________       |
 1737    | |D5555|                |74LS174N |  |74LS153N |  |D5555|        .........   |ULN2003A |      |
 1738    | |_____|                |_________|  |_________|  |_____|    Resistor Array  |_________|      |
 1739    |                                                               ___                            |
 1740    |                                                              |VR1|                           |
 1741    |              DIP SW x4                                       |___|                           |
 1742    |  ________     _______                                                                        |
 1743    | |Battery |   |1|2|3|4|  _________    _________    _________    _________     _________       |
 1744    | |  3.6v  |   |_|_|_|_| |74LS157N |  |74LS153N |  |74LS161AP|  |74LS86AN |   |ULN2003A |      |
 1745    | |________|             |_________|  |_________|  |_________|  |_________|   |_________|      |
 1746    |                                                                                              |
 1747    |                                                                                              |
 1748    |                                                                                              | 36
 1749    |  _________              _________                 _________    _________     _________       |___
 1750    | |HD74LS04P|            |74LS166AP|               |74LS161AN|  |74LS153N |   |ULN2003A |       ___|
 1751    | |_________|            |_________|               |_________|  |_________|   |_________|       ___|
 1752    |                                                                                               ___|
 1753    |                                   DIP SW x 8                               ________________   ___|
 1754    |               _____________    _______________    _________    _________  |                |  ___|
 1755    |              |             |  |1|2|3|4|5|6|7|8|  |74LS161AN|  |74LS157N | |    D8255AC-2   |  ___|
 1756    |              |    2732     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 1757    |              |_____________|                                                                  ___|
 1758    |                                                                                               ___|
 1759    |                                                                            ________________   ___|
 1760    |                                                                           |                |  ___|
 1761    |  _____________        _____________                                       |    D8255AC-2   |  ___|
 1762    | |             |      |             |                                      |________________|  ___|
 1763    | |    6116     |      |    6116     |                                                          ___|
 1764    | |_____________|      |_____________|              _________    _________                      ___|
 1765    |                                                  |74LS161AN|  |74LS157N |                     ___|
 1766    |                                                  |_________|  |_________|                     ___|
 1767    |                                                                                               ___|
 1768    |  ______________       ________________                                                        ___|
 1769    | |              |     |                |           _________    _________                      ___|
 1770    | |     2764     |     |    D8255AC-2   |          |74LS161AN|  |74LS157N |     .........       ___|
 1771    | |______________|     |________________|          |_________|  |_________|     .........       ___|
 1772    |                                                                              Resistor Array   ___|
 1773    |                                                                                              |
 1774    |                                                                                              | 1
 1775    |                      _________                    _________    _________    _________        |
 1776    |                     | 74LS32N |                  |74LS161AN|  | 74LS86P |  | 74LS04N |       |
 1777    |                     |_________|                  |_________|  |_________|  |_________|       |
 1778    |                                                                                              |
 1779    |                                             XTAL                                             |
 1780    |                                            .----.                                            |
 1781    |  ____________________     __________      _________    _________    _________    _________   |
 1782    | |                    |   |PALce16v8H|    | 74LS04N |  |74LS157N |  | 74LS11N |  |74LS74AN |  |
 1783    | |   TMPZ84C00AP-8    |   |__________|    |_________|  |_________|  |_________|  |_________|  |
 1784    | |____________________|                                                                       |
 1785    |                                                                                              |
 1786    |______________________________________________________________________________________________|
 1787  
 1788  */
 1789  
 1790  ROM_START( norautjp )
 1791      ROM_REGION( 0x10000, "maincpu", 0 )
 1792      ROM_LOAD( "2764-1prog.bin",   0x0000, 0x2000, CRC(5f776ce1) SHA1(673b8c67ebd5c1334187a9407b86a43150cbe67b) )
 1793  
 1794      ROM_REGION( 0x1000, "gfx", 0 )
 1795      ROM_FILL(                     0x0000, 0x0800, 0xff )
 1796      ROM_LOAD( "2732-1char.bin",   0x0800, 0x0800, CRC(d94be899) SHA1(b7212162324fa2d67383a475052e3b351bb1af5f) )    /* first half 0xff filled */
 1797      ROM_CONTINUE(                 0x0800, 0x0800 )
 1798  
 1799      ROM_REGION( 0x800,  "nvram", 0 )
 1800      ROM_LOAD( "norautjp_nv.bin",  0x0000, 0x0400, CRC(0a0614b2) SHA1(eb21b2723b41743daf787cfc379bc67cce2b8538) )    /* default NVRAM */
 1801  
 1802  ROM_END
 1803  
 1804  /*
 1805  
 1806    Noraut Red Hot Joker Poker.
 1807  
 1808    Red hot joker poker scrolls across screen.
 1809    Eprom has Red Hot on sticker.
 1810    Char: Handwritten sticker with "Club250 grapics" on it.
 1811  
 1812    Pressing the readout button brings you to a menu with RESET / READOUT.
 1813    Pressing on Readout brings you to "coins in", "coins out" and "balance".
 1814  
 1815    No date info on board or found in rom.
 1816  
 1817  */
 1818  
 1819  ROM_START( norautrh )
 1820      ROM_REGION( 0x10000, "maincpu", 0 )
 1821      ROM_LOAD( "norautrh.bin",  0x0000, 0x2000, CRC(f5447d1a) SHA1(75d6439481e469e82e5561146966c9c7b44f34fe) )
 1822  
 1823      ROM_REGION( 0x1000,  "gfx", 0 )
 1824      ROM_LOAD( "club250.bin",   0x0000, 0x1000, CRC(d94be899) SHA1(b7212162324fa2d67383a475052e3b351bb1af5f) )
 1825  ROM_END
 1826  
 1827  /*
 1828  
 1829    Noraut Red Hot 1-bet Joker Poker.
 1830  
 1831    Last release of Noraut's Joker Poker. Always have joker with multi change card
 1832    and hint card in gamble. Quite popular in Norther Ireland but some operators
 1833    have the percentage to payout at less than 10%
 1834  
 1835  */
 1836  
 1837  ROM_START( norautra )
 1838      ROM_REGION( 0x10000, "maincpu", 0 ) /* Program ROM is 0000-1fff and identical to norautrh, the rest is filled with FF's */
 1839      ROM_LOAD( "noraut_red_hot_1bet_joker_poker.bin", 0x0000, 0x8000, CRC(f284b574) SHA1(ff683731f3dbdaed5d0d25276ca90b68a422e403) )
 1840  
 1841      ROM_REGION( 0x1000,  "gfx", 0 )
 1842      ROM_FILL(                     0x0000, 0x0800, 0xff )
 1843      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 1844  ROM_END
 1845  
 1846  /*
 1847  
 1848    Unknown Noraut: "NTX10A  V6"
 1849    None working old noraut board with daughter card upgrade
 1850    daughter card looks like an old upgrade PCB marked:
 1851    "Noraut LTD Game Module"
 1852    half of which is incased in epoxy resin.
 1853    only thing not visble on this board compared to others i have is the cpu
 1854    with is under the epoxy not sure what else is their.
 1855  
 1856    D Card contains:
 1857    Backup Battery
 1858  
 1859    Program Eprom:27C256
 1860    Marked: "NTX10A  V6"
 1861             "C201"
 1862  
 1863    CPU:
 1864    Unknown Incased in epoxy
 1865  
 1866    NVRAM: HY6264A
 1867  
 1868    PAL:
 1869    PAL16L8ACN
 1870  
 1871    Charcter Eprom is mounted on main board
 1872    CHAR Eprom:2732
 1873    Marked: "GU27"
 1874  
 1875    daughter card is connected on to another card containing only pcb tracks no components
 1876    This second board connects to main board with ribbon cable to the 40pin socket where
 1877    the original cpu would of been.
 1878  
 1879    No date info on board or found in rom.
 1880  
 1881  */
 1882  
 1883  ROM_START( norautu )
 1884      ROM_REGION( 0x10000, "maincpu", 0 )
 1885      ROM_LOAD( "2563.bin",   0x0000, 0x8000, CRC(6cbe68bd) SHA1(93201baaf03a9bba6c52c64cc26e8e445aa6454e) )
 1886      ROM_RELOAD(             0x8000, 0x8000 )
 1887  
 1888      ROM_REGION( 0x1000,  "gfx", 0 )
 1889      ROM_LOAD( "club250.bin", 0x0000, 0x1000, CRC(d94be899) SHA1(b7212162324fa2d67383a475052e3b351bb1af5f) )
 1890  ROM_END
 1891  
 1892  
 1893  /*
 1894  
 1895    NORAUT V3.010a.
 1896  
 1897    Board upgraded with daughter card.
 1898    Daughter card looks modern and is marked
 1899    "memory expansion module"
 1900    "Unique Ireland"
 1901  
 1902    D Card contains:
 1903    Backup Battery
 1904  
 1905    Program Eprom:27C512
 1906    Marked:
 1907    "G45P A V3.010a GU27
 1908     Euro 27C512 20MAR02"
 1909  
 1910  
 1911    PAL:PAL16l8ANC
 1912    Marked VER.2
 1913  
 1914    CPU:
 1915    Zilog
 1916    Z8400APS
 1917    Z80 CPU
 1918  
 1919    NVRAM: 6116
 1920  
 1921    Two jumpers on card , game will not boot if these are removed or placed on other pins
 1922    cabinet beeps and shows grapics on screen. Removing while game is on cause game to freeze.
 1923    Unknown what their for.
 1924  
 1925    Charcter Eprom is mounted on main board
 1926    CHAR Eprom:2716
 1927    Marked "GU27"
 1928  
 1929    No date info found in rom. Program eprom sticker: "Euro 27C512 20MAR02"
 1930  
 1931    This version contains a hidden menu with lots of differnt options
 1932    to access this menu you must hold the HI and LOW button and press the readout/test switch
 1933    the screen will go blank then you release the 3 buttons and the menu appears.
 1934  
 1935    Pressing the readout button brings you to a menu with RESET / READOUT
 1936    Pressing on Readout brings you to "coins in", "coins out" and "balance".
 1937  
 1938    The daughter card connects direct to main pcb through 40 pins into original cpu socket
 1939    and 12 pins to one side of original program eprom.
 1940  
 1941  
 1942    PCB Layout (V3.010A + V3.011A):                                             Edge Connector 36x2
 1943     ______________________________________________________________________________________________
 1944    |  _____                  _________    _________    _____         .........    _________       |
 1945    | |  555|                |74LS174N |  |74LS153N |  | 555 |        .........   |ULN2003A |      |
 1946    | |_____|                |_________|  |_________|  |_____|       898-1-R4.7K  |_________|      |
 1947    |   U46                      U45          U44        U43             U42          U41          |
 1948    |                                                                                              |
 1949    |              DIP SW x4                                                                       |
 1950    |  ________     _______                                                                        |
 1951    | |Battery |   |1|2|3|4|  _________    _________    _________    _________     _________       |
 1952    | |  3.6v  |   |_|_|_|_| |74LS157N |  |74LS153N |  |74LS161AP|  |74LS86AN |   |ULN2003A |      |
 1953    | |________|      U40    |_________|  |_________|  |_________|  |_________|   |_________|      |
 1954    |                            U39          U38          U37          U36           U35          |
 1955    |                                                                                              |
 1956    |                                                                                              | 36
 1957    |  _________              _________    .........    _________    _________     _________       |___
 1958    | | 74LS04  |            |74LS166AP|   .........   |74LS161AN|  |74LS153N |   |ULN2003A |       ___|
 1959    | |_________|            |_________|  898-1-R470   |_________|  |_________|   |_________|       ___|
 1960    |     U34                    U33          U32          U31          U30           U29           ___|
 1961    |                                   DIP SW x 8                               ________________   ___|
 1962    |               _____________    _______________    _________    _________  |                |  ___|
 1963    |              |             |  |1|2|3|4|5|6|7|8|  |74LS161AN|  |74LS157N | |    D8255AC-2   |  ___|
 1964    |              |    2716     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 1965    |     NO IC    |_____________|                         U25          U24            U23          ___|
 1966    |      U28           U27              U26                                                       ___|
 1967    |                                                                            ________________   ___|
 1968    |                                                                           |                |  ___|
 1969    |                                                                           |    D8255AC-2   |  ___|
 1970    |                                                                           |________________|  ___|
 1971    |                _________   _________                                             U17          ___|
 1972    |               |  2114   | |  2114   |             _________    _________                      ___|
 1973    |      NO IC    |_________| |_________|            |74LS161AN|  |74LS157N |                     ___|
 1974    |       U22         U21         U20                |_________|  |_________|                     ___|
 1975    |                                                      U19          U18                         ___|
 1976    |                       ________________                                                        ___|
 1977    |                      |                |           _________    _________                      ___|
 1978    |                      |    D8255AC-2   |          |74LS161AN|  |74LS157N |     .........       ___|
 1979    |      NO IC           |________________|          |_________|  |_________|     .........       ___|
 1980    |       U16                   U15                      U14          U13        916C471X2PE      ___|
 1981    |                                                                                  U12         |
 1982    |                                                                                              | 1
 1983    |                      _________                    _________    _________    _________        |
 1984    |      NO IC          | 74LS32N |                  |74LS161AN|  | 74LS86P |  | 74LS04N |       |
 1985    |       U11           |_________|                  |_________|  |_________|  |_________|       |
 1986    |                         U10                           U9          U8           U7            |
 1987    |                                       XTAL  18.432                                           |
 1988    |                                           .----.                                             |
 1989    |  ____________________     __________      _________    _________    _________    _________   |
 1990    | |                    |   |74LS138N  |    | 74LS04N |  |74LS157N |  | 74LS11N |  |74LS74AN |  |
 1991    | |   EXPANSION PCB    |   |__________|    |_________|  |_________|  |_________|  |_________|  |
 1992    | |____________________|       U5               U4           U3           U2           U1      |
 1993    |          U5                                                                                  |
 1994    |______________________________________________________________________________________________|
 1995  
 1996  
 1997    EXPANSION PCB:
 1998     __________________________________
 1999    |                       ___        |
 2000    |  _____________       |   |       |
 2001    | |             |      | P |       |
 2002    | | V30 27C512  |      | A |       |
 2003    | |_____________|      | L |       |
 2004    | *                    |___|       |
 2005    | * J1                     ______  |
 2006    | *                       |      | |
 2007    | ____________________    |      | |
 2008    ||                    |   | 6116 | |
 2009    ||     Z084004PS      |   |      | |
 2010    *|                    |   |      | |
 2011    *|____________________|   |      | |
 2012    * J2                      |______| |
 2013    |__________________________________|
 2014  
 2015  
 2016    Discrete audio circuitry: SAME AS KIMBLE DIAGRAM
 2017    EXCEPT FOR :R1 = 120 K ; Tolerance +/- 5%
 2018  
 2019  */
 2020  
 2021  ROM_START( noraut3a )
 2022      ROM_REGION( 0x10000, "maincpu", 0 )
 2023      ROM_LOAD( "g45pa.bin", 0x0000, 0x10000, CRC(f966f4d2) SHA1(99c21ceb59664f32fd1269351fa976370d486f2e) )
 2024  
 2025      ROM_REGION( 0x1000,  "gfx", 0 )
 2026      ROM_FILL(              0x0000, 0x0800, 0xff )
 2027      ROM_LOAD( "gu27.bin",  0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2028  ROM_END
 2029  
 2030  /*
 2031  
 2032    V3011a
 2033    cpu :Z84C0006PEC
 2034  
 2035    Prog eprom marked
 2036    G45P A V3.011A GU27
 2037    EURO 27C512 10NOV03
 2038  
 2039    char marked "GU27" same asv3010a
 2040    pal marked "VER 2" same as v3010a
 2041  
 2042    Everything else identical to v3010a
 2043  
 2044  */
 2045  
 2046  ROM_START( noraut3b )
 2047      ROM_REGION( 0x10000, "maincpu", 0 )
 2048      ROM_LOAD( "3.011a.bin", 0x0000, 0x10000, CRC(82407395) SHA1(b36ef466d7fbc236f24f70f80bd9cd24ed75f51c) )
 2049  
 2050      ROM_REGION( 0x1000,  "gfx", 0 )
 2051      ROM_FILL(              0x0000, 0x0800, 0xff )
 2052      ROM_LOAD( "gu27.bin",  0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2053  ROM_END
 2054  
 2055  /*
 2056  
 2057    Noraut 2 bet joker hard console.
 2058    From PCB with daghterboard.
 2059  
 2060    ----
 2061  
 2062    Requires daughterboard console in z80 to run.
 2063    Very old program.
 2064  
 2065  */
 2066  
 2067  ROM_START( norautua )
 2068      ROM_REGION( 0x10000, "maincpu", 0 )
 2069      ROM_LOAD( "noraut_2_bet_joker_hard_console.bin", 0x0000, 0x2000, CRC(dd6b03a2) SHA1(221425534a255e5b8ef83fb567d578c127ba9a90) )
 2070  
 2071      ROM_REGION( 0x1000,  "gfx", 0 )
 2072      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2073      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2074  ROM_END
 2075  
 2076  /*
 2077  
 2078    Noraut 4 bet joker console.
 2079    From PCB with daghterboard.
 2080  
 2081    ----
 2082  
 2083    Requires daughterboard console in z80 to run.
 2084  
 2085  */
 2086  
 2087  ROM_START( norautub )
 2088      ROM_REGION( 0x10000, "maincpu", 0 )
 2089      ROM_LOAD( "noraut_4_bet_joker_console.bin", 0x0000, 0x2000, CRC(abf7725c) SHA1(997c7dbb4c4e5f1cdab28fefd17ab3c88bbc2531) )
 2090  
 2091      ROM_REGION( 0x1000,  "gfx", 0 )
 2092      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2093      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2094  ROM_END
 2095  
 2096  /*
 2097  
 2098    Mainline 4 bet joker z80 28pin 60%-75% payout.
 2099    25% Payout Hard 27c 64K uses normal pal.
 2100  
 2101  */
 2102  
 2103  ROM_START( mainline )
 2104      ROM_REGION( 0x10000, "maincpu", 0 )
 2105      ROM_LOAD( "25_payout_hard.bin", 0x0000, 0x2000, CRC(0d8a34f0) SHA1(b90c3b1949b7c2108d2202c8a5f1d54de4a572ce) )
 2106  
 2107      ROM_REGION( 0x1000,  "gfx", 0 )
 2108      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2109      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2110  
 2111      ROM_REGION( 0x0200,  "plds", 0 )
 2112      ROM_LOAD( "pal16l8_25.bin",  0x0000, 0x0104, CRC(7d9ab06c) SHA1(0f1936e24f77e95e5c95b50a421473f13929809e) )
 2113  ROM_END
 2114  
 2115  /*
 2116  
 2117    DellFern 4-bet Joker z80 28pin
 2118    45%-75% payout.
 2119  
 2120    Board also made by DellFern.
 2121    UK company that gone bust many years ago.
 2122  
 2123  */
 2124  
 2125  ROM_START( df_djpkr )
 2126      ROM_REGION( 0x10000, "maincpu", 0 ) /* Program ROM is 0000-1fff, copied along the 64K of the ROM */
 2127      ROM_LOAD( "dellfern_4bet_joker_z80_28pin_45-75_payout.bin", 0x0000, 0x10000, CRC(9d150a47) SHA1(da9c0d6632faab685dd061f39b01d8e65793e1e6) )
 2128  
 2129      ROM_REGION( 0x1000,  "gfx", 0 )
 2130      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2131      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2132  ROM_END
 2133  
 2134  /*
 2135  
 2136    Deluxe Poker...
 2137  
 2138    Stickered:
 2139    AM 42
 2140    RON 10
 2141  
 2142    Running in a standard 24-pin sockets
 2143    Unmodified Noraut board.
 2144  
 2145    Version 18/04/2005
 2146    New Gamble Limit=??
 2147    Message changed to ROYAL ON 10
 2148    CoinValue1 equ 020H ;DIP SW 2 - OFF
 2149    CoinValue2 equ 050H ;DIP SW 2 - ON
 2150  
 2151  */
 2152  
 2153  ROM_START( ndxron10 )
 2154      ROM_REGION( 0x10000, "maincpu", 0 )
 2155      ROM_LOAD( "am42_ron10.bin",  0x0000, 0x2000, CRC(7afe5bb6) SHA1(cd3ad96c0de6b58be7507526ff605a9b82894f5c) )
 2156  
 2157      ROM_REGION( 0x1000,  "gfx", 0 )
 2158      ROM_LOAD( "club250.bin",   0x0000, 0x1000, CRC(d94be899) SHA1(b7212162324fa2d67383a475052e3b351bb1af5f) )
 2159  ROM_END
 2160  
 2161  /*
 2162  
 2163    CGI - Credit Poker (v.30c, standard)
 2164  
 2165    This is a standard version, without the 7's, 9's and 5's bonus.
 2166  
 2167    Settings:
 2168  
 2169    1) Press Readout (9) button.
 2170  
 2171    You will enter into Readout options screen.
 2172  
 2173    2) Press HOLD1 to reset meters, HOLD2 for readout,
 2174       or follow the next steps to adjust percentage.
 2175       Press DEAL to exit.
 2176  
 2177    2) Keep pressed HI & LO buttons.
 2178    3) Press HOLD5 (readout) button.
 2179    4) Release both HI & LO buttons.
 2180    5) Percentage should appear. Set with HI/LO buttons.
 2181    6) Save and exit with DEAL button.
 2182  
 2183  */
 2184  
 2185  ROM_START( cgip30cs )
 2186      ROM_REGION( 0x10000, "maincpu", 0 ) /* Program ROM is 0000-3fff, duplicated to fit the ROM size */
 2187      ROM_LOAD( "cgi_standard_no_bonus_30c_z80_28pin.bin", 0x0000, 0x8000, CRC(7c784964) SHA1(c3deeacc73493939a11dd4cdf0fe07fcd2a9ad8a) )
 2188  
 2189      ROM_REGION( 0x1000,  "gfx", 0 )
 2190      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2191      ROM_LOAD( "graphics2716.bin", 0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2192  ROM_END
 2193  
 2194  /*
 2195  
 2196    Kimble Double HI-LO (Z80)
 2197    -------------------------
 2198  
 2199    Hardware Layout:
 2200  
 2201    - CPU:             1x Z8400AB1: ON CPU ADDON BOARD
 2202    - RAM:             2x 2114 VIDEO
 2203    - RAM:             1x 6264 PROG: ON EXPANSION BOARD
 2204    - I/O:             3x 8255 Peripeheral Interface Adapter.
 2205    - Prg ROM:         1x 27C256: ON EXPANSION BOARD
 2206    - Prg ROM:         1x 27C128: ON EXPANSION BOARD
 2207    - Gfx ROM:         1x 2716 U27 Eprom
 2208    - Sound:           Discrete.
 2209    - Crystal:         1x 18.432 MHz.ON CPU ADDON BOARD
 2210                       1X PAL16R8 ON EXPANSION BOARD
 2211  
 2212    PCB silksceened:
 2213    SCT 18-88
 2214    KIMBLE DOUBLE HI-LO
 2215    CARD GAME
 2216  
 2217    PCB MARKED:SZY044
 2218  
 2219    CHAR EPROM LABELED: "QUIZ CHAR II"
 2220    PROG EPROM (256) LABELED: "M.B POKER ALT 1 2P/10P I"
 2221    PROG EPROM (128) LABELED: "M.B POKER ALT 1 2P/10P II"
 2222  
 2223  
 2224    Frequency measured 2.3025MHz.
 2225  
 2226  
 2227    PCB Layout (Kimble Double HI-LO Z80):                                        Edge Connector 36x2
 2228     ______________________________________________________________________________________________
 2229    |                         _________    _________    _____        .........     _________       |
 2230    |                        |74LS174N |  |74LS153N |  |NE555|       .........    |ULN2003A |      |
 2231    |    BATTERY             |_________|  |_________|  |_____|       4116R 471    |_________|      |
 2232    |  3.6V NI-CD                U45          U44        U43            U42          U41           |
 2233    |                                                                                              |
 2234    |                                                                                              |
 2235    |       ______            _________    _________    _________    _________     _________       |
 2236    |      |MC1455|          |74LS157N |  | 74153N  |  | 74161N  |  |  7486N  |   |ULN2003A |      |
 2237    |      |______|          |_________|  |_________|  |_________|  |_________|   |_________|      |
 2238    |        U40                 U39          U38          U37          U36           U35          |
 2239    |                                                                                              |
 2240    |                                                                                              | 36
 2241    |    _________            _________    4116R 471    _________    _________     _________       |___
 2242    |   |  7404N  |          | 74166N  |   .........   | 74161N  |  | 74153N  |   |ULN2003A |       ___|
 2243    |   |_________|          |_________|   .........   |_________|  |_________|   |_________|       ___|
 2244    |       U34                  U33          U32          U31          U30           U29           ___|
 2245    |                                   DIP SW x 8                               ________________   ___|
 2246    |               _____________    _______________    _________    _________  |                |  ___|
 2247    | ***********  |             |  |1|2|3|4|5|6|7|8|  | 74161N  |  | 74157N  | |    D8255AC-5   |  ___|
 2248    | x11 SIL FOR  |    2716     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 2249    |EXPANSION PCB |_____________|         U26             U25          U24            U23          ___|
 2250    |     U28            U27                                                                        ___|
 2251    |                                                                            ________________   ___|
 2252    |                                                                           |                |  ___|
 2253    |                   _________       _________       _________    _________  |    D8255AC-5   |  ___|
 2254    |                  | 2114    |     |  2114   |     | 74161N  |  | 74157N  | |________________|  ___|
 2255    |    NO IC         |_________|     |_________|     |_________|  |_________|        U17          ___|
 2256    |     U22              U21             U20             U19          U18                         ___|
 2257    |                                                                                               ___|
 2258    |                       ________________                                                        ___|
 2259    |                      |                |           _________    _________      4116R 471       ___|
 2260    |                      |   D8255AC-2    |          | 74161N  |  | 74157N  |     .........       ___|
 2261    |     NO IC            |________________|          |_________|  |_________|     .........       ___|
 2262    |      U16                    U15                      U14          U13            U12          ___|
 2263    |                                                                                              |
 2264    | ************                               _________       _________        _________        | 01
 2265    | x24 DIL SOCKET                            | 74161N  |     | 7486N   |      |  7404N  |       |
 2266    | EXPANSION PCB                             |_________|     |_________|      |_________|       |
 2267    | ************               NO IC                   U9              U8               U7       |
 2268    |       U11                   U10                                                              |
 2269    |                                         Xtal removed                                         |
 2270    |  ____________________     __________                   _________    _________    _________   |
 2271    | |                    |   |  74LS32  |                 | 74157N  |  |  7411N  |  |  7474N  |  |
 2272    | | Z80 EXPANSION PCB  |   |__________|       NO IC     |_________|  |_________|  |_________|  |
 2273    | |____________________|        U5              U4           U3           U2           U1      |
 2274    |  1        U6                                                                                 |
 2275    |______________________________________________________________________________________________|
 2276  
 2277  
 2278    PCB Layout EXPANSION BOARD (Kimble Double HI-LO 8080):
 2279  
 2280    EXPANSION BOARD  Silksceened:SCT 34-88
 2281     __________________________________________________________________
 2282    |                                          5             6         |
 2283    |            4 WIRES   ****            _________     _________     |
 2284    |          TO MAIN PCB                | 74LS08N |   |74LS155N |    |
 2285    |                                     |_________|   |_________|    |
 2286    |                                                                  |
 2287    |        EXP PIN  ______       ______     ______                   |
 2288    |          x11   |      |     |      |   |      |      *      *    |
 2289    |   ___     *    | 6264 |     | PROG |   | PROG |      * EXP  *    |
 2290    |  | P |    *    |      |     |      |   |      |      * PIN  *    |
 2291    |  | A |    *    |      |     |      |   |      |      *      *    |
 2292    |  | L |    *    |      |     |27128 |   |27256 |      * x24  *    |
 2293    |  | 1 |    *    |      |     |      |   |      |      *      *    |
 2294    |  | 6 |    *    |      |     |      |   |      |      *      *    |
 2295    |  | R |    *    |      |     |  II  |   |   I  |      *      *    |
 2296    |  | 8 |    *    |      |     |      |   |      |      *      *    |
 2297    |  |   |    *    |      |     |      |   |      |      *      *    |
 2298    |  |___|    *    |______|     |______|   |______|      *      *    |
 2299    |    1               2           3           4         *      *    |
 2300    |__________________________________________________________________|
 2301  
 2302  
 2303    Z80 ADDON BOARD:
 2304    Silksceened:SCT 38-90
 2305     _____________________________________________________________
 2306    |                                                             |
 2307    |  ____________________________     _________     _________   |
 2308    | |                            |   | 74LS14N |   | 74LS04N |  |
 2309    | |     Z8400AB1               |   |_________|   |_________|  |
 2310    | |                            |                              |
 2311    | |____________________________|                    *--*      |
 2312    |                                              XTAL 18.432 Mhz|
 2313    |                                                             |
 2314    |   _________                   ____________________________  |
 2315    |  | 74LS32N |                 |                           1| |
 2316    |  |_________|                 |  40 PINS TO MAIN PCB U6    | |
 2317    |                              |                            | |
 2318    |                              |____________________________| |
 2319    |_____________________________________________________________|
 2320  
 2321  
 2322  
 2323    Kimble Double HI-LO (Z80) discrete audio circuitry:
 2324    ---------------------------------------------------
 2325  
 2326    3x ULN2003A (Darlington transistor array)
 2327    1x MC1455P  (Timer)
 2328    1x 2N2222   (Epitaxial planar general purpose NPN transistor)
 2329  
 2330    .------.                              .------------.              .-------.
 2331    |  U17 |                              |   MC1455P  |              |2N2222 |
 2332    |      |                             4|            |3     R3      |       |
 2333    |   PC7|------------------------------|RST      OUT|-----ZZZZ-----|B     E|-------> Audio Out.
 2334    |   PC6|----------.                  6|            |8             |   C   |
 2335    |   PC5|-----.    |3-in         .-----|THR      VCC|-----------.  '---+---'  .----> Audio Out.
 2336    |   PC4|--.  |  .-+------.      |    5|            |7          |      |      |
 2337    |      |  |  |  |ULN2003A|      |  .--|CVOLT   DISC|--.        |      |      |
 2338    |      |  |  |  '-+------'      |  |  |            |  |        +------'    --+--
 2339    |      |  |  |    |3-out   C1   |  |  |    GND     |  |        |            GND
 2340    | 8255 |  |  |    '--------||---+  |  '-----+------'  |        |             -
 2341    |      |  |  '--.               |  |        |1        |        |             '
 2342    |      |  |     |2-in           |  |        |         |        |
 2343    '------'  |  .--+-----.         |  |   C5   |         |        |
 2344              |  |ULN2003A|         |  '---||---+         |        |   +5V
 2345              |  '--+-----'         |           |         |        |   -+-
 2346              |     |2-out     C2   |      C4   |         |    C6  |    |
 2347              |     '----------||---+------||---+-------. | .--||--+----'
 2348              |2-in                 |           |       | | |      |
 2349            .-+------.              |         --+--      '-'       |
 2350            |ULN2003A|              |          GND        |        |
 2351            '-+------'              |           -         |        |
 2352              |2-out           C3   |     R1    '         |   R2   |
 2353              '----------------||---+----ZZZZ-------------+--ZZZZ--'
 2354  
 2355    R1 = 100 K ; Tolerance +/- 5%
 2356    R2 = 1 K   ; Tolerance +/- 5%
 2357    R3 = 1 K   ; Tolerance +/- 5%
 2358  
 2359    C1 = 10nK 63v
 2360    C2 = 223J
 2361    C3 = 47nK 63v
 2362  
 2363    C4 = 10nK 63v
 2364    C5 = 10nK 63v
 2365    C6 = 100nK 100v
 2366  
 2367  */
 2368  
 2369  ROM_START( kimblz80 )
 2370      ROM_REGION( 0x10000, "maincpu", 0 )
 2371      ROM_LOAD( "256_mb_poker_alt_i.bin",  0x0000, 0x8000, CRC(2123c3b4) SHA1(ea9fbfc96b65bba6b193785edf926b6bba1a8d4c) )
 2372      ROM_LOAD( "128_mb_poker_alt_ii.bin", 0x8000, 0x4000, CRC(7c4ddc78) SHA1(8da437c253e68de97190412d24bfb9d151016f1f) )
 2373  
 2374      ROM_REGION( 0x1000, "gfx",0 )
 2375      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2376      ROM_LOAD( "quiz_char_ii.bin", 0x0800, 0x0800, CRC(ad645a41) SHA1(a2c47f21609cda20a6cfee17a7bfd32fb2afd6fe) )
 2377  ROM_END
 2378  
 2379  /*
 2380  
 2381    PCB silkscreened PMA-32-C.
 2382    Someone had written "poker" on it.
 2383  
 2384    CPU:   LH0080 (Sharp Z80).
 2385    I/O:   3x PPI 8255.
 2386    Xtal:  18 MHz.
 2387    NVRAM: Yes, battery attached.
 2388  
 2389    ROMs: 2x 2732 (E4 & E5).
 2390          1x 2716 (J2).
 2391  
 2392    PROM: tb24s10n (D3) read as 82s129.
 2393  
 2394  */
 2395  
 2396  ROM_START( pma )
 2397      ROM_REGION( 0x10000, "maincpu", 0 )
 2398      ROM_LOAD( "pma.e5", 0x0000, 0x1000, CRC(e05ab5b9) SHA1(8bd13e8ed723ac256545f19bef4fa3fe507ab9d5) )
 2399      ROM_RELOAD(         0x1000, 0x1000 )
 2400      ROM_LOAD( "pma.e4", 0x2000, 0x1000, CRC(0f8b11fc) SHA1(7292b0ac368c469ff2e1ede1765c08f1ccc1a36c) )
 2401  
 2402      ROM_REGION( 0x1000,  "gfx", 0 )
 2403      ROM_FILL(           0x0000, 0x0800, 0xff )
 2404      ROM_LOAD( "pma.j2", 0x0800, 0x0800, CRC(412fc492) SHA1(094ea0ffd0c22274cfe164f07c009ffe022331fd) )
 2405  
 2406      ROM_REGION( 0x0200,  "proms", 0 )
 2407      ROM_LOAD( "pma.d3",  0x0000, 0x0200, CRC(6e172c11) SHA1(b52439a5075cc68ae2792946a5ce973d9f8e4104) )
 2408  ROM_END
 2409  
 2410  /*
 2411  
 2412    Poker / Black Jack (Model 7521)
 2413  
 2414    PCB: Etched: KRAMER MFG  PWB - 000 - 40065 REV B
 2415  
 2416    - 1x Z80 CPU
 2417    - 3x 8255
 2418    - 1x 6116 RAM.
 2419    - 1x Dallas DS1220Y Nonvolatile SRAM.
 2420    - 1x Xtal 18 MHz.
 2421    - 3x 8 DIP switches banks.
 2422  
 2423  
 2424    PCB Layout:                                                                           Edge Connector 36x2
 2425     ________________________________________________________________________________________________________
 2426    |              _________    _____      _____       _________   _________   _________    _________        |
 2427    |             |SN74LS12 |  | ??? |    |NE555|     |077B PROM| |SN74174N | |SN74LS???|  |ULN2003AN|       |
 2428    |    NO IC    |_________|  |_____|    |_____|     |_________| |_________| |_________|  |_________|       |
 2429    |     U64         U63        U62        U61           U51         U60         U59          U58           |
 2430    |                                                                                                        |
 2431    |  _________                                                                                             |
 2432    | | Dallas  |  _________   _________   _________   _________   _________   _________    _________        |
 2433    | | DS1220Y | |SN74LS00N| |TC4040BP | |ITT7402N | |SN74157N | | RESNET  | | RESNET  |  |ULN2003AN|       |
 2434    | |_________| |_________| |_________| |_________| |_________| |_________| |_________|  |_________|       |
 2435    |     U57         U56         U55         U54         U53         U52         U50          U49           | 36
 2436    |                                                                                                        |___
 2437    |  _________   _________   _________   _________   _________   _________   _________    _________         ___|
 2438    | |47F9 PAL?| |SN74LS32N| |   ???   | |   ???   | |SN74166N | |DIP SW x8| |DIP SW x8|  |ULN2003AN|        ___|
 2439    | |_________| |_________| |_________| |_________| |_________| |_________| |_________|  |_________|        ___|
 2440    |     U48         U47         U46         U45         U44         U43         U42          U41            ___|
 2441    |                         _______________    ______________                            ________________   ___|
 2442    |              _______   |               |  |              |   _________   _________  |                |  ___|
 2443    |    NO IC    |  ???  |  |  CDM 6116     |  | CF7B U31 ROM |  |   ???   | |   ???   | |   AMD P8255A   |  ___|
 2444    |     U26     |_______|  |_______________|  |______________|  |_________| |_________| |________________|  ___|
 2445    |                U40            U39                U31            U38         U37            U36          ___|
 2446    |  __________                          ____________________                            ________________   ___|
 2447    | |   ROM    |  _______   _________   |                    |   _________   _________  |                |  ___|
 2448    | |   U19    | |74161PC| |SN74157N |  |     AMD P8255A     |  | 74LS??? | |DIP SW x8| |   AMD P8255A   |  ___|
 2449    | |__________| |_______| |_________|  |____________________|  |_________| |_________| |________________|  ___|
 2450    |     U19         U35        U34               U33                U32         U30            U29          ___|
 2451    |  __________                                                                                             ___|
 2452    | |   ROM    |  _________   ________   _________   _________   _________   ________   _________   ______  ___|
 2453    | |   U18    | |SN74LS32N| |DM7414N | |SN74157N | |SN74157N | |SN74LS32N| |DM7411N | |SN74LS00N| |RESNET| ___|
 2454    | |__________| |_________| |________| |_________| |_________| |_________| |________| |_________| |______| ___|
 2455    |     U18          U28        U27         U25         U24         U23         U22        U21       U20    ___|
 2456    |  __________                                                                                             ___|
 2457    | |   ROM    |  _________   ________   _________   _________   _________   _________   _______   _______  ___|
 2458    | |   U12    | |SN74LS155| | RESNET | | 74161PC | | 74161PC | | 74161PC | | 74161PC | |DM7414N| |SN7486N| ___|
 2459    | |__________| |_________| |________| |_________| |_________| |_________| |_________| |_______| |_______||
 2460    |     U12         U17         U16         U15         U14         U13         U11        U10        U9   | 01
 2461    |                                                                                                        |
 2462    |  ___________________                                                                                   |
 2463    | |                   |  __________   ________   _______   _________   _________   _______   __________  |
 2464    | | SGS Z8400B1 (Z80) | |DM74LS245N| |SM7474N | |74S04N | |SN74LS161| |SN74LS32N| |DM7414N| |SN74LS123N| |
 2465    | |___________________| |__________| |________| |_______| |_________| |_________| |_______| |__________| |
 2466    |          U8                U7          U6        U5         U4          U3         U2          U1      |
 2467    |                                                 _____                                                  |
 2468    |        KRAMER MFG  PWB-000-40065 REV B.       .| === |. Xtal 18.000 MHz.                               |
 2469    |________________________________________________________________________________________________________|
 2470  
 2471  
 2472    DIP Switches position:
 2473  
 2474    +----------+-----+-----+-----+-----+-----+-----+-----+-----+
 2475    | Location | #1  | #2  | #3  | #4  | #5  | #6  | #7  | #8  |
 2476    +----------+-----+-----+-----+-----+-----+-----+-----+-----+
 2477    |   U43    | OFF | ON  | OFF | ON  | ON  | OFF | OFF | OFF |
 2478    +----------+-----+-----+-----+-----+-----+-----+-----+-----+
 2479    |   U42    | OFF | OFF | OFF | OFF | OFF | OFF | OFF | OFF |
 2480    +----------+-----+-----+-----+-----+-----+-----+-----+-----+
 2481    |   U30    | OFF | OFF | OFF | ON  | OFF | OFF | OFF | OFF |
 2482    +----------+-----+-----+-----+-----+-----+-----+-----+-----+
 2483  
 2484  
 2485    Discrete audio circuitry: UNKNOWN.
 2486  
 2487  */
 2488  
 2489  ROM_START( bjpoker )
 2490      ROM_REGION( 0x10000, "maincpu", 0 )
 2491      ROM_LOAD( "7521-ver.1.u12", 0x0000, 0x2000, CRC(c7b16be0) SHA1(6c875acd4e8468afa1184863a2c6bd7eb086f6e1) )
 2492      ROM_LOAD( "7521-ver.1.u18", 0x2000, 0x2000, CRC(1eff06cc) SHA1(c2135883e14c156dbfd2f38594a896887acb5d2f) )
 2493      ROM_LOAD( "7521-ver.1.u19", 0x4000, 0x2000, CRC(cadfe6f4) SHA1(5a0881231fd84e270441973c9d08beee2a176cbc) )
 2494  
 2495      ROM_REGION( 0x1000,  "gfx", 0 )
 2496      ROM_LOAD( "cf7b.u31",  0x0000, 0x1000, CRC(fcfc4d25) SHA1(31455903244ec8ef9005748f265f561b7a082a9c) )
 2497  
 2498      ROM_REGION( 0x0100,  "proms", 0 )
 2499      ROM_LOAD( "077b_bprom.u51", 0x0000, 0x0100, NO_DUMP )
 2500  
 2501      ROM_REGION( 0x0200,  "plds", 0 )
 2502      ROM_LOAD( "47f9_pld.u48",   0x0000, 0x0200, NO_DUMP )
 2503  
 2504  ROM_END
 2505  
 2506  ROM_START( newhilop )
 2507      ROM_REGION( 0x10000, "cpu_data", 0 )
 2508      ROM_LOAD( "new_hi-low.3e",  0x0000, 0x10000, CRC(8efe02a2) SHA1(e8150544f073e80ca83f2033bce64b65de08194c) )
 2509  
 2510      ROM_REGION( 0x10000, "gfx_data", 0 )
 2511      ROM_LOAD( "new_hi-low.3a",  0x0000, 0x10000, CRC(6750f0e7) SHA1(cfb180aed9ff288cf1108071f2618587ac85ad1a) )
 2512  
 2513      ROM_REGION( 0x10000, "maincpu", 0 )
 2514      ROM_COPY( "cpu_data", 0xe000, 0x0000, 0x2000 )
 2515  
 2516      ROM_REGION( 0x1000,  "gfx", 0 )
 2517      ROM_COPY( "gfx_data", 0xf000, 0x0000, 0x1000 )
 2518  
 2519      ROM_REGION( 0x0100,  "proms", 0 )
 2520      ROM_LOAD( "82s129.4d", 0x0000, 0x0100, CRC(88302127) SHA1(aed1273974917673405f1234ab64e6f8b3856c34) ) //= japan_6301.u51        dphljp     Draw Poker HI-LO (Japanese)
 2521  ROM_END
 2522  
 2523  
 2524  /*************************************** 8080 sets **************************************/
 2525  /*                                                                                      */
 2526  /*   The following ones are 'Draw Poker HI-LO' type, running in a 8080 based hardware   */
 2527  /*                                                                                      */
 2528  /****************************************************************************************/
 2529  
 2530  /*
 2531  
 2532    Draw Poker HI-LO (1983).
 2533    "NYMF O II" hardware.
 2534    M. Kramer Inc.
 2535  
 2536    PCB layout (Draw Poker HI-LO)
 2537     ___________________________________________________________________________
 2538    |  _________                       ______                                   |
 2539    | |HCF4093BE|           SN74174N  | U51  |  NE555P  916C472X2PE  ULN2003A   |
 2540    | |         |                     |______|                                  |
 2541    | |         |                                                               |
 2542    | |MC14040  |  74123N   SN74157N            74161N  SN7486N      ULN2003A   |
 2543    | |         |                                                               |
 2544    | |         |                                                               |
 2545    | |MWS5101  |  SN7404N  SN74166N  898-1-R   74161N               ULN2003A   |__
 2546    | |         |                                                                __|
 2547    | |         |            ______    _______                     ___________   __|
 2548    | |5101E-1  |           | U31  |  |DIP-SW | 74161N  SN74157N  |AM8255 APC |  __|
 2549    | |_________|           |______|  |_______|                   |___________|  __|
 2550    |   ______                                                     ___________   __|
 2551    |  | U26  |             2111A-2   2111A-2   74161N  SN74157N  | U20       |  __|
 2552    |  |______|                                                   |___________|  __|
 2553    |   ______     ______    ___________                                         __|
 2554    |  | U19  |   | U18  |  |AM8255 APC |       74161N  SN74157N     898-1-R     __|
 2555    |  |______|   |______|  |___________|                                        __|
 2556    |              ______    __________                                         |
 2557    |  74LS541N   | U12  |  |i D8228   |   OSC  74161N  SN7486N      SN7404N    |
 2558    |             |______|  |__________|                                        |
 2559    |              __________                                                   |
 2560    |  DM7405N    |i P8080A  |     SN74LS155AN  iP8224  SN74157N 7411N 7474PC   |
 2561    |             |__________|                                                  |
 2562    |___________________________________________________________________________|
 2563  
 2564    OSC = 18.14 MHz
 2565  
 2566    U12 = AM2732
 2567    U18 = AM2732
 2568    U31 = AM2732A
 2569    U51 = N82S129N
 2570  
 2571    U26, U19, U20 = unpopulated
 2572  
 2573    Edge connector is not JAMMA
 2574  
 2575  */
 2576  
 2577  ROM_START( dphl )
 2578      ROM_REGION( 0x10000, "maincpu", 0 )
 2579      ROM_LOAD( "dphl_6468.u12", 0x0000, 0x1000, CRC(d8c4fe5c) SHA1(6bc745fefb8a3a21ca281d519895828047526de7) )
 2580      ROM_LOAD( "dphl_36e3.u18", 0x1000, 0x1000, CRC(06cf6789) SHA1(587d883c399348b518e3be4d1dc2581824055328) )
 2581  
 2582      ROM_REGION( 0x1000,  "gfx", 0 )
 2583      ROM_LOAD( "dphl_model_2_cgi_3939.u31",  0x0000, 0x1000, CRC(2028db2c) SHA1(0f81bb71e88c60df3817f58c28715ce2ea01ad4d) )
 2584  
 2585      ROM_REGION( 0x0100,  "proms", 0 )
 2586      ROM_LOAD( "98ce.u51",  0x0000, 0x0100, CRC(812dc1f1) SHA1(b2af33ff36f2eca2f782bc2239bc9e54c2564f6a) )
 2587  ROM_END
 2588  
 2589  /*
 2590  
 2591    Draw Poker HI-LO (alt)
 2592    ----------------------
 2593  
 2594    Hardware Layout (Draw Poker HI-LO (alt)):
 2595  
 2596    Board layout/pcb tracks almost Identical to NORAUT boards.
 2597  
 2598    - CPU:             1x INTEL P8080A : L1087022 : INTEL '79.
 2599    - RAM:             4x 2111A-2 Static Random Access Memory 256 x 4 bit.
 2600    - I/O:             3x 8255 Peripeheral Interface Adapter.
 2601    - Prg ROMs:        2x 2716 U11,U16 Eprom.
 2602    - Gfx ROMs:        1x 2716 U27 Eprom :EXACT MATCH WITH NORAUT V3010A CHAR ROM.
 2603    - Sound:           Discrete.
 2604    - Crystal:         1x 18.000 MHz.
 2605  
 2606    PCB silksceened: REV A.
 2607    PCB MARKED: Solderside "81 16".
 2608    Component side "J3 018".
 2609  
 2610    U11 2716 EPROM MARKED:"2B27".
 2611    U16 2716 EPROM MARKED:"4D30".
 2612  
 2613    Frequency measured on CPU P8080A (pins 15 & 22) = 2.00056 MHz.
 2614  
 2615    No date information found on PCB or in Roms.
 2616    Some dates found on some of the IC's
 2617    U6: 1979 :SOLDERED TO BOARD
 2618    U10:1975 :SOLDERED TO BOARD
 2619    U15:1979 :SOLDERED TO BOARD
 2620    U23:1981 :IN SOCKET
 2621    U27:1977 :IN SOCKET
 2622  
 2623  
 2624    PCB Layout (Draw Poker HI-LO (alt)):                                        Edge Connector 36x2
 2625     ______________________________________________________________________________________________
 2626    |                         _________    _________    _____        .........     _________       |
 2627    |                        |74LS174N |  |74LS153N |  |NE555|       .........    |ULN2003A |      |
 2628    |       NO IC            |_________|  |_________|  |_____|       16-2-472     |_________|      |
 2629    |        U46                 U45          U44        U43            U42          U41           |
 2630    |                                                                                              |
 2631    |                                                                                              |
 2632    |                         _________    _________    _________    _________     _________       |
 2633    |                        |74LS157N |  | 74153N  |  | 74161N  |  |  7486N  |   |ULN2003A |      |
 2634    |       NO IC            |_________|  |_________|  |_________|  |_________|   |_________|      |
 2635    |        U40                 U39          U38          U37          U36           U35          |
 2636    |                                                                                              |
 2637    |                                                                                              | 36
 2638    |  _________              _________   916C471X2PE   _________    _________     _________       |___
 2639    | |  7404N  |            | 74166N  |   .........   | 74161N  |  | 74153N  |   |ULN2003A |       ___|
 2640    | |_________|            |_________|   .........   |_________|  |_________|   |_________|       ___|
 2641    |     U34                    U33          U32          U31          U30           U29           ___|
 2642    |                                   DIP SW x 8                               ________________   ___|
 2643    |               _____________    _______________    _________    _________  |                |  ___|
 2644    |  _________   |             |  |1|2|3|4|5|6|7|8|  | 74161N  |  | 74157N  | |    P8255A-5    |  ___|
 2645    | | 2111A-2 |  |    2716     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 2646    | |_________|  |_____________|         U26             U25          U24            U23          ___|
 2647    |     U28            U27                                                                        ___|
 2648    |                                                                            ________________   ___|
 2649    |                                                                           |                |  ___|
 2650    |  _________        _________       _________       _________    _________  |    D8255AC-5   |  ___|
 2651    | | 2111A-2 |      | 2111A-2 |     | 2111A-2 |     | 74161N  |  | 74157N  | |________________|  ___|
 2652    | |_________|      |_________|     |_________|     |_________|  |_________|        U17          ___|
 2653    |     U22              U21             U20             U19          U18                         ___|
 2654    |                                                                                               ___|
 2655    |  ______________       ________________                                                        ___|
 2656    | |              |     |                |           _________    _________     916C471X2PE      ___|
 2657    | |     2716     |     |   AM8255A PC   |          | 74161N  |  | 74157N  |     .........       ___|
 2658    | |______________|     |________________|          |_________|  |_________|     .........       ___|
 2659    |       U16                   U15                      U14          U13            U12          ___|
 2660    |                                                                                              |
 2661    |  ______________         ____________       _________       _________        _________        | 01
 2662    | |              |       |            |     | 74161N  |     | 7486N   |      |  7404N  |       |
 2663    | |     2716     |       |  i P8228   |     |_________|     |_________|      |_________|       |
 2664    | |______________|       |____________|         U9              U8               U7            |
 2665    |       U11                   U10           XTAL                                               |
 2666    |                                          .----. 18Mhz                                        |
 2667    |  ____________________     __________      _________    _________    _________    _________   |
 2668    | |                    |   |  74155N  |    | i P8224 |  | 74157N  |  |  7411N  |  |  7474N  |  |
 2669    | |     i P8080A       |   |__________|    |_________|  |_________|  |_________|  |_________|  |
 2670    | |____________________|        U5              U4           U3           U2           U1      |
 2671    |           U6                                                                                 |
 2672    |______________________________________________________________________________________________|
 2673  
 2674  
 2675    Draw Poker HI-LO (alt) discrete audio circuitry
 2676    -----------------------------------------------
 2677  
 2678    3x ULN2003A (Darlington transistor array)
 2679    1x NE555P   (Timer)
 2680    1x F 2N4401 (NPN General Purpose Amplifier)
 2681  
 2682    .------.                              .------------.              .-------.
 2683    |  U17 |                              |   NE555P   |              |2N4401 |
 2684    |      |                             4|            |3     R3      |       |
 2685    |   PC7|------------------------------|RST      OUT|-----ZZZZ-----|B     E|-------> Audio Out.
 2686    |   PC6|----------.                  6|            |8             |   C   |
 2687    |   PC5|-----.    |3-in         .-----|THR      VCC|-----------.  '---+---'  .----> Audio Out.
 2688    |   PC4|--.  |  .-+------.      |    5|            |7          |      |      |
 2689    |      |  |  |  |ULN2003A|      |  .--|CVOLT   DISC|--.        |      |      |
 2690    |      |  |  |  '-+------'      |  |  |            |  |        +------'    --+--
 2691    |      |  |  |    |3-out   C1   |  |  |    GND     |  |        |            GND
 2692    | 8255 |  |  |    '--------||---+  |  '-----+------'  |        |             -
 2693    |      |  |  '--.               |  |        |1        |        |             '
 2694    |      |  |     |2-in           |  |        |         |        |
 2695    '------'  |  .--+-----.         |  |   C5   |         |        |
 2696              |  |ULN2003A|         |  '---||---+         |        |   +5V
 2697              |  '--+-----'         |           |         |        |   -+-
 2698              |     |2-out     C2   |      C4   |         |    C6  |    |
 2699              |     '----------||---+------||---+-------. | .--||--+----'
 2700              |2-in                 |           |       | | |      |
 2701            .-+------.              |         --+--      '-'       |
 2702            |ULN2003A|              |          GND        |        |
 2703            '-+------'              |           -         |        |
 2704              |2-out           C3   |     R1    '         |   R2   |
 2705              '----------------||---+----ZZZZ-------------+--ZZZZ--'
 2706  
 2707    R1 = 120 K ; Tolerance +/- 5%
 2708    R2 = 1 K   ; Tolerance +/- 5%
 2709    R3 = 1 K   ; Tolerance +/- 5%
 2710  
 2711    C1 = .01 Z
 2712    C2 = .022 Z
 2713    C3 = 503   ; 50.000 pf = 50 nf = 0.05 uf.
 2714    C4 = .01 Z
 2715    C5 = .01 Z
 2716    C6 = .1 Z
 2717  
 2718    All Capacitors are Ceramic Disc.
 2719  
 2720  */
 2721  
 2722  ROM_START( dphla )
 2723      ROM_REGION( 0x10000, "maincpu", 0 )
 2724      ROM_LOAD( "2b27.u11", 0x0000, 0x0800, CRC(3a7ece95) SHA1(bc7c89e3f490da0723b3a7617ab9a747f8db7ea7) )
 2725      ROM_LOAD( "4d30.u16", 0x0800, 0x0800, CRC(32594684) SHA1(cda1ed09ec30082d23e690058261523e0d34938e) )
 2726  
 2727      ROM_REGION( 0x1000,  "gfx", 0 )
 2728      ROM_FILL(              0x0000, 0x0800, 0xff )
 2729      ROM_LOAD( "char.u27",  0x0800, 0x0800, CRC(174a5eec) SHA1(44d84a0cf29a0bf99674d95084c905d3bb0445ad) )
 2730  ROM_END
 2731  
 2732  /*
 2733  
 2734    Etched on top of board in copper: "MADE IN JAPAN".
 2735    Stickered on top: "Serial No. 10147".
 2736  
 2737    Orange dot sticker dot near pin 1.
 2738    White dot sticker at other end of connector.
 2739  
 2740    .u18    MB8516  read as 2716    stickered   13.
 2741    .u19    MB8516  read as 2716    stickered   11.
 2742    .u12    MB8516  read as 2716    stickered   12.
 2743    .u31    MB8516  read as 2716    stickered   10.
 2744    .u51    6301    read as 82s129
 2745  
 2746    1x 18.000 Crystal
 2747    1x 8080
 2748    3x 8255
 2749    2x 5101
 2750    1x 8228
 2751    2x 2114
 2752    1x 8 DIP Switches bank.
 2753  
 2754    Mini daughterboard attached.
 2755  
 2756  */
 2757  
 2758  ROM_START( dphljp ) /* close to GTI Poker */
 2759      ROM_REGION( 0x10000, "maincpu", 0 )
 2760      ROM_LOAD( "japan_12.u12", 0x0000, 0x0800, CRC(086a2303) SHA1(900c7241c33a38fb1a791b311e50f7d7f43bb955) )
 2761      ROM_RELOAD(               0x0800, 0x0800 )
 2762      ROM_LOAD( "japan_13.u18", 0x1000, 0x0800, CRC(ccaad5cb) SHA1(5f6ca497ccb7c535714a6e24df00f2831a7840c1) )
 2763      ROM_RELOAD(               0x1800, 0x0800 )
 2764      ROM_LOAD( "japan_11.u19", 0x2000, 0x0800, CRC(9f9c67d5) SHA1(cd11849b245406821af7ac3554805c9dd89645b2) )    // ???
 2765  
 2766      ROM_REGION( 0x1000,  "gfx", 0 )
 2767      ROM_FILL(                 0x0000, 0x0800, 0xff )
 2768      ROM_LOAD( "japan_10.u31", 0x0800, 0x0800, CRC(412fc492) SHA1(094ea0ffd0c22274cfe164f07c009ffe022331fd) )
 2769  
 2770      ROM_REGION( 0x0100,  "proms", 0 )
 2771      ROM_LOAD( "japan_6301.u51", 0x0000, 0x0100, CRC(88302127) SHA1(aed1273974917673405f1234ab64e6f8b3856c34) )
 2772  ROM_END
 2773  
 2774  /*
 2775  
 2776    Kimble Double HI-LO (8080).
 2777     ---- Kimble Ireland ----
 2778  
 2779  
 2780    - Older than Noraut stuff...
 2781    - RAM seems at c000-c7ff
 2782  
 2783  
 2784    Hardware Layout (Kimble Double HI-LO 8080):
 2785  
 2786     - CPU:             1x INTEL P8080A
 2787     - RAM:             2x 2114 VIDEO
 2788     - RAM:             1x 6264 PROG: ON EXPANSION BOARD
 2789     - I/O:             3x 8255 Peripeheral Interface Adapter.
 2790     - Prg ROM:         1x 27C256: ON EXPANSION BOARD
 2791     - Gfx ROM:         1x 2716 U27 Eprom
 2792     - Sound:           Discrete.
 2793     - Crystal:         1x 18.432 MHz.
 2794                        1X PAL16R8 ON EXPANSION BOARD
 2795  
 2796    PCB silksceened:
 2797    "SCT 41-88"
 2798    "KIMBLE DOUBLE HI-LO"
 2799    "CARD GAME"
 2800  
 2801    PCB MARKED:"VZY07"
 2802  
 2803    CHAR EPROM LABELED: "QUIZ CHAR II"
 2804    PROG EPROM LABELED: "JPCS25611"
 2805  
 2806  
 2807    Frequency measured = 2.040 MHz.
 2808  
 2809  
 2810    PCB Layout (Kimble Double HI-LO 8080):                                       Edge Connector 36x2
 2811     ______________________________________________________________________________________________
 2812    |                         _________    _________    _____        .........     _________       |
 2813    |                        |74LS174N |  |74LS153N |  |NE555|       .........    |ULN2003A |      |
 2814    |    BATTERY             |_________|  |_________|  |_____|       4116R 471    |_________|      |
 2815    |  3.6V NI-CD                U45          U44        U43            U42          U41           |
 2816    |                                                                                              |
 2817    |                                                                                              |
 2818    |       ______            _________    _________    _________    _________     _________       |
 2819    |      |MC1455|          |74LS157N |  | 74153N  |  | 74161N  |  |  7486N  |   |ULN2003A |      |
 2820    |      |______|          |_________|  |_________|  |_________|  |_________|   |_________|      |
 2821    |        U40                 U39          U38          U37          U36           U35          |
 2822    |                                                                                              |
 2823    |                                                                                              | 36
 2824    |    _________            _________    4116R 471    _________    _________     _________       |___
 2825    |   |  7404N  |          | 74166N  |   .........   | 74161N  |  | 74153N  |   |ULN2003A |       ___|
 2826    |   |_________|          |_________|   .........   |_________|  |_________|   |_________|       ___|
 2827    |       U34                  U33          U32          U31          U30           U29           ___|
 2828    |                                   DIP SW x 8                               ________________   ___|
 2829    |               _____________    _______________    _________    _________  |                |  ___|
 2830    | ***********  |             |  |1|2|3|4|5|6|7|8|  | 74161N  |  | 74157N  | |    D8255AC-5   |  ___|
 2831    | x11 SIL FOR  |    2716     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 2832    |EXPANSION PCB |_____________|         U26             U25          U24            U23          ___|
 2833    |     U28            U27                                                                        ___|
 2834    |                                                                            ________________   ___|
 2835    |                                                                           |                |  ___|
 2836    |                   _________       _________       _________    _________  |    D8255AC-5   |  ___|
 2837    |                  | 2114    |     |  2114   |     | 74161N  |  | 74157N  | |________________|  ___|
 2838    |    NO IC         |_________|     |_________|     |_________|  |_________|        U17          ___|
 2839    |     U22              U21             U20             U19          U18                         ___|
 2840    |                                                                                               ___|
 2841    |                       ________________                                                        ___|
 2842    |                      |                |           _________    _________      4116R 471       ___|
 2843    |                      |   D8255AC-2    |          | 74161N  |  | 74157N  |     .........       ___|
 2844    |     NO IC            |________________|          |_________|  |_________|     .........       ___|
 2845    |      U16                    U15                      U14          U13            U12          ___|
 2846    |                                                                                              |
 2847    | ************            ____________       _________       _________        _________        | 01
 2848    | x24 DIL SOCKET         |            |     | 74161N  |     | 7486N   |      |  7404N  |       |
 2849    | EXPANSION PCB          |  i P8228   |     |_________|     |_________|      |_________|       |
 2850    | ************           |____________|         U9              U8               U7            |
 2851    |       U11                   U10          XTAL                                                |
 2852    |                                         .----. 18.432Mhz                                     |
 2853    |  ____________________     __________      _________    _________    _________    _________   |
 2854    | |                    |   |  74LS32  |    | i P8224 |  | 74157N  |  |  7411N  |  |  7474N  |  |
 2855    | |     i P8080A       |   |__________|    |_________|  |_________|  |_________|  |_________|  |
 2856    | |____________________|        U5              U4           U3           U2           U1      |
 2857    |           U6                                                                                 |
 2858    |______________________________________________________________________________________________|
 2859  
 2860  
 2861    PCB Layout EXPANSION BOARD (Kimble Double HI-LO 8080):
 2862  
 2863    EXPANSION BOARD  silksceened:SCT 34-88
 2864     __________________________________________________________________
 2865    |                                          5             6         |
 2866    |            4 WIRES   ****              NO IC       _________     |
 2867    |          TO MAIN PCB                   14 DIL     |74LS155N |    |
 2868    |                                                   |_________|    |
 2869    |                                                                  |
 2870    |        EXP PIN  ______                  ______                   |
 2871    |          x11   |      |                |      |      *      *    |
 2872    |   ___     *    | 6264 |                | PROG |      * EXP  *    |
 2873    |  | P |    *    |      |                |      |      * PIN  *    |
 2874    |  | A |    *    |      |                |      |      *      *    |
 2875    |  | L |    *    |      |     NO IC      |27256 |      * x24  *    |
 2876    |  | 1 |    *    |      |     28 DIL     |      |      *      *    |
 2877    |  | 6 |    *    |      |                |      |      *      *    |
 2878    |  | R |    *    |      |                |      |      *      *    |
 2879    |  | 8 |    *    |      |                |      |      *      *    |
 2880    |  |   |    *    |      |                |      |      *      *    |
 2881    |  |___|    *    |______|                |______|      *      *    |
 2882    |    1               2          3            4         *      *    |
 2883    |__________________________________________________________________|
 2884  
 2885  
 2886    Discrete Sound System is identical to Kimble z80 hardware.
 2887  
 2888  */
 2889  
 2890  ROM_START( kimbldhl )
 2891      ROM_REGION( 0x10000, "maincpu", 0 ) /* Program ROM is 0000-6e40 */
 2892      ROM_LOAD( "jpc525611.bin", 0x0000, 0x8000, CRC(4a3f1aef) SHA1(570ef733989da6e89f0387f1e80b934cec7a7663) )
 2893  
 2894      ROM_REGION( 0x1000,  "gfx", 0 )
 2895      ROM_FILL(                     0x0000, 0x0800, 0xff )
 2896      ROM_LOAD( "quizcharll.bin", 0x0800, 0x0800, CRC(4edb4717) SHA1(466556595abfbc11e31f2b0d9ca0213bd649253c) )
 2897  ROM_END
 2898  
 2899  /*
 2900  
 2901    Has (c)1983 GTI in the roms, and was called 'Poker.zip'
 2902    GFX roms contain 16x16 tiles of cards.
 2903    Nothing else is known about this set/game.
 2904  
 2905  */
 2906  
 2907  ROM_START( gtipoker )
 2908      ROM_REGION( 0x10000, "maincpu", 0 )
 2909      ROM_LOAD( "u12.rom", 0x0000, 0x1000, CRC(abaa257a) SHA1(f830213ae0aaad5a9a44ec77c5a186e9e02fa041) )
 2910      ROM_LOAD( "u18.rom", 0x1000, 0x1000, CRC(1b7e2877) SHA1(717fb70889804baa468203f20b1e7f73b55cc21e) )
 2911  
 2912      ROM_REGION( 0x1000, "gfx",0 )
 2913      ROM_LOAD( "u31.rom", 0x0000, 0x1000, CRC(2028db2c) SHA1(0f81bb71e88c60df3817f58c28715ce2ea01ad4d) )
 2914  ROM_END
 2915  
 2916  /*
 2917  
 2918    HI-LO Double Up Joker Poker
 2919    SMS Manufacturing Corp., 1983.
 2920    ------------------------------
 2921  
 2922    Almost identical to DPHL.
 2923    Only one different program rom.
 2924    Seems to be patched with 2 extra subroutines.
 2925  
 2926    Hardware Layout (SMS HI-LO Double Up Joker Poker):
 2927  
 2928    - CPU:             1x AMD P8080A
 2929    - RAM:             2x 2111A-2: Static Random Access Memory 256 x 4 bit.
 2930    - RAM:             2x NEC D5101LC-1: 256x4 static CMOS RAM.
 2931    - I/O:             3x 8255: Peripeheral Interface Adapter.
 2932    - Prg ROMs:        2x 2732: U12,U18: Eprom.
 2933    - Gfx ROMs:        1x 2716: U31: Eprom.
 2934    - Sound:           Discrete.
 2935    - Crystal:         1x 18.000 MHz.
 2936    - PROM             1x 82S129: Bipolar PROM: U51.
 2937                       1x 3.6 Vcc Battery.
 2938  
 2939    Frequency on CPU P8080A (pins 15 & 22) = 2.00032 MHz.
 2940  
 2941  
 2942    PCB MARKED:
 2943  
 2944    Solderside:
 2945    PCB silksceened: SMS Manufacturing Corporation.
 2946  
 2947    Component side:
 2948    PCB silksceened: REV 2.
 2949    PCB Engraved: "1350" "10-83".
 2950  
 2951  
 2952    PCB Layout (SMS HI-LO Double Up Joker Poker):                                             Edge Connector 36x2
 2953     ____________________________________________________________________________________________________________
 2954    |  _________                            _________    _________    _____        .........     _________       |
 2955    | |HCF4093BE|         NO IC            | 74174PC |  | 82S129N |  |NE555|       .........    |ULN2003A |      |
 2956    | |_________|                          |_________|  |_________|  |_____|      916C471X2PE   |_________|      |
 2957    |    U54               U53                 U52          U51        U50            U49          U48           |
 2958    | ____________________                                                                                       |
 2959    || 3.6v NI-CD BATTERY |                                                                                      |
 2960    ||____________________|                                                                                      |
 2961    | _________          _________          _________                 _________    _________     _________       |
 2962    ||CD4040BE |        | 74123PC |        | 74157PC |     NO IC     | 74161   |  |  7486   |   |ULN2003A |      |
 2963    ||_________|        |_________|        |_________|               |_________|  |_________|   |_________|      |
 2964    |    U47                U46                U45          U44          U43          U42           U41          |
 2965    |                                                                                                            |
 2966    |                                                                                                            | 36
 2967    | _________       _________             _________   MDP1601 471G  _________                  _________       |___
 2968    ||D5101LC-1|     |  7404   |           |SN74166J |   .........   | 74161N  |     NO IC      |ULN2003A |       ___|
 2969    ||_________|     |_________|           |_________|   .........   |_________|                |_________|       ___|
 2970    |    U40             U39                   U38          U37          U36          U35           U34           ___|
 2971    |                                                                                          ________________   ___|
 2972    |                             _____________    _______________    _________    _________  |                |  ___|
 2973    | _________                  |             |  |1|2|3|4|5|6|7|8|  | 74161   |  | 74157   | |   D8255AC-5    |  ___|
 2974    ||D5101LC-1|       NO IC     |    2716     |  |_|_|_|_|_|_|_|_|  |_________|  |_________| |________________|  ___|
 2975    ||_________|                 |_____________|         U30             U29          U28            U27          ___|
 2976    |    U33            U32            U31            DIP SW x 8                                                  ___|
 2977    |                                                                                          ________________   ___|
 2978    |                                                                                         |                |  ___|
 2979    |                                 _________       _________       _________    _________  |    D8255AC-5   |  ___|
 2980    |   NO IC          NO IC         | 2111A-2 |     | 2111A-2 |     | 74161   |  | 74157   | |________________|  ___|
 2981    |                                |_________|     |_________|     |_________|  |_________|        U20          ___|
 2982    |    U26            U25              U24             U23             U22          U21                         ___|
 2983    |                                                                                                             ___|
 2984    |                ______________       ________________                                                        ___|
 2985    |               |              |     |                |           _________    _________    MDP1601 471G      ___|
 2986    |   NO IC       |     2732     |     |   D8255AC-5    |          | 74161   |  | 74157   |     .........       ___|
 2987    |               |______________|     |________________|          |_________|  |_________|     .........       ___|
 2988    |    U19              U18                   U17                      U16          U15            U14          ___|
 2989    |                                                                                                            |
 2990    |                ______________         ____________       _________       _________        _________        | 01
 2991    | _________     |              |       |            |     | 74161N  |     |  7486   |      |  7404   |       |
 2992    ||74LS 541F|    |     2732     |       | NEC B8228  |     |_________|     |_________|      |_________|       |
 2993    ||_________|    |______________|       |____________|         U10             U9               U8            |
 2994    |    U13              U12                   U11           XTAL                                               |
 2995    |                                                        .----. 18Mhz                                        |
 2996    | _________      ____________________     __________      _________    _________    _________    _________   |
 2997    ||  7405   |    |                    |   | SN74155N |    |UPB 8224 |  | 74157   |  |  7411   |  |  7474   |  |
 2998    ||_________|    |    AMD   P8080A    |   |__________|    |_________|  |_________|  |_________|  |_________|  |
 2999    |    U7         |____________________|        U5              U4           U3           U2           U1      |
 3000    |                        U6                                                                                  |
 3001    |____________________________________________________________________________________________________________|
 3002  
 3003  
 3004  
 3005    SMS HI-LO Double Up Joker Poker discrete audio circuitry:
 3006    --------------------------------------------------------
 3007  
 3008    3x ULN2003A (Darlington transistor array)
 3009    1x NE555P   (Timer)
 3010    1x PN2222   (Transistor)
 3011  
 3012    .------.                              .------------.              .-------.
 3013    |  U17 |                              |   NE555P   |              |PN2222 |
 3014    |      |                             4|            |3     R3      |       |
 3015    |   PC7|------------------------------|RST      OUT|-----ZZZZ-----|B     E|-------> Audio Out.
 3016    |   PC6|----------.                  6|            |8             |   C   |
 3017    |   PC5|-----.    |3-in         .-----|THR      VCC|-----------.  '---+---'  .----> Audio Out.
 3018    |   PC4|--.  |  .-+------.      |    5|            |7          |      |      |
 3019    |      |  |  |  |ULN2003A|      |  .--|CVOLT   DISC|--.        |      |      |
 3020    |      |  |  |  '-+------'      |  |  |            |  |        +------'    --+--
 3021    |      |  |  |    |3-out   C1   |  |  |    GND     |  |        |            GND
 3022    | 8255 |  |  |    '--------||---+  |  '-----+------'  |        |             -
 3023    |      |  |  '--.               |  |        |1        |        |             '
 3024    |      |  |     |2-in           |  |        |         |        |
 3025    '------'  |  .--+-----.         |  |   C5   |         |        |
 3026              |  |ULN2003A|         |  '---||---+         |        |   +5V
 3027              |  '--+-----'         |           |         |        |   -+-
 3028              |     |2-out     C2   |      C4   |         |    C6  |    |
 3029              |     '----------||---+------||---+-------. | .--||--+----'
 3030              |2-in                 |           |       | | |      |
 3031            .-+------.              |         --+--      '-'       |
 3032            |ULN2003A|              |          GND        |        |
 3033            '-+------'              |           -         |        |
 3034              |2-out           C3   |     R1    '         |   R2   |
 3035              '----------------||---+----ZZZZ-------------+--ZZZZ--'
 3036  
 3037    R1 = 120 K ; Tolerance +/- 5%
 3038    R2 = 1 K   ; Tolerance +/- 5%
 3039    R3 = 1 K   ; Tolerance +/- 5%
 3040  
 3041    C1 = 103K = 10000 pF  =  10 nF = 0.01 uF
 3042    C2 = .022 Z
 3043    C3 = .05M
 3044    C4 = .01 Z
 3045    C5 = .01 Z
 3046    C6 = .1 Z
 3047  
 3048    Similar circuitry and component values than DPHL PCB.
 3049  
 3050  */
 3051  
 3052  ROM_START( smshilo )
 3053      ROM_REGION( 0x10000, "maincpu", 0 )
 3054      ROM_LOAD( "u12.bin", 0x0000, 0x1000, CRC(bd9acce8) SHA1(33e7e1805c03a704f9c8785b8e858310bfdc8b10) )
 3055      ROM_LOAD( "u18.bin", 0x1000, 0x1000, CRC(06cf6789) SHA1(587d883c399348b518e3be4d1dc2581824055328) )
 3056  
 3057      ROM_REGION( 0x1000,  "gfx", 0 )
 3058      ROM_FILL(            0x0000, 0x0800, 0xff )
 3059      ROM_LOAD( "u31.bin", 0x0800, 0x0800, CRC(412fc492) SHA1(094ea0ffd0c22274cfe164f07c009ffe022331fd) )
 3060  
 3061      ROM_REGION( 0x0100,  "proms", 0 )
 3062      ROM_LOAD( "u51.bin", 0x0000, 0x0100, CRC(812dc1f1) SHA1(b2af33ff36f2eca2f782bc2239bc9e54c2564f6a) )
 3063  ROM_END
 3064  
 3065  /*
 3066  
 3067    DRHL
 3068    Drews Revenge (poker)
 3069  
 3070    .u26  2732  stickered DRHL V2.89 U-26
 3071    .u19  2732  stickered DRHL V2.89 U-19
 3072    .u12  2732  stickered DRHL V2.89 U-12
 3073    .u18  2732  stickered DRHL V2.89 U-18
 3074    .u31  2732  stickered DRHL V1.0  U 31
 3075    .u51  ampal16l8pc  printed 147-pal
 3076  
 3077    ROM text showed poker text and
 3078    COPYRIGHT 1986 DREWS INC.
 3079    COPYRIGHT 1986 DREW'S DISTRIBUTING INC.
 3080  
 3081  */
 3082  
 3083  ROM_START( drhl )
 3084      ROM_REGION( 0x10000, "maincpu", 0 )
 3085      ROM_LOAD( "drhl_v2.89.u12", 0x0000, 0x1000, CRC(a0f63638) SHA1(e8046b4042ca1e203d831de70da2bf940b2094a0) )
 3086      ROM_LOAD( "drhl_v2.89.u18", 0x1000, 0x1000, CRC(f3590633) SHA1(bb4a186d13b24ffd22e291c8d6c67f5012aa8001) )
 3087      ROM_LOAD( "drhl_v2.89.u19", 0x2000, 0x1000, CRC(8abd7f40) SHA1(e8e489c670a17d4c48491b94bad1976cbb4742eb) )
 3088      ROM_LOAD( "drhl_v2.89.u26", 0x3000, 0x1000, CRC(44ae3cdc) SHA1(51090c737873b652ba95435d553fb88fac730892) )
 3089  
 3090      ROM_REGION( 0x1000,  "gfx", 0 )
 3091      ROM_LOAD( "drhl_v1.0.u31",  0x0000, 0x1000, CRC(bbc7c970) SHA1(9268a430764a5ea8ba7cd18944ec254a44d9dff2) )
 3092  
 3093      ROM_REGION( 0x0200,  "plds", 0 )    /* possible bad dump. fusemap's 1st half is all 1's and 2nd half 0's */
 3094      ROM_LOAD( "drhl_ampal16l8pc.u51",  0x0000, 0x0104, CRC(bd76fb53) SHA1(2d0634e8edb3289a103719466465e9777606086e) )
 3095  ROM_END
 3096  
 3097  ROM_START( drhla )
 3098      ROM_REGION( 0x10000, "maincpu", 0 )
 3099      ROM_LOAD( "dspd_j_v.2.89.u12", 0x0000, 0x1000, CRC(8ac3bcfa) SHA1(9cc7c4529e18e4b3f7dabd65388604631bda2cc4) )
 3100      ROM_LOAD( "dspd_j_v.2.89.u18", 0x1000, 0x1000, CRC(79b4c7af) SHA1(76abe5def47aaca17e5ec40f50841a12a1d8773b) )
 3101      ROM_LOAD( "dspd_j_v.2.89.u19", 0x2000, 0x1000, CRC(6cce9025) SHA1(57d2e22df5be96082c13a3c1bcd1bc11849a6997) )
 3102      ROM_LOAD( "dspd_j_v.2.89.u26", 0x3000, 0x1000, CRC(85be4d99) SHA1(96f067a5a3db6415929e71f3cf3c39614187ccec) )
 3103  
 3104      ROM_REGION( 0x1000,  "gfx", 0 )
 3105      ROM_LOAD( "drews.u31",  0x0000, 0x1000, CRC(bbc7c970) SHA1(9268a430764a5ea8ba7cd18944ec254a44d9dff2) )
 3106  
 3107      ROM_REGION( 0x0800,  "dallas", 0 )  /* it's in fact NVRAM, but double sized... */
 3108      ROM_LOAD( "ds1220ab.u33",  0x0000, 0x0800, CRC(f357d314) SHA1(72791b2effd3ec2e98b735c9b215fc9abe3f5aea) )
 3109  
 3110      ROM_REGION( 0x0200,  "plds", 0 )    /* this one is unprotected and seems ok */
 3111      ROM_LOAD( "pal16l8a.u51",  0x0000, 0x0104, CRC(4c98193f) SHA1(b6bdb6eef0d962a3aa4df0e23a8937a7e3210062) )
 3112  ROM_END
 3113  
 3114  
 3115  /*
 3116  
 3117    Turbo Poker 2 by Micro MFG.
 3118    ---------------------------
 3119  
 3120    Hardware Layout (Turbo Poker 2 by Micro MFG):
 3121  
 3122    - CPU:             1x NEC D8080AFC-1 (U42).
 3123    - BUS:             1x 8224 (U43)
 3124    - RAM:             2x 2111-1 Static Random Access Memory 256 x 4 bit (U33 & U34).
 3125    - I/O:             3x Intel P8255A Peripeheral Interface Adapter (U31, U36 & U38).
 3126    - Prg ROMs:        1x 27256 (U39).
 3127    - Gfx ROMs:        1x 2732 (U30).
 3128    - Sound:           Discrete.
 3129    - Crystal:         1x 18.000 MHz.
 3130  
 3131    - MCU:             1x Custom, based on 68705.
 3132  
 3133  
 3134    Etched in copper on board:    TP2
 3135  
 3136    .U30  2732a    ; stickered  (c) 1993 MICRO MFG TURBO POKER CHAR, ROM.
 3137  
 3138    .U35  unknown  ; stickered  (c) 1993 MICRO MFG TP2#01 U35\IC4 16228 022194.
 3139  
 3140     Continuity errors when trying to read as a standard eprom.
 3141     Silkscreened below the chip 'CUSTOM I.C.'. Looks like a normal EPROM.
 3142     * (from other board that match 100% the set, it's a custom 68705 MCU)
 3143  
 3144    .U39  27256    ; stickered  (c) 1993 MICRO MFG TURBO-2 U39-014 US UTBK 022190.
 3145  
 3146    .U38  8255     ; stickered  MICRO MANUFACTURING, INC.  DATE: 02-24-1994  SER# LKY-PCB-142728.
 3147  
 3148    .U37  MMI PAL12L6-2  ; Blue dot on it. Saved in Jedec format.
 3149  
 3150    .U44  DS1220AD-150   ; Dallas 2K x 8 CMOS nonvolatile SRAM.
 3151  
 3152    .U23  82S131         ; Bipolar PROM.
 3153  
 3154  
 3155  
 3156          27256 @U39                               Estimated U35 pinouts
 3157  
 3158         .----------.                                   .----------.
 3159    VPP -|01      28|- VCC                         GND -|01      28|- Pin 10 of U14 (7404)
 3160    A12 -|02      27|- A14                         VCC -|02      27|- A7
 3161     A7 -|03      26|- A13                         VCC -|03      26|- A6
 3162     A6 -|04      25|- A8                          N/C -|04      25|- A5
 3163     A5 -|05      24|- A9            Pull-up to pin 02 -|05      24|- A4
 3164     A4 -|06      23|- A11                         VCC -|06      23|- A3
 3165     A3 -|07      22|- /OE                         N/C -|07      22|- A2
 3166     A2 -|08      21|- A10            Pin 9 of U37 PAL -|08      21|- A1
 3167     A1 -|09      20|- /CE            Pin 8 of U37 PAL -|09      20|- A0
 3168     A0 -|10      19|- D7         Pin 24 of U42 (8080) -|10      19|- D7
 3169     D0 -|11      18|- D6             Pin 7 of U37 PAL -|11      18|- D6
 3170     D1 -|12      17|- D5                           D0 -|12      17|- D5
 3171     D2 -|13      16|- D4                           D1 -|13      16|- D4
 3172    GND -|14      15|- D3                           D2 -|14      15|- D3
 3173         '----------'                                   '----------'
 3174  
 3175  
 3176    PCB Layout (Turbo Poker 2 by Micro MFG):                                         Edge Connector 36x2
 3177     ___________________________________________________________________________________________________
 3178    |  _________    _________    _________    _________    _________       _____      ________     _    |
 3179    | | 74LS161 |  | 74LS161 |  | 74LS161 |  | 74LS161 |  | 74LS161 |     | 555 |    | KA2657 |  /   \  |
 3180    | |_________|  |_________|  |_________|  |_________|  |_________|     |_____|    |________! | VR1 | |
 3181    |     U1           U2           U3           U4           U5            U6           U7      \ _ /  |
 3182    |                                                                                                   |
 3183    |  _________    _________    _________    _________    _________                  ________          |
 3184    | | 74LS161 |  | 74LS157 |  | 74LS157 |  | 74LS157 |  | 74LS157 |                | KA2657 |         |
 3185    | |_________|  |_________|  |_________|  |_________|  |_________|                |________!         |
 3186    |     U8           U9           U10          U11          U12                       U13             |
 3187    |                                                                                                   |
 3188    |  _________    _________    _________    _________    _________     _________    ________          | 36
 3189    | | 74LS04P |  | 74LS11N |  | 74LS04P |  | DV7486N |  | DV7486N |   | CTS8427 |  | KA2657 |         |___
 3190    | |_________|  |_________|  |_________|  |_________|  |_________|   |_________|  |________!          ___|
 3191    |     U14          U15          U16          U17          U18       U19 (resnet)    U20              ___|
 3192    |                                                                                                    ___|
 3193    |  _________    _________    _________       _________________       _________    _______________    ___|
 3194    | |  74123  |  | 74LS174 |  | 82S131N |     | 74LS541 (R dot) |     | CTS8427 |  |1|2|3|4|5|6|7|8|   ___|
 3195    | |_________|  |_________|  |_________|     |_________________|     |_________|  |_|_|_|_|_|_|_|_|   ___|
 3196    |     U21          U22          U23                 U24             U25 (resnet)  U26 (DIP SW x 8)   ___|
 3197    |                                                                                                    ___|
 3198    |  _________    _________    _________       __________________        ________________________      ___|
 3199    | |  7474N  |  | 74LS157 |  | 74LS166 |     |                  |      |                        |     ___|
 3200    | |_________|  |_________|  |_________|     | 2732A (char ROM) |      |     Intel  P8255A      |     ___|
 3201    |     U27          U28          U29         |__________________|      |________________________|     ___|
 3202    |                                                   U30                          U31                 ___|
 3203    |  _________    __________   __________      ____________________      ________________________      ___|
 3204    | |  7474N  |  | SY2111-1 | | SY2111-1 |    | Unknown custom MCU |    |                        |     ___|
 3205    | |_________|  |__________| |__________|    |   (68705 based)    |    |     Intel  P8255A      |     ___|
 3206    |     U32          U33          U34         |____________________|    |________________________|     ___|
 3207    |                                                    U35                         U36                 ___|
 3208    |  _______________   ____________________    ____________________                                    ___|
 3209    | |PAL12L6 (B dot)| |                    |  |                    |                                   ___|
 3210    | |_______________| |  8255 (stickered)  |  |     27256 ROM      |                                  |
 3211    |       U37         |____________________|  |____________________|                  __________      | 01
 3212    |                           U38                    U39                             | TRW 8022 |     |
 3213    |  ____________     _____________________    ____________________                  |__________|     |
 3214    | | Intel 8224 |   |                     |  |                    |                     U45          |
 3215    | |____________|   |   NEC  D8080AFC-1   |  |   8224 Clock GEN   |     ___________________          |
 3216    |      U41         |_____________________|  |____________________|    |  Dallas DS1220AD  |         |
 3217    |  ______                   U42                    U43                | Non Volatile SRAM |         |
 3218    | | Xtal |                                                            |___________________|         |
 3219    | | 18MHz|                                                                     U44                  |
 3220    | |______|                                                                                          |
 3221    |___________________________________________________________________________________________________|
 3222  
 3223  
 3224    Discrete sound circuitry:
 3225    -------------------------
 3226                             ___ ___
 3227    GND --------------------|1  U  8|-----VCC
 3228                      N/C---|2     7|------------------------------------|---|1K Ohm|--- VCC
 3229    Volume Pot -------------|3 555 6|--------------------|--|100K Ohm|---|
 3230    Pin 10 U36 (8255)-------|4     5|---|0.1uF|---GND    |
 3231                            |_______|                    |-|0.01uF|---- GND
 3232                                                         |-|0.01uF|---- pin 12 U13 (KA2667)
 3233                                                         |-|0.022uF|--- pin 11 U13 (KA2667)
 3234                                                         |-|0.05uF|---- pin 10 U13 (KA2667)
 3235    DIP Switches:
 3236  
 3237    DIP #1: SETUP      ON/OFF         ;"setup menu to change all the settings"
 3238    DIP #2: RAISE      ON/OFF
 3239    DIP #3: XCARDS     ON/OFF
 3240    DIP #4: REPLAYS    ON/OFF
 3241    DIP #5: BONUS      ON/OFF
 3242    DIP #6: COIN TYPE  QUARTER/NICKEL
 3243    DIP #7: HISCORE    ON/OFF         ;game saves high scores
 3244    DIP #8: NOT USED
 3245  
 3246  */
 3247  
 3248  ROM_START( tpoker2 )
 3249      ROM_REGION( 0x10000, "maincpu", 0 )
 3250      ROM_LOAD( "tp2.u39", 0x0000, 0x8000, CRC(543149fe) SHA1(beb61a27c2797341e23e020e754d63fde3b4fbb2) )
 3251  
 3252      ROM_REGION( 0x0800,  "mcu", 0 ) /* 68705 */
 3253      ROM_LOAD( "tp2.u35", 0x0000, 0x0800, NO_DUMP )
 3254  
 3255      ROM_REGION( 0x1000,  "gfx", 0 )
 3256      ROM_LOAD( "tp2.u30", 0x0000, 0x1000, CRC(6df86e08) SHA1(a451f71db7b59500b99207234ef95793afc11f03) )
 3257  
 3258      ROM_REGION( 0x0800,  "other", 0 )
 3259      ROM_LOAD( "tp2.u44", 0x0000, 0x0800, CRC(6b5453b7) SHA1(6793952800de067fd76b889f4f7c62c8474b8c3a) )
 3260  
 3261      ROM_REGION( 0x0400,  "proms", 0 )
 3262      ROM_LOAD( "tp2.u23", 0x0000, 0x0400, CRC(0222124f) SHA1(5cd8d24ee8e6525a5f9e6a93fa8854f36f4319ee) )
 3263  
 3264      ROM_REGION( 0x0034,  "plds", 0 )
 3265      ROM_LOAD( "tp2_pld.u37",  0x0000, 0x0034, CRC(25651948) SHA1(62cd4d73c6ca8ea5d4beb9ae262d1383f8149462) )
 3266  ROM_END
 3267  
 3268  
 3269  /*
 3270  
 3271    Southern Systems Joker Poker
 3272    ----------------------------
 3273  
 3274    .u11  2723
 3275    .u10  2732
 3276    .u27  2716  couldn't get a good read
 3277  
 3278    8255 x3
 3279    8080A
 3280    unknown 28 ping chip @ u10
 3281    open 16 pin socketa @ u41
 3282    18.000 crystal
 3283  
 3284  
 3285  
 3286    $1fdf = call $0a0c --> draw 'bet' screen sector.
 3287    $1fe2 = call $09ee --> draw 'credit' screen sector.
 3288  
 3289  */
 3290  
 3291  ROM_START( ssjkrpkr )
 3292      ROM_REGION( 0x10000, "maincpu", 0 ) /* Southern Systems */
 3293      ROM_LOAD( "oc.u11", 0x0000, 0x1000, CRC(b9072aa5) SHA1(bfa3df090e1030aaebbb784cb5e686f4f84f2263) )
 3294      ROM_LOAD( "oc.u10", 0x1000, 0x1000, CRC(8652ebb9) SHA1(e907df4f8da99b42c425ed58da3cda9943c89fb7) )
 3295  
 3296      /* All garbage inside. Replaced with generic GFX ROM from DPHLA set, modified to support the "'" char */
 3297      ROM_REGION( 0x1000,  "gfx", 0 )
 3298      ROM_FILL(           0x0000, 0x0800, 0xff )
 3299      ROM_LOAD( "oc.u27", 0x0800, 0x0800, BAD_DUMP CRC(ac8e9f2c) SHA1(25ab615de3055e5be78d409194edf7e3c03fe9b9) )
 3300  ROM_END
 3301  
 3302  
 3303  /************************** Unknown Sets ****************************/
 3304  
 3305  /*
 3306  
 3307    Fast Draw (Stern Electronics)?
 3308  
 3309    Text font is different to other similar games.
 3310  
 3311    The set was found as 'fastdraw'. No other info.
 3312    Maybe is the poker conversion kit released by Stern as 'Fast Draw':
 3313  
 3314    http://www.arcadeflyers.com/?page=thumbs&db=videodb&id=4602
 3315  
 3316  */
 3317  
 3318  ROM_START( fastdrwp )
 3319      ROM_REGION( 0x10000, "maincpu", 0 ) /* PC=0x068b for error screen */
 3320      ROM_LOAD( "u12.bin", 0x0000, 0x1000, CRC(d020d7d3) SHA1(4808ef14adf230e3971161c9375f2b354cd9d519) )
 3321      ROM_LOAD( "u18.bin", 0x1000, 0x1000, CRC(03de6413) SHA1(c61131244e8095b998c5e31724a21496cacad247) )
 3322  
 3323      ROM_REGION( 0x1000,  "gfx", 0 )
 3324      ROM_FILL(            0x0000, 0x0800, 0xff )
 3325      ROM_LOAD( "u31.bin", 0x0800, 0x0800, CRC(6dd3a5b5) SHA1(e7978267ef8af31e65e6f278aebe82347bd5ffdd) )
 3326  
 3327      ROM_REGION( 0x0100,  "proms", 0 )
 3328      ROM_LOAD( "u51_bpr.bin",  0x0000, 0x0100, CRC(812dc1f1) SHA1(b2af33ff36f2eca2f782bc2239bc9e54c2564f6a) )
 3329  ROM_END
 3330  
 3331  /*
 3332  
 3333    Unknown DPHL rev 1.
 3334  
 3335    No extra info inside the zip. Just ROM dumps...
 3336    Maybe from SMS Manufacturing, since there are GFX tiles with the SMS logo.
 3337  
 3338  */
 3339  
 3340  ROM_START( dphlunka )
 3341      ROM_REGION( 0x10000, "maincpu", 0 ) /* no stack, call's RET go to PC=0 */
 3342      ROM_LOAD( "u-12_ss.u12", 0x0000, 0x1000, CRC(10ddbc16) SHA1(ab683d836c9223bc67701e092c2cb95afc0f0fa2) )
 3343      ROM_LOAD( "u-18_ss.u18", 0x1000, 0x1000, CRC(ffbac2bf) SHA1(219247624e0eb0c0c805f5f9a96c4b6b60c9c5ac) )
 3344  
 3345      ROM_REGION( 0x1000,  "gfx", 0 )
 3346      ROM_LOAD( "u-31_ss.u31", 0x0000, 0x1000, CRC(7afa583e) SHA1(e897c6dbcc5452fdb99894203131886a529eed37) )
 3347  
 3348      ROM_REGION( 0x0200,  "proms", 0 )
 3349      ROM_LOAD( "n82s129n_1",  0x0000, 0x0100, CRC(812dc1f1) SHA1(b2af33ff36f2eca2f782bc2239bc9e54c2564f6a) )
 3350      ROM_LOAD( "n82s129n_2",  0x0100, 0x0100, CRC(ee452994) SHA1(315913ce4a92fe0ea7b76e862507c933d6104616) )
 3351  ROM_END
 3352  
 3353  /*
 3354  
 3355    Unknown DPHL rev 2.
 3356  
 3357    No extra info inside the zip. Just ROM dumps...
 3358    Maybe from SMS Manufacturing, since there are GFX tiles with the SMS logo.
 3359  
 3360  */
 3361  
 3362  ROM_START( dphlunkb )
 3363      ROM_REGION( 0x10000, "maincpu", 0 ) /* PC=0x068b for error screen */
 3364      ROM_LOAD( "u-12_rev-2.u12", 0x0000, 0x1000, CRC(1b1d8ca4) SHA1(405bf8a56dfc669a0890b0af9417c1ed6a3bf374) )
 3365      ROM_LOAD( "u-18_rev-2.u18", 0x1000, 0x1000, CRC(22dbe0c7) SHA1(ca223074b0f4b86e60a1b91c22568680845ae17e) )
 3366  
 3367      ROM_REGION( 0x1000,  "gfx", 0 )
 3368      ROM_LOAD( "u-31_ss.u31", 0x0000, 0x1000, CRC(7afa583e) SHA1(e897c6dbcc5452fdb99894203131886a529eed37) )
 3369  
 3370      ROM_REGION( 0x0200,  "proms", 0 )
 3371      ROM_LOAD( "n82s129n_1",  0x0000, 0x0100, CRC(812dc1f1) SHA1(b2af33ff36f2eca2f782bc2239bc9e54c2564f6a) )
 3372      ROM_LOAD( "n82s129n_2",  0x0100, 0x0100, CRC(ee452994) SHA1(315913ce4a92fe0ea7b76e862507c933d6104616) )
 3373  ROM_END
 3374  
 3375  
 3376  
 3377  /**************************
 3378  *       Driver Init       *
 3379  **************************/
 3380  
 3381  /* These are to patch the check for /OBF handshake line,
 3382     that seems to be wrong. Otherwise will enter in an infinite loop.
 3383  
 3384    110D: DB C2      in   a,($C2)  ; read from PPI-2, portC. (OBF should be set, but isn't)
 3385    110F: 07         rlca          ; rotate left.
 3386    1110: 30 FB      jr   nc,$110D
 3387  
 3388    This routine is to shift the handshaked lines, transferring the status
 3389    from /ACK (bit 6) to /OBF (bit 7).
 3390  
 3391  */
 3392  //static DRIVER_INIT( norautrh )
 3393  //{
 3394  //  UINT8 *ROM = machine.root_device().memregion("maincpu")->base();
 3395  //  ROM[0x1110] = 0x00;
 3396  //  ROM[0x1111] = 0x00;
 3397  //}
 3398  
 3399  //static DRIVER_INIT( norautpn )
 3400  //{
 3401  //  UINT8 *ROM = machine.root_device().memregion("maincpu")->base();
 3402  //  ROM[0x0827] = 0x00;
 3403  //  ROM[0x0828] = 0x00;
 3404  //}
 3405  
 3406  //static DRIVER_INIT( norautu )
 3407  //{
 3408  //  UINT8 *ROM = machine.root_device().memregion("maincpu")->base();
 3409  //  ROM[0x083c] = 0x00;
 3410  //  ROM[0x083d] = 0x00;
 3411  //  ROM[0x083e] = 0x00;
 3412  //}
 3413  
 3414  //static DRIVER_INIT( gtipoker )
 3415  //{
 3416  //  UINT8 *ROM = machine.root_device().memregion("maincpu")->base();
 3417  //  ROM[0x0cc6] = 0x00;
 3418  //  ROM[0x0cc7] = 0x00;
 3419  //  ROM[0x0cc8] = 0x00;
 3420  //  ROM[0x10a5] = 0x00;
 3421  //  ROM[0x10a6] = 0x00;
 3422  //  ROM[0x10a7] = 0x00;
 3423  //}
 3424  
 3425  //static DRIVER_INIT( dphl )
 3426  //{
 3427  //  UINT8 *ROM = machine.root_device().memregion("maincpu")->base();
 3428  //  ROM[0x1510] = 0x00;
 3429  //  ROM[0x1511] = 0x00;
 3430  //  ROM[0x1512] = 0x00;
 3431  //}
 3432  
 3433  //static DRIVER_INIT( dphla )
 3434  //{
 3435  //  UINT8 *ROM = machine.root_device().memregion("maincpu")->base();
 3436  //  ROM[0x0b09] = 0x00;
 3437  //  ROM[0x0b0a] = 0x00;
 3438  //  ROM[0x0b0b] = 0x00;
 3439  //}
 3440  
 3441  DRIVER_INIT_MEMBER(norautp_state,enc)
 3442  {
 3443  /* Attempt to decrypt the program ROM */
 3444  
 3445  //  UINT8 *rom = machine().root_device().memregion("maincpu")->base();
 3446  //  UINT8 *buffer;
 3447  //  int size = 0x2000; //machine().root_device().memregion("maincpu")->bytes();
 3448  //  int start = 0;
 3449  //  int i;
 3450  
 3451  
 3452  //  for (i = start; i < size; i++)
 3453  //  {
 3454  //      rom[i] = rom[i] ^ 0x09 ^ 0xff;
 3455  //      rom[i+1] = rom[i+1] ^ 0xfb ^ 0xff;
 3456  //      rom[i+2] = rom[i+2] ^ 0xb2 ^ 0xff;
 3457  //      rom[i+3] = rom[i+3] ^ 0x60 ^ 0xff;
 3458  //      rom[i+4] = rom[i+4] ^ 0xce ^ 0xff;
 3459  //      rom[i+5] = rom[i+5] ^ 0x44 ^ 0xff;
 3460  //      rom[i+6] = rom[i+6] ^ 0x6e ^ 0xff;
 3461  //      rom[i+7] = rom[i+7] ^ 0x61 ^ 0xff;
 3462  //      rom[i+8] = rom[i+8] ^ 0x37 ^ 0xff;
 3463  //      rom[i+9] = rom[i+9] ^ 0x5e ^ 0xff;
 3464  //      rom[i+10] = rom[i+10] ^ 0xfb ^ 0xff;
 3465  //      rom[i+11] = rom[i+11] ^ 0xc6 ^ 0xff;
 3466  //      rom[i+12] = rom[i+12] ^ 0x1d ^ 0xff;
 3467  //      rom[i+13] = rom[i+13] ^ 0x33 ^ 0xff;
 3468  //      rom[i+14] = rom[i+14] ^ 0x00 ^ 0xff;
 3469  //      rom[i+15] = rom[i+15] ^ 0xff ^ 0xff;
 3470  
 3471  //      i = i + 16;
 3472  //  }
 3473  
 3474  //  buffer = alloc_array_or_die(UINT8, size);
 3475  //  memcpy(buffer, rom, size);
 3476  
 3477  //  free(buffer);
 3478  }
 3479  
 3480  DRIVER_INIT_MEMBER(norautp_state,deb)
 3481  /* Just for debugging purposes */
 3482  /*   Should be removed soon    */
 3483  {
 3484      UINT8 *ROM = machine().root_device().memregion("maincpu")->base();
 3485      ROM[0x02f7] = 0xca;
 3486      ROM[0x02f8] = 0x18;
 3487      ROM[0x206c] = 0xff;
 3488  }
 3489  
 3490  DRIVER_INIT_MEMBER(norautp_state,ssa)
 3491  /* Passing the video PPI handshaking lines */
 3492  /* Just for debugging purposes */
 3493  {
 3494  //  UINT8 *ROM = machine().root_device().memregion("maincpu")->base();
 3495  
 3496  //  ROM[0x073b] = 0x00;
 3497  //  ROM[0x073c] = 0x00;
 3498  //  ROM[0x073d] = 0x00;
 3499  
 3500  //  ROM[0x07af] = 0x00;
 3501  //  ROM[0x07b0] = 0x00;
 3502  //  ROM[0x07b1] = 0x00;
 3503  }
 3504  
 3505  
 3506  /*************************
 3507  *      Game Drivers      *
 3508  *************************/
 3509  
 3510  /************************************** Z80 sets **************************************/
 3511  /*  The following ones are 'Draw Poker HI-LO' type, running in a Z80 based hardware   */
 3512  /**************************************************************************************/
 3513  
 3514  /*     YEAR  NAME      PARENT   MACHINE   INPUT     INIT ROT    COMPANY                     FULLNAME                              FLAGS             LAYOUT */
 3515  
 3516  GAMEL( 1988, norautp,  0,       norautp,  norautp, driver_device,  0,   ROT0, "Noraut Ltd.",              "Noraut Poker",                        0,                layout_noraut11 )
 3517  GAMEL( 198?, norautdx, 0,       norautp,  norautpn, driver_device, 0,   ROT0, "Noraut Ltd.",              "Noraut Deluxe Poker (console)",       0,                layout_noraut12 )
 3518  GAMEL( 198?, norautpn, norautp, norautp,  norautpn, driver_device, 0,   ROT0, "bootleg",                  "Noraut Deluxe Poker (bootleg)",       0,                layout_noraut12 )
 3519  GAMEL( 198?, norautjo, 0,       norautp,  mainline, driver_device, 0,   ROT0, "Noraut Ltd.",              "Noraut Joker Poker (original)",       0,                layout_noraut12 )
 3520  GAMEL( 198?, norautpl, 0,       norautpl, mainline, driver_device, 0,   ROT0, "Video Fun Games Ltd.",     "Noraut Joker Poker (Prologic HW)",    0,                layout_noraut12 )
 3521  GAMEL( 1988, norautjp, norautp, norautp,  norautp, driver_device,  0,   ROT0, "Noraut Ltd.",              "Noraut Joker Poker (alt)",            0,                layout_noraut11 )
 3522  GAMEL( 1988, norautrh, 0,       norautp,  norautrh, driver_device, 0,   ROT0, "Noraut Ltd.",              "Noraut Red Hot Joker Poker",          0,                layout_noraut12 )
 3523  GAMEL( 198?, norautra, 0,       norautp,  norautrh, driver_device, 0,   ROT0, "Noraut Ltd.",              "Noraut Red Hot Joker Poker (alt HW)", 0,                layout_noraut12 ) // 1-bet?? where??...
 3524  GAME(  1988, norautu,  0,       norautxp, norautp, driver_device,  0,   ROT0, "Noraut Ltd.",              "Noraut Poker (NTX10A)",               GAME_NOT_WORKING )
 3525  GAME(  2002, noraut3a, 0,       norautxp, norautp, driver_device,  0,   ROT0, "Noraut Ltd.",              "Noraut Joker Poker (V3.010a)",        GAME_NOT_WORKING )
 3526  GAME(  2003, noraut3b, 0,       norautxp, norautp, driver_device,  0,   ROT0, "Noraut Ltd.",              "Noraut Joker Poker (V3.011a)",        GAME_NOT_WORKING )
 3527  GAMEL( 198?, norautua, 0,       norautp,  norautp, norautp_state,  enc, ROT0, "Noraut Ltd.",              "Noraut unknown set 1 (console)",      GAME_NOT_WORKING, layout_noraut12 )
 3528  GAMEL( 198?, norautub, 0,       norautp,  norautp, norautp_state,  enc, ROT0, "Noraut Ltd.",              "Noraut unknown set 2 (console)",      GAME_NOT_WORKING, layout_noraut12 )
 3529  GAMEL( 198?, mainline, 0,       norautp,  mainline, driver_device, 0,   ROT0, "Mainline London",          "Mainline Double Joker Poker",         0,                layout_noraut12 )
 3530  GAMEL( 199?, df_djpkr, 0,       norautp,  mainline, driver_device, 0,   ROT0, "DellFern Ltd.",            "Double Joker Poker (45%-75% payout)", 0,                layout_noraut12 )
 3531  GAMEL( 2005, ndxron10, 0,       norautp,  ndxron10, driver_device, 0,   ROT0, "<unknown>",                "Royal on Ten (Noraut Deluxe hack)",   0,                layout_noraut12 )
 3532  GAMEL( 1999, cgip30cs, 0,       norautx4, norautkl, norautp_state, deb, ROT0, "CGI",                      "Credit Poker (ver.30c, standard)",    0,                layout_noraut12 )
 3533  GAME(  198?, kimblz80, 0,       kimble,   norautp, driver_device,  0,   ROT0, "Kimble Ireland",           "Kimble Double HI-LO (z80 version)",   GAME_NOT_WORKING )
 3534  GAME(  1983, pma,      0,       nortest1, norautp, driver_device,  0,   ROT0, "PMA",                      "PMA Poker",                           GAME_NOT_WORKING )
 3535  GAMEL( 198?, bjpoker,  0,       norautxp, norautrh, driver_device, 0,   ROT0, "M.Kramer Manufacturing.",  "Poker / Black Jack (Model 7521)",     GAME_NOT_WORKING, layout_noraut12 )
 3536  GAME(  19??, newhilop, 0,       newhilop, norautp, driver_device,  0,   ROT0, "Song Won?",                "New Hi-Low Poker",                    GAME_NOT_WORKING )
 3537  
 3538  
 3539  /************************************* 8080 sets **************************************/
 3540  /*  The following ones are 'Draw Poker HI-LO' type, running in a 8080 based hardware  */
 3541  /**************************************************************************************/
 3542  
 3543  /*     YEAR  NAME      PARENT   MACHINE   INPUT     INIT ROT    COMPANY                        FULLNAME                           FLAGS             LAYOUT */
 3544  
 3545  GAME(  1983, dphl,     0,       dphl,     norautp, driver_device,  0,   ROT0, "M.Kramer Manufacturing.",     "Draw Poker HI-LO (M.Kramer)",      GAME_NOT_WORKING )
 3546  GAME(  1983, dphla,    0,       dphla,    norautp, driver_device,  0,   ROT0, "<unknown>",                   "Draw Poker HI-LO (Alt)",           GAME_NOT_WORKING )
 3547  GAME(  1983, dphljp,   0,       dphl,     norautp, driver_device,  0,   ROT0, "<unknown>",                   "Draw Poker HI-LO (Japanese)",      GAME_NOT_WORKING )
 3548  GAME(  198?, kimbldhl, 0,       kimbldhl, norautp, driver_device,  0,   ROT0, "Kimble Ireland",              "Kimble Double HI-LO",              GAME_NOT_WORKING )
 3549  GAME(  1983, gtipoker, 0,       dphl,     norautp, driver_device,  0,   ROT0, "GTI Inc",                     "GTI Poker",                        GAME_NOT_WORKING )
 3550  GAME(  1983, smshilo,  0,       dphla,    norautp, driver_device,  0,   ROT0, "SMS Manufacturing Corp.",     "HI-LO Double Up Joker Poker",      GAME_NOT_WORKING )
 3551  GAME(  1986, drhl,     0,       drhl,     norautp, driver_device,  0,   ROT0, "Drews Inc.",                  "Drews Revenge (v.2.89, set 1)",    GAME_NOT_WORKING )
 3552  GAME(  1986, drhla,    0,       drhl,     norautp, driver_device,  0,   ROT0, "Drews Inc.",                  "Drews Revenge (v.2.89, set 2)",    GAME_NOT_WORKING )
 3553  GAME(  1982, ssjkrpkr, 0,       ssjkrpkr, norautp, norautp_state,  ssa, ROT0, "Southern Systems & Assembly", "Southern Systems Joker Poker",     GAME_NOT_WORKING )
 3554  
 3555  /* The following one also has a custom 68705 MCU */
 3556  GAME(  1993, tpoker2,  0,       dphltest, norautp, driver_device,  0,   ROT0, "Micro Manufacturing",         "Turbo Poker 2",                    GAME_NOT_WORKING )
 3557  
 3558  
 3559  /************************************ unknown sets ************************************/
 3560  /* The following ones are still unknown. No info about name, CPU, manufacturer, or HW */
 3561  /**************************************************************************************/
 3562  
 3563  /*     YEAR  NAME      PARENT   MACHINE   INPUT     INIT ROT    COMPANY                     FULLNAME                              FLAGS             LAYOUT */
 3564  
 3565  GAME(  198?, fastdrwp, 0,       dphl,     norautp, driver_device,  0,   ROT0, "Stern Electronics?",       "Fast Draw (poker conversion kit)?",   GAME_NOT_WORKING )
 3566  GAME(  198?, dphlunka, 0,       dphl,     norautp, driver_device,  0,   ROT0, "SMS Manufacturing Corp.",  "Draw Poker HI-LO (unknown, rev 1)",   GAME_NOT_WORKING )
 3567  GAME(  198?, dphlunkb, 0,       dphl,     norautp, driver_device,  0,   ROT0, "SMS Manufacturing Corp.",  "Draw Poker HI-LO (unknown, rev 2)",   GAME_NOT_WORKING )