Ejemplo n.º 1
0
void S9xSoftReset(void)
{
   if (Settings.SuperFX)
      S9xResetSuperFX();

   memset(Memory.FillRAM, 0, 0x8000);
   memset(Memory.VRAM, 0x00, 0x10000);
   //   memset (Memory.RAM, 0x55, 0x20000);

   if (Settings.SPC7110)
      S9xSpc7110Reset();
   S9xResetCPU();
   S9xSoftResetPPU();
   S9xResetSRTC();
   if (Settings.SDD1)
      S9xResetSDD1();

   S9xResetDMA();
   S9xResetAPU();
   S9xResetDSP1();
   if (Settings.OBC1)
      ResetOBC1();
   S9xSA1Init();
   if (Settings.C4)
      S9xInitC4();

#ifdef WANT_CHEATS
   S9xInitCheatData();
#endif

}
Ejemplo n.º 2
0
Archivo: cpu.cpp Proyecto: dezro/snes9x
void S9xSoftReset (void)
{
    S9xResetSaveTimer (FALSE);

	if (Settings.BS)
		S9xResetBSX();
    if (Settings.SuperFX)
        S9xResetSuperFX ();
#ifdef ZSNES_FX
    WinterGold = Settings.WinterGold;
#endif
    ZeroMemory (Memory.FillRAM, 0x8000);
    memset (Memory.VRAM, 0x00, 0x10000);
 //   memset (Memory.RAM, 0x55, 0x20000);

	if(Settings.SPC7110)
		S9xSpc7110Reset();
    S9xSoftResetCPU ();
    S9xSoftResetPPU ();
    S9xResetSRTC ();
    if (Settings.SDD1)
        S9xResetSDD1 ();

    S9xResetDMA ();
    S9xResetAPU ();
    S9xResetDSP1 ();
	if(Settings.OBC1)
		ResetOBC1();
    S9xSA1Init ();
    if (Settings.C4)
        S9xInitC4 ();
    S9xInitCheatData ();

//    Settings.Paused = FALSE;
}
Ejemplo n.º 3
0
//int msgBoxLines(char* msg,int delay);
void S9xReset (void)
{
	//	msgBoxLines("S9xReset called",80);	
	MyCounter_Init();
	S9xResumeSoundProcess();
	S9xSuspendSoundProcess();
#ifdef _BSX_151_
	if (Settings.BS)//add azz 080517
		S9xResetBSX();
#endif

    if (Settings.SuperFX)
        S9xResetSuperFX ();

#ifdef ZSNES_FX
    WinterGold = Settings.WinterGold;
#endif
    ZeroMemory (ROM_GLOBAL, 0x8000);
    memset (VRAM, 0x00, 0x10000);
    memset (RAM, 0x55, 0x20000);

	if (Settings.SPC7110)
		S9xResetSPC7110();
    S9xResetCPU ();
    S9xResetPPU ();
	if (Settings.SRTC)
		S9xResetSRTC ();
    if (Settings.SDD1)
        S9xResetSDD1 ();

    S9xResetDMA ();
    S9xResetAPU ();
    S9xResetDSP1 ();
    S9xSA1Init ();
    if (Settings.C4)
        S9xInitC4 ();
    S9xInitCheatData ();

    Settings.Paused = FALSE;
    
        //Init CPU Map & co
    CPUPack.CPU.Memory_Map=(uint8*)Map;
    CPUPack.CPU.Memory_WriteMap=(uint8*)Memory.WriteMap;
    CPUPack.CPU.Memory_MemorySpeed=(uint8*)Memory.MemorySpeed;
    CPUPack.CPU.Memory_BlockIsRAM=(uint8*)Memory.BlockIsRAM;
//    CPUPack.CPU.Memory_SRAM=SRAM;
    CPUPack.CPU.Memory_BWRAM=BWRAM;
    CPUPack.CPU.Memory_SRAMMask=Memory.SRAMMask;
	
/*    __asm 
    {
    	LDR 	R0, = CPU
  	    ADD		R0,R0,R10
  		STR	 	R9,[R0,#124]
  		STR	 	R10,[R0,#128]
    } 
	*/
}
Ejemplo n.º 4
0
void S9xReset (void)
{
#ifdef SNSF9X_REMOVED
	S9xResetSaveTimer(FALSE);
	S9xResetLogger();
#endif

	memset(Memory.RAM, 0x55, 0x20000);
	memset(Memory.VRAM, 0x00, 0x10000);
	ZeroMemory(Memory.FillRAM, 0x8000);

#ifdef SNSF9X_REMOVED
	if (Settings.BS)
		S9xResetBSX();
#endif

	S9xResetCPU();
	S9xResetPPU();
	S9xResetDMA();
	S9xResetAPU();

#ifdef SNSF9X_REMOVED
	if (Settings.DSP)
		S9xResetDSP();
	if (Settings.SuperFX)
		S9xResetSuperFX();
#endif
#ifndef SNSF9X_REMOVED_SA1
	if (Settings.SA1)
		S9xSA1Init();
#endif
#ifndef SNSF9X_REMOVED_SDD1
	if (Settings.SDD1)
		S9xResetSDD1();
#endif
#ifdef SNSF9X_REMOVED
	if (Settings.SPC7110)
		S9xResetSPC7110();
	if (Settings.C4)
		S9xInitC4();
	if (Settings.OBC1)
		S9xResetOBC1();
	if (Settings.SRTC)
		S9xResetSRTC();

	S9xInitCheatData();
#endif
}
Ejemplo n.º 5
0
void S9xReset (void)
{
#ifdef SUPER_FX
    if (Settings.SuperFX)
        S9xResetSuperFX ();
#endif

    ZeroMemory (Memory.FillRAM, 0x8000);
    memset (Memory.VRAM, 0x00, 0x10000);
    memset (Memory.RAM, 0x55, 0x20000);

/*	if(Settings.SPC7110)
		S9xSpc7110Reset();*/
    S9xResetCPU ();
    S9xResetPPU ();
    S9xResetSRTC ();
    if (Settings.SDD1)
        S9xResetSDD1 ();

    S9xResetDMA ();
    S9xResetAPU ();
    S9xResetDSP1 ();
#ifdef USE_SA1
    S9xSA1Init ();
#endif

	if (Settings.C4)
		S9xInitC4 ();

	S9xResetSound(1);

    Settings.Paused = FALSE;
    
       //Init CPU Map & co
    CPU.Memory_Map=(uint8*)&(Memory.Map);
    CPU.Memory_WriteMap=(uint8*)&(Memory.WriteMap);
    CPU.Memory_MemorySpeed=Memory.MemorySpeed;
    CPU.Memory_BlockIsRAM=(uint8*)&(Memory.BlockIsRAM);
    CPU.Memory_SRAM=Memory.SRAM;
    CPU.Memory_BWRAM=Memory.BWRAM;
//    CPU.Memory_SRAMMask=Memory.SRAMMask;
	
}
Ejemplo n.º 6
0
//extern uint8 *C4Ram;
END_EXTERN_C
#endif

void S9xReset (void)
{

    if (Settings.SuperFX)
        S9xResetSuperFX ();

#ifdef ZSNES_FX
    WinterGold = Settings.WinterGold;
#endif

    ZeroMemory (Memory.FillRAM, 0x8000);
    memset (Memory.VRAM, 0x00, 0x10000);
    memset (Memory.RAM, 0x55, 0x20000);

    S9xResetCPU ();
    S9xResetPPU ();

//S9xResetSRTC ();

    if (Settings.SDD1)
        S9xResetSDD1 ();

    S9xResetDMA ();
    S9xResetAPU ();
    S9xResetDSP1 ();

    S9xSA1Init ();

    if (Settings.C4)
        S9xInitC4 ();

#ifdef CHEATS
    S9xInitCheatData ();
    S9xApplyCheats ();
#endif

	if(Settings.OBC1)
		ResetOBC1();
    Settings.Paused = FALSE;
}
Ejemplo n.º 7
0
void S9xReset (void)
{
	S9xResetSaveTimer(FALSE);
	S9xResetLogger();

	memset(Memory.RAM, 0x55, 0x20000);
	memset(Memory.VRAM, 0x00, 0x10000);
	memset(Memory.FillRAM, 0, 0x8000);

	if (Settings.BS)
		S9xResetBSX();

	S9xResetCPU();
	S9xResetPPU();
	S9xResetDMA();
	S9xResetAPU();
    S9xResetMSU();

	if (Settings.DSP)
		S9xResetDSP();
	if (Settings.SuperFX)
		S9xResetSuperFX();
	if (Settings.SA1)
		S9xSA1Init();
	if (Settings.SDD1)
		S9xResetSDD1();
	if (Settings.SPC7110)
		S9xResetSPC7110();
	if (Settings.C4)
		S9xInitC4();
	if (Settings.OBC1)
		S9xResetOBC1();
	if (Settings.SRTC)
		S9xResetSRTC();
	if (Settings.MSU1)
		S9xMSU1Init();

	S9xInitCheatData();
}