Previous 199869 Revisions Next

r34722 Wednesday 28th January, 2015 at 23:26:01 UTC by Couriersud
Merge remote-tracking branch 'origin/master'
[src/mame/drivers]hikaru.c model2.c model3.c naomi.c
[src/mame/machine]315-5881_crypt.c
[src/mess/drivers]c65.c

trunk/src/mame/drivers/hikaru.c
r243233r243234
571571   /* ic66 unpopulated */
572572
573573   // 834-14149   2000     317-0294-COM   Hikaru
574   ROM_PARAMETER( ":rom_board:segam2crypt:key", "091b02c7" )
574   ROM_PARAMETER( ":rom_board:segam2crypt:key", "291b02c7" )
575575ROM_END
576576
577577
r243233r243234
609609   ROM_LOAD32_WORD( "mpr-23564.ic66", 0xe000002, 0x1000000, CRC(255724b6) SHA1(1b382fad165831de3f2e39352c031146759dfc69) )
610610
611611   // 834-14144   2001     317-0297-COM   Hikaru
612   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0912c68a" )
612   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2912c68a" )
613613ROM_END
614614
615615ROM_START( podrace )
r243233r243234
663663
664664   // current 315-5881 decryption simulation code can't produce valid output data with any of keys
665665   // 834-14002   2001     317-0277-COM   Hikaru
666   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0903dad5" )
666   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2903dad5" )
667667ROM_END
668668
669669ROM_START( braveff )
trunk/src/mame/drivers/model2.c
r243233r243234
35713571   ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) )
35723572
35733573   //             1998     317-0236-COM   Model 2
3574   ROM_PARAMETER( ":315_5881:key", "0c2a4a93" )
3574   ROM_PARAMETER( ":315_5881:key", "2c2a4a93" )
35753575
35763576   MODEL2_CPU_BOARD
35773577   MODEL2A_VID_BOARD
r243233r243234
36223622   ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) )
36233623
36243624   //             1998     317-0236-COM   Model 2
3625   ROM_PARAMETER( ":315_5881:key", "0c2a4a93" )
3625   ROM_PARAMETER( ":315_5881:key", "2c2a4a93" )
36263626
36273627   MODEL2_CPU_BOARD
36283628   MODEL2A_VID_BOARD
r243233r243234
36733673   ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) )
36743674
36753675   //             1998     317-0236-COM   Model 2
3676   ROM_PARAMETER( ":315_5881:key", "0c2a4a93" )
3676   ROM_PARAMETER( ":315_5881:key", "2c2a4a93" )
36773677ROM_END
36783678
36793679ROM_START( dyndeka2b ) /* Dynamite Deka 2 (Japan), Model 2B */
r243233r243234
37213721   ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) )
37223722
37233723   //             1998     317-0236-COM   Model 2
3724   ROM_PARAMETER( ":315_5881:key", "0c2a4a93" )
3724   ROM_PARAMETER( ":315_5881:key", "2c2a4a93" )
37253725ROM_END
37263726
37273727ROM_START( dynamcopc ) /* Dynamite Cop (USA), Model 2C */
r243233r243234
37693769   ROM_LOAD("mpr-20815.37", 0x600000, 0x200000, CRC(1b5aaae4) SHA1(32b4bf6c096fdccdd5d8f1ddb6c27d3389a52234) ) /* Located at position 35 on 2C-CRX rom board */
37703770
37713771   //             1998     317-0236-COM   Model 2
3772   ROM_PARAMETER( ":315_5881:key", "0c2a4a93" )
3772   ROM_PARAMETER( ":315_5881:key", "2c2a4a93" )
37733773ROM_END
37743774
37753775ROM_START( schamp ) /* Sonic Championship, Model 2B - Sega ROM board ID# 834-12786 */
trunk/src/mame/drivers/model3.c
r243233r243234
33363336   ROM_FILL( 0x000000, 0x80000, 0 )
33373337
33383338   //             ????     317-0237-COM   Model 3
3339   ROM_PARAMETER( ":315_5881:key", "09234e96" )
3339   ROM_PARAMETER( ":315_5881:key", "29234e96" )
33403340ROM_END
33413341
33423342ROM_START( vs29815 )    /* Step 1.5, ROM board ID# 834-13495 VS2 VER98 STEP 1.5 */
r243233r243234
34893489   ROM_FILL( 0x000000, 0x80000, 0 )
34903490
34913491   //             ????     317-0245-COM   Model 3
3492   ROM_PARAMETER( ":315_5881:key", "09222ac8" )
3492   ROM_PARAMETER( ":315_5881:key", "29222ac8" )
34933493ROM_END
34943494
34953495ROM_START( vs299b ) /* Step 2.0 */
r243233r243234
35673567   ROM_FILL( 0x000000, 0x80000, 0 )
35683568
35693569   //             ????     317-0245-COM   Model 3
3570   ROM_PARAMETER( ":315_5881:key", "09222ac8" )
3570   ROM_PARAMETER( ":315_5881:key", "29222ac8" )
35713571ROM_END
35723572
35733573ROM_START( vs299a ) /* Step 2.0 */
r243233r243234
37233723   ROM_FILL( 0x000000, 0x80000, 0 )
37243724
37253725   //             ????     317-0245-COM   Model 3
3726   ROM_PARAMETER( ":315_5881:key", "09222ac8" )
3726   ROM_PARAMETER( ":315_5881:key", "29222ac8" )
37273727ROM_END
37283728
37293729ROM_START( von2 )   /* Step 2.0 */
r243233r243234
38023802   ROM_FILL( 0x000000, 0x80000, 0 )
38033803
38043804   //             ????     317-0234-COM   Model 3
3805   ROM_PARAMETER( ":315_5881:key", "092a0e97" )
3805   ROM_PARAMETER( ":315_5881:key", "292a0e97" )
38063806ROM_END
38073807
38083808ROM_START( von254g )    /* Step 2.0, Sega game ID# is 833-13789 */
r243233r243234
38813881   ROM_FILL( 0x000000, 0x80000, 0 )
38823882
38833883   //             ????     317-0234-COM   Model 3
3884   ROM_PARAMETER( ":315_5881:key", "092a0e97" )
3884   ROM_PARAMETER( ":315_5881:key", "292a0e97" )
38853885ROM_END
38863886
38873887ROM_START( skichamp )   /* Step 2.0 */
r243233r243234
40284028   ROM_LOAD( "epr21119.ic8",  0x00000, 0x10000, CRC(65082b14) SHA1(6c3c192dd6ef3780c6202dd63fc6086328928818) )
40294029
40304030   //             ????     317-0241-COM   Model 3
4031   ROM_PARAMETER( ":315_5881:key", "11272a01" )
4031   ROM_PARAMETER( ":315_5881:key", "31272a01" )
40324032ROM_END
40334033
40344034ROM_START( swtrilgya )  /* Step 2.1, Sega game ID# is 833-13586, ROM board ID# 834-13587 STAR WARS TRILOGY, Security board ID# 837-13588-COM */
r243233r243234
41004100   ROM_FILL( 0x000000, 0x80000, 0 )
41014101
41024102   //             ????     317-0241-COM   Model 3
4103   ROM_PARAMETER( ":315_5881:key", "11272a01" )
4103   ROM_PARAMETER( ":315_5881:key", "31272a01" )
41044104ROM_END
41054105
41064106ROM_START( dirtdvls )   /* Step 2.1, Sega game ID# is 833-13427, ROM board ID# 834-13528 DRT */
r243233r243234
41644164   ROM_FILL( 0x000000, 0x80000, 0 )
41654165
41664166   //             ????     317-0238-COM   Model 3
4167   ROM_PARAMETER( ":315_5881:key", "09290f17" )
4167   ROM_PARAMETER( ":315_5881:key", "29290f17" )
41684168ROM_END
41694169
41704170ROM_START( dirtdvlsa )  /* Step 2.1 */
r243233r243234
43114311   ROM_LOAD( "epr-20985.bin", 0x000000, 0x010000, CRC(b139481d) SHA1(05fca7db7c8b084c53bd157ba3e8296f1a961a99) )
43124312
43134313   //             ????     317-0239-COM   Model 3
4314   ROM_PARAMETER( ":315_5881:key", "09250e16" )
4314   ROM_PARAMETER( ":315_5881:key", "29250e16" )
43154315ROM_END
43164316
43174317ROM_START( dayto2pe )   /* Step 2.1, Sega game ID# is 833-13610 DAYTONA USA2 SP, ROM board ID# 834-13609 DAYTONA USA2 SP, Security board ID# 837-13645-COM */
r243233r243234
43944394   ROM_LOAD( "epr-20985.bin", 0x000000, 0x010000, CRC(b139481d) SHA1(05fca7db7c8b084c53bd157ba3e8296f1a961a99) )
43954395
43964396   //             ????     317-5045-COM   Model 3
4397   ROM_PARAMETER( ":315_5881:key", "0" ) // unknown
4397   ROM_PARAMETER( ":315_5881:key", "29222cc4" )
43984398ROM_END
43994399
44004400ROM_START( srally2 )    /* Step 2.0, Sega game ID# is 833-13373, ROM board ID# 834-13374 SRT TWIN */
r243233r243234
47494749   ROM_FILL( 0x000000, 0x80000, 0 )
47504750
47514751   //             ????     317-0235-COM   Model 3
4752   ROM_PARAMETER( ":315_5881:key", "09260e96" )
4752   ROM_PARAMETER( ":315_5881:key", "29260e96" )
47534753ROM_END
47544754
47554755ROM_START( spikeout )   /* Step 2.1 */
r243233r243234
48294829   ROM_FILL( 0x000000, 0x80000, 0 )
48304830
48314831   //             ????     317-0240-COM   Model 3
4832   ROM_PARAMETER( ":315_5881:key", "092f2b04" )
4832   ROM_PARAMETER( ":315_5881:key", "292f2b04" )
48334833ROM_END
48344834
48354835ROM_START( spikeofe )   /* Step 2.1, Sega game ID# is 833-13746, ROM board ID# 834-13747 SPK F/E, Security board ID# 837-13726-COM */
r243233r243234
49094909   ROM_FILL( 0x000000, 0x80000, 0 )
49104910
49114911   //             ????     317-0247-COM   Model 3
4912   ROM_PARAMETER( ":315_5881:key", "09236fc8" )
4912   ROM_PARAMETER( ":315_5881:key", "29236fc8" )
49134913ROM_END
49144914
49154915ROM_START( eca )    /* Step 2.1, ROM board ID# 834-13946-01 ECA */
r243233r243234
49804980   ROM_FILL( 0x000000, 0x80000, 0 )
49814981
49824982   //             ????     317-0265-COM   Model 3
4983   ROM_PARAMETER( ":315_5881:key", "0923aa91" )
4983   ROM_PARAMETER( ":315_5881:key", "2923aa91" )
49844984ROM_END
49854985
49864986ROM_START( ecax )   /* Step 2.1 */
r243233r243234
50515051   ROM_FILL( 0x000000, 0x80000, 0 )
50525052
50535053   //             ????     317-0265-COM   Model 3
5054   ROM_PARAMETER( ":315_5881:key", "0923aa91" )
5054   ROM_PARAMETER( ":315_5881:key", "2923aa91" )
50555055ROM_END
50565056
50575057ROM_START( ecap )   /* Step 2.1 - Proto or Location test - No security dongle */
r243233r243234
51255125   ROM_FILL( 0x000000, 0x80000, 0 )
51265126
51275127   //             ????     317-0265-COM   Model 3
5128   ROM_PARAMETER( ":315_5881:key", "0923aa91" )
5128   ROM_PARAMETER( ":315_5881:key", "2923aa91" )
51295129ROM_END
51305130
51315131ROM_START( magtruck )   /* Step 2.1, Sega game ID# is 833-13601-01 (Export), ROM board ID# 834-13600-01 RCS EXP (Export), Security board ID# 837-13599-COM */
r243233r243234
51845184   ROM_FILL( 0x000000, 0x80000, 0 )
51855185
51865186   //             ????     317-0243-COM   Model 3
5187   ROM_PARAMETER( ":315_5881:key", "09266e45" )
5187   ROM_PARAMETER( ":315_5881:key", "29266e45" )
51885188ROM_END
51895189
51905190ROM_START( oceanhun )   /* Step 2.0, Sega game ID# is 833-13571, ROM board ID# 834-13572 THE OCEAN HUNTER, 317-0242-COM security chip (837-13576-COM security board) */
r243233r243234
52555255   ROM_FILL( 0x000000, 0x80000, 0 )
52565256
52575257   //             ????     317-0242-COM   Model 3
5258   ROM_PARAMETER( ":315_5881:key", "092b6a01" )
5258   ROM_PARAMETER( ":315_5881:key", "292b6a01" )
52595259ROM_END
52605260
52615261ROM_START( lamachin )   /* Step 2.0, Sega game ID# is 833-13664, ROM board ID# 834-13665 L.A.MACHINEGUNS, 317-0244-COM security chip (837-13666-COM security board) */
r243233r243234
53275327   ROM_FILL( 0x000000, 0x80000, 0 )
53285328
53295329   //             ????     317-0244-COM   Model 3
5330   ROM_PARAMETER( ":315_5881:key", "092a2bc5" )
5330   ROM_PARAMETER( ":315_5881:key", "292a2bc5" )
53315331ROM_END
53325332
53335333/* Model 3 sound board emulation */
trunk/src/mame/drivers/naomi.c
r243233r243234
32213221   ROM_LOAD("mpr-23427.ic8",   0x4000000, 0x0800000, CRC(5851d525) SHA1(1cb1073542d75a3bcc0d363ed31d49bcaf1fd494) )
32223222
32233223   // 840-0044    2000     317-0289-COM   Naomi
3224   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08103347" )
3224   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28103347" )
32253225ROM_END
32263226
32273227ROM_START( csmasho )
r243233r243234
32403240   ROM_LOAD("mpr-23427.ic8", 0x4000000, 0x0800000, CRC(5851d525) SHA1(1cb1073542d75a3bcc0d363ed31d49bcaf1fd494) )
32413241
32423242   // 840-0044    2000     317-0289-COM   Naomi
3243   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08103347" )
3243   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28103347" )
32443244ROM_END
32453245
32463246/*
r243233r243234
34653465   ROM_LOAD("mpr-22098.ic14s", 0x7000000, 0x0800000, CRC(f9824d2e) SHA1(f20f8cc2b1bef9077ede1cb874da8f2a335d39de) )
34663466
34673467   // 840-0016    1999     317-0262-JPN   Naomi
3468   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080fee35" )
3468   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280fee35" )
34693469ROM_END
34703470
34713471ROM_START( derbyocw )
r243233r243234
36073607   ROM_LOAD("mpr-21574.ic21s", 0xa800000, 0x0800000, CRC(d794a42c) SHA1(a79c7818c6ec993e718494b1d5407eb270a29abe) )
36083608
36093609   // 840-0001    1998     317-0246-JPN   Naomi
3610   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080e6ae1" )
3610   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280e6ae1" )
36113611ROM_END
36123612
36133613/*
r243233r243234
36713671   ROM_LOAD("mpr-22140.ic19s", 0x9800000, 0x0800000, CRC(4cb54893) SHA1(a99b39cc3c82c3cf90f794bb8c8ba60638a6f921) )
36723672
36733673   // 840-0019    1999     317-0269-JPN   Naomi
3674   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0804ae71" )
3674   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2804ae71" )
36753675ROM_END
36763676
36773677ROM_START( smlg99 )
r243233r243234
37043704   ROM_LOAD( "mpr-22058.ic21s", 0xa800000, 0x800000, CRC(f16edaa0) SHA1(e093f5594df43c592a9acd45002ecc65035c2435) )
37053705
37063706   // 840-0012    1999     317-0259-COM   Naomi
3707   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08048a01" )
3707   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28048a01" )
37083708ROM_END
37093709
37103710/*
r243233r243234
37463746   ROM_LOAD("mpr-21901.ic21s", 0xa800000, 0x0800000, CRC(266a3eea) SHA1(795ecc5589a0152b9cf1e03e454ed1ea01501942) )
37473747
37483748   // 834-13842   1999     317-0254-COM   Naomi
3749   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080e8f84" )
3749   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280e8f84" )
37503750
37513751   ROM_REGION( 0x10000, "drivebd", 0 ) /* drive board ROM */
37523752   ROM_LOAD( "epr-21867.bin", 0x000000, 0x010000, CRC(4f93a2a0) SHA1(875907e7fcfc44850e2c60c12268ac61c742f217) )
r243233r243234
37813781   ROM_LOAD( "mpr-22847.ic21s", 0xa800000, 0x800000, CRC(955ad42e) SHA1(e396ca02b5786557434632c4fac56af3a4a9f8ce) )
37823782
37833783   // 834-13950   1999     317-0267-COM   Naomi
3784   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0806efd4" )
3784   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2806efd4" )
37853785ROM_END
37863786
37873787// There is also a development cart (171-7885A). Content is the same.
r243233r243234
38143814   ROM_LOAD( "mpr-23398.ic21s", 0xa800000, 0x800000, CRC(ea4d4d2a) SHA1(3dc9c7164516ae7f3b988c088ab819d8fd40d75e) )
38153815
38163816   // 840-0042    2001     317-0287-COM   Naomi
3817   ROM_PARAMETER( ":rom_board:segam2crypt:key", "081666c6" )
3817   ROM_PARAMETER( ":rom_board:segam2crypt:key", "281666c6" )
38183818ROM_END
38193819
38203820ROM_START( alpiltdx )
r243233r243234
38363836   ROM_LOAD( "mpr-21738.ic11", 0x5800000, 0x800000, CRC(95a592e8) SHA1(862dce467e8805381bab001df68262f1baf3c498) )
38373837
38383838   // 834-?????   1999     317-0251-COM   Naomi
3839   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08070e41" )
3839   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28070e41" )
38403840
38413841   // on-cart X76F100 eeprom contents
38423842   ROM_REGION( 0x84, "naomibd_eeprom", 0 )
r243233r243234
38623862   ROM_LOAD( "mpr-21738.ic11", 0x5800000, 0x800000, CRC(95a592e8) SHA1(862dce467e8805381bab001df68262f1baf3c498) )
38633863
38643864   // 840-0005    1999     317-0251-COM   Naomi
3865   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08070e41" )
3865   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28070e41" )
38663866ROM_END
38673867
38683868ROM_START( hotd2 )
r243233r243234
40004000   ROM_LOAD("mpr-21831.ic11", 0x5800000, 0x0800000, CRC(751848d0) SHA1(9c2267fd3c6f9ea5f2679bb2ca20d511a49b2845) )
40014001
40024002   // 840-0007    1999     317-0253-JPN   Naomi
4003   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08074a61" )
4003   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28074a61" )
40044004ROM_END
40054005
40064006/*
r243233r243234
40904090   ROM_LOAD( "x76f100.ic37", 0x000000, 0x000084, CRC(c79251d5) SHA1(3e70bbbb6d28bade7eec7e27d716463045656f98) )
40914091
40924092   // 840-0008    1999     317-0255-JPN   Naomi
4093   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08028ea5" )
4093   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28028ea5" )
40944094ROM_END
40954095
40964096ROM_START( tduno2 )
r243233r243234
41674167   ROM_LOAD( "mpr-23534.ic10", 0x9800000, 0x1000000, CRC(62ed85b6) SHA1(b88336bc6115c92a839981cb0c0d0a67b1f7eda5) )
41684168
41694169   // 840-0043    2000     317-0288-COM   Naomi
4170   ROM_PARAMETER( ":rom_board:segam2crypt:key", "081c2347" )
4170   ROM_PARAMETER( ":rom_board:segam2crypt:key", "281c2347" )
41714171ROM_END
41724172
41734173ROM_START( crakndj2 )
r243233r243234
42014201   ROM_LOAD( "rom20.ic20s",  0xa000000, 0x800000, CRC(aabcd580) SHA1(9455e218ab381c7ad5adb2884da39ca7948169d5) )
42024202
42034203   // 840-0068    2001     317-0311-COM   Naomi
4204   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08428247" )
4204   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28428247" )
42054205ROM_END
42064206
42074207ROM_START( samba2k )
r243233r243234
42234223   ROM_LOAD( "mpr-23599.ic11", 0x0a800000, 0x1000000, CRC(1fd2e792) SHA1(6f299e527be529f85d0e8b4ce0e7a06ac0d25fe9) )
42244224
42254225   // 840-0047    2000     317-0295-COM   Naomi
4226   ROM_PARAMETER( ":rom_board:segam2crypt:key", "081702cf" )
4226   ROM_PARAMETER( ":rom_board:segam2crypt:key", "281702cf" )
42274227ROM_END
42284228
42294229ROM_START( alienfnt )
r243233r243234
42394239   ROM_LOAD( "mpr-23585.ic5",   0x4800000, 0x1000000, CRC(883a6482) SHA1(e3145710df793b7fd67f02707904416210a71978) )
42404240
42414241   // 840-0048    2001     317-0293-COM   Naomi
4242   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08174343" )
4242   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28174343" )
42434243ROM_END
42444244
42454245ROM_START( alienfnta )
r243233r243234
42554255   ROM_LOAD( "mpr-23585.ic5",   0x4800000, 0x1000000, CRC(883a6482) SHA1(e3145710df793b7fd67f02707904416210a71978) )
42564256
42574257   // 840-0048    2001     317-0293-COM   Naomi
4258   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08174343" )
4258   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28174343" )
42594259ROM_END
42604260
42614261/*
r243233r243234
45184518   ROM_LOAD("mpr-22034.ic10",0x5000000, 0x0800000, CRC(3aa5ce5e) SHA1(f00a906235e4522d6fc2ac771324114346875314) )
45194519
45204520   // 840-0011    1999     317-0257-COM   Naomi
4521   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0802ca85" )
4521   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2802ca85" )
45224522ROM_END
45234523
45244524/* Crazy Taxi */
r243233r243234
45434543   ROM_LOAD( "mpr-21683.ic15s", 0x7800000, 0x800000, CRC(ac8a27e0) SHA1(8e71d853a102dd6c164d5326e6d157ccfb8c7b36) )
45444544
45454545   // 840-0002    1999     317-0248-COM   Naomi
4546   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080d2f45" )
4546   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280d2f45" )
45474547ROM_END
45484548
45494549/* Jambo! Safari */
r243233r243234
45634563   ROM_LOAD( "mpr-22825.ic8",  0x4000000, 0x800000, CRC(85bada10) SHA1(b6e15d8f1d6bca12ffa4816ed0393c04ca500fba) )
45644564
45654565   // 840-0013    1999     317-0264-COM   Naomi
4566   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080fab95" )
4566   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280fab95" )
45674567ROM_END
45684568
45694569/* 18 Wheeler (deluxe) (Rev A) */
r243233r243234
45954595   ROM_LOAD( "mpr-22183.ic20s", 0xa000000, 0x800000, CRC(776af308) SHA1(7d29cb4dce75d34c622549fea7e102868d0da60a) )
45964596
45974597   // 840-0023    2000     317-0273-COM   Naomi
4598   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0807cf54" )
4598   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2807cf54" )
45994599
46004600   // JVS I/O board 837-13844, code is for a Z80 of unknown type (it's inside the big Sega ASIC)
46014601   ROM_REGION( 0x20000, "jvsio", ROMREGION_ERASEFF)
r243233r243234
46374637   ROM_LOAD( "mpr-22183.ic20s", 0xa000000, 0x800000, CRC(776af308) SHA1(7d29cb4dce75d34c622549fea7e102868d0da60a) )
46384638
46394639   // 840-0023    2000     317-0273-COM   Naomi
4640   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0807cf54" )
4640   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2807cf54" )
46414641
46424642   // JVS I/O board 837-13844, code is for a Z80 of unknown type (it's inside the big Sega ASIC)
46434643   ROM_REGION( 0x20000, "jvsio", ROMREGION_ERASEFF)
r243233r243234
46794679   ROM_LOAD( "mpr-22183.ic20s", 0xa000000, 0x800000, CRC(776af308) SHA1(7d29cb4dce75d34c622549fea7e102868d0da60a) )
46804680
46814681   // 840-0023    2000     317-0273-COM   Naomi
4682   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0807cf54" )
4682   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2807cf54" )
46834683
46844684   // JVS I/O board 837-13844, code is for a Z80 of unknown type (it's inside the big Sega ASIC)
46854685   ROM_REGION( 0x20000, "jvsio", ROMREGION_ERASEFF)
r243233r243234
47124712   ROM_LOAD( "mpr-22992.ic15s", 0x7800000, 0x800000, CRC(5eb6c4c6) SHA1(5dc1bced7ebd7d7e01f74d03706ec4a96585628d) )
47134713
47144714   // 840-0025    1999     317-0274-JPN   Naomi
4715   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080b8ef5" )
4715   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280b8ef5" )
47164716ROM_END
47174717
47184718/* Sega Strike Fighter */
r243233r243234
47444744   ROM_LOAD( "mpr-23321.ic20s", 0xa000000, 0x800000, CRC(018627d4) SHA1(2519f39ad046d14f602648fed39bc3719185b55e) )
47454745
47464746   // 840-0035    2000     317-0281-COM   Naomi
4747   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08132303" )
4747   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28132303" )
47484748ROM_END
47494749
47504750// EPR ROM have different number, possible updated/bugfixed re-release or STD/DLX version, difference with original set is unknown, have "Rev.A" label too
r243233r243234
47764776   ROM_LOAD( "mpr-23321.ic20s", 0xa000000, 0x800000, CRC(018627d4) SHA1(2519f39ad046d14f602648fed39bc3719185b55e) )
47774777
47784778   // 840-0035    2000     317-0281-COM   Naomi
4779   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08132303" )
4779   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28132303" )
47804780ROM_END
47814781
47824782
r243233r243234
47964796   ROM_LOAD( "mpr-22915.ic6", 0x3000000, 0x800000, CRC(e48148ac) SHA1(c1273353eeaf9bb6b185f133281d7d04271bc895) )
47974797
47984798   // 840-0018    1999     317-0268-COM   Naomi
4799   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0808ae51" )
4799   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2808ae51" )
48004800ROM_END
48014801
48024802/*
r243233r243234
48534853   ROM_LOAD("mpr-23340.ic17s",0x8800000, 0x0800000, CRC(001604f8) SHA1(615ec027d383d44d4aadb1175be6320e4139d7d1) )
48544854
48554855   // 840-0041    2000     317-0286-COM   Naomi
4856   ROM_PARAMETER( ":rom_board:segam2crypt:key", "081a66ca" )
4856   ROM_PARAMETER( ":rom_board:segam2crypt:key", "281a66ca" )
48574857ROM_END
48584858
48594859
r243233r243234
50615061   ROM_LOAD("mpr-22160.ic19s",0x9800000, 0x0800000, CRC(579eef4e) SHA1(bfcabd57f623647053afcedcabfbc74e5736819f) )
50625062
50635063   // 840-0017    1999     317-0266-COM   Naomi
5064   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080fea94" )
5064   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280fea94" )
50655065ROM_END
50665066
50675067/*
r243233r243234
51545154   ROM_LOAD("mpr-22965.ic16s",0x8000000, 0x0800000, CRC(8f7bfa8a) SHA1(19f137b1552978d232785c4408805b71835585c6) )
51555155
51565156   // 840-0020    1999     317-0270-COM   Naomi
5157   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080a8b5d" )
5157   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280a8b5d" )
51585158ROM_END
51595159
51605160// prototype - only works with US BIOS
r243233r243234
51825182   ROM_LOAD("mpr-22965.ic16s",0x8000000, 0x0800000, CRC(8f7bfa8a) SHA1(19f137b1552978d232785c4408805b71835585c6) )
51835183
51845184   // 840-0020    1999     317-0270-COM   Naomi
5185   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080a8b5d" )
5185   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280a8b5d" )
51865186ROM_END
51875187
51885188/*
r243233r243234
54655465   ROM_LOAD("mpr-22948.ic21s", 0xa800000, 0x0800000, CRC(1b0de917) SHA1(fd1742ea9bb2f1ce871ee3266171f26634e1c8e7) )
54665466
54675467   // 840-0021    2000     317-0271-COM   Naomi
5468   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08068b58" )
5468   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28068b58" )
54695469ROM_END
54705470
54715471ROM_START( virnbap )
r243233r243234
54975497   ROM_LOAD("mpr-22948.ic21s", 0xa800000, 0x0800000, CRC(1b0de917) SHA1(fd1742ea9bb2f1ce871ee3266171f26634e1c8e7) )
54985498
54995499   // 840-0021    2000     317-0271-COM   Naomi
5500   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08068b58" )
5500   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28068b58" )
55015501ROM_END
55025502
55035503/*
r243233r243234
55505550   ROM_LOAD("mpr-21923.ic15s",0x7800000, 0x0400000, CRC(d127d9a5) SHA1(78c95357344ea15469b84fa8b1332e76521892cd) )
55515551
55525552   // 840-0010    1999     317-0258-COM   Naomi
5553   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08088b08" )
5553   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28088b08" )
55545554ROM_END
55555555
55565556/*
r243233r243234
55955595   ROM_LOAD("mpr-22926.ic11",0x5800000, 0x0800000, CRC(57eec89d) SHA1(dd8f9a9155e51ee5260f559449fb0ea245077952) )
55965596
55975597   // 840-0015    1999     317-0263-COM   Naomi
5598   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0803eb15" )
5598   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2803eb15" )
55995599ROM_END
56005600
56015601/*
r243233r243234
56215621   ROM_LOAD( "mpr-22269.ic8", 0x7800000, 0x1000000, CRC(6c0cf740) SHA1(da10b33a6e54afbe1d7e52801216e7119b0b33b1) )
56225622
56235623   // 840-0040    2000     317-0285-COM   Naomi
5624   ROM_PARAMETER( ":rom_board:segam2crypt:key", "081627c3" )
5624   ROM_PARAMETER( ":rom_board:segam2crypt:key", "281627c3" )
56255625ROM_END
56265626
56275627ROM_START( mushik2e )
r243233r243234
59385938   ROM_LOAD("mpr-21726.ic19s",0x9800000, 0x0800000, CRC(429bf290) SHA1(6733e1bcf100e73ab43273f6feedc187fcaa55d4) )
59395939
59405940   // 840-0003    1999     317-0249-COM   Naomi
5941   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08012b41" )
5941   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28012b41" )
59425942ROM_END
59435943
59445944ROM_START( gunsur2 )
r243233r243234
62006200   ROM_LOAD( "maz1ma8.4d",  0x8000000, 0x1000000, CRC(d46c9f40) SHA1(45eec7fa3d4261f12438e841254fa75d572331b3) )
62016201
62026202   // 25869812    2002     317-0266-COM   Naomi
6203   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080fea94" )
6203   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280fea94" )
62046204ROM_END
62056205
62066206ROM_START( mazana )
r243233r243234
62196219   ROM_LOAD( "maz1ma8.4d",  0x8000000, 0x1000000, CRC(d46c9f40) SHA1(45eec7fa3d4261f12438e841254fa75d572331b3) )
62206220
62216221   // 25869812    2002     317-0266-COM   Naomi
6222   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080fea94" )
6222   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280fea94" )
62236223ROM_END
62246224
62256225ROM_START( vtenis2c )
r243233r243234
63926392   ROM_LOAD( "ic16s.bin", 0x8000000, 0x800000, CRC(b8493dbe) SHA1(b641417e1bda49341e7ff86340072d74e3330665) )
63936393
63946394   // 840-0073    2001     317-0316-JPN   Naomi
6395   ROM_PARAMETER( ":rom_board:segam2crypt:key", "094bc3e3" )
6395   ROM_PARAMETER( ":rom_board:segam2crypt:key", "294bc3e3" )
63966396ROM_END
63976397
63986398ROM_START( ringout )
r243233r243234
64136413   ROM_LOAD( "mpr-21770.ic10", 0x5000000, 0x800000, CRC(c5308e61) SHA1(e51f8026351d5ffbda2a5bed39aeef543366febf) )
64146414
64156415   // 840-0004    1999     317-0250-COM   Naomi
6416   ROM_PARAMETER( ":rom_board:segam2crypt:key", "080b1e40" )
6416   ROM_PARAMETER( ":rom_board:segam2crypt:key", "280b1e40" )
64176417ROM_END
64186418
64196419ROM_START( vonot )
r243233r243234
64376437   ROM_LOAD( "mpr-23194.ic13s", 0x6800000, 0x800000, CRC(5adea0bd) SHA1(f8614ba83d5f61556c3db1a1796a02ed2c51ce2a) )
64386438
64396439   // 840-0028    2000     317-0279-COM   Naomi
6440   ROM_PARAMETER( ":rom_board:segam2crypt:key", "08010715" )
6440   ROM_PARAMETER( ":rom_board:segam2crypt:key", "28010715" )
64416441ROM_END
64426442
64436443ROM_START( derbyo2k )
r243233r243234
78017801   ROM_LOAD( "mpr-23662.ic11", 0xa800000, 0x0800000, CRC(d6ef7d68) SHA1(4ee396af6c5caf4c5af6e9ad0e03a7ac2c5039f4) )
78027802
78037803   // 840-0061    2001     317-0310-COM   Naomi 2
7804   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0cee834a" )
7804   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2cee834a" )
78057805ROM_END
78067806
78077807ROM_START( vstrik3cb )
r243233r243234
78237823   ROM_LOAD( "mpr-23662.ic11", 0xa800000, 0x0800000, CRC(d6ef7d68) SHA1(4ee396af6c5caf4c5af6e9ad0e03a7ac2c5039f4) )
78247824
78257825   // 840-0061    2001     317-0310-COM   Naomi 2
7826   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0cee834a" )
7826   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2cee834a" )
78277827ROM_END
78287828
78297829ROM_START( wldrider )
r243233r243234
78447844   ROM_LOAD( "mpr-23620.ic10", 0x9800000, 0x1000000, CRC(67aa15a9) SHA1(42c24cbf7069c27430a71509a872cd1c4224aaeb) )
78457845
78467846   // 840-0046    2001     317-0301-COM   Naomi 2
7847   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0ce7a703" )
7847   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2ce7a703" )
78487848ROM_END
78497849
78507850ROM_START( vf4cart )
r243233r243234
78667866   ROM_LOAD( "mpr-23784.ic11", 0xa800000, 0x1000000, CRC(f74f2fee) SHA1(84b07baa6d116727e66ef27e24ba6484c3393891) )
78677867
78687868   // 840-0080    2002     317-0324-COM   Naomi 2
7869   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0eef2f96" )
7869   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2eef2f96" )
78707870ROM_END
78717871
78727872// There is also a development cart (171-7885A) with 20x 64Mb FlashROMs instead of 10x 128Mb MaskROMs. Content is the same.
r243233r243234
79897989   ROM_LOAD( "mpr-23703.ic11", 0xa800000, 0x1000000, CRC(702b8b4a) SHA1(3a8dfde458f341e7db20664382b9fce2b6e5d462) )
79907990
79917991   // 840-0062    2001     317-0313-COM   Naomi 2
7992   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0ce7d742" )
7992   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2ce7d742" )
79937993ROM_END
79947994
79957995ROM_START( clubkrtd )
r243233r243234
80338033   ROM_LOAD( "mpr-23703.ic11", 0xa800000, 0x1000000, CRC(702b8b4a) SHA1(3a8dfde458f341e7db20664382b9fce2b6e5d462) )
80348034
80358035   // 840-0062    2001     317-0313-COM   Naomi 2
8036   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0ce7d742" )
8036   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2ce7d742" )
80378037ROM_END
80388038
80398039ROM_START( clubkprz )
r243233r243234
80668066   ROM_LOAD( "at25010.ic3s", 0x000000, 0x000084, CRC(0142d8be) SHA1(5922b6c47b12b19e1fa7bbe9aae391905038a7ff) )
80678067
80688068   // 840-0062    2001     317-0313-COM   Naomi 2
8069   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0ce7d742" )
8069   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2ce7d742" )
80708070ROM_END
80718071
80728072ROM_START( clubkpzb )
r243233r243234
80958095   ROM_COPY( "rom_board", 0x1000000, 0x400000, 0xc00000 )
80968096
80978097   // 840-0062    2001     317-0313-COM   Naomi 2
8098   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0ce7d742" )
8098   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2ce7d742" )
80998099
81008100   // this dump can't be used as main_eeprom, because that's exactly 0x80 bytes
81018101   ROM_REGION(0x84, "some_eeprom", 0)
r243233r243234
81308130   ROM_COPY( "rom_board", 0x1000000, 0x400000, 0xc00000 )
81318131
81328132   // 840-0062    2001     317-0313-COM   Naomi 2
8133   ROM_PARAMETER( ":rom_board:segam2crypt:key", "0ce7d742" )
8133   ROM_PARAMETER( ":rom_board:segam2crypt:key", "2ce7d742" )
81348134ROM_END
81358135
81368136// uses the same mask roms data as clubk2k3, but not in 32bit dissected form, EPR doesn't have checksumms for them, so rom test shows all roms as BAD
trunk/src/mame/machine/315-5881_crypt.c
r243233r243234
148148given plaintext word, and the remaining 2 to the next plaintext word.
149149
150150The underlying block cipher consists of two 4-round Feistel Networks (FN): the first one takes the counter (16 bits),
151the game-key (>=29 bits; probably 64) and the sequence-key (16 bits) and output a middle result (16 bits) which will act
151the game-key (>=30 bits; probably 64) and the sequence-key (16 bits) and output a middle result (16 bits) which will act
152152as another key for the second one. The second FN will take the encrypted word (16 bits), the game-key, the sequence-key
153153and the result from the first FN and will output the decrypted word (16 bits).
154154
r243233r243234
199199that the real key is 64 bits long, exactly as in the related CPS-2 scheme, and the designers tried to cover all 96 input bits with
200200the bits provening from the game key, the sequence key and the result from the first feistel network (64+16+16=96). In the first
201201Feistel Network, as only 80 bits are available, some bits would be used twice (as can be partially seen in the current implementation).
202The fact that only 29 bits out of the expected 64 have been observed till now would be due to the generation of the key by composing
202The fact that only 30 bits out of the expected 64 have been observed till now would be due to the generation of the key by composing
203203low-entropy sources.
204204
205205****************************************************************************************/
r243233r243234
511511
512512const int sega_315_5881_crypt_device::fn1_game_key_scheduling[FN1GK][2] = {
513513   {1,29},  {1,71},  {2,4},   {2,54},  {3,8},   {4,56},  {4,73},  {5,11},
514   {6,51},  {7,92},  {8,89},  {9,9},   {9,39},  {9,58},  {9,86},  {10,90},
515   {11,6},  {12,64}, {13,49}, {14,44}, {15,40}, {16,69}, {17,15}, {18,23},
516   {18,43}, {19,82}, {20,81}, {21,32}, {22,5},  {23,66}, {24,13}, {24,45},
517   {25,12}, {25,35}, {26,61}, {27,10}, {27,59}, {28,25}
514   {6,51},  {7,92},  {8,89},  {9,9},   {9,39},  {9,58},  {10,90}, {11,6},
515   {12,64}, {13,49}, {14,44}, {15,40}, {16,69}, {17,15}, {18,23}, {18,43},
516   {19,82}, {20,81}, {21,32}, {22,5},  {23,66}, {24,13}, {24,45}, {25,12},
517   {25,35}, {26,61}, {27,10}, {27,59}, {28,25}, {29,86}
518518};
519519
520520const int sega_315_5881_crypt_device::fn2_game_key_scheduling[FN2GK][2] = {
521521   {0,0},   {1,3},   {2,11},  {3,20},  {4,22},  {5,23},  {6,29},  {7,38},
522   {8,39},  {9,55},  {9,86},  {9,87},  {9,90},  {10,50}, {11,57}, {12,59},
523   {13,61}, {14,63}, {15,67}, {16,72}, {17,83}, {18,88}, {19,94}, {20,35},
524   {21,17}, {22,6},  {23,85}, {24,16}, {25,25}, {26,92}, {27,47}, {28,28}
522   {8,39},  {9,55},  {9,86},  {9,87},  {10,50}, {11,57}, {12,59}, {13,61},
523   {14,63}, {15,67}, {16,72}, {17,83}, {18,88}, {19,94}, {20,35}, {21,17},
524   {22,6},  {23,85}, {24,16}, {25,25}, {26,92}, {27,47}, {28,28}, {29,90}
525525};
526526
527527const int sega_315_5881_crypt_device::fn1_sequence_key_scheduling[20][2] = {
trunk/src/mess/drivers/c65.c
r243233r243234
77Attempt at rewriting the driver ...
88
99TODO:
10- Dies as soon as it enters into DOS ROM (bp 0x9d1a, it never returns due of a bad stack pointer read);
10- I need to subtract border color to -1 in order to get blue color (-> register is 6 and blue color is 5 in palette array).
11  Also top-left logo seems to draw wrong palette for entries 4,5,6,7. CPU core bug?
1112
1213Note:
1314- VIC-4567 will be eventually be added via compile switch, once that I
r243233r243234
5152   required_shared_ptr<UINT8> m_cram;
5253   required_device<gfxdecode_device> m_gfxdecode;
5354
55   UINT8 *m_iplrom;
56
57   
5458   DECLARE_READ8_MEMBER(vic4567_dummy_r);
5559   DECLARE_WRITE8_MEMBER(vic4567_dummy_w);
5660   DECLARE_WRITE8_MEMBER(PalRed_w);
r243233r243234
7781   virtual void video_start();
7882private:
7983   UINT8 m_VIC2_IRQPend, m_VIC2_IRQMask;
80   UINT8 m_VIC3_ControlA,m_VIC3_ControlB;
84   /* 0x20: border color (TODO: different thread?) */
85   UINT8 m_VIC2_EXTColor;
86   /* 0x30: banking + PAL + EXT SYNC */
87   UINT8 m_VIC3_ControlA;
88   /* 0x31: video modes */
89   UINT8 m_VIC3_ControlB;
8190   void PalEntryFlush(UINT8 offset);
8291   void DMAgicExecute(address_space &space,UINT32 address);
92   int inner_x_char(int xoffs);
93   int inner_y_char(int yoffs);
8394};
8495
8596void c65_state::video_start()
8697{
8798}
8899
100// TODO: inline?
101int c65_state::inner_x_char(int xoffs)
102{
103   return xoffs>>3;
104}
105
106int c65_state::inner_y_char(int yoffs)
107{
108   return yoffs>>3;
109}
110
89111UINT32 c65_state::screen_update( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect )
90112{
91113   int y,x;
92   gfx_element *gfx = m_gfxdecode->gfx(0);
93
94   for(y=0;y<30;y++)
114   int border_color = m_VIC2_EXTColor & 0xf;
115   
116   // TODO: border area
117   for(y=0;y<m_screen->height();y++)
95118   {
96      for(x=0;x<40;x++)
119      for(x=0;x<m_screen->width();x++)
97120      {
98         UINT8 tile = m_workram[x+y*40+0x800];
99         gfx->opaque(bitmap,cliprect,tile,0,0,0,x*8,y*8);
121         //int, xi,yi,xm,ym,dot_x;
122         int xi = inner_x_char(x);
123         int yi = inner_y_char(y);
124         int xm = 7 - (x & 7);
125         int ym = (y & 7);
126         UINT8 tile = m_workram[xi+yi*80+0x800];
127         UINT8 attr = m_cram[xi+yi*80];
128         int enable_dot = ((m_iplrom[(tile<<3)+ym+0xd000] >> xm) & 1);
129                 
130         //if(cliprect.contains(x, y))
131                 
132            bitmap.pix16(y, x) = m_palette->pen((enable_dot) ? attr & 0xf : border_color);
133
134         
135         //gfx->opaque(bitmap,cliprect,tile,0,0,0,x*8,y*8);
100136      }
101137   }
102138
r243233r243234
116152      case 0x12:
117153         res = (m_screen->vpos() & 0xff);
118154         return res;
155      case 0x20:
156         return m_VIC2_EXTColor;
119157      case 0x19:
120158         return m_VIC2_IRQPend;
121159      case 0x30:
r243233r243234
139177      case 0x1a:
140178         m_VIC2_IRQMask = data & 0xf;
141179         break;
180      case 0x20:
181         m_VIC2_EXTColor = data & 0xf;
182         break;
142183      /* KEY register, handles vic-iii and vic-ii modes via two consecutive writes
143184        0xa5 -> 0x96 vic-iii mode
144185          any other write vic-ii mode
r243233r243234
174215
175216WRITE8_MEMBER(c65_state::PalGreen_w)
176217{
177   m_palblue[offset] = data;
218   m_palgreen[offset] = data;
178219   PalEntryFlush(offset);
179220}
180221
181222WRITE8_MEMBER(c65_state::PalBlue_w)
182223{
183   m_palgreen[offset] = data;
224   m_palblue[offset] = data;
184225   PalEntryFlush(offset);
185226}
186227
r243233r243234
261302      return m_cram[offset];
262303   else
263304   {
264      // CIA
305      // CIA at 0xdc00
265306   }
266307
267   return 0;
308   return 0xff;
268309}
269310
270311WRITE8_MEMBER(c65_state::CIASelect_w)
r243233r243234
273314      m_cram[offset] = data;
274315   else
275316   {
276      // CIA
317      // CIA at 0xdc00
277318   }
278319   
279320}
r243233r243234
298339   AM_RANGE(0x0d700, 0x0d702) AM_WRITE(DMAgic_w) AM_SHARE("dmalist") // 0x0d700, 0x0d7** DMAgic
299340   //AM_RANGE(0x0d703, 0x0d703) AM_READ(DMAgic_r)
300341   // 0x0d800, 0x0d8** Color matrix
301   AM_RANGE(0x0dc00, 0x0dfff) AM_READWRITE(CIASelect_r,CIASelect_w) AM_SHARE("cram")
342   AM_RANGE(0x0d800, 0x0dfff) AM_READWRITE(CIASelect_r,CIASelect_w) AM_SHARE("cram")
302343   // 0x0dc00, 0x0dc** CIA-1
303344   // 0x0dd00, 0x0dd** CIA-2
304345   // 0x0de00, 0x0de** Ext I/O Select 1
r243233r243234
370411
371412void c65_state::machine_start()
372413{
414   m_iplrom = memregion("maincpu")->base();
415
416   save_pointer(NAME(m_cram.target()), 0x800);
373417}
374418
375419void c65_state::machine_reset()
r243233r243234
394438};
395439
396440static GFXDECODE_START( c65 )
397   GFXDECODE_ENTRY( "maincpu", 0xd000, charlayout,     0, 1 ) // another identical copy is at 0x9000
441   GFXDECODE_ENTRY( "maincpu", 0xd000, charlayout,     0, 16 ) // another identical copy is at 0x9000
398442GFXDECODE_END
399443
400444INTERRUPT_GEN_MEMBER(c65_state::vic3_vblank_irq)
r243233r243234
417461   MCFG_SCREEN_UPDATE_DRIVER(c65_state, screen_update)
418462//  MCFG_SCREEN_SIZE(32*8, 32*8)
419463//  MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
420   MCFG_SCREEN_RAW_PARAMS(MAIN_CLOCK, 910, 0, 320, 525, 0, 240) // mods needed
464   MCFG_SCREEN_RAW_PARAMS(MAIN_CLOCK, 910, 0, 640, 525, 0, 200) // mods needed
421465   MCFG_SCREEN_PALETTE("palette")
422466
423467   MCFG_GFXDECODE_ADD("gfxdecode", "palette", c65)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team