From 2b9ce103c5c35f7b6e12699f7267140f5066d438 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 24 Jul 2006 04:22:03 +0000 Subject: [PATCH] cleaned out cpu code, renamed some include files to .inc [[Split portion of a mixed commit.]] --- drivers/win/{asm.h => asm.inc} | 0 drivers/win/{dasm.h => dasm.inc} | 0 drivers/win/debugger.cpp | 4 ++-- ops.h => ops.inc | 0 x6502.cpp | 24 +----------------------- 5 files changed, 3 insertions(+), 25 deletions(-) rename drivers/win/{asm.h => asm.inc} (100%) rename drivers/win/{dasm.h => dasm.inc} (100%) rename ops.h => ops.inc (100%) diff --git a/drivers/win/asm.h b/drivers/win/asm.inc similarity index 100% rename from drivers/win/asm.h rename to drivers/win/asm.inc diff --git a/drivers/win/dasm.h b/drivers/win/dasm.inc similarity index 100% rename from drivers/win/dasm.h rename to drivers/win/dasm.inc diff --git a/drivers/win/debugger.cpp b/drivers/win/debugger.cpp index 5f31810d..0aaff1bb 100644 --- a/drivers/win/debugger.cpp +++ b/drivers/win/debugger.cpp @@ -288,7 +288,7 @@ char *BinToASM(int addr, uint8 *opcode) { uint16 tmp,tmp2; switch (opcode[0]) { - #include "dasm.h" + #include "dasm.inc" } return str; @@ -690,7 +690,7 @@ int ParseASM(unsigned char *output, int addr, char *str) { // 1) Sets opcode[0] on success, else returns 1. // 2) Parses text in *astr to build the rest of the assembled // data in 'opcode', else returns 1 on error. - #include "asm.h" + #include "asm.inc" memcpy(output,opcode,3); return 0; diff --git a/ops.h b/ops.inc similarity index 100% rename from ops.h rename to ops.inc diff --git a/x6502.cpp b/x6502.cpp index c7a3ed73..69626db7 100644 --- a/x6502.cpp +++ b/x6502.cpp @@ -24,10 +24,7 @@ #include "x6502.h" #include "fceu.h" #include "sound.h" -//mbg merge 6/29/06 #include "debug.h" -//#include "tracer.h" //bbit edited: line added -//#include "memview.h" //bbit edited: line added #include "driver.h" X6502 X; @@ -40,24 +37,6 @@ X6502 X; uint32 timestamp; void FP_FASTAPASS(1) (*MapIRQHook)(int a); -//------- -//mbg merge 6/29/06 -//bbit edited: a large portion of code was inserted from here on down -extern uint8 *XBuf; -//extern void FCEUD_BlitScreen(uint8 *XBuf); -void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count); //mbg merge 6/30/06 - do this instead - - - - - - - - - - - - #define ADDCYC(x) \ { \ int __x=x; \ @@ -66,7 +45,6 @@ void FCEUD_Update(uint8 *XBuf, int32 *Buffer, int Count); //mbg merge 6/30/06 - timestamp+=__x; \ } - //mbg 6/30/06 - hooked functions arent being used right now ////hooked memory read //static INLINE uint8 RdMemHook(unsigned int A) @@ -556,7 +534,7 @@ void X6502_Run(int32 cycles) _PC++; switch(b1) { - #include "ops.h" + #include "ops.inc" } }