src/mame/machine/snes.c
| r7754 | r7755 | |
| 809 | 809 | |
| 810 | 810 | */ |
| 811 | 811 | |
| 812 | | /*FIXME: missing work RAM access steal */ |
| 812 | /*FIXME: missing work RAM access steal / we need to do this less "aggressive" otherwise we lose too much CPU horsepower, why? */ |
| 813 | 813 | static int snes_bank_0x00_0x3f_cycles(running_machine *machine,UINT32 offset) |
| 814 | 814 | { |
| 815 | 815 | /* |
| r7754 | r7755 | |
| 825 | 825 | */ |
| 826 | 826 | |
| 827 | 827 | if(((offset & 0xff00) == 0x4000) || ((offset & 0xff00) == 0x4100)) |
| 828 | | return 12; |
| 828 | return 0; //TODO: 12 |
| 829 | if(((offset & 0xff00) == 0x4200) || ((offset & 0xff00) == 0x4300)) |
| 830 | return 0; //TODO: 6 |
| 829 | 831 | |
| 830 | 832 | if(((offset & 0xff00) >= 0x0000) && ((offset & 0xff00) <= 0x1f00)) |
| 831 | | return 8; |
| 833 | return 0; //TODO: 8 |
| 832 | 834 | |
| 833 | 835 | if((offset & 0xff00) >= 0x6000) |
| 834 | 836 | return 8; |
| 835 | 837 | |
| 836 | | return 6; |
| 838 | return 0; //TODO: 6 |
| 837 | 839 | } |
| 838 | 840 | |
| 839 | 841 | static int snes_bank_0x80_0xbf_cycles(running_machine *machine,UINT32 offset) |
| r7754 | r7755 | |
| 850 | 852 | | $8000-$FFFF | Note2 | Address Bus A + /CART |
| 851 | 853 | */ |
| 852 | 854 | |
| 855 | |
| 853 | 856 | if(((offset & 0xff00) == 0x4000) || ((offset & 0xff00) == 0x4100)) |
| 854 | | return 12; |
| 857 | return 0; //TODO: 12 |
| 855 | 858 | |
| 859 | if(((offset & 0xff00) == 0x4200) || ((offset & 0xff00) == 0x4300)) |
| 860 | return 0; //TODO: 6 |
| 861 | |
| 856 | 862 | if(((offset & 0xff00) >= 0x0000) && ((offset & 0xff00) <= 0x1f00)) |
| 857 | | return 8; |
| 863 | return 0; //TODO: 8 |
| 858 | 864 | |
| 859 | 865 | if(((offset & 0xff00) >= 0x6000) && ((offset & 0xff00) <= 0x7f00)) |
| 860 | | return 8; |
| 866 | return 0; //TODO: 8 |
| 861 | 867 | |
| 862 | 868 | if(((offset & 0xff00) >= 0x8000) && ((offset & 0xff00) <= 0xff00)) |
| 863 | 869 | return (snes_ram[MEMSEL] & 1) ? 6 : 8; |
| 864 | 870 | |
| 865 | | return 6; |
| 871 | return 0; //TODO: 6 |
| 866 | 872 | } |
| 867 | 873 | |
| 868 | 874 | /* 0x000000 - 0x2fffff */ |