Previous 15994 Revisions Next

r7755 Wednesday 7th April, 2010 at 16:21:40 UTC by Angelo Salese
[SNES]: Temporary made cycle stealing less aggressive
[src/mame/machine]snes.c

src/mame/machine/snes.c
r7754r7755
809809
810810*/
811811
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? */
813813static int snes_bank_0x00_0x3f_cycles(running_machine *machine,UINT32 offset)
814814{
815815/*
r7754r7755
825825         */
826826
827827   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
829831
830832   if(((offset & 0xff00) >= 0x0000) && ((offset & 0xff00) <= 0x1f00))
831      return 8;
833      return 0; //TODO: 8
832834
833835   if((offset & 0xff00) >= 0x6000)
834836      return 8;
835837
836   return 6;
838   return 0; //TODO: 6
837839}
838840
839841static int snes_bank_0x80_0xbf_cycles(running_machine *machine,UINT32 offset)
r7754r7755
850852         | $8000-$FFFF | Note2 | Address Bus A + /CART
851853*/
852854
855
853856   if(((offset & 0xff00) == 0x4000) || ((offset & 0xff00) == 0x4100))
854      return 12;
857      return 0; //TODO: 12
855858
859   if(((offset & 0xff00) == 0x4200) || ((offset & 0xff00) == 0x4300))
860      return 0; //TODO: 6
861
856862   if(((offset & 0xff00) >= 0x0000) && ((offset & 0xff00) <= 0x1f00))
857      return 8;
863      return 0; //TODO: 8
858864
859865   if(((offset & 0xff00) >= 0x6000) && ((offset & 0xff00) <= 0x7f00))
860      return 8;
866      return 0; //TODO: 8
861867
862868   if(((offset & 0xff00) >= 0x8000) && ((offset & 0xff00) <= 0xff00))
863869      return (snes_ram[MEMSEL] & 1) ? 6 : 8;
864870
865   return 6;
871   return 0; //TODO: 6
866872}
867873
868874/* 0x000000 - 0x2fffff */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team