//===========================================================================
void ResetMachineState () {
  DiskReset();		// Set floppymotoron=0
  g_bFullSpeed = 0;	// Might've hit reset in middle of InternalCpuExecute() - so beep may get (partially) muted

  MemReset();
  DiskBoot();
  VideoResetState();
  sg_SSC.CommReset();
  PrintReset();
  JoyReset();
  MB_Reset();
  SpkrReset();
//  SoundCore_SetFade(FADE_NONE);
}
Exemple #2
0
ResetTree *ResetTree::ConsoleDebug(char *DebugString)
{
  if ((strcmp(DebugString,"help")) == 0)
  {
    IOLock.Obtain();
    printf("  Available Options:\n");
    printf("    PrintReset: Full Reset Printout\n");
    printf("    PrintBoard: Small Board Printout\n");
    printf("    PrintMoveOptions\n");
    printf("    ResetDebugPtr: Move DebugPtr back to the current board\n");
    printf("    FirstChild: Move DebugPtr to first Child\n");
    printf("    NextChild: Move DebugPtr to next child\n");
    printf("    PrevChild: Move DebugPtr to previous child\n");
    IOLock.Release();
  }
  if ((strcmp(DebugString,"PrintBoard")) == 0)
  {
    PrintSmallBoard();
    return(this);
  }
  if ((strcmp(DebugString,"PrintReset")) == 0)
  {
    PrintReset();
    return(this);
  }
  if ((strcmp(DebugString,"PrintMoveOptions")) == 0)
  {
    PrintMoveOptions();
    return(this);
  }
  if ((strcmp(DebugString,"FirstChild")) == 0)
  {
    return(Children.First);
  }
  if ((strcmp(DebugString,"NextChild")) == 0)
  {
    return(NextSibling);
  }
  if ((strcmp(DebugString,"PrevChild")) == 0)
  {
    return(PrevSibling);
  }
  if ((strcmp(DebugString,"TreeDiags")) == 0)
  {
    TreeDiagnostics();
    return(this);
  }
  printf("ConsoleDebug: No match for string \"%s\"!\n",DebugString);
}