Commit e7b4e32d authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Cleanups

parent 3b605908
Pipeline #69382 passed with stages
in 8 minutes and 56 seconds
#include <stdlib.h>
#include <stdio.h>
#include <libretro.h>
#include "system.h"
......
......@@ -45,7 +45,6 @@
#define CART_CPP
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "system.h"
#include "cart.h"
......
......@@ -5,7 +5,6 @@
#define EEPROM_CPP
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <streams/file_stream.h>
#include "system.h"
......
......@@ -43,8 +43,8 @@ class CLynxBase
public:
virtual void Reset(void) {};
virtual bool ContextLoad(FILE *fp) { return 0; };
virtual bool ContextSave(FILE *fp) { return 0; };
virtual bool ContextLoad(LSS_FILE *fp) { return 0; };
virtual bool ContextSave(LSS_FILE *fp) { return 0; };
virtual void Poke(ULONG addr,UBYTE data)=0;
virtual UBYTE Peek(ULONG addr)=0;
......
......@@ -3,7 +3,6 @@
http://atariage.com/forums/topic/129030-lynx-encryption/
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -80,7 +80,4 @@ typedef uint32_t ULONG;
#define FALSE false
#endif
#include "lynxbase.h"
#include "errorinterface.h"
#endif
......@@ -45,7 +45,6 @@
#define MEMMAP_CPP
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "system.h"
#include "memmap.h"
......
......@@ -45,7 +45,6 @@
#define RAM_CPP
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "system.h"
......
......@@ -44,7 +44,6 @@
#define ROM_CPP
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "system.h"
......
......@@ -384,14 +384,6 @@ void CSusie::DoMathMultiply(void)
if(mSPRSYS_Accumulate) {
ULONG tmp=mMATHJKLM.Long+mMATHEFGH.Long;
#if 0
// Let sign change indicate overflow
if((tmp&0x80000000)!=(mMATHJKLM.Long&0x80000000)) {
// mSPRSYS_Mathbit=TRUE;
} else {
// mSPRSYS_Mathbit=FALSE;
}
#endif
// Save accumulated result
mMATHJKLM.Long=tmp;
}
......
......@@ -51,7 +51,6 @@
#define SYSTEM_CPP
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -50,6 +50,7 @@
#pragma inline_recursion (on)
#include "machine.h"
#include "errorinterface.h"
#define HANDY_SYSTEM_FREQ 16000000
#define HANDY_TIMER_FREQ 20
......@@ -199,29 +200,15 @@ class CSystem : public CSystemBase
inline void Update(void)
{
// fprintf(stderr, "sys update\n");
//
// Only update if there is a predicted timer event
//
if(gSystemCycleCount>=gNextTimerEvent)
{
mMikie->Update();
}
//
// Step the processor through 1 instruction
//
mCpu->Update();
// fprintf(stderr, "end cpu update\n");
//
// If the CPU is asleep then skip to the next timer event
//
if(gSystemCPUSleep)
{
gSystemCycleCount=gNextTimerEvent;
}
// fprintf(stderr, "end sys update\n");
}
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment