Previous 199869 Revisions Next

r36436 Sunday 15th March, 2015 at 22:16:06 UTC by Luca Elia
New clones added
----------------
Mahjong Electromagnetic Base [Dyq, XingXing, Luca Elia]

New games marked as GAME_NOT_WORKING
---------------------------------------------------
Mahjong Ougon No Pai [Dyq, XingXing]
[src/mame]mame.lst
[src/mame/drivers]dynax.c
[src/mame/includes]dynax.h
[src/mame/video]dynax.c

trunk/src/mame/drivers/dynax.c
r244947r244948
242490 Mj Campus Hunting       D3312108L1-1 D23SUB1      Z80   AY8912        YM2413 M5205       RAM
252590 Hana Jingi              no number    D3312108L1-2 Z80   AY8912        YM2413 M5205       RAM
262690 7jigen no Youseitachi   D3707198L1   D23SUB1      Z80   AY8912        YM2413 M5205       RAM
2789 Mj Electromagnetic Base D3803248L1                Z80   AY8912        YM2413 M5205       RAM
272890 Mj Electron Base                                  Z80   AY8912        YM2413             RAM
282990 Mj X-Tal/Diamond 7      D4005208L1-1 D23SUB       Z80   AY8912        YM2413 M5205       RAM
293090 Mj Neruton Haikujiradan D4005208L1-1 D4508308L-2  Z80   AY8912        YM2413 M5205       RAM
r244947r244948
333491 Mj Angels               D5512068L1-1 D6107068L-1  Z80   AY8912        YM2413 M5205       RAM
343591 Mj Comic Gekijou V.1    D5512068L1-1 D6107068L-1  Z80   AY8912        YM2413 M5205 M6242 RAM   NL-001, Battery
353691 Mj Tenkaigen                                      TLCS  AY8910        YM2413       M6242 RAM   Protection, Battery
3791 Mj Ougon No Pai         D6209038L1-0              TLCS  AY8910        YM2413             RAM   Undumped TMP91P640 Code, Battery
363892 Quiz TV Gassyuukoku     D5512068L1-2 D6410288L-1  Z80   AY8912        YM2413 M5205       RAM
373992 Hanafuda Hana Tengoku   D6502208L1   D6107068L-1  Z80   AY8910        YM2413       M6242 RAM
384094 Mj Reach (bootleg)      bootleg                   TLCS  AY8910        YM2413       M6242 PROM  Battery
r244947r244948
555557   AM_RANGE( 0x30, 0x30 ) AM_WRITE(adpcm_reset_w)  // MSM5205 reset
556558   AM_RANGE( 0x32, 0x32 ) AM_WRITE(adpcm_data_w)           // MSM5205 data
557559   AM_RANGE( 0x34, 0x35 ) AM_DEVWRITE("ym2413", ym2413_device, write)        //
558   AM_RANGE( 0x36, 0x36 ) AM_DEVREAD("aysnd", ay8910_device, data_r)     // AY8910, DSW1
560   AM_RANGE( 0x36, 0x36 ) AM_DEVREAD("aysnd", ay8910_device, data_r)     // AY8910, DSW0
559561   AM_RANGE( 0x38, 0x38 ) AM_DEVWRITE("aysnd", ay8910_device, data_w)   // AY8910
560562   AM_RANGE( 0x3a, 0x3a ) AM_DEVWRITE("aysnd", ay8910_device, address_w)    //
561563   AM_RANGE( 0x40, 0x40 ) AM_WRITE(dynax_blit_pen_w)       // Destination Pen
r244947r244948
640642   AM_RANGE( 0x32, 0x32 ) AM_WRITE(adpcm_data_w)           // MSM5205 data
641643   AM_RANGE( 0x34, 0x35 ) AM_DEVWRITE("ym2413", ym2413_device, write)        //
642644
643   AM_RANGE( 0x36, 0x36 ) AM_DEVREAD("aysnd", ay8910_device, data_r)     // AY8910, DSW1
645   AM_RANGE( 0x36, 0x36 ) AM_DEVREAD("aysnd", ay8910_device, data_r)     // AY8910, DSW0
644646   AM_RANGE( 0x38, 0x38 ) AM_DEVWRITE("aysnd", ay8910_device, data_w)   // AY8910
645647   AM_RANGE( 0x3a, 0x3a ) AM_DEVWRITE("aysnd", ay8910_device, address_w)    //
646648
r244947r244948
10441046READ8_MEMBER(dynax_state::mjelctrn_dsw_r)
10451047{
10461048   int dsw = (m_keyb & 0xc0) >> 6;
1047   static const char *const dswnames[] = { "DSW0", "DSW1", "DSW3", "DSW4" };
1049   static const char *const dswnames[] = { "DSW0", "DSW1", "DSW2", "DSW3" };
10481050
10491051   return ioport(dswnames[dsw])->read();
10501052}
r244947r244948
10921094   AM_RANGE( 0xe7, 0xe7 ) AM_WRITE(hnoridur_palbank_w)
10931095ADDRESS_MAP_END
10941096
1097static ADDRESS_MAP_START( mjembase_io_map, AS_IO, 8, dynax_state )
1098   ADDRESS_MAP_GLOBAL_MASK(0xff)
1099   AM_RANGE( 0x04, 0x05 ) AM_DEVWRITE("ym2413", ym2413_device, write)       //
1100   AM_RANGE( 0x06, 0x06 ) AM_DEVREAD("aysnd", ay8910_device, data_r)        // AY8910, dsw0
1101   AM_RANGE( 0x08, 0x08 ) AM_DEVWRITE("aysnd", ay8910_device, data_w)       //
1102   AM_RANGE( 0x0a, 0x0a ) AM_DEVWRITE("aysnd", ay8910_device, address_w)    //
1103   AM_RANGE( 0x11, 0x12 ) AM_WRITE(mjelctrn_blitter_ack_w) //?
1104   AM_RANGE( 0x1c, 0x1c ) AM_READ_PORT("DSW1")
1105   AM_RANGE( 0x1e, 0x1e ) AM_READ_PORT("DSW2")
1106   AM_RANGE( 0x20, 0x20 ) AM_WRITE(hanamai_keyboard_w)         // keyboard row select
1107   AM_RANGE( 0x21, 0x21 ) AM_READ_PORT("COINS")                // Coins
1108   AM_RANGE( 0x22, 0x22 ) AM_READ(mjelctrn_keyboard_1_r)       // P2
1109   AM_RANGE( 0x23, 0x23 ) AM_READ(hanamai_keyboard_0_r)        // P1
1110   AM_RANGE( 0x24, 0x24 ) AM_READ_PORT("DSW3")
1111//  AM_RANGE( 0x40, 0x40 ) AM_WRITENOP   // CRT Controller
1112//  AM_RANGE( 0x41, 0x41 ) AM_WRITENOP   // CRT Controller
1113   AM_RANGE( 0x61, 0x67 ) AM_WRITE(dynax_blitter_rev2_w)       // Blitter
1114   AM_RANGE( 0x80, 0x80 ) AM_WRITE(dynax_flipscreen_w)         // Flip Screen
1115   AM_RANGE( 0x81, 0x81 ) AM_WRITE(hanamai_layer_half_w)       // half of the interleaved layer to write to
1116   AM_RANGE( 0x82, 0x82 ) AM_WRITE(hnoridur_layer_half2_w)     //
1117   AM_RANGE( 0x83, 0x83 ) AM_WRITE(dynax_coincounter_0_w)      // Coin Counters
1118   AM_RANGE( 0x84, 0x84 ) AM_WRITE(dynax_coincounter_1_w)      //
1119   AM_RANGE( 0xa0, 0xa0 ) AM_WRITE(hnoridur_rombank_w)         // BANK ROM Select
1120   AM_RANGE( 0xc0, 0xc0 ) AM_WRITE(dynax_blit_pen_w)           // Destination Pen
1121   AM_RANGE( 0xc1, 0xc1 ) AM_WRITE(mjembase_blit_dest_w)       // Destination Layer
1122   AM_RANGE( 0xc2, 0xc2 ) AM_WRITE(dynax_blit_palette01_w)     // Layers Palettes
1123   AM_RANGE( 0xc3, 0xc3 ) AM_WRITE(mjembase_blit_palette23_w)  //
1124   AM_RANGE( 0xc4, 0xc4 ) AM_WRITE(mjembase_priority_w)        // layer priority and enable
1125   AM_RANGE( 0xc5, 0xc5 ) AM_WRITE(dynax_blit_backpen_w)       // Background Color
1126   AM_RANGE( 0xc6, 0xc6 ) AM_WRITE(yarunara_blit_romregion_w)  // Blitter ROM bank
1127   AM_RANGE( 0xc7, 0xc7 ) AM_WRITE(hnoridur_palbank_w)
1128ADDRESS_MAP_END
10951129
1130
10961131/***************************************************************************
10971132                               Mahjong Tenkaigen
10981133***************************************************************************/
r244947r244948
30263061   PORT_DIPSETTING(    0x02, "11:00" )
30273062   PORT_DIPSETTING(    0x01, "11:30" )
30283063   PORT_DIPSETTING(    0x00, "12:00" )
3029   PORT_DIPNAME( 0x08, 0x08, "Moles On Gal's Face" )
3030   PORT_DIPSETTING(    0x08, DEF_STR( Off ) )
3031   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3064   PORT_DIPNAME( 0x08, 0x00, "Nudity" )
3065   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
3066   PORT_DIPSETTING(    0x08, DEF_STR( No ) )   // Moles On Gal's Face
30323067   PORT_DIPNAME( 0x10, 0x10, "Buy Screen Bonus Points" ) /* Sets your points to 100 every time you arrive at the screen for buying special items. */
30333068   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
30343069   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
r244947r244948
30973132INPUT_PORTS_END
30983133
30993134
3135static INPUT_PORTS_START( mjembase )
3136   PORT_START("DSW2")  /* DIP1, 7c20 (port $1e) */
3137   PORT_DIPNAME( 0x0f, 0x07, "Pay Out Rate" )
3138   PORT_DIPSETTING(    0x00, "50" )
3139   PORT_DIPSETTING(    0x01, "53" )
3140   PORT_DIPSETTING(    0x02, "56" )
3141   PORT_DIPSETTING(    0x03, "59" )
3142   PORT_DIPSETTING(    0x04, "62" )
3143   PORT_DIPSETTING(    0x05, "65" )
3144   PORT_DIPSETTING(    0x06, "68" )
3145   PORT_DIPSETTING(    0x07, "71" )
3146   PORT_DIPSETTING(    0x08, "75" )
3147   PORT_DIPSETTING(    0x09, "78" )
3148   PORT_DIPSETTING(    0x0a, "81" )
3149   PORT_DIPSETTING(    0x0b, "84" )
3150   PORT_DIPSETTING(    0x0c, "87" )
3151   PORT_DIPSETTING(    0x0d, "90" )
3152   PORT_DIPSETTING(    0x0e, "93" )
3153   PORT_DIPSETTING(    0x0f, "96" )
3154   PORT_DIPNAME( 0x30, 0x30, "Max Bet" )
3155   PORT_DIPSETTING(    0x30, "1" )
3156   PORT_DIPSETTING(    0x20, "5" )
3157   PORT_DIPSETTING(    0x10, "10" )
3158   PORT_DIPSETTING(    0x00, "20" )
3159   PORT_DIPNAME( 0x40, 0x40, DEF_STR( Coin_B ) )
3160   PORT_DIPSETTING(    0x40, DEF_STR( 1C_5C ) )
3161   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
3162   PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) )
3163   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
3164   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3165
3166   PORT_START("DSW1")  /* DIP2, 7c21 (port $1c) */
3167   PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
3168   PORT_DIPSETTING(    0x03, "0" ) // 20
3169   PORT_DIPSETTING(    0x00, "1" ) // 32
3170   PORT_DIPSETTING(    0x01, "2" ) // 64
3171   PORT_DIPSETTING(    0x02, "3" ) // c8
3172   PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coin_A ) )
3173   PORT_DIPSETTING(    0x0c, DEF_STR( 1C_1C ) )
3174   PORT_DIPSETTING(    0x08, DEF_STR( 1C_2C ) )
3175   PORT_DIPSETTING(    0x04, DEF_STR( 1C_5C ) )
3176   PORT_DIPSETTING(    0x00, "1 Coin/10 Credits" )
3177   PORT_DIPNAME( 0x30, 0x30, "Min Pay?" )
3178   PORT_DIPSETTING(    0x30, "1" )
3179   PORT_DIPSETTING(    0x20, "2" )
3180   PORT_DIPSETTING(    0x10, "3" )
3181   PORT_DIPSETTING(    0x00, "5" )
3182   PORT_DIPNAME( 0x40, 0x40, "Allow Coin Out" )
3183   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
3184   PORT_DIPSETTING(    0x40, DEF_STR( On ) )
3185   PORT_DIPNAME( 0x80, 0x80, "Win A Prize?" )
3186   PORT_DIPSETTING(    0x80, DEF_STR( Off ) )
3187   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3188
3189   PORT_START("DSW0")  /* DIP3, 7c22 (port $06, AY) */ /* note that these are in reverse order wrt the others */
3190   PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
3191   PORT_DIPSETTING(    0x01, DEF_STR( Off ) )
3192   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3193   PORT_DIPNAME( 0x02, 0x02, "DonDen Key" )
3194   PORT_DIPSETTING(    0x02, "A" )
3195   PORT_DIPSETTING(    0x00, "Flip Flop" )
3196   PORT_DIPNAME( 0x04, 0x04, "Draw New Tile" )
3197   PORT_DIPSETTING(    0x00, "Automatic" )
3198   PORT_DIPSETTING(    0x04, "Manual" )
3199   PORT_DIPNAME( 0x08, 0x08, "Win Rate?" )
3200   PORT_DIPSETTING(    0x08, DEF_STR( High ) )
3201   PORT_DIPSETTING(    0x00, DEF_STR( Low ) )
3202   PORT_DIPNAME( 0x10, 0x10, "YAKU times" )
3203   PORT_DIPSETTING(    0x10, "1" )
3204   PORT_DIPSETTING(    0x00, "2" )
3205   PORT_DIPNAME( 0xe0, 0xe0, "YAKUMAN Bonus" )
3206   PORT_DIPSETTING(    0xe0, "Cut" )
3207   PORT_DIPSETTING(    0x60, "1 T" )
3208   PORT_DIPSETTING(    0xa0, "300" )
3209   PORT_DIPSETTING(    0x20, "500" )
3210   PORT_DIPSETTING(    0xc0, "700" )
3211   PORT_DIPSETTING(    0x40, "1000" )
3212//  PORT_DIPSETTING(    0x80, "1000" )
3213//  PORT_DIPSETTING(    0x00, "1000" )
3214
3215   PORT_START("DSW3")  /* DIP4, 7c23 (port $24) */
3216   PORT_DIPNAME( 0x01, 0x01, "Last Chance" )
3217   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
3218   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
3219   PORT_DIPNAME( 0x02, 0x02, "Pay Rate?" )
3220   PORT_DIPSETTING(    0x02, DEF_STR( High ) )
3221   PORT_DIPSETTING(    0x00, DEF_STR( Low ) )
3222   PORT_DIPNAME( 0x04, 0x04, "Choose Bonus" )
3223   PORT_DIPSETTING(    0x04, DEF_STR( Off ) )
3224   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3225   PORT_DIPNAME( 0x08, 0x08, "In-Game Bet?" )
3226   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
3227   PORT_DIPSETTING(    0x08, DEF_STR( On ) )
3228   PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) )
3229   PORT_DIPSETTING(    0x10, DEF_STR( Off ) )
3230   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3231   PORT_DIPNAME( 0x20, 0x00, "In-Game Music" )
3232   PORT_DIPSETTING(    0x20, DEF_STR( Off ) )
3233   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3234   PORT_DIPNAME( 0x40, 0x40, "Select Girl" )
3235   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
3236   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3237   PORT_DIPNAME( 0x80, 0x00, "Nudity" )
3238   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
3239   PORT_DIPSETTING(    0x80, DEF_STR( No ) )   // Moles On Gal's Face
3240
3241   PORT_START("FAKE")  /* IN10 - Fake DSW */
3242   PORT_DIPNAME( 0xff, 0xff, "Allow Bets" )
3243   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
3244   PORT_DIPSETTING(    0xff, DEF_STR( On ) )
3245
3246   PORT_START("COINS")
3247   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT ) PORT_CODE(KEYCODE_4) // Pay
3248   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN  )   // 18B
3249   PORT_SERVICE( 0x04, IP_ACTIVE_LOW )             // Test
3250   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE2 )   // Analyzer
3251   PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE3 )   // Memory Reset
3252   PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_COIN2    )   // Note
3253   PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1    )   // Coin
3254   PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE1 )   // Service
3255
3256   PORT_INCLUDE( MAHJONG_KEYS_BET )
3257INPUT_PORTS_END
3258
3259
31003260static INPUT_PORTS_START( mjelct3 )
31013261   PORT_START("DSW0")  /* 7c21 (select = 00) */
31023262   PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
r244947r244948
31633323
31643324   PORT_INCLUDE( MAHJONG_KEYS_BET )
31653325
3166   PORT_START("DSW3")  /* 7c22 (select = 80) */
3326   PORT_START("DSW2")  /* 7c22 (select = 80) */
31673327   PORT_DIPNAME( 0x07, 0x07, "YAKUMAN Bonus" )
31683328   PORT_DIPSETTING(    0x07, "Cut" )
31693329   PORT_DIPSETTING(    0x06, "1 T" )
r244947r244948
31893349   PORT_DIPSETTING(    0x80, "None (Part 2)" )
31903350   PORT_DIPSETTING(    0x00, "Super Express (Part 3)" )
31913351
3192   PORT_START("DSW4")  /* 7c23 (select = c0) */
3352   PORT_START("DSW3")  /* 7c23 (select = c0) */
31933353   PORT_DIPNAME( 0x01, 0x01, "Last Chance" )
31943354   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
31953355   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
r244947r244948
32113371   PORT_DIPNAME( 0x40, 0x40, "Select Girl" )
32123372   PORT_DIPSETTING(    0x40, DEF_STR( Off ) )
32133373   PORT_DIPSETTING(    0x00, DEF_STR( On ) )
3214   PORT_DIPNAME( 0x80, 0x80, "Moles On Gal's Face" )
3215   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
3216   PORT_DIPSETTING(    0x80, DEF_STR( On ) )
3374   PORT_DIPNAME( 0x80, 0x00, "Nudity" )
3375   PORT_DIPSETTING(    0x00, DEF_STR( Yes ) )
3376   PORT_DIPSETTING(    0x80, DEF_STR( No ) )   // Moles On Gal's Face
32173377
32183378   PORT_START("FAKE")  /* IN10 - Fake DSW */
32193379   PORT_DIPNAME( 0xff, 0xff, "Allow Bets" )
r244947r244948
32883448
32893449   PORT_INCLUDE( MAHJONG_KEYS_BET )
32903450
3291   PORT_START("DSW3") /* 7c22 (select = 80) */
3451   PORT_START("DSW2") /* 7c22 (select = 80) */
32923452   PORT_DIPNAME( 0x07, 0x07, "YAKUMAN Bonus" )
32933453   PORT_DIPSETTING(    0x07, "Cut" )
32943454   PORT_DIPSETTING(    0x06, "1 T" )
r244947r244948
33143474   PORT_DIPSETTING(    0x80, "None (Part 2)" )
33153475   PORT_DIPSETTING(    0x00, "???? (Part 4)" )
33163476
3317   PORT_START("DSW4") // 7c23 (select = c0)
3477   PORT_START("DSW3") // 7c23 (select = c0)
33183478   PORT_DIPNAME( 0x01, 0x01, "Last Chance" )
33193479   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
33203480   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
r244947r244948
34133573
34143574   PORT_INCLUDE( MAHJONG_KEYS_BET )
34153575
3416   PORT_START("DSW3") /* select = 80 */
3576   PORT_START("DSW2") /* select = 80 */
34173577   PORT_DIPNAME( 0x07, 0x07, "YAKUMAN Bonus" )
34183578   PORT_DIPSETTING(    0x07, "Cut" )
34193579   PORT_DIPSETTING(    0x06, "1 T" )
r244947r244948
34393599   PORT_DIPSETTING(    0x80, "X-Tal" )
34403600   PORT_DIPSETTING(    0x00, "Diamond" )
34413601
3442   PORT_START("DSW4") /* select = c0 */
3602   PORT_START("DSW3") /* select = c0 */
34433603   PORT_DIPNAME( 0x01, 0x01, "Last Chance" )
34443604   PORT_DIPSETTING(    0x00, DEF_STR( Off ) )
34453605   PORT_DIPSETTING(    0x01, DEF_STR( On ) )
r244947r244948
35333693
35343694   PORT_INCLUDE( MAHJONG_KEYS )
35353695
3536   /* 2008-06 FP: the following are needed to make happy the read handlers shared with mjelctrn*/
3696   /* 2008-06 FP: the following are needed to make happy the read handlers shared with mjelctrn */
3697   PORT_START("DSW2")
35373698   PORT_START("DSW3")
3538   PORT_START("DSW4")
35393699   PORT_START("FAKE")
35403700INPUT_PORTS_END
35413701
r244947r244948
44824642   MCFG_VIDEO_START_OVERRIDE(dynax_state,mjelctrn)
44834643MACHINE_CONFIG_END
44844644
4645static MACHINE_CONFIG_DERIVED( mjembase, hnoridur )
4646   MCFG_CPU_MODIFY("maincpu")
4647   MCFG_CPU_PROGRAM_MAP(nanajign_mem_map)
4648   MCFG_CPU_IO_MAP(mjembase_io_map)
4649   MCFG_CPU_VBLANK_INT_DRIVER("screen", dynax_state,  mjelctrn_vblank_interrupt)   /* IM 2 needs a vector on the data bus */
44854650
4651   MCFG_VIDEO_START_OVERRIDE(dynax_state,mjembase)
4652MACHINE_CONFIG_END
4653
44864654/***************************************************************************
44874655                                    Neruton
44884656***************************************************************************/
r244947r244948
58215989   ROM_LOAD( "eb-02.rom", 0x00000, 0x80000, CRC(e1f1b431) SHA1(04a612aff4c30cb8ea741f228bfa7e4289acfee8) )
58225990ROM_END
58235991
5992/***************************************************************************
58245993
5994Mahjong Electromagnetic Base
5995DYNAX D3803248L1
5996
5997AY-3-8912?, MSM5205?
5998HD46505SP?, Dynax blitter? (rest of the chips are scratched)
59994 x DSW8, 28-way connector
6000
6001***************************************************************************/
6002
6003ROM_START( mjembase )
6004   ROM_REGION( 0x30000, "maincpu", 0 )
6005   ROM_LOAD( "dynax_3815.20a", 0x00000, 0x20000, CRC(35b35b48) SHA1(9966804337a7c6de160a09087e1fea3b0a515fe4) )
6006   ROM_RELOAD(                 0x10000, 0x20000 )
6007
6008   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6009   ROM_LOAD( "dynax_3803.7c",  0x000000, 0x20000, CRC(5480c4f8) SHA1(8f533683eb08281f50247c17e7ccfcfd2d8f1937) )
6010   ROM_LOAD( "dynax_3802.6c",  0x020000, 0x20000, CRC(ba27976a) SHA1(cb9ce82054b7568507807a891ada3d39adf094d2) )
6011   ROM_LOAD( "dynax_3801.5c",  0x040000, 0x20000, CRC(84a013ac) SHA1(3d5c196f7474bb13d9b724befec3de7f247953e3) )
6012   ROM_LOAD( "dynax_3804.1a",  0x060000, 0x20000, CRC(8c055525) SHA1(8e31bef48a8b89e79ecb8b71855bc20036667561) )
6013   ROM_LOAD( "dynax_3805.3a",  0x080000, 0x20000, CRC(a27b2063) SHA1(9da26086832f047c65ad88147e65d1f65e9b7677) )
6014   ROM_LOAD( "dynax_3806.5a",  0x0a0000, 0x20000, CRC(42486764) SHA1(217ea04fad8853b03522474a70a322642a5301a5) )
6015   ROM_LOAD( "dynax_3807.6a",  0x0c0000, 0x20000, CRC(c29abf8f) SHA1(79e05fc0decd450622189ce1c8681c4442c566b0) )
6016   ROM_LOAD( "dynax_3808.7a",  0x0e0000, 0x20000, CRC(72efcd62) SHA1(9b84043fc9b2dcaf97a58aba0ba4ce27ee64381c) )
6017
6018   ROM_REGION( 0x040000, "gfx2", 0 )   // blitter data
6019   ROM_LOAD( "dynax_3809.9a",  0x000000, 0x20000, CRC(7c239069) SHA1(71c8b437a555ab48ce600ff283d50e0a21e9f8eb) )
6020   ROM_LOAD( "dynax_381a.10a", 0x020000, 0x20000, CRC(72c092c7) SHA1(3a4f1cd56c9544dcd4689e385c98407c45ac894c) )
6021ROM_END
6022
6023
58256024/*
58266025
58276026Sea Hunter Penguin
r244947r244948
63406539   // It appears that the first half of lzc-01.u6 in tenkaibb (as well as the same data in other bootleg versions)
63416540   // does not exist _anywhere_ in this rom dump, and in this way some girls won't show correctly (such as the 3rd one)
63426541   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6343   ROM_LOAD( "tydg002.u8",   0x000000, 0x80000, BAD_DUMP CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) ) // not dumped, rom taken from tenkaid
6542   ROM_LOAD( "tydg002.u8",   0x000000, 0x80000, BAD_DUMP CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) ) // not dumped, rom taken from ougonpaib
63446543   ROM_LOAD( "taicom01.15b", 0x080000, 0x80000, BAD_DUMP CRC(39e4e6f3) SHA1(5b543a5933446091d7cfd519d5a6f23047d8a9f2) ) // either this was dumped half size, or the above rom was missing from the pcb
63456544
63466545   ROM_REGION( 0x100000, "gfx2", 0 )   // blitter data
r244947r244948
65336732   // it doesn't need the internal rom from tenkai
65346733
65356734   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6536   ROM_LOAD( "tydg002.u8", 0x00000, 0x80000, BAD_DUMP CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) ) // not dumped, rom taken from tenkaid
6735   ROM_LOAD( "tydg002.u8", 0x00000, 0x80000, BAD_DUMP CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) ) // not dumped, rom taken from ougonpaib
65376736   ROM_LOAD( "rom.u12",    0x80000, 0x80000, BAD_DUMP CRC(39e4e6f3) SHA1(5b543a5933446091d7cfd519d5a6f23047d8a9f2) ) // either this was dumped half size, or the above rom was missing from the pcb
65386737
65396738   ROM_REGION( 0x100000, "gfx2", 0 )   // blitter data
r244947r244948
65436742
65446743/***************************************************************************
65456744
6546Mahjong Tenkaigen (? PCB is not working)
6745tenkaigen set 2
65476746
6747romcmp tenkaie tenkai:
6748
6749epr-a01.rom             taicom00.2c             IDENTICAL
6750
6751lzc-01.rom   [2/2]      taicom01.15b            IDENTICAL
6752
6753lzc-02.rom   [1/2]      taicom02.11b            IDENTICAL
6754lzc-02.rom   [2/2]      taicom03.13b            IDENTICAL
6755
6756***************************************************************************/
6757
6758ROM_START( tenkaie )
6759   ROM_REGION( 0x50000, "maincpu", 0 )
6760   ROM_LOAD( "epr-a01.rom",      0x00000, 0x40000, CRC(a35e54db) SHA1(247c856e19989fb834e8ed135393927bbd9c0277) )
6761   ROM_RELOAD(                   0x10000, 0x40000 )
6762   ROM_LOAD( "tmp91p640n-10.5b", 0x00000, 0x04000, BAD_DUMP CRC(509f1c97) SHA1(08557bea2e924053fd5bc9de5e306f3ecf8e98e6) ) // sldh - not dumped, rom taken from tenkai
6763
6764   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6765   ROM_LOAD( "lzc-01.rom", 0x000000, 0x100000, CRC(786698e3) SHA1(9ddf4e31f454fb3c7969b1433771e95a976de741) )
6766
6767   ROM_REGION( 0x100000, "gfx2", 0 )   // blitter data
6768   ROM_LOAD( "lzc-02.rom", 0x000000, 0x100000, CRC(90a19443) SHA1(8f593c00e39dd5acc76b058591019d117967a17b) )
6769ROM_END
6770
6771/***************************************************************************
6772
6773Mahjong Ougon No Pai
6774DYNAX D6209038L1-0
6775
6776AY-3-8910A, rest of the chips are scratched
67772 x DSW10, 2 x DSW8, 1 x DSW4, Battery
6778
6779***************************************************************************/
6780
6781ROM_START( ougonpai )
6782   ROM_REGION( 0x90000, "maincpu", 0 )
6783   ROM_LOAD( "dynax_6201b.2c", 0x00000, 0x40000, CRC(18ef8eda) SHA1(48a3e4566b0a86db907602fd235c01d96eddec23) )
6784   ROM_RELOAD(                 0x10000, 0x40000 )
6785   ROM_RELOAD(                 0x50000, 0x40000 )
6786   ROM_LOAD( "ougonpai_tmp91p640n-10.5b", 0x00000, 0x04000, NO_DUMP )
6787
6788   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6789   ROM_LOAD( "dynax_6202.11b", 0x00000, 0x80000, CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) )  // = tydg002.u8 (ougonpaib)
6790   ROM_LOAD( "dynax_6203.13b", 0x80000, 0x80000, CRC(60717d91) SHA1(85dbb510d33b36d2255b740ccc4917216dd21497) )  // = tydg003.u6 (ougonpaib)
6791
6792   ROM_REGION( 0x100000, "gfx2", 0 )   // blitter data
6793   ROM_LOAD( "dynax_6204.14b", 0x00000, 0x80000, CRC(4142f94b) SHA1(9982f12333973b307c210e39310eafc88b8620e1) )  // ~= tydg004.u21 (ougonpaib)
6794   ROM_LOAD( "dynax_6205.15b", 0x80000, 0x80000, CRC(39e4e6f3) SHA1(5b543a5933446091d7cfd519d5a6f23047d8a9f2) )  // = tydg005.u19 (ougonpaib)
6795ROM_END
6796
6797/***************************************************************************
6798
6799Mahjong Ougon No Pai (bootleg, PCB is not working)
6800
65486801PCB Layout
65496802----------
65506803
r244947r244948
65706823|Y  81461  81461  21.245MHz                 |
65716824|-------------------------------------------|
65726825
6573romcmp tenkaid tenkaibb:
6574
6575tydg002.u8              lzc-01.u6    [1/2]      IDENTICAL
6576tydg005.u19             lzc-01.u6    [2/2]      IDENTICAL
6577
6578tydg001.u11  [1/4]      tdh-12m.u11  [odd 2/2]  6.478882%
6579tydg001.u11  [2/4]      lzc-03.u15   [odd]      31.292725%
6580tydg001.u11  [3/4]      tdh-12m.u11  [even 2/2] 55.366516%
6581tydg001.u11  [4/4]      lzc-03.u15   [even]     59.931946%
6582
6583tydg003.u6   [1/2]      lzc-02.u19   [3/4]      2.625275%
6584tydg003.u6   [2/2]      lzc-02.u19   [2/4]      1.834488%
6585
6586tydg004.u21  [1/2]      lzc-02.u19   [1/4]      3.769302%
6587tydg004.u21  [2/2]      lzc-02.u19   [4/4]      14.524460%
6588
6589romcmp tenkaid tenkai:
6590
6591tydg005.u19             taicom01.15b            IDENTICAL
6592
6593tydg001.u11  [1/4]      taicom00.2c  [1/4]      26.155090%
6594tydg001.u11  [2/4]      taicom00.2c  [3/4]      22.038269%
6595tydg001.u11  [3/4]      taicom00.2c  [2/4]      4.237366%
6596tydg001.u11  [4/4]      taicom00.2c  [4/4]      59.855652%
6597
6598tydg002.u8   [4/4]      taicom03.13b [2/4]      4.472351%
6599
6600tydg003.u6   [1/4]      taicom02.11b [3/4]      2.860260%
6601tydg003.u6   [2/4]      taicom03.13b [3/4]      6.129456%
6602tydg003.u6   [3/4]      taicom02.11b [2/4]      2.205658%
6603
6604tydg004.u21  [1/4]      taicom02.11b [1/4]      5.610657%
6605tydg004.u21  [2/4]      taicom03.13b [1/4]      1.743317%
6606tydg004.u21  [3/4]      taicom02.11b [4/4]      2.343750%
6607tydg004.u21  [4/4]      taicom03.13b [4/4]      24.230194%
6608
66096826***************************************************************************/
66106827
6611ROM_START( tenkaid )
6828ROM_START( ougonpaib )
66126829   ROM_REGION( 0x90000, "maincpu", 0 )
66136830   ROM_LOAD( "tydg001.u11",      0x00000, 0x40000, CRC(4ffa543c) SHA1(ab6ec7bd735358643f5186c6c983fa8b599fe84b) )
66146831   ROM_RELOAD(                   0x10000, 0x40000 )
66156832   ROM_RELOAD(                   0x50000, 0x40000 )
66166833   // tenkai internal rom is incompatible with the code of this set
6617   ROM_LOAD( "tenkaid_tmp91p640n-10.5b", 0x00000, 0x04000, NO_DUMP )
6834   ROM_LOAD( "ougonpaib_tmp91p640n-10.5b", 0x00000, 0x04000, NO_DUMP )
66186835
66196836   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6620   ROM_LOAD( "tydg002.u8",  0x00000, 0x80000, CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) )
6837   ROM_LOAD( "tydg002.u8",  0x00000, 0x80000, CRC(b0f08a20) SHA1(5f7083d5caadd77594eaf46efa11a8756cefcf7d) ) // = lzc-01.u6 [1/2]
66216838   ROM_LOAD( "tydg003.u6",  0x80000, 0x80000, CRC(60717d91) SHA1(85dbb510d33b36d2255b740ccc4917216dd21497) )
66226839
66236840   ROM_REGION( 0x100000, "gfx2", 0 )   // blitter data
66246841   ROM_LOAD( "tydg004.u21", 0x00000, 0x80000, CRC(b7d49d04) SHA1(756c35bbe207b5bfc6e05d6da99a7ad5a3453506) )
6625   ROM_LOAD( "tydg005.u19", 0x80000, 0x80000, CRC(39e4e6f3) SHA1(5b543a5933446091d7cfd519d5a6f23047d8a9f2) )
6842   ROM_LOAD( "tydg005.u19", 0x80000, 0x80000, CRC(39e4e6f3) SHA1(5b543a5933446091d7cfd519d5a6f23047d8a9f2) ) // = taicom01.15b = lzc-01.u6 [2/2]
66266843ROM_END
66276844
66286845/***************************************************************************
66296846
6630tenkaigen set 2
6631
6632romcmp tenkaie tenkai:
6633
6634epr-a01.rom             taicom00.2c             IDENTICAL
6635
6636lzc-01.rom   [2/2]      taicom01.15b            IDENTICAL
6637
6638lzc-02.rom   [1/2]      taicom02.11b            IDENTICAL
6639lzc-02.rom   [2/2]      taicom03.13b            IDENTICAL
6640
6641***************************************************************************/
6642
6643ROM_START( tenkaie )
6644   ROM_REGION( 0x50000, "maincpu", 0 )
6645   ROM_LOAD( "epr-a01.rom",      0x00000, 0x40000, CRC(a35e54db) SHA1(247c856e19989fb834e8ed135393927bbd9c0277) )
6646   ROM_RELOAD(                   0x10000, 0x40000 )
6647   ROM_LOAD( "tmp91p640n-10.5b", 0x00000, 0x04000, BAD_DUMP CRC(509f1c97) SHA1(08557bea2e924053fd5bc9de5e306f3ecf8e98e6) ) // sldh - not dumped, rom taken from tenkai
6648
6649   ROM_REGION( 0x100000, "gfx1", 0 )   // blitter data
6650   ROM_LOAD( "lzc-01.rom", 0x000000, 0x100000, CRC(786698e3) SHA1(9ddf4e31f454fb3c7969b1433771e95a976de741) )
6651
6652   ROM_REGION( 0x100000, "gfx2", 0 )   // blitter data
6653   ROM_LOAD( "lzc-02.rom", 0x000000, 0x100000, CRC(90a19443) SHA1(8f593c00e39dd5acc76b058591019d117967a17b) )
6654ROM_END
6655
6656
6657/***************************************************************************
6658
66596847Mahjong Comic Gekijou Vol.1
66606848(c)1991 Dynax / Tenho Iwatani
66616849D5512068L1-1 (main PCB)
r244947r244948
69137101GAME( 1991, mjangels, 0,        yarunara, yarunara, driver_device, 0,        ROT180, "Dynax",                    "Mahjong Angels - Comic Theater Vol.2 (Japan)",                  GAME_SUPPORTS_SAVE )
69147102GAME( 1992, quiztvqq, 0,        quiztvqq, quiztvqq, driver_device, 0,        ROT180, "Dynax",                    "Quiz TV Gassyuukoku Q&Q (Japan)",                               GAME_SUPPORTS_SAVE )
69157103GAME( 1993, mjelctrn, 0,        mjelctrn, mjelctrn, dynax_state,   mjelct3,  ROT180, "Dynax",                    "Mahjong Electron Base (parts 2 & 4, Japan)",                    GAME_SUPPORTS_SAVE )
7104GAME( 1989, mjembase, mjelctrn, mjembase, mjembase, dynax_state,   mjelct3,  ROT180, "Dynax",                    "Mahjong Electromagnetic Base",                                  GAME_SUPPORTS_SAVE )
69167105GAME( 1990, mjelct3,  mjelctrn, mjelctrn, mjelct3,  dynax_state,   mjelct3,  ROT180, "Dynax",                    "Mahjong Electron Base (parts 2 & 3, Japan)",                    GAME_SUPPORTS_SAVE )
69177106GAME( 1990, mjelct3a, mjelctrn, mjelctrn, mjelct3,  dynax_state,   mjelct3a, ROT180, "Dynax",                    "Mahjong Electron Base (parts 2 & 3, alt., Japan)",              GAME_SUPPORTS_SAVE )
69187107GAME( 1993, mjelctrb, mjelctrn, mjelctrn, mjelct3,  dynax_state,   mjelct3,  ROT180, "bootleg",                  "Mahjong Electron Base (parts 2 & 4, Japan, bootleg)",           GAME_SUPPORTS_SAVE )
r244947r244948
69257114GAME( 1991, tenkai2b, tenkai,   tenkai,   tenkai,   driver_device, 0,        ROT0,   "bootleg",                  "Mahjong Tenkaigen Part 2 (bootleg)",                            GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
69267115GAME( 1991, tenkaibb, tenkai,   tenkai,   tenkai,   driver_device, 0,        ROT0,   "bootleg",                  "Mahjong Tenkaigen (bootleg b)",                                 GAME_SUPPORTS_SAVE )
69277116GAME( 1991, tenkaicb, tenkai,   tenkai,   tenkai,   driver_device, 0,        ROT0,   "bootleg",                  "Mahjong Tenkaigen (bootleg c)",                                 GAME_SUPPORTS_SAVE )
6928GAME( 1991, tenkaid,  tenkai,   tenkai,   tenkai,   driver_device, 0,        ROT0,   "Dynax",                    "Mahjong Tenkaigen (set 1)",                                     GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
69297117GAME( 1991, tenkaie,  tenkai,   tenkai,   tenkai,   driver_device, 0,        ROT0,   "Dynax",                    "Mahjong Tenkaigen (set 2)",                                     GAME_SUPPORTS_SAVE )
7118GAME( 1991, ougonpai, 0,        tenkai,   tenkai,   driver_device, 0,        ROT0,   "Dynax",                    "Mahjong Ougon No Pai",                                          GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
7119GAME( 1991, ougonpaib,ougonpai, tenkai,   tenkai,   driver_device, 0,        ROT0,   "bootleg",                  "Mahjong Ougon No Pai (bootleg)",                                GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
69307120GAME( 1994, mjreach,  0,        tenkai,   mjreach,  dynax_state,   mjreach,  ROT0,   "bootleg / Dynax",          "Mahjong Reach (bootleg)",                                       GAME_SUPPORTS_SAVE )
69317121GAME( 1995, shpeng,   0,        sprtmtch, drgpunch, driver_device, 0,        ROT0,   "WSAC Systems?",            "Sea Hunter Penguin",                                            GAME_NO_COCKTAIL | GAME_WRONG_COLORS | GAME_SUPPORTS_SAVE ) // not a dynax board. proms?
69327122GAME( 1996, majrjhdx, 0,        majrjhdx, tenkai,   driver_device, 0,        ROT0,   "Dynax",                    "Mahjong Raijinhai DX",                                          GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
trunk/src/mame/includes/dynax.h
r244947r244948
186186   DECLARE_WRITE8_MEMBER(dynax_blit_dest_w);
187187   DECLARE_WRITE8_MEMBER(dynax_blit2_dest_w);
188188   DECLARE_WRITE8_MEMBER(tenkai_blit_dest_w);
189   DECLARE_WRITE8_MEMBER(mjembase_blit_dest_w);
189190   DECLARE_WRITE8_MEMBER(dynax_blit_backpen_w);
190191   DECLARE_WRITE8_MEMBER(dynax_blit_palette01_w);
191192   DECLARE_WRITE8_MEMBER(tenkai_blit_palette01_w);
192193   DECLARE_WRITE8_MEMBER(dynax_blit_palette45_w);
193194   DECLARE_WRITE8_MEMBER(dynax_blit_palette23_w);
194195   DECLARE_WRITE8_MEMBER(tenkai_blit_palette23_w);
196   DECLARE_WRITE8_MEMBER(mjembase_blit_palette23_w);
195197   DECLARE_WRITE8_MEMBER(dynax_blit_palette67_w);
196198   DECLARE_WRITE8_MEMBER(dynax_blit_palbank_w);
197199   DECLARE_WRITE8_MEMBER(dynax_blit2_palbank_w);
r244947r244948
213215   DECLARE_WRITE8_MEMBER(jantouki_blitter2_rev2_w);
214216   DECLARE_WRITE8_MEMBER(hanamai_priority_w);
215217   DECLARE_WRITE8_MEMBER(tenkai_priority_w);
218   DECLARE_WRITE8_MEMBER(mjembase_priority_w);
216219
217220   DECLARE_DRIVER_INIT(mjelct3);
218221   DECLARE_DRIVER_INIT(blktouch);
r244947r244948
264267   DECLARE_MACHINE_START(jantouki);
265268   DECLARE_VIDEO_START(jantouki);
266269   DECLARE_VIDEO_START(mjelctrn);
270   DECLARE_VIDEO_START(mjembase);
267271   DECLARE_VIDEO_START(mjdialq2);
268272   DECLARE_VIDEO_START(mcnpshnt);
269273   DECLARE_PALETTE_INIT(janyuki);
trunk/src/mame/mame.lst
r244947r244948
96039603blktouch        // (c) Yang Gi Co Ltd.
96049604mcnpshnt        // "33" Mahjong Campus Hunting 1990 Dynax
960596057jigen          // "37" 7jigen no Youseitachi 1990 Dynax
9606mjembase        // "38" Mahjong Electromagnetic Base 1989 Dynax
96069607neruton         // "45" Mahjong Neruton Haikujiradan 1990 Dynax
96079608nerutona        // "45" Mahjong Neruton Haikujiradan 1990 Dynax
96089609mjcomv1         // 1991 Dynax
r244947r244948
96119612tenkai2b        // 1991 Dynax
96129613tenkaibb        // 1991 Dynax
96139614tenkaicb        // 1991 Dynax
9614tenkaid         // 1991 Dynax
96159615tenkaie         // 1991 Dynax
9616ougonpai        // 1991 Dynax
9617ougonpaib       // bootleg
96169618htengoku        // 1992 Dynax
96179619mjreach         // 1994 Dynax
96189620mjdialq2        // "52" (c) 1991 Dynax
trunk/src/mame/video/dynax.c
r244947r244948
121121   dynax_blit_dest_w(space, 0, BITSWAP8(data, 7, 6, 5, 4, 0, 1, 2, 3));
122122}
123123
124/*
125mjelctrn:   7 d e -> 1 - 4 8
126mjembase:   b d e -> - 2 4 8
127*/
128WRITE8_MEMBER(dynax_state::mjembase_blit_dest_w)
129{
130   dynax_blit_dest_w(space, 0, BITSWAP8(data, 7, 6, 5, 4, 2, 3, 1, 0));
131}
124132
133
125134/* Background Color */
126135WRITE8_MEMBER(dynax_state::dynax_blit_backpen_w)
127136{
r244947r244948
174183   LOG(("P23=%02X ", data));
175184}
176185
186WRITE8_MEMBER(dynax_state::mjembase_blit_palette23_w)
187{
188   dynax_blit_palette23_w(space, offset, BITSWAP8(data, 3, 2, 1, 0, 7, 6, 5, 4), mem_mask);
189}
177190
191
178192/* Layer 6&7 Palettes (Low Bits) */
179193WRITE8_MEMBER(dynax_state::dynax_blit_palette67_w)
180194{
r244947r244948
729743static const int priority_hnoridur[8] = { 0x0231, 0x2103, 0x3102, 0x2031, 0x3021, 0x1302, 0x2310, 0x1023 };
730744static const int priority_mcnpshnt[8] = { 0x3210, 0x2103, 0x3102, 0x2031, 0x3021, 0x1302, 0x2310, 0x1023 };
731745static const int priority_mjelctrn[8] = { 0x0231, 0x0321, 0x2031, 0x2301, 0x3021, 0x3201 ,0x0000, 0x0000 }; // this game doesn't use (hasn't?) layer 1
746static const int priority_mjembase[8] = { 0x0231, 0x2031, 0x0321, 0x3021, 0x2301, 0x3201 ,0x0000, 0x0000 }; // this game doesn't use (hasn't?) layer 1
732747
733748
734749void dynax_state::dynax_common_reset()
r244947r244948
940955   m_update_irq_func = &dynax_state::mjelctrn_update_irq;
941956}
942957
958VIDEO_START_MEMBER(dynax_state,mjembase)
959{
960   VIDEO_START_CALL_MEMBER(hnoridur);
961
962   m_priority_table = priority_mjembase;
963   m_update_irq_func = &dynax_state::mjelctrn_update_irq;
964}
965
943966VIDEO_START_MEMBER(dynax_state,neruton)
944967{
945968   VIDEO_START_CALL_MEMBER(hnoridur);
r244947r244948
11521175   m_hanamai_priority = BITSWAP8(data, 3, 2, 1, 0, 4, 7, 5, 6);
11531176}
11541177
1178/*
1179mjembase:   priority: 00 08 10 18 20 28; enable: 1,2,4
1180Convert to:
1181mjelctrn:   priority: 00 20 10 40 30 50; enable: 1,2,8
1182*/
1183WRITE8_MEMBER(dynax_state::mjembase_priority_w)
1184{
1185   m_hanamai_priority = BITSWAP8(data, 6, 5, 4, 3, 2, 7, 1, 0);
1186}
1187
1188
11551189int dynax_state::debug_mask()
11561190{
11571191#ifdef MAME_DEBUG


Previous 199869 Revisions Next


© 1997-2024 The MAME Team