Added GPL header
This commit is contained in:
parent
ec220831b9
commit
4f6d6effa3
|
@ -1,5 +1,14 @@
|
||||||
#ifndef __MULTILANGUAGE__H__
|
/****************************************************************************
|
||||||
#define __MULTILANGUAGE__H__
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
enum LanguageStringID{
|
enum LanguageStringID{
|
||||||
EMPTY_STRING = 0,
|
EMPTY_STRING = 0,
|
||||||
|
@ -499,5 +508,3 @@ enum LanguageStringID{
|
||||||
};
|
};
|
||||||
|
|
||||||
#include ".\\Multilanguage\Language Class.h"
|
#include ".\\Multilanguage\Language Class.h"
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CLanguage * _Lang = NULL;
|
CLanguage * _Lang = NULL;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "..\support.h"
|
#include "..\support.h"
|
||||||
|
|
||||||
#pragma warning(disable:4786)
|
#pragma warning(disable:4786)
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
#ifndef __N64_SYSTEM__H__
|
/****************************************************************************
|
||||||
#define __N64_SYSTEM__H__
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "Support.h"
|
#include "Support.h"
|
||||||
#include <string> //needed for stl string (std::string)
|
#include <string> //needed for stl string (std::string)
|
||||||
|
@ -17,7 +26,6 @@ class CNotification;
|
||||||
#include "N64 System/Rom Information Class.h"
|
#include "N64 System/Rom Information Class.h"
|
||||||
#include "N64 System/Speed Limitor Class.h"
|
#include "N64 System/Speed Limitor Class.h"
|
||||||
#include "N64 System/Mips/OpCode.h"
|
#include "N64 System/Mips/OpCode.h"
|
||||||
#include "N64 System/Mips/OpCode Analysis Class.h"
|
|
||||||
#include "N64 System/Recompiler/X86ops.h"
|
#include "N64 System/Recompiler/X86ops.h"
|
||||||
#include "N64 System/Mips/Mempak.h"
|
#include "N64 System/Mips/Mempak.h"
|
||||||
#include "N64 System/Mips/FlashRam.h"
|
#include "N64 System/Mips/FlashRam.h"
|
||||||
|
@ -30,7 +38,6 @@ class CNotification;
|
||||||
#include "N64 System/Mips/TLB Class.h"
|
#include "N64 System/Mips/TLB Class.h"
|
||||||
#include "N64 System/Mips/Memory Labels Class.h"
|
#include "N64 System/Mips/Memory Labels Class.h"
|
||||||
#include "N64 System/Mips/Memory Class.h"
|
#include "N64 System/Mips/Memory Class.h"
|
||||||
#include "N64 System/Mips/OpCode Class.h"
|
|
||||||
#include "N64 System/Mips/Audio.h"
|
#include "N64 System/Mips/Audio.h"
|
||||||
#include "N64 System/Mips/System Timing.h"
|
#include "N64 System/Mips/System Timing.h"
|
||||||
#include "N64 System/Mips/System Events.h"
|
#include "N64 System/Mips/System Events.h"
|
||||||
|
@ -71,4 +78,3 @@ class CNotification;
|
||||||
#include "N64 System/N64 Class.h"
|
#include "N64 System/N64 Class.h"
|
||||||
#include "N64 System/System Globals.h"
|
#include "N64 System/System Globals.h"
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#if (!defined(EXTERNAL_RELEASE))
|
#if (!defined(EXTERNAL_RELEASE))
|
||||||
|
|
|
@ -1,29 +1,14 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
/*
|
|
||||||
* Project 64 - A Nintendo 64 emulator.
|
|
||||||
*
|
|
||||||
* (c) Copyright 2001 zilmar (zilmar@emulation64.com) and
|
|
||||||
* Jabo (jabo@emulation64.com).
|
|
||||||
*
|
|
||||||
* pj64 homepage: www.pj64.net
|
|
||||||
*
|
|
||||||
* Permission to use, copy, modify and distribute Project64 in both binary and
|
|
||||||
* source form, for non-commercial purposes, is hereby granted without fee,
|
|
||||||
* providing that this license information and copyright notice appear with
|
|
||||||
* all copies and any derived work.
|
|
||||||
*
|
|
||||||
* This software is provided 'as-is', without any express or implied
|
|
||||||
* warranty. In no event shall the authors be held liable for any damages
|
|
||||||
* arising from the use of this software.
|
|
||||||
*
|
|
||||||
* Project64 is freeware for PERSONAL USE only. Commercial users should
|
|
||||||
* seek permission of the copyright holders first. Commercial use includes
|
|
||||||
* charging money for Project64 or software derived from Project64.
|
|
||||||
*
|
|
||||||
* The copyright holders request that bug fixes and improvements to the code
|
|
||||||
* should be forwarded to them so if they want them.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#define FPR_Type(Reg) (Reg) == R4300i_COP1_S ? "S" : (Reg) == R4300i_COP1_D ? "D" :\
|
#define FPR_Type(Reg) (Reg) == R4300i_COP1_S ? "S" : (Reg) == R4300i_COP1_D ? "D" :\
|
||||||
|
|
|
@ -1,31 +1,14 @@
|
||||||
/*
|
/****************************************************************************
|
||||||
* Project 64 - A Nintendo 64 emulator.
|
* *
|
||||||
*
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
* (c) Copyright 2001 zilmar (zilmar@emulation64.com) and
|
* http://www.pj64-emu.com/ *
|
||||||
* Jabo (jabo@emulation64.com).
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
*
|
* *
|
||||||
* pj64 homepage: www.pj64.net
|
* License: *
|
||||||
*
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
* Permission to use, copy, modify and distribute Project64 in both binary and
|
* *
|
||||||
* source form, for non-commercial purposes, is hereby granted without fee,
|
****************************************************************************/
|
||||||
* providing that this license information and copyright notice appear with
|
#pragma once
|
||||||
* all copies and any derived work.
|
|
||||||
*
|
|
||||||
* This software is provided 'as-is', without any express or implied
|
|
||||||
* warranty. In no event shall the authors be held liable for any damages
|
|
||||||
* arising from the use of this software.
|
|
||||||
*
|
|
||||||
* Project64 is freeware for PERSONAL USE only. Commercial users should
|
|
||||||
* seek permission of the copyright holders first. Commercial use includes
|
|
||||||
* charging money for Project64 or software derived from Project64.
|
|
||||||
*
|
|
||||||
* The copyright holders request that bug fixes and improvements to the code
|
|
||||||
* should be forwarded to them so if they want them.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __r4300i_commands_h
|
|
||||||
#define __r4300i_commands_h
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -50,6 +33,3 @@ char * R4300iOpcodeName ( DWORD OpCode, DWORD PC );
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#include "Settings/SettingType/SettingsType-Cheats.h"
|
#include "Settings/SettingType/SettingsType-Cheats.h"
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CCheats {
|
class CCheats {
|
||||||
typedef struct {
|
typedef struct {
|
||||||
DWORD Command;
|
DWORD Command;
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Debugger UI.h"
|
#include "Debugger UI.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDumpMemory :
|
class CDumpMemory :
|
||||||
public CDebugDialog<CDumpMemory>
|
public CDebugDialog<CDumpMemory>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Debugger UI.h"
|
#include "Debugger UI.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDebugMemorySearch :
|
class CDebugMemorySearch :
|
||||||
public CDebugDialog<CDebugMemorySearch>
|
public CDebugDialog<CDebugMemorySearch>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Debugger UI.h"
|
#include "Debugger UI.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDebugTlb :
|
class CDebugTlb :
|
||||||
public CDebugDialog<CDebugTlb>
|
public CDebugDialog<CDebugTlb>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Debugger UI.h"
|
#include "Debugger UI.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDebugMemoryView :
|
class CDebugMemoryView :
|
||||||
public CDebugDialog<CDebugMemoryView>
|
public CDebugDialog<CDebugMemoryView>
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "Debugger UI.h"
|
#include "Debugger UI.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDumpMemory;
|
class CDumpMemory;
|
||||||
class CDebugMemoryView;
|
class CDebugMemoryView;
|
||||||
class CDebugMemorySearch;
|
class CDebugMemorySearch;
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
R4300iOp::Func * CInterpreterCPU::m_R4300i_Opcode = NULL;
|
R4300iOp::Func * CInterpreterCPU::m_R4300i_Opcode = NULL;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CInterpreterCPU :
|
class CInterpreterCPU :
|
||||||
private R4300iOp
|
private R4300iOp
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
//#include "../C Core/Logging.h"
|
//#include "../C Core/Logging.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class R4300iOp32 :
|
class R4300iOp32 :
|
||||||
public R4300iOp
|
public R4300iOp
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,28 +1,13 @@
|
||||||
/*
|
/****************************************************************************
|
||||||
* Project 64 - A Nintendo 64 emulator.
|
* *
|
||||||
*
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
* (c) Copyright 2001 zilmar (zilmar@emulation64.com) and
|
* http://www.pj64-emu.com/ *
|
||||||
* Jabo (jabo@emulation64.com).
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
*
|
* *
|
||||||
* pj64 homepage: www.pj64.net
|
* License: *
|
||||||
*
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
* Permission to use, copy, modify and distribute Project64 in both binary and
|
* *
|
||||||
* source form, for non-commercial purposes, is hereby granted without fee,
|
****************************************************************************/
|
||||||
* providing that this license information and copyright notice appear with
|
|
||||||
* all copies and any derived work.
|
|
||||||
*
|
|
||||||
* This software is provided 'as-is', without any express or implied
|
|
||||||
* warranty. In no event shall the authors be held liable for any damages
|
|
||||||
* arising from the use of this software.
|
|
||||||
*
|
|
||||||
* Project64 is freeware for PERSONAL USE only. Commercial users should
|
|
||||||
* seek permission of the copyright holders first. Commercial use includes
|
|
||||||
* charging money for Project64 or software derived from Project64.
|
|
||||||
*
|
|
||||||
* The copyright holders request that bug fixes and improvements to the code
|
|
||||||
* should be forwarded to them so if they want them.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "../C Core/Logging.h"
|
#include "../C Core/Logging.h"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class R4300iOp :
|
class R4300iOp :
|
||||||
protected CDebugSettings,
|
protected CDebugSettings,
|
||||||
protected CSystemRegisters
|
protected CSystemRegisters
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CAudio::CAudio (void)
|
CAudio::CAudio (void)
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CAudio
|
class CAudio
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CDMA::CDMA(CFlashram & FlashRam, CSram & Sram) :
|
CDMA::CDMA(CFlashram & FlashRam, CSram & Sram) :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDMA
|
class CDMA
|
||||||
{
|
{
|
||||||
CDMA();
|
CDMA();
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CEeprom
|
class CEeprom
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CFlashram::CFlashram (bool ReadOnly):
|
CFlashram::CFlashram (bool ReadOnly):
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CFlashram
|
class CFlashram
|
||||||
{
|
{
|
||||||
enum Modes {
|
enum Modes {
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
interface CMipsMemory_CallBack
|
interface CMipsMemory_CallBack
|
||||||
{
|
{
|
||||||
//Protected memory has been written to, returns true if that memory has been unprotected
|
//Protected memory has been written to, returns true if that memory has been unprotected
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
DWORD CMemoryLabel::AsciiToHex (char * HexValue) {
|
DWORD CMemoryLabel::AsciiToHex (char * HexValue) {
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
typedef std::map<DWORD, stdstr> StringMap;
|
typedef std::map<DWORD, stdstr> StringMap;
|
||||||
|
|
||||||
class CMemoryLabel {
|
class CMemoryLabel {
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
DWORD RegModValue;
|
DWORD RegModValue;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CMipsMemoryVM :
|
class CMipsMemoryVM :
|
||||||
public CMipsMemory,
|
public CMipsMemory,
|
||||||
public CTransVaddr,
|
public CTransVaddr,
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
|
@ -1,5 +1,14 @@
|
||||||
#ifndef _MEMPAK_H_
|
/****************************************************************************
|
||||||
#define _MEMPAK_H_
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class Mempak
|
class Mempak
|
||||||
{
|
{
|
||||||
|
@ -10,4 +19,3 @@ public:
|
||||||
static void WriteTo ( int Control, int Address, BYTE * Buffer );
|
static void WriteTo ( int Control, int Address, BYTE * Buffer );
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif //_MEMPAK_H_
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
static BYTE Mempaks[4][0x8000];
|
static BYTE Mempaks[4][0x8000];
|
||||||
HANDLE hMempakFile = NULL;
|
HANDLE hMempakFile = NULL;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,34 +0,0 @@
|
||||||
#ifdef tofix
|
|
||||||
|
|
||||||
class COpcodeAnalysis
|
|
||||||
{
|
|
||||||
OPCODE &m_opcode;
|
|
||||||
|
|
||||||
public:
|
|
||||||
COpcodeAnalysis(OPCODE &opcode);
|
|
||||||
|
|
||||||
//Functions dealing with the name of the opcode
|
|
||||||
const char * OpcodeName ( void );
|
|
||||||
stdstr FullName ( bool * MultipleOps );
|
|
||||||
void OpcodeParam ( char * CommandName );
|
|
||||||
stdstr Name ( void );
|
|
||||||
|
|
||||||
//Analysising the opcode
|
|
||||||
bool DelaySlotEffectsCompare ( DWORD Reg1, DWORD Reg2 );
|
|
||||||
bool DelaySlotEffectsJump ( void );
|
|
||||||
bool HasDelaySlot ( void );
|
|
||||||
bool IsCop1Instruction ( void );
|
|
||||||
|
|
||||||
//Information about the jump
|
|
||||||
bool HardJump ( void ); //Jump to a fixed address with out remembering current location
|
|
||||||
bool LinkedJump ( void ); //Stores the Next opcode in GPR[31]
|
|
||||||
bool RelativeJump ( void ); //Target relative to current PC (eg BNE, BEQ)
|
|
||||||
bool LikelyJump ( void ); //Misses Delay slot on jumping
|
|
||||||
bool NonConditionalJump ( void ); //will alway jump because of registers (eg BEQ r0, r0)
|
|
||||||
DWORD JumpLocation ( void ); //Target PC (uses m_opcode.VirtualAddress)
|
|
||||||
|
|
||||||
//Stops execution
|
|
||||||
bool TerminateExecution ( void );
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,120 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
||||||
|
|
||||||
#ifdef toremove
|
|
||||||
QWORD const COpcode::LDL_MASK[8] = { 0x0000000000000000,0x00000000000000FF,0x000000000000FFFF,
|
|
||||||
0x0000000000FFFFFF,0x00000000FFFFFFFF,0x000000FFFFFFFFFF,
|
|
||||||
0x0000FFFFFFFFFFFF,0x00FFFFFFFFFFFFFF };
|
|
||||||
QWORD const COpcode::LDR_MASK[8] = { 0xFFFFFFFFFFFFFF00,0xFFFFFFFFFFFF0000,0xFFFFFFFFFF000000,
|
|
||||||
0xFFFFFFFF00000000,0xFFFFFF0000000000,0xFFFF000000000000,
|
|
||||||
0xFF00000000000000,0x0000000000000000 };
|
|
||||||
QWORD const COpcode::SDL_MASK[8] = { 0x0000000000000000,0xFF00000000000000,0xFFFF000000000000,
|
|
||||||
0xFFFFFF0000000000,0xFFFFFFFF00000000,0xFFFFFFFFFF000000,
|
|
||||||
0xFFFFFFFFFFFF0000,0xFFFFFFFFFFFFFF00 };
|
|
||||||
QWORD const COpcode::SDR_MASK[8] = { 0x00FFFFFFFFFFFFFF,0x0000FFFFFFFFFFFF,0x000000FFFFFFFFFF,
|
|
||||||
0x00000000FFFFFFFF,0x0000000000FFFFFF,0x000000000000FFFF,
|
|
||||||
0x00000000000000FF,0x0000000000000000 };
|
|
||||||
int const COpcode::DL_SHIFT[8] = { 0, 8, 16, 24, 32, 40, 48, 56 };
|
|
||||||
int const COpcode::DR_SHIFT[8] = { 56,48,40, 32, 24, 16, 8, 0 };
|
|
||||||
|
|
||||||
DWORD const COpcode::LWL_MASK[4] = { 0x00000000,0x000000FF,0x0000FFFF,0x00FFFFFF };
|
|
||||||
DWORD const COpcode::LWR_MASK[4] = { 0xFFFFFF00,0xFFFF0000,0xFF000000,0x00000000 };
|
|
||||||
DWORD const COpcode::SWL_MASK[4] = { 0x00000000,0xFF000000,0xFFFF0000,0xFFFFFF00 };
|
|
||||||
DWORD const COpcode::SWR_MASK[4] = { 0x00FFFFFF,0x0000FFFF,0x000000FF,0x00000000 };
|
|
||||||
int const COpcode::WL_SHIFT[4] = { 0, 8, 16, 24 };
|
|
||||||
int const COpcode::WR_SHIFT[4] = { 24, 16 , 8, 0 };
|
|
||||||
|
|
||||||
COpcode::COpcode ( DWORD VirtualAddress ):
|
|
||||||
COpcodeAnalysis(m_opcode),
|
|
||||||
m_OpLen(OpCode_Size),
|
|
||||||
m_OpcodeCount(g_Settings->LoadDword(Game_CounterFactor)),
|
|
||||||
m_FixedOpcodeCount(g_Settings->LoadDword(Game_CounterFactor) != 0)
|
|
||||||
{
|
|
||||||
//setup details about handling opcodes
|
|
||||||
m_NextStep = StepNormal;
|
|
||||||
m_JumpLocation = -1;
|
|
||||||
|
|
||||||
//Flags
|
|
||||||
m_FlagSet = false;
|
|
||||||
m_ExectionJumped = false;
|
|
||||||
m_InPermLoop = PermLoop_None;
|
|
||||||
|
|
||||||
//set up the details about the current opcode
|
|
||||||
m_opcode.VirtualAddress = VirtualAddress & ~3;
|
|
||||||
if (!SetPC(m_opcode.VirtualAddress)) {
|
|
||||||
g_Notify->BreakPoint(__FILE__,__LINE__);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
float COpcode::CycleCount ( void ) {
|
|
||||||
if (m_FixedOpcodeCount) {
|
|
||||||
return m_OpcodeCount;
|
|
||||||
}
|
|
||||||
return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool COpcode::Next (void) {
|
|
||||||
m_ExectionJumped = false;
|
|
||||||
|
|
||||||
switch (m_NextStep) {
|
|
||||||
case StepNormal:
|
|
||||||
m_opcode.VirtualAddress += m_OpLen;
|
|
||||||
break;
|
|
||||||
case StepDelaySlot:
|
|
||||||
m_NextStep = StepJump;
|
|
||||||
m_opcode.VirtualAddress += m_OpLen;
|
|
||||||
break;
|
|
||||||
case StepJump:
|
|
||||||
m_opcode.VirtualAddress = m_JumpLocation;
|
|
||||||
m_NextStep = StepNormal;
|
|
||||||
m_FlagSet = true;
|
|
||||||
m_ExectionJumped = true;
|
|
||||||
break;
|
|
||||||
//Compiler flags
|
|
||||||
case DoDelaySlot:
|
|
||||||
m_NextStep = InsideDelaySlot;
|
|
||||||
m_opcode.VirtualAddress += m_OpLen;
|
|
||||||
break;
|
|
||||||
case InsideDelaySlot:
|
|
||||||
m_NextStep = DelaySlotDone;
|
|
||||||
m_opcode.VirtualAddress -= m_OpLen;
|
|
||||||
break;
|
|
||||||
case DelaySlotDone:
|
|
||||||
m_NextStep = BranchCompiled;
|
|
||||||
m_opcode.VirtualAddress += m_OpLen * 2;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
m_opcode.VirtualAddress += m_OpLen;
|
|
||||||
g_Notify->BreakPoint(__FILE__,__LINE__);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_MMU->LW_VAddr(m_opcode.VirtualAddress,m_opcode.Hex)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void COpcode::SetJump ( DWORD Target, bool Delay ) {
|
|
||||||
if (Target == PC()) {
|
|
||||||
if (g_MMU->ValidVaddr(Target + OpCode_Size)) {
|
|
||||||
if (HasDelaySlot() && !DelaySlotEffectsJump()) {
|
|
||||||
m_InPermLoop = PermLoop_Jump;
|
|
||||||
m_FlagSet = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
m_NextStep = Delay ? StepDelaySlot : StepJump;
|
|
||||||
m_JumpLocation = Target;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool COpcode::SetPC ( DWORD VirtualAddress ) {
|
|
||||||
PERM_LOOP InPerm = m_InPermLoop;
|
|
||||||
bool FlagSet = m_FlagSet;
|
|
||||||
m_opcode.VirtualAddress = -1;
|
|
||||||
SetJump(VirtualAddress,false);
|
|
||||||
bool Result = Next();
|
|
||||||
m_InPermLoop = InPerm;
|
|
||||||
m_FlagSet = FlagSet;
|
|
||||||
return Result;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,103 +0,0 @@
|
||||||
#ifdef toremove
|
|
||||||
|
|
||||||
#ifndef __OPCODE_CLASS__H__
|
|
||||||
#define __OPCODE_CLASS__H__
|
|
||||||
|
|
||||||
//typedef struct {
|
|
||||||
// DWORD VirtualAddress;
|
|
||||||
//
|
|
||||||
// union {
|
|
||||||
// unsigned long Hex;
|
|
||||||
// unsigned char Ascii[4];
|
|
||||||
//
|
|
||||||
// struct {
|
|
||||||
// unsigned offset : 16;
|
|
||||||
// unsigned rt : 5;
|
|
||||||
// unsigned rs : 5;
|
|
||||||
// unsigned op : 6;
|
|
||||||
// };
|
|
||||||
//
|
|
||||||
// struct {
|
|
||||||
// unsigned immediate : 16;
|
|
||||||
// unsigned : 5;
|
|
||||||
// unsigned base : 5;
|
|
||||||
// unsigned : 6;
|
|
||||||
// };
|
|
||||||
//
|
|
||||||
// struct {
|
|
||||||
// unsigned target : 26;
|
|
||||||
// unsigned : 6;
|
|
||||||
// };
|
|
||||||
//
|
|
||||||
// struct {
|
|
||||||
// unsigned funct : 6;
|
|
||||||
// unsigned sa : 5;
|
|
||||||
// unsigned rd : 5;
|
|
||||||
// unsigned : 5;
|
|
||||||
// unsigned : 5;
|
|
||||||
// unsigned : 6;
|
|
||||||
// };
|
|
||||||
//
|
|
||||||
// struct {
|
|
||||||
// unsigned : 6;
|
|
||||||
// unsigned fd : 5;
|
|
||||||
// unsigned fs : 5;
|
|
||||||
// unsigned ft : 5;
|
|
||||||
// unsigned fmt : 5;
|
|
||||||
// unsigned : 6;
|
|
||||||
// };
|
|
||||||
// };
|
|
||||||
//} OPCODE;
|
|
||||||
|
|
||||||
#include "OpCode Analysis Class.h"
|
|
||||||
|
|
||||||
enum StepType
|
|
||||||
{
|
|
||||||
StepNormal, StepDelaySlot, StepJump,
|
|
||||||
|
|
||||||
//Recompiler Flags
|
|
||||||
DoDelaySlot, InsideDelaySlot, DelaySlotDone, BranchCompiled
|
|
||||||
};
|
|
||||||
|
|
||||||
enum { OpCode_Size = 4};
|
|
||||||
enum PERM_LOOP { PermLoop_None, PermLoop_Jump, PermLoop_Delay };
|
|
||||||
class CRecompilerOps;
|
|
||||||
|
|
||||||
class COpcode : public COpcodeAnalysis {
|
|
||||||
friend CRecompilerOps; //Can manipulate how the opcode moves
|
|
||||||
|
|
||||||
DWORD const m_OpLen; //Length of the current opcode (MIPS will always be 4)
|
|
||||||
bool const m_FixedOpcodeCount; //Is the opcode count fixed or is it variable
|
|
||||||
float const m_OpcodeCount; //how many cycles is the fixed opcode count
|
|
||||||
|
|
||||||
StepType m_NextStep; //How to go to the next opcode, is a jump or the next opcode ?
|
|
||||||
DWORD m_JumpLocation; //If the opcode is going to jump it will jump to this address
|
|
||||||
|
|
||||||
public:
|
|
||||||
//Constructor/deconstructor
|
|
||||||
COpcode ( DWORD VirtualAddress );
|
|
||||||
|
|
||||||
//Geting/changing details about the opcode stored
|
|
||||||
bool Next ( void ); //move to the next opcode, if it is a jump returns true
|
|
||||||
inline DWORD PC ( void ) { return m_opcode.VirtualAddress; } //current VAddr
|
|
||||||
StepType NextStep ( void ) { return m_NextStep; }
|
|
||||||
void SetJump ( DWORD Target, bool Delay );
|
|
||||||
bool SetPC ( DWORD VirtualAddress );
|
|
||||||
|
|
||||||
//Info about the opcode
|
|
||||||
DWORD DelaySize ( void ) { return m_OpLen; } //How big is the delay slot opcode
|
|
||||||
float CycleCount ( void );
|
|
||||||
inline bool InDelaySlot ( void ) const { return m_NextStep != StepNormal; }
|
|
||||||
|
|
||||||
//Contains the break down of the opcode
|
|
||||||
OPCODE m_opcode;
|
|
||||||
|
|
||||||
//Flags
|
|
||||||
bool m_FlagSet; //A Flag was set
|
|
||||||
bool m_ExectionJumped; //Was the last next moved to a new location from a jump
|
|
||||||
PERM_LOOP m_InPermLoop; //Jumped to same address with delay slot not effecting the operation
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,4 +1,14 @@
|
||||||
#pragma once
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
unsigned long Hex;
|
unsigned long Hex;
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
int CPifRamSettings::m_RefCount = 0;
|
int CPifRamSettings::m_RefCount = 0;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CPifRamSettings
|
class CPifRamSettings
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
const char * CRegName::GPR[32] = {"r0","at","v0","v1","a0","a1","a2","a3",
|
const char * CRegName::GPR[32] = {"r0","at","v0","v1","a0","a1","a2","a3",
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
//CPO registers by name
|
//CPO registers by name
|
||||||
class CP0registers
|
class CP0registers
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CSram::CSram ( bool ReadOnly ) :
|
CSram::CSram ( bool ReadOnly ) :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CSram
|
class CSram
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CSystemEvents::CSystemEvents(CN64System * System) :
|
CSystemEvents::CSystemEvents(CN64System * System) :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
enum SystemEvent {
|
enum SystemEvent {
|
||||||
SysEvent_ExecuteInterrupt,
|
SysEvent_ExecuteInterrupt,
|
||||||
SysEvent_GSButtonPressed,
|
SysEvent_GSButtonPressed,
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CSystemTimer::CSystemTimer( int & NextTimer ) :
|
CSystemTimer::CSystemTimer( int & NextTimer ) :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "..\\N64 Types.h"
|
#include "..\\N64 Types.h"
|
||||||
|
|
||||||
class CSystemTimer
|
class CSystemTimer
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDebugTlb;
|
class CDebugTlb;
|
||||||
|
|
||||||
class CTLB_CB
|
class CTLB_CB
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CTLB::CTLB(CTLB_CB * CallBack ):
|
CTLB::CTLB(CTLB_CB * CallBack ):
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CTransVaddr
|
class CTransVaddr
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#pragma warning(disable:4355) // Disable 'this' : used in base member initializer list
|
#pragma warning(disable:4355) // Disable 'this' : used in base member initializer list
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
#ifndef _N64CLASS_H_
|
/****************************************************************************
|
||||||
#define _N64CLASS_H_
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
typedef std::list<SystemEvent> EVENT_LIST;
|
typedef std::list<SystemEvent> EVENT_LIST;
|
||||||
|
|
||||||
|
@ -156,5 +165,3 @@ private:
|
||||||
//list of function that have been called .. used in profiling
|
//list of function that have been called .. used in profiling
|
||||||
FUNC_CALLS m_FunctionCalls;
|
FUNC_CALLS m_FunctionCalls;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CN64Rom::CN64Rom ( void )
|
CN64Rom::CN64Rom ( void )
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include "N64 Types.h"
|
#include "N64 Types.h"
|
||||||
|
|
||||||
class CN64Rom
|
class CN64Rom
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
#ifndef __N64_ENUMS__H__
|
/****************************************************************************
|
||||||
#define __N64_ENUMS__H__
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
typedef unsigned char BYTE;
|
typedef unsigned char BYTE;
|
||||||
typedef unsigned short WORD;
|
typedef unsigned short WORD;
|
||||||
|
@ -73,5 +82,3 @@ enum STEP_TYPE {
|
||||||
PERMLOOP_DO_DELAY = 10,
|
PERMLOOP_DO_DELAY = 10,
|
||||||
PERMLOOP_DELAY_DONE = 11,
|
PERMLOOP_DELAY_DONE = 11,
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
enum { MAX_FRAMES = 13 };
|
enum { MAX_FRAMES = 13 };
|
||||||
|
|
|
@ -1,3 +1,14 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
typedef std::map<SPECIAL_TIMERS, __int64 > PROFILE_ENRTIES;
|
typedef std::map<SPECIAL_TIMERS, __int64 > PROFILE_ENRTIES;
|
||||||
typedef PROFILE_ENRTIES::iterator PROFILE_ENRTY;
|
typedef PROFILE_ENRTIES::iterator PROFILE_ENRTY;
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
bool DelaySlotEffectsCompare (DWORD PC, DWORD Reg1, DWORD Reg2);
|
bool DelaySlotEffectsCompare (DWORD PC, DWORD Reg1, DWORD Reg2);
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CCodeBlock :
|
class CCodeBlock :
|
||||||
private CRecompilerOps
|
private CRecompilerOps
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
void InPermLoop ( void );
|
void InPermLoop ( void );
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
#pragma once
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CCodeBlock;
|
class CCodeBlock;
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CDelaySlotFunctionMap
|
class CDelaySlotFunctionMap
|
||||||
{
|
{
|
||||||
typedef std::map<DWORD,CCompiledFunc *> FUNCTION_MAP;
|
typedef std::map<DWORD,CCompiledFunc *> FUNCTION_MAP;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CExitInfo
|
class CExitInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CCompiledFunc::CCompiledFunc( const CCodeBlock & CodeBlock ) :
|
CCompiledFunc::CCompiledFunc( const CCodeBlock & CodeBlock ) :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CCompiledFunc
|
class CCompiledFunc
|
||||||
{
|
{
|
||||||
//constructor
|
//constructor
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CFunctionMap::CFunctionMap() :
|
CFunctionMap::CFunctionMap() :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CFunctionMap
|
class CFunctionMap
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
#include "stdafx.h"
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CJumpInfo
|
class CJumpInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#define CHECKED_BUILD 1
|
#define CHECKED_BUILD 1
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
class CCodeSection;
|
class CCodeSection;
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CRecompiler::CRecompiler(CProfiling & Profile, bool & EndEmulation ) :
|
CRecompiler::CRecompiler(CProfiling & Profile, bool & EndEmulation ) :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CRecompiler :
|
class CRecompiler :
|
||||||
protected CDebugSettings,
|
protected CDebugSettings,
|
||||||
public CRecompilerSettings,
|
public CRecompilerSettings,
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CRecompMemory::CRecompMemory() :
|
CRecompMemory::CRecompMemory() :
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CRecompMemory :
|
class CRecompMemory :
|
||||||
protected CX86Ops
|
protected CX86Ops
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CCodeSection * CRecompilerOps::m_Section = NULL;
|
CCodeSection * CRecompilerOps::m_Section = NULL;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CCodeSection;
|
class CCodeSection;
|
||||||
|
|
||||||
class CRecompilerOps :
|
class CRecompilerOps :
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
unsigned int CRegInfo::m_fpuControl = 0;
|
unsigned int CRegInfo::m_fpuControl = 0;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CRegInfo :
|
class CRegInfo :
|
||||||
private CX86Ops,
|
private CX86Ops,
|
||||||
private CSystemRegisters
|
private CSystemRegisters
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
CJumpInfo::CJumpInfo()
|
CJumpInfo::CJumpInfo()
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CCodeSection;
|
class CCodeSection;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
#define PUTDST8(dest,value) (*((BYTE *)(dest))=(BYTE)(value)); dest += 1;
|
#define PUTDST8(dest,value) (*((BYTE *)(dest))=(BYTE)(value)); dest += 1;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CX86Ops
|
class CX86Ops
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
static HANDLE hCPULogFile = NULL;
|
static HANDLE hCPULogFile = NULL;
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#define CPU_Message(Message,... ) if (bX86Logging) { x86_Log_Message(Message,## __VA_ARGS__); }
|
#define CPU_Message(Message,... ) if (bX86Logging) { x86_Log_Message(Message,## __VA_ARGS__); }
|
||||||
|
|
||||||
void x86_Log_Message (const char * Message, ...);
|
void x86_Log_Message (const char * Message, ...);
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
|
||||||
RomInformation::RomInformation (const char * RomFile):
|
RomInformation::RomInformation (const char * RomFile):
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class RomInformation
|
class RomInformation
|
||||||
{
|
{
|
||||||
bool const m_DeleteRomInfo;
|
bool const m_DeleteRomInfo;
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#pragma comment(lib, "winmm.lib")
|
#pragma comment(lib, "winmm.lib")
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
/****************************************************************************
|
||||||
|
* *
|
||||||
|
* Project 64 - A Nintendo 64 emulator. *
|
||||||
|
* http://www.pj64-emu.com/ *
|
||||||
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
||||||
|
* *
|
||||||
|
* License: *
|
||||||
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
||||||
|
* *
|
||||||
|
****************************************************************************/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
class CSpeedLimitor {
|
class CSpeedLimitor {
|
||||||
CNotification * const g_Notify;
|
CNotification * const g_Notify;
|
||||||
DWORD m_Speed, m_BaseSpeed, m_Frames, m_LastTime;
|
DWORD m_Speed, m_BaseSpeed, m_Frames, m_LastTime;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue