Previous 15994 Revisions Next

r9337 Thursday 7th October, 2010 at 10:47:10 UTC by Angelo Salese
[32x]: added the SDK bios needed by eccodemo, also updated TODO notes
[src/mame/drivers]megadriv.c
[src/mess/drivers]genesis.c

src/mame/drivers/megadriv.c
r9336r9337
3838     - this seems to require far greater sync and timing accuracy on rom / ram access than MAME can provide
3939     - split NTSC / PAL drivers
4040     - 36greatju: missing backup ram, has issues with golfer select due of that
41     - afterbju: black screen, has a bug with Master SH-2 code snippet at 060037f8 (R0 should be 0x3ff but it's instead 0x3fff****)
4241     - bcracers: write to undefined PWM register?
43     - cosmiccp: black screen, Master SH-2 stalls on a RTS? (unchecked)
44     - eccodemo: black screen after the Sega logo, faulty comms check
4542     - fifa96 / nbajamte: dies on the gameplay, waiting for a comm change that never occurs;
4643     - marsch1: doesn't boot, Master / Slave communicates through SCI
4744     - nbajamte: missing I2C hookup, startup fails due of that (same I2C type as plain MD version);
4845     - nflquart: black screen, missing h irq?
4946     - sangoku4: black screen after the Sega logo
50     - sharrierju: black screen;
51     - soulstar: hangs almost soon, it just plays the BGM and shows a galaxy background;
47     - soulstar: OSD and player sprite isn't drawn;
5248     - tempo: intro is too fast, mostly noticeable with the PWM sound that cuts off too early when it gets to the title screen;
5349     - tmek: gameplay is clearly too fast
54     - vfju: dies when a match starts or when attempts to enter into attract mode, master SH-2 jumps to a misaligned vector;
55     - vham: Master SH-2 crashes when entering into gameplay
56     - vrdxu: no 3d gfxs
57     - wwfraw: writes fb data to the cart area and expects it to be read back, kludging the cart area to be writeable makes the 32x gfxs to appear
50     - vrdxu: has 3d geometry bugs, caused by a SH-2 DRC bug;
51     - vrdxu: crashes if you attempt to enter into main menu;
52     - wwfraw: writes fb data to the cart area and expects it to be read back, kludging the cart area to be writeable makes the 32x gfxs to appear, why?
5853     - wwfwre: no 32x gfxs
59     - xmen: black screen after that you choose the level
54     - xmen: black screen after that you choose the level, needs bare minimum SH-2 SCI support
6055
6156    Add PicoDrive support (not arcade)
6257
r9336r9337
32593254   {
32603255
32613256      case 0x00:
3262         printf("_32x_68k_a15180_w (a15180) %04x %04x   source _32x_access_auth %04x\n",data,mem_mask, _32x_access_auth);
3257         //printf("_32x_68k_a15180_w (a15180) %04x %04x   source _32x_access_auth %04x\n",data,mem_mask, _32x_access_auth);
32633258
32643259         if (ACCESSING_BITS_0_7)
32653260         {
r9336r9337
33323327         if (ACCESSING_BITS_0_7)
33333328         {
33343329            _32x_fb_swap = data & 1;
3335           
3330
33363331            _32x_check_framebuffer_swap();
33373332         }
3338           
3333
33393334         break;
33403335
33413336
r9336r9337
39903985      segacd_comms_flags = (segacd_comms_flags & 0xff00) | (data & 0x00ff);
39913986      timer_call_after_resynch(space->machine, NULL, 0, NULL);
39923987   }
3993   
3988
39943989   if (ACCESSING_BITS_8_15)
39953990   {
39963991      if (data & 0xff00)
r9336r9337
40104005      }
40114006
40124007   }
4013   
4008
40144009   if (ACCESSING_BITS_8_15)
40154010   {
40164011      segacd_comms_flags = (segacd_comms_flags & 0x00ff) | (data & 0xff00);
r9336r9337
41094104   {
41104105      segacd_cdc_regaddress = data & 0x0f;
41114106      if (data & 0xf0) printf("unknown bits set in register address write %04x\n", data);
4112     
4107
41134108      printf("CDC register address set to %02x\n" , segacd_cdc_regaddress);
41144109   }
41154110
r9336r9337
41174112   {
41184113      segacd_cdc_destination_device = (data & 0x0700)>>8;
41194114      if (data & 0xf800) printf("unknown bits set in destination address write %04x\n",data);
4120     
4115
41214116      printf("destination set to: ");
41224117      switch (segacd_cdc_destination_device&0x7)
41234118      {
r9336r9337
41284123         case 0x04: printf("RFC5164 PCM\n"); break;
41294124         case 0x05: printf("PRG RAM\n"); break;
41304125         case 0x06: printf("Illegal\n"); break;
4131         case 0x07: printf("2M AM (2M Mode) / SUB CPU 1H RAM\n"); break;
4126         case 0x07: printf("2M AM (2M Mode) / SUB CPU 1H RAM\n"); break;
41324127      }
41334128   }
41344129}
r9336r9337
41364131static READ16_HANDLER( segacd_cdc_mode_address_r )
41374132{
41384133   UINT16 retdata = 0x0000;
4139   
4134
41404135   if (ACCESSING_BITS_0_7)
41414136   {
41424137      retdata |= segacd_cdc_regaddress;
41434138   }
4144   
4139
41454140   if (ACCESSING_BITS_8_15)
41464141   {
41474142      retdata |= segacd_cdc_destination_device << 8;
4148     
4143
41494144      // todo: hook them up
41504145      int data_set_ready = 0;
41514146      int end_of_data_transfer = 0;
4152     
4147
41534148      if (data_set_ready) retdata |= 0x4000;
41544149      if (end_of_data_transfer) retdata |= 0x8000;
4155   
4150
41564151   }
4157   
4152
41584153   return retdata;
41594154}
41604155
r9336r9337
41654160      segacd_cdc_registers[segacd_cdc_regaddress] = data;
41664161      printf("CDC Register %02x set to %02x\n", segacd_cdc_regaddress, data & 0xff);
41674162   }
4168   
4163
41694164   if (ACCESSING_BITS_8_15)
41704165   {
41714166      // nothing here?
r9336r9337
41814176      retdata |= segacd_cdc_registers[segacd_cdc_regaddress];
41824177      printf("CDC Register %02x Read\n", segacd_cdc_regaddress);
41834178   }
4184   
4179
41854180   if (ACCESSING_BITS_8_15)
41864181   {
41874182      // nothing here?
41884183   }
4189   
4184
41904185   return retdata;
41914186}
41924187
r9336r9337
42134208      printf("Unspported: segacd_main_dataram_part1_r in mode 1\n");
42144209      return 0x0000;
42154210   }
4216   
4211
42174212   return 0x0000;
42184213}
42194214
42204215static WRITE16_HANDLER( segacd_main_dataram_part1_w )
4221{   
4216{
42224217   if (segacd_ram_mode==0)
42234218   {
42244219      // is this correct?
r9336r9337
42264221         COMBINE_DATA(&segacd_dataram[offset]);
42274222      else
42284223      {
4229         printf("Illegal: segacd_main_dataram_part1_w in mode 0 without permission\n");     
4224         printf("Illegal: segacd_main_dataram_part1_w in mode 0 without permission\n");
42304225      }
42314226   }
42324227   else if (segacd_ram_mode==1)
r9336r9337
42474242      case 0x01:
42484243         return segacd_hint_register;
42494244   }
4250   
4245
42514246   return 0;
42524247
42534248}
r9336r9337
43024297{
43034298   cpu_set_input_line(_segacd_68k_cpu, INPUT_LINE_RESET, ASSERT_LINE);
43044299   cpu_set_input_line(_segacd_68k_cpu, INPUT_LINE_HALT, ASSERT_LINE);
4305   
4300
43064301   segacd_hint_register = 0xffff; // -1
43074302}
43084303
r9336r9337
43594354      else
43604355      {
43614356         printf("Illegal: segacd_sub_dataram_part1_r in mode 0 without permission\n");
4362         return 0x0000;     
4357         return 0x0000;
43634358      }
43644359   }
43654360   else if (segacd_ram_mode==1)
r9336r9337
43674362      printf("Unspported: segacd_sub_dataram_part1_r in mode 1\n");
43684363      return 0x0000;
43694364   }
4370   
4365
43714366   return 0x0000;
43724367}
43734368
43744369static WRITE16_HANDLER( segacd_sub_dataram_part1_w )
4375{   
4370{
43764371   if (segacd_ram_mode==0)
43774372   {
43784373      // is this correct?
r9336r9337
44014396      printf("Unspported: segacd_sub_dataram_part2_r in mode 1\n");
44024397      return 0x0000;
44034398   }
4404   
4399
44054400   return 0x0000;
44064401}
44074402
r9336r9337
67776772
67786773      }
67796774
6780     
67816775
6776
67826777      _32x_check_framebuffer_swap();
6783     
67846778
6779
67856780   //  if (genesis_scanline_counter==0) irq4counter = MEGADRIVE_REG0A_HINT_VALUE;
67866781      // irq4counter = MEGADRIVE_REG0A_HINT_VALUE;
67876782
r9336r9337
76727667   ROM_COPY( "32x_68k_bios", 0x0, 0x0, 0x100)
76737668
76747669   ROM_REGION( 0x400000, "32x_master_sh2", 0 ) /* SH2 Code */
7675   ROM_LOAD( "32x_m_bios.bin", 0x000000,  0x000800, CRC(dd9c46b8) SHA1(1e5b0b2441a4979b6966d942b20cc76c413b8c5e) )
7670   ROM_SYSTEM_BIOS( 0, "retail", "Mars Version 1.0 (retail)" )
7671   ROMX_LOAD( "32x_m_bios.bin", 0x000000,  0x000800, CRC(dd9c46b8) SHA1(1e5b0b2441a4979b6966d942b20cc76c413b8c5e), ROM_BIOS(1) )
7672   ROM_SYSTEM_BIOS( 1, "sdk", "Mars Version 1.0 (early sdk)" )
7673   ROMX_LOAD( "32x_m_bios_sdk.bin", 0x000000,  0x000800, BAD_DUMP CRC(c7102c53) SHA1(ed73a47f186b373b8eff765f84ef26c3d9ef6cb0), ROM_BIOS(2) )
76767674
7675
76777676   ROM_REGION( 0x400000, "32x_slave_sh2", 0 ) /* SH2 Code */
76787677   ROM_LOAD( "32x_s_bios.bin", 0x000000,  0x000400, CRC(bfda1fe5) SHA1(4103668c1bbd66c5e24558e73d4f3f92061a109a) )
76797678ROM_END
src/mess/drivers/genesis.c
r9336r9337
460460   ROM_COPY( "32x_68k_bios", 0x0, 0x0, 0x100)
461461
462462   ROM_REGION( 0x400000, "32x_master_sh2", 0 ) /* SH2 Code */
463   ROM_LOAD( "32x_m_bios.bin", 0x000000,  0x000800, CRC(dd9c46b8) SHA1(1e5b0b2441a4979b6966d942b20cc76c413b8c5e) )
463   ROM_SYSTEM_BIOS( 0, "retail", "Mars Version 1.0 (retail)" )
464   ROMX_LOAD( "32x_m_bios.bin", 0x000000,  0x000800, CRC(dd9c46b8) SHA1(1e5b0b2441a4979b6966d942b20cc76c413b8c5e), ROM_BIOS(1) )
465   ROM_SYSTEM_BIOS( 1, "sdk", "Mars Version 1.0 (early sdk)" )
466   ROMX_LOAD( "32x_m_bios_sdk.bin", 0x000000,  0x000800, BAD_DUMP CRC(c7102c53) SHA1(ed73a47f186b373b8eff765f84ef26c3d9ef6cb0), ROM_BIOS(2) )
464467
465468   ROM_REGION( 0x400000, "32x_slave_sh2", 0 ) /* SH2 Code */
466469   ROM_LOAD( "32x_s_bios.bin", 0x000000,  0x000400, CRC(bfda1fe5) SHA1(4103668c1bbd66c5e24558e73d4f3f92061a109a) )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team