2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* 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 *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2010-06-04 06:25:07 +00:00
|
|
|
#pragma once
|
2008-09-18 03:15:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
BOOL GenerateLog;
|
|
|
|
|
|
|
|
/* Registers Log */
|
|
|
|
BOOL LogRDRamRegisters;
|
|
|
|
BOOL LogSPRegisters;
|
|
|
|
BOOL LogDPCRegisters;
|
|
|
|
BOOL LogDPSRegisters;
|
|
|
|
BOOL LogMIPSInterface;
|
|
|
|
BOOL LogVideoInterface;
|
|
|
|
BOOL LogAudioInterface;
|
|
|
|
BOOL LogPerInterface;
|
|
|
|
BOOL LogRDRAMInterface;
|
|
|
|
BOOL LogSerialInterface;
|
|
|
|
|
|
|
|
/* Pif Ram Log */
|
|
|
|
BOOL LogPRDMAOperations;
|
|
|
|
BOOL LogPRDirectMemLoads;
|
|
|
|
BOOL LogPRDMAMemLoads;
|
|
|
|
BOOL LogPRDirectMemStores;
|
|
|
|
BOOL LogPRDMAMemStores;
|
|
|
|
BOOL LogControllerPak;
|
|
|
|
|
|
|
|
/* Special Log */
|
|
|
|
BOOL LogCP0changes;
|
|
|
|
BOOL LogCP0reads;
|
|
|
|
BOOL LogTLB;
|
|
|
|
BOOL LogExceptions;
|
|
|
|
BOOL NoInterrupts;
|
|
|
|
BOOL LogCache;
|
|
|
|
BOOL LogRomHeader;
|
|
|
|
BOOL LogUnknown;
|
|
|
|
} LOG_OPTIONS;
|
|
|
|
|
|
|
|
extern LOG_OPTIONS LogOptions;
|
|
|
|
|
|
|
|
void EnterLogOptions ( HWND hwndOwner );
|
|
|
|
void LoadLogOptions ( LOG_OPTIONS * LogOptions, BOOL AlwaysFill );
|
|
|
|
void Log_LW ( DWORD PC, DWORD VAddr );
|
|
|
|
void __cdecl LogMessage ( char * Message, ... );
|
|
|
|
void Log_SW ( DWORD PC, DWORD VAddr, DWORD Value );
|
|
|
|
void StartLog ( void );
|
|
|
|
void StopLog ( void );
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|