All pastes #69160 Raw Edit

Unnamed

public text v1 · immutable
#69160 ·published 2006-06-22 16:05 UTC
rendered paste body
/*
Open64

Gestion du Processeur

V0.01

23/03/06



Copyright Frédéric Meslin 2005

frederic.meslin@laposte.net



Copyright François Gallo 2005

redjack.coders@laposte.net
*/



  #ifndef __Programme

    #define __Programme



	#define true 1
	#define false 0
	#define bool char


	typedef struct EmulationStruct

	{

		bool Initialisee;

		bool Demarree;

		bool Pause;

		bool Erreur;



    bool Debug;

		bool Exec;



    AnsiString FileName;

    HANDLE FileHandle;

    

    HANDLE MainThread;

    DWORD MainThreadID;



    HANDLE VideoThread;

    DWORD VideoThreadID;



    HANDLE AudioThread;

    DWORD AudioThreadID;



    HANDLE ControlesThread;

    DWORD ControlesThreadID;



	};



  #define ALLEMAGNE 0x44

  #define USA 0x45

  #define JAPON 0x4A

  #define EUROPE 0x50

  #define AUSTRALIE 0x55



  #define VERSION 0

  #define RELEASE 0

  #define DATE 0



  void DemarrerEmulation();

  void PauserEmulation();

  void DePauserEmulation();

  void ReseterEmulation();



  long long unsigned HexToInt(AnsiString);



  bool InitialiserEmulateur();

  void TerminerEmulateur();



	void MainThread();

	void VideoThread();

  void AudioThread();

  void ControlesThread();



/*Rom*/



  bool ChargerRom(AnsiString);

  bool DeChargerRom();



  #endif