Previous 15994 Revisions Next

r9253 Tuesday 28th September, 2010 at 07:23:20 UTC by Angelo Salese
[32x]: Implemented palette approval and fixed 32x authorization, fixes Diaxide booting
[src/mame/drivers]megadriv.c

src/mame/drivers/megadriv.c
r9252r9253
28442844
28452845   if (megadrive_hblank_flag) retdata |= 0x4000;
28462846
2847   if (megadrive_hblank_flag && megadrive_vblank_flag) { retdata |= 0x2000; } // palette approval (TODO: active high or low?)
2848
28472849   return retdata;
28482850}
28492851
r9252r9253
28952897   UINT16 retvalue = 0x0200;
28962898   retvalue |= _32x_access_auth << 15;
28972899
2898   retvalue |=   sh2_hint_in_vbl;;
2900   retvalue |=   sh2_hint_in_vbl;
28992901   retvalue |= sh2_master_vint_enable;
29002902   retvalue |= sh2_master_hint_enable;
29012903   retvalue |= sh2_master_cmdint_enable;
r9252r9253
29082910{
29092911   if (ACCESSING_BITS_8_15)
29102912   {
2911      _32x_access_auth = (data &0x80) >> 7;
2913      _32x_access_auth = (data &0x8000) >> 15;
29122914   }
29132915
29142916   if (ACCESSING_BITS_0_7)
r9252r9253
29212923
29222924      if (sh2_master_hint_enable) printf("sh2_master_hint_enable enable!\n");
29232925      //if (sh2_master_pwmint_enable) printf("sh2_master_pwn_enable enable!\n");
2924
29252926   }
29262927}
29272928
r9252r9253
29312932{
29322933   UINT16 retvalue = 0x0200;
29332934   retvalue |= _32x_access_auth << 15;
2934   retvalue |=   sh2_hint_in_vbl;;
2935   retvalue |=   sh2_hint_in_vbl;
29352936   retvalue |= sh2_slave_vint_enable;
29362937   retvalue |= sh2_slave_hint_enable;
29372938   retvalue |= sh2_slave_cmdint_enable;
r9252r9253
29452946{
29462947   if (ACCESSING_BITS_8_15)
29472948   {
2948      _32x_access_auth = (data &0x80) >> 7;
2949
2949      _32x_access_auth = (data &0x8000) >> 15;
29502950   }
29512951
29522952   if (ACCESSING_BITS_0_7)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team