mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-27 02:12:46 +00:00
Get rid of all TRACE macros
This commit is contained in:
parent
b29cbb6045
commit
b84c79b2f1
@ -20,7 +20,6 @@ void C65C02::Update(void)
|
||||
}
|
||||
// Fetch opcode
|
||||
mOpcode=CPU_PEEK(mPC);
|
||||
TRACE_CPU2("Update() PC=$%04x, Opcode=%02x",mPC,mOpcode);
|
||||
mPC++;
|
||||
|
||||
// Execute Opcode
|
||||
|
@ -45,25 +45,6 @@
|
||||
#ifndef C65C02_H
|
||||
#define C65C02_H
|
||||
|
||||
//#include <crtdbg.h>
|
||||
//#define TRACE_CPU
|
||||
|
||||
#ifdef TRACE_CPU
|
||||
|
||||
#define TRACE_CPU0(msg) _RPT1(_CRT_WARN,"C65C02::"msg" (Time=%012d)\n",gSystemCycleCount)
|
||||
#define TRACE_CPU1(msg,arg1) _RPT2(_CRT_WARN,"C65C02::"msg" (Time=%012d)\n",arg1,gSystemCycleCount)
|
||||
#define TRACE_CPU2(msg,arg1,arg2) _RPT3(_CRT_WARN,"C65C02::"msg" (Time=%012d)\n",arg1,arg2,gSystemCycleCount)
|
||||
#define TRACE_CPU3(msg,arg1,arg2,arg3) _RPT4(_CRT_WARN,"C65C02::"msg" (Time=%012d)\n",arg1,arg2,arg3,gSystemCycleCount)
|
||||
|
||||
#else
|
||||
|
||||
#define TRACE_CPU0(msg)
|
||||
#define TRACE_CPU1(msg,arg1)
|
||||
#define TRACE_CPU2(msg,arg1,arg2)
|
||||
#define TRACE_CPU3(msg,arg1,arg2,arg3)
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// Handy definitions
|
||||
//
|
||||
@ -135,7 +116,6 @@ class C65C02
|
||||
C65C02(CSystemBase& parent)
|
||||
:mSystem(parent)
|
||||
{
|
||||
TRACE_CPU0("C65C02()");
|
||||
// Compute the BCD lookup table
|
||||
for(uint16 t=0;t<256;++t)
|
||||
{
|
||||
@ -148,13 +128,11 @@ class C65C02
|
||||
|
||||
~C65C02()
|
||||
{
|
||||
TRACE_CPU0("~C65C02()");
|
||||
}
|
||||
|
||||
public:
|
||||
inline void Reset(void)
|
||||
{
|
||||
TRACE_CPU0("Reset()");
|
||||
mRamPointer=mSystem.GetRamPointer();
|
||||
mA=0;
|
||||
mX=0;
|
||||
|
@ -44,9 +44,6 @@
|
||||
|
||||
#define MEMMAP_CPP
|
||||
|
||||
//#include <crtdbg.h>
|
||||
//#define TRACE_MEMMAP
|
||||
|
||||
#include "system.h"
|
||||
#include "memmap.h"
|
||||
|
||||
@ -103,8 +100,6 @@ void CMemMap::Reset(void)
|
||||
|
||||
INLINE void CMemMap::Poke(uint32 addr, uint8 data)
|
||||
{
|
||||
TRACE_MEMMAP1("Poke() - Data %02x",data);
|
||||
|
||||
int newstate,loop;
|
||||
|
||||
// FC00-FCFF Susie area
|
||||
@ -182,7 +177,6 @@ INLINE uint8 CMemMap::Peek(uint32 addr)
|
||||
retval+=(mMikieEnabled)?0:0x02;
|
||||
retval+=(mRomEnabled)?0:0x04;
|
||||
retval+=(mVectorsEnabled)?0:0x08;
|
||||
TRACE_MEMMAP1("Peek() - Data %02x",retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
@ -48,22 +48,6 @@
|
||||
|
||||
#define MEMMAP_SIZE 0x1
|
||||
|
||||
#ifdef TRACE_CART
|
||||
|
||||
#define TRACE_MEMMAP0(msg) _RPT1(_CRT_WARN,"CMamMap::"msg" (Time=%012d)\n",gSystemCycleCount)
|
||||
#define TRACE_MEMMAP1(msg,arg1) _RPT2(_CRT_WARN,"CMamMap::"msg" (Time=%012d)\n",arg1,gSystemCycleCount)
|
||||
#define TRACE_MEMMAP2(msg,arg1,arg2) _RPT3(_CRT_WARN,"CMamMap::"msg" (Time=%012d)\n",arg1,arg2,gSystemCycleCount)
|
||||
#define TRACE_MEMMAP3(msg,arg1,arg2,arg3) _RPT4(_CRT_WARN,"CMamMap::"msg" (Time=%012d)\n",arg1,arg2,arg3,gSystemCycleCount)
|
||||
|
||||
#else
|
||||
|
||||
#define TRACE_MEMMAP0(msg)
|
||||
#define TRACE_MEMMAP1(msg,arg1)
|
||||
#define TRACE_MEMMAP2(msg,arg1,arg2)
|
||||
#define TRACE_MEMMAP3(msg,arg1,arg2,arg3)
|
||||
|
||||
#endif
|
||||
|
||||
class CMemMap : public CLynxBase
|
||||
{
|
||||
// Function members
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -49,26 +49,8 @@
|
||||
#ifndef MIKIE_H
|
||||
#define MIKIE_H
|
||||
|
||||
//#include <crtdbg.h>
|
||||
//#define TRACE_MIKIE
|
||||
#include <math.h>
|
||||
|
||||
#ifdef TRACE_MIKIE
|
||||
|
||||
#define TRACE_MIKIE0(msg) _RPT1(_CRT_WARN,"CMikie::"msg" (Time=%012d)\n",gSystemCycleCount)
|
||||
#define TRACE_MIKIE1(msg,arg1) _RPT2(_CRT_WARN,"CMikie::"msg" (Time=%012d)\n",arg1,gSystemCycleCount)
|
||||
#define TRACE_MIKIE2(msg,arg1,arg2) _RPT3(_CRT_WARN,"CMikie::"msg" (Time=%012d)\n",arg1,arg2,gSystemCycleCount)
|
||||
#define TRACE_MIKIE3(msg,arg1,arg2,arg3) _RPT4(_CRT_WARN,"CMikie::"msg" (Time=%012d)\n",arg1,arg2,arg3,gSystemCycleCount)
|
||||
|
||||
#else
|
||||
|
||||
#define TRACE_MIKIE0(msg)
|
||||
#define TRACE_MIKIE1(msg,arg1)
|
||||
#define TRACE_MIKIE2(msg,arg1,arg2)
|
||||
#define TRACE_MIKIE3(msg,arg1,arg2,arg3)
|
||||
|
||||
#endif
|
||||
|
||||
class CSystem;
|
||||
|
||||
#define MIKIE_START 0xfd00
|
||||
|
@ -45,9 +45,6 @@
|
||||
|
||||
#define RAM_CPP
|
||||
|
||||
//#include <crtdbg.h>
|
||||
//#define TRACE_RAM
|
||||
|
||||
#include "system.h"
|
||||
#include "ram.h"
|
||||
#include "../mempatcher.h"
|
||||
|
@ -44,9 +44,6 @@
|
||||
|
||||
#define ROM_CPP
|
||||
|
||||
//#include <crtdbg.h>
|
||||
//#define TRACE_ROM
|
||||
|
||||
#include "system.h"
|
||||
#include "rom.h"
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -45,22 +45,6 @@
|
||||
#ifndef SUSIE_H
|
||||
#define SUSIE_H
|
||||
|
||||
#ifdef TRACE_SUSIE
|
||||
|
||||
#define TRACE_SUSIE0(msg) _RPT1(_CRT_WARN,"CSusie::"msg" (Time=%012d)\n",gSystemCycleCount)
|
||||
#define TRACE_SUSIE1(msg,arg1) _RPT2(_CRT_WARN,"CSusie::"msg" (Time=%012d)\n",arg1,gSystemCycleCount)
|
||||
#define TRACE_SUSIE2(msg,arg1,arg2) _RPT3(_CRT_WARN,"CSusie::"msg" (Time=%012d)\n",arg1,arg2,gSystemCycleCount)
|
||||
#define TRACE_SUSIE3(msg,arg1,arg2,arg3) _RPT4(_CRT_WARN,"CSusie::"msg" (Time=%012d)\n",arg1,arg2,arg3,gSystemCycleCount)
|
||||
|
||||
#else
|
||||
|
||||
#define TRACE_SUSIE0(msg)
|
||||
#define TRACE_SUSIE1(msg,arg1)
|
||||
#define TRACE_SUSIE2(msg,arg1,arg2)
|
||||
#define TRACE_SUSIE3(msg,arg1,arg2,arg3)
|
||||
|
||||
#endif
|
||||
|
||||
class CSystem;
|
||||
|
||||
#define SUSIE_START 0xfc00
|
||||
|
@ -51,9 +51,6 @@
|
||||
|
||||
#define SYSTEM_CPP
|
||||
|
||||
//#include <crtdbg.h>
|
||||
//#define TRACE_SYSTEM
|
||||
|
||||
#include "mednafen/lynx/system.h"
|
||||
#include "mednafen/mednafen-endian.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user