src/mame/drivers/megadriv.c
| r9252 | r9253 | |
| 2844 | 2844 | |
| 2845 | 2845 | if (megadrive_hblank_flag) retdata |= 0x4000; |
| 2846 | 2846 | |
| 2847 | if (megadrive_hblank_flag && megadrive_vblank_flag) { retdata |= 0x2000; } // palette approval (TODO: active high or low?) |
| 2848 | |
| 2847 | 2849 | return retdata; |
| 2848 | 2850 | } |
| 2849 | 2851 | |
| r9252 | r9253 | |
| 2895 | 2897 | UINT16 retvalue = 0x0200; |
| 2896 | 2898 | retvalue |= _32x_access_auth << 15; |
| 2897 | 2899 | |
| 2898 | | retvalue |= sh2_hint_in_vbl;; |
| 2900 | retvalue |= sh2_hint_in_vbl; |
| 2899 | 2901 | retvalue |= sh2_master_vint_enable; |
| 2900 | 2902 | retvalue |= sh2_master_hint_enable; |
| 2901 | 2903 | retvalue |= sh2_master_cmdint_enable; |
| r9252 | r9253 | |
| 2908 | 2910 | { |
| 2909 | 2911 | if (ACCESSING_BITS_8_15) |
| 2910 | 2912 | { |
| 2911 | | _32x_access_auth = (data &0x80) >> 7; |
| 2913 | _32x_access_auth = (data &0x8000) >> 15; |
| 2912 | 2914 | } |
| 2913 | 2915 | |
| 2914 | 2916 | if (ACCESSING_BITS_0_7) |
| r9252 | r9253 | |
| 2921 | 2923 | |
| 2922 | 2924 | if (sh2_master_hint_enable) printf("sh2_master_hint_enable enable!\n"); |
| 2923 | 2925 | //if (sh2_master_pwmint_enable) printf("sh2_master_pwn_enable enable!\n"); |
| 2924 | | |
| 2925 | 2926 | } |
| 2926 | 2927 | } |
| 2927 | 2928 | |
| r9252 | r9253 | |
| 2931 | 2932 | { |
| 2932 | 2933 | UINT16 retvalue = 0x0200; |
| 2933 | 2934 | retvalue |= _32x_access_auth << 15; |
| 2934 | | retvalue |= sh2_hint_in_vbl;; |
| 2935 | retvalue |= sh2_hint_in_vbl; |
| 2935 | 2936 | retvalue |= sh2_slave_vint_enable; |
| 2936 | 2937 | retvalue |= sh2_slave_hint_enable; |
| 2937 | 2938 | retvalue |= sh2_slave_cmdint_enable; |
| r9252 | r9253 | |
| 2945 | 2946 | { |
| 2946 | 2947 | if (ACCESSING_BITS_8_15) |
| 2947 | 2948 | { |
| 2948 | | _32x_access_auth = (data &0x80) >> 7; |
| 2949 | | |
| 2949 | _32x_access_auth = (data &0x8000) >> 15; |
| 2950 | 2950 | } |
| 2951 | 2951 | |
| 2952 | 2952 | if (ACCESSING_BITS_0_7) |