aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libretro.c90
-rw-r--r--source/65c816.h2
-rw-r--r--source/apu.c2
-rw-r--r--source/apu.h2
-rw-r--r--source/apu_blargg.c3
-rw-r--r--source/apu_blargg.h2
-rw-r--r--source/apumem.h2
-rw-r--r--source/c4.c2
-rw-r--r--source/c4.h2
-rw-r--r--source/c4emu.c2
-rw-r--r--source/cheats.c2
-rw-r--r--source/cheats.h2
-rw-r--r--source/cheats2.c2
-rw-r--r--source/clip.c2
-rw-r--r--source/copyright.h2
-rw-r--r--source/cpu.c2
-rw-r--r--source/cpuaddr.h2
-rw-r--r--source/cpuexec.c2
-rw-r--r--source/cpuexec.h2
-rw-r--r--source/cpumacro.h2
-rw-r--r--source/cpuops.c2
-rw-r--r--source/cpuops.h2
-rw-r--r--source/data.c2
-rw-r--r--source/display.h2
-rw-r--r--source/dma.c2
-rw-r--r--source/dma.h2
-rw-r--r--source/dsp1.c2
-rw-r--r--source/dsp1.h2
-rw-r--r--source/dsp1emu.c272
-rw-r--r--source/dsp2emu.c2
-rw-r--r--source/dsp4.h2
-rw-r--r--source/dsp4emu.c2
-rw-r--r--source/font.h2
-rw-r--r--source/fxdbg.c2
-rw-r--r--source/fxemu.c2
-rw-r--r--source/fxemu.h2
-rw-r--r--source/fxinst.c2
-rw-r--r--source/fxinst.h2
-rw-r--r--source/getset.h2
-rw-r--r--source/gfx.c2
-rw-r--r--source/gfx.h2
-rw-r--r--source/globals.c2
-rw-r--r--source/memmap.c2
-rw-r--r--source/memmap.h2
-rw-r--r--source/messages.h2
-rw-r--r--source/missing.h2
-rw-r--r--source/obc1.c2
-rw-r--r--source/obc1.h2
-rw-r--r--source/pixform.h2
-rw-r--r--source/port.h2
-rw-r--r--source/ppu.c2
-rw-r--r--source/ppu.h2
-rw-r--r--source/sa1.c2
-rw-r--r--source/sa1.h2
-rw-r--r--source/sa1cpu.c2
-rw-r--r--source/sar.h2
-rw-r--r--source/sdd1.c2
-rw-r--r--source/sdd1.h2
-rw-r--r--source/sdd1emu.c2
-rw-r--r--source/sdd1emu.h2
-rw-r--r--source/seta.c2
-rw-r--r--source/seta.h2
-rw-r--r--source/seta010.c2
-rw-r--r--source/seta011.c2
-rw-r--r--source/seta018.c2
-rw-r--r--source/snes9x.h2
-rw-r--r--source/soundux.c2
-rw-r--r--source/soundux.h2
-rw-r--r--source/spc700.c2
-rw-r--r--source/spc700.h2
-rw-r--r--source/spc7110.c2
-rw-r--r--source/spc7110.h2
-rw-r--r--source/srtc.c2
-rw-r--r--source/srtc.h2
-rw-r--r--source/tile.c2
-rw-r--r--source/tile.h2
76 files changed, 239 insertions, 272 deletions
diff --git a/libretro.c b/libretro.c
index a2678bd..03f2ee3 100644
--- a/libretro.c
+++ b/libretro.c
@@ -1,3 +1,93 @@
+/*******************************************************************************
+ Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
+
+ (c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com) and
+ Jerremy Koot (jkoot@snes9x.com)
+
+ (c) Copyright 2001 - 2004 John Weidman (jweidman@slip.net)
+
+ (c) Copyright 2002 - 2004 Brad Jorsch (anomie@users.sourceforge.net),
+ funkyass (funkyass@spam.shaw.ca),
+ Joel Yliluoma (http://iki.fi/bisqwit/)
+ Kris Bleakley (codeviolation@hotmail.com),
+ Matthew Kendora,
+ Nach (n-a-c-h@users.sourceforge.net),
+ Peter Bortas (peter@bortas.org) and
+ zones (kasumitokoduck@yahoo.com)
+
+ C4 x86 assembler and some C emulation code
+ (c) Copyright 2000 - 2003 zsKnight (zsknight@zsnes.com),
+ _Demo_ (_demo_@zsnes.com), and Nach
+
+ C4 C++ code
+ (c) Copyright 2003 Brad Jorsch
+
+ DSP-1 emulator code
+ (c) Copyright 1998 - 2004 Ivar (ivar@snes9x.com), _Demo_, Gary Henderson,
+ John Weidman, neviksti (neviksti@hotmail.com),
+ Kris Bleakley, Andreas Naive
+
+ DSP-2 emulator code
+ (c) Copyright 2003 Kris Bleakley, John Weidman, neviksti, Matthew Kendora, and
+ Lord Nightmare (lord_nightmare@users.sourceforge.net
+
+ OBC1 emulator code
+ (c) Copyright 2001 - 2004 zsKnight, pagefault (pagefault@zsnes.com) and
+ Kris Bleakley
+ Ported from x86 assembler to C by sanmaiwashi
+
+ SPC7110 and RTC C++ emulator code
+ (c) Copyright 2002 Matthew Kendora with research by
+ zsKnight, John Weidman, and Dark Force
+
+ S-DD1 C emulator code
+ (c) Copyright 2003 Brad Jorsch with research by
+ Andreas Naive and John Weidman
+
+ S-RTC C emulator code
+ (c) Copyright 2001 John Weidman
+
+ ST010 C++ emulator code
+ (c) Copyright 2003 Feather, Kris Bleakley, John Weidman and Matthew Kendora
+
+ Super FX x86 assembler emulator code
+ (c) Copyright 1998 - 2003 zsKnight, _Demo_, and pagefault
+
+ Super FX C emulator code
+ (c) Copyright 1997 - 1999 Ivar, Gary Henderson and John Weidman
+
+
+ SH assembler code partly based on x86 assembler code
+ (c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
+
+ Specific ports contains the works of other authors. See headers in
+ individual files.
+
+ Snes9x homepage: http://www.snes9x.com
+
+ Permission to use, copy, modify and distribute Snes9x 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.
+
+ Snes9x is freeware for PERSONAL USE only. Commercial users should
+ seek permission of the copyright holders first. Commercial use includes
+ charging money for Snes9x or software derived from Snes9x.
+
+ The copyright holders request that bug fixes and improvements to the code
+ should be forwarded to them so everyone can benefit from the modifications
+ in future versions.
+
+ Super NES and Super Nintendo Entertainment System are trademarks of
+ Nintendo Co., Limited and its subsidiary companies.
+*******************************************************************************/
#include <stdio.h>
diff --git a/source/65c816.h b/source/65c816.h
index 406341a..be75e3e 100644
--- a/source/65c816.h
+++ b/source/65c816.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/apu.c b/source/apu.c
index 5f24cad..81d3688 100644
--- a/source/apu.c
+++ b/source/apu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/apu.h b/source/apu.h
index 5ea6bb2..4d01447 100644
--- a/source/apu.h
+++ b/source/apu.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/apu_blargg.c b/source/apu_blargg.c
index f7cdbe1..5c1bc1e 100644
--- a/source/apu_blargg.c
+++ b/source/apu_blargg.c
@@ -144,6 +144,9 @@
(c) Copyright 1998 - 2001 John Stiles
(c) Copyright 2001 - 2010 zones
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
+
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/apu_blargg.h b/source/apu_blargg.h
index adcf731..53aec7b 100644
--- a/source/apu_blargg.h
+++ b/source/apu_blargg.h
@@ -144,6 +144,8 @@
(c) Copyright 1998 - 2001 John Stiles
(c) Copyright 2001 - 2010 zones
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/apumem.h b/source/apumem.h
index 9bbc675..459bbf1 100644
--- a/source/apumem.h
+++ b/source/apumem.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/c4.c b/source/c4.c
index 43e561d..94f5866 100644
--- a/source/c4.c
+++ b/source/c4.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/c4.h b/source/c4.h
index c6964ff..0320cbe 100644
--- a/source/c4.h
+++ b/source/c4.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/c4emu.c b/source/c4emu.c
index c2412e1..a319a98 100644
--- a/source/c4emu.c
+++ b/source/c4emu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cheats.c b/source/cheats.c
index 5f6cb69..ecec232 100644
--- a/source/cheats.c
+++ b/source/cheats.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cheats.h b/source/cheats.h
index 2201c3c..a50505f 100644
--- a/source/cheats.h
+++ b/source/cheats.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cheats2.c b/source/cheats2.c
index 7781ba7..f5fceee 100644
--- a/source/cheats2.c
+++ b/source/cheats2.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/clip.c b/source/clip.c
index 38011fd..1fb602f 100644
--- a/source/clip.c
+++ b/source/clip.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/copyright.h b/source/copyright.h
index f53dd80..9d62d73 100644
--- a/source/copyright.h
+++ b/source/copyright.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpu.c b/source/cpu.c
index 5148519..573d431 100644
--- a/source/cpu.c
+++ b/source/cpu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpuaddr.h b/source/cpuaddr.h
index ffd8703..3bdf18f 100644
--- a/source/cpuaddr.h
+++ b/source/cpuaddr.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpuexec.c b/source/cpuexec.c
index 468fbf5..9c50add 100644
--- a/source/cpuexec.c
+++ b/source/cpuexec.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpuexec.h b/source/cpuexec.h
index 87428f9..a88c961 100644
--- a/source/cpuexec.h
+++ b/source/cpuexec.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpumacro.h b/source/cpumacro.h
index 986177f..3f2d224 100644
--- a/source/cpumacro.h
+++ b/source/cpumacro.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpuops.c b/source/cpuops.c
index 0a8f782..d7f90e6 100644
--- a/source/cpuops.c
+++ b/source/cpuops.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/cpuops.h b/source/cpuops.h
index fc3696e..41f293b 100644
--- a/source/cpuops.h
+++ b/source/cpuops.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/data.c b/source/data.c
index 9691e3d..4ac246b 100644
--- a/source/data.c
+++ b/source/data.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/display.h b/source/display.h
index 0553a20..b009c93 100644
--- a/source/display.h
+++ b/source/display.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dma.c b/source/dma.c
index 01b2a85..b5478ae 100644
--- a/source/dma.c
+++ b/source/dma.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dma.h b/source/dma.h
index 92991f9..31d06c4 100644
--- a/source/dma.h
+++ b/source/dma.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dsp1.c b/source/dsp1.c
index e917cab..9c62f50 100644
--- a/source/dsp1.c
+++ b/source/dsp1.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dsp1.h b/source/dsp1.h
index f631cfd..745272b 100644
--- a/source/dsp1.h
+++ b/source/dsp1.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dsp1emu.c b/source/dsp1emu.c
index 8840fb5..2905b6b 100644
--- a/source/dsp1emu.c
+++ b/source/dsp1emu.c
@@ -15,66 +15,15 @@
//along with this program; if not, write to the Free Software
//Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-//#define __ZSNES__
-
-#if (defined __ZSNES__ && __LINUX__)
-#include "../gblhdr.h"
-#else
-
#include <stdio.h>
#include <stdarg.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
-#endif
-//#define DebugDSP1
-
-// uncomment some lines to test
-//#define printinfo
-//#define debug06
#define __OPT__
#define __OPT06__
-#ifdef DebugDSP1
-
-FILE* LogFile = NULL;
-
-void Log_Message(char* Message, ...)
-{
- char Msg[400];
- va_list ap;
-
- va_start(ap, Message);
- vsprintf(Msg, Message, ap);
- va_end(ap);
-
- strcat(Msg, "\r\n\0");
- fwrite(Msg, strlen(Msg), 1, LogFile);
- fflush(LogFile);
-}
-
-void Start_Log(void)
-{
- char LogFileName[255];
- // [4/15/2001] char *p;
-
- strcpy(LogFileName, "dsp1emu.log\0");
-
- LogFile = fopen(LogFileName, "wb");
-}
-
-void Stop_Log(void)
-{
- if (LogFile)
- {
- fclose(LogFile);
- LogFile = NULL;
- }
-}
-
-#endif
-
const uint16_t DSP1ROM[1024] =
{
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
@@ -231,135 +180,6 @@ double Atan(double x)
return (PI / 2 - Atan(1 / x));
}
-#ifdef __ZSNES__
-/***************************************************************************\
-* C4 C code *
-\***************************************************************************/
-
-int16_t C4WFXVal;
-int16_t C4WFYVal;
-int16_t C4WFZVal;
-int16_t C4WFX2Val;
-int16_t C4WFY2Val;
-int16_t C4WFDist;
-int16_t C4WFScale;
-double tanval;
-double c4x, c4y, c4z;
-double c4x2, c4y2, c4z2;
-
-void C4TransfWireFrame()
-{
- c4x = (double)C4WFXVal;
- c4y = (double)C4WFYVal;
- c4z = (double)C4WFZVal - 0x95;
-
- // Rotate X
- tanval = -(double)C4WFX2Val * PI * 2 / 128;
- c4y2 = c4y * cos(tanval) - c4z * sin(tanval);
- c4z2 = c4y * sin(tanval) + c4z * cos(tanval);
-
- // Rotate Y
- tanval = -(double)C4WFY2Val * PI * 2 / 128;
- c4x2 = c4x * cos(tanval) + c4z2 * sin(tanval);
- c4z = c4x * -sin(tanval) + c4z2 * cos(tanval);
-
- // Rotate Z
- tanval = -(double)C4WFDist * PI * 2 / 128;
- c4x = c4x2 * cos(tanval) - c4y2 * sin(tanval);
- c4y = c4x2 * sin(tanval) + c4y2 * cos(tanval);
-
- // Scale
- C4WFXVal = (int16_t)(c4x * C4WFScale / (0x90 * (c4z + 0x95)) * 0x95);
- C4WFYVal = (int16_t)(c4y * C4WFScale / (0x90 * (c4z + 0x95)) * 0x95);
-}
-
-void C4TransfWireFrame2()
-{
- c4x = (double)C4WFXVal;
- c4y = (double)C4WFYVal;
- c4z = (double)C4WFZVal;
-
- // Rotate X
- tanval = -(double)C4WFX2Val * PI * 2 / 128;
- c4y2 = c4y * cos(tanval) - c4z * sin(tanval);
- c4z2 = c4y * sin(tanval) + c4z * cos(tanval);
-
- // Rotate Y
- tanval = -(double)C4WFY2Val * PI * 2 / 128;
- c4x2 = c4x * cos(tanval) + c4z2 * sin(tanval);
- c4z = c4x * -sin(tanval) + c4z2 * cos(tanval);
-
- // Rotate Z
- tanval = -(double)C4WFDist * PI * 2 / 128;
- c4x = c4x2 * cos(tanval) - c4y2 * sin(tanval);
- c4y = c4x2 * sin(tanval) + c4y2 * cos(tanval);
-
- // Scale
- C4WFXVal = (int16_t)(c4x * C4WFScale / 0x100);
- C4WFYVal = (int16_t)(c4y * C4WFScale / 0x100);
-}
-
-void C4CalcWireFrame()
-{
- C4WFXVal = C4WFX2Val - C4WFXVal;
- C4WFYVal = C4WFY2Val - C4WFYVal;
- if (abs(C4WFXVal) > abs(C4WFYVal))
- {
- C4WFDist = abs(C4WFXVal) + 1;
- C4WFYVal = (256 * (long)C4WFYVal) / abs(C4WFXVal);
- if (C4WFXVal < 0) C4WFXVal = -256;
- else C4WFXVal = 256;
- }
- else if (C4WFYVal != 0)
- {
- C4WFDist = abs(C4WFYVal) + 1;
- C4WFXVal = (256 * (long)C4WFXVal) / abs(C4WFYVal);
- if (C4WFYVal < 0) C4WFYVal = -256;
- else C4WFYVal = 256;
- }
- else C4WFDist = 0;
-}
-
-int16_t C41FXVal;
-int16_t C41FYVal;
-int16_t C41FAngleRes;
-int16_t C41FDist;
-int16_t C41FDistVal;
-
-void C4Op1F()
-{
- if (C41FXVal == 0)
- {
- if (C41FYVal > 0) C41FAngleRes = 0x80;
- else C41FAngleRes = 0x180;
- }
- else
- {
- tanval = ((double)C41FYVal) / ((double)C41FXVal);
- C41FAngleRes = (int16_t)(atan(tanval) / (PI * 2) * 512);
- C41FAngleRes = C41FAngleRes;
- if (C41FXVal < 0) C41FAngleRes += 0x100;
- C41FAngleRes &= 0x1FF;
- }
-}
-
-void C4Op15()
-{
- tanval = sqrt(((double)C41FYVal) * ((double)C41FYVal) + ((double)C41FXVal) *
- ((double)C41FXVal));
- C41FDist = (int16_t)tanval;
-}
-
-void C4Op0D()
-{
- tanval = sqrt(((double)C41FYVal) * ((double)C41FYVal) + ((double)C41FXVal) *
- ((double)C41FXVal));
- tanval = (double)C41FDistVal / tanval;
- C41FYVal = (int16_t)(((double)C41FYVal * tanval) * 0.99);
- C41FXVal = (int16_t)(((double)C41FXVal * tanval) * 0.98);
-}
-#endif
-
/***************************************************************************\
* DSP1 code *
\***************************************************************************/
@@ -374,9 +194,6 @@ void InitDSP(void)
SinTable2[i] = (sin((double)(2 * PI * i / INCR)));
}
#endif
-#ifdef DebugDSP1
- Start_Log();
-#endif
}
@@ -388,10 +205,6 @@ void DSPOp00()
{
Op00Result = Op00Multiplicand * Op00Multiplier >> 15;
-#ifdef DebugDSP1
- Log_Message("OP00 MULT %d*%d/32768=%d", Op00Multiplicand, Op00Multiplier,
- Op00Result);
-#endif
}
int16_t Op20Multiplicand;
@@ -403,10 +216,6 @@ void DSPOp20()
Op20Result = Op20Multiplicand * Op20Multiplier >> 15;
Op20Result++;
-#ifdef DebugDSP1
- Log_Message("OP20 MULT %d*%d/32768=%d", Op20Multiplicand, Op20Multiplier,
- Op20Result);
-#endif
}
int16_t Op10Coefficient;
@@ -469,10 +278,6 @@ void DSP1_Inverse(int16_t Coefficient, int16_t Exponent, int16_t* iCoefficient,
void DSPOp10()
{
DSP1_Inverse(Op10Coefficient, Op10Exponent, &Op10CoefficientR, &Op10ExponentR);
-#ifdef DebugDSP1
- Log_Message("OP10 INV %d*2^%d = %d*2^%d", Op10Coefficient, Op10Exponent,
- Op10CoefficientR, Op10ExponentR);
-#endif
}
int16_t Op04Angle;
@@ -906,10 +711,6 @@ void DSPOp06()
ObjPY2 = (ObjPY1 * Cos(tanval2) + ObjPZ1 * -Sin(tanval2));
ObjPZ2 = (ObjPY1 * Sin(tanval2) + ObjPZ1 * Cos(tanval2));
-#ifdef debug06
- Log_Message("ObjPX2: %f ObjPY2: %f ObjPZ2: %f\n", ObjPX2, ObjPY2, ObjPZ2);
-#endif
-
ObjPZ2 = ObjPZ2 - Op02LFE;
if (ObjPZ2 < 0)
@@ -936,10 +737,6 @@ void DSPOp06()
}
-#ifdef DebugDSP1
- Log_Message("OP06 X:%d Y:%d Z:%d", Op06X, Op06Y, Op06Z);
- Log_Message("OP06 H:%d V:%d S:%d", Op06H, Op06V, Op06S);
-#endif
}
#else
@@ -955,22 +752,12 @@ void DSPOp06()
ObjPY1 = (ObjPX * sin(tanval) + ObjPY * cos(tanval));
ObjPZ1 = ObjPZ;
-#ifdef debug06
- Log_Message("Angle : %f", tanval);
- Log_Message("ObjPX1: %f ObjPY1: %f ObjPZ1: %f\n", ObjPX1, ObjPY1, ObjPZ1);
- Log_Message("cos(tanval) : %f sin(tanval) : %f", cos(tanval), sin(tanval));
-#endif
-
// rotate around X
tanval = (-Op02AZS) / 65536.0 * 6.2832;
ObjPX2 = ObjPX1;
ObjPY2 = (ObjPY1 * cos(tanval) + ObjPZ1 * -sin(tanval));
ObjPZ2 = (ObjPY1 * sin(tanval) + ObjPZ1 * cos(tanval));
-#ifdef debug06
- Log_Message("ObjPX2: %f ObjPY2: %f ObjPZ2: %f\n", ObjPX2, ObjPY2, ObjPZ2);
-#endif
-
ObjPZ2 = ObjPZ2 - Op02LFE;
if (ObjPZ2 < 0)
@@ -994,10 +781,6 @@ void DSPOp06()
Op06S = 0xFFFF;
}
-#ifdef DebugDSP1
- Log_Message("OP06 X:%d Y:%d Z:%d", Op06X, Op06Y, Op06Z);
- Log_Message("OP06 H:%d V:%d S:%d", Op06H, Op06V, Op06S);
-#endif
}
#endif
@@ -1131,10 +914,6 @@ void DSPOp0D()
Op0DU = (Op0DX * matrixA[2][0] >> 15) + (Op0DY * matrixA[2][1] >> 15) +
(Op0DZ * matrixA[2][2] >> 15);
-#ifdef DebugDSP1
- Log_Message("OP0D X: %d Y: %d Z: %d / F: %d L: %d U: %d", Op0DX, Op0DY, Op0DZ,
- Op0DF, Op0DL, Op0DU);
-#endif
}
void DSPOp1D()
@@ -1146,10 +925,6 @@ void DSPOp1D()
Op1DU = (Op1DX * matrixB[2][0] >> 15) + (Op1DY * matrixB[2][1] >> 15) +
(Op1DZ * matrixB[2][2] >> 15);
-#ifdef DebugDSP1
- Log_Message("OP1D X: %d Y: %d Z: %d / F: %d L: %d U: %d", Op1DX, Op1DY, Op1DZ,
- Op1DF, Op1DL, Op1DU);
-#endif
}
void DSPOp2D()
@@ -1161,10 +936,6 @@ void DSPOp2D()
Op2DU = (Op2DX * matrixC[2][0] >> 15) + (Op2DY * matrixC[2][1] >> 15) +
(Op2DZ * matrixC[2][2] >> 15);
-#ifdef DebugDSP1
- Log_Message("OP2D X: %d Y: %d Z: %d / F: %d L: %d U: %d", Op2DX, Op2DY, Op2DZ,
- Op2DF, Op2DL, Op2DU);
-#endif
}
int16_t Op03F;
@@ -1195,10 +966,6 @@ void DSPOp03()
Op03Z = (Op03F * matrixA[0][2] >> 15) + (Op03L * matrixA[1][2] >> 15) +
(Op03U * matrixA[2][2] >> 15);
-#ifdef DebugDSP1
- Log_Message("OP03 F: %d L: %d U: %d / X: %d Y: %d Z: %d", Op03F, Op03L, Op03U,
- Op03X, Op03Y, Op03Z);
-#endif
}
void DSPOp13()
@@ -1210,10 +977,6 @@ void DSPOp13()
Op13Z = (Op13F * matrixB[0][2] >> 15) + (Op13L * matrixB[1][2] >> 15) +
(Op13U * matrixB[2][2] >> 15);
-#ifdef DebugDSP1
- Log_Message("OP13 F: %d L: %d U: %d / X: %d Y: %d Z: %d", Op13F, Op13L, Op13U,
- Op13X, Op13Y, Op13Z);
-#endif
}
void DSPOp23()
@@ -1225,10 +988,6 @@ void DSPOp23()
Op23Z = (Op23F * matrixC[0][2] >> 15) + (Op23L * matrixC[1][2] >> 15) +
(Op23U * matrixC[2][2] >> 15);
-#ifdef DebugDSP1
- Log_Message("OP23 F: %d L: %d U: %d / X: %d Y: %d Z: %d", Op23F, Op23L, Op23U,
- Op23X, Op23Y, Op23Z);
-#endif
}
int16_t Op14Zr;
@@ -1333,9 +1092,6 @@ void DSPOp0B()
Op0BS = (Op0BX * matrixA[0][0] + Op0BY * matrixA[0][1] + Op0BZ * matrixA[0][2])
>> 15;
-#ifdef DebugDSP1
- Log_Message("OP0B");
-#endif
}
void DSPOp1B()
@@ -1343,11 +1099,6 @@ void DSPOp1B()
Op1BS = (Op1BX * matrixB[0][0] + Op1BY * matrixB[0][1] + Op1BZ * matrixB[0][2])
>> 15;
-#ifdef DebugDSP1
- Log_Message("OP1B X: %d Y: %d Z: %d S: %d", Op1BX, Op1BY, Op1BZ, Op1BS);
- Log_Message(" MX: %d MY: %d MZ: %d Scale: %d", (int16_t)(matrixB[0][0] * 100),
- (int16_t)(matrixB[0][1] * 100), (int16_t)(matrixB[0][2] * 100), (int16_t)(sc2 * 100));
-#endif
}
void DSPOp2B()
@@ -1355,9 +1106,6 @@ void DSPOp2B()
Op2BS = (Op2BX * matrixC[0][0] + Op2BY * matrixC[0][1] + Op2BZ * matrixC[0][2])
>> 15;
-#ifdef DebugDSP1
- Log_Message("OP2B");
-#endif
}
int16_t Op08X, Op08Y, Op08Z, Op08Ll, Op08Lh;
@@ -1368,10 +1116,6 @@ void DSPOp08()
Op08Ll = Op08Size & 0xffff;
Op08Lh = (Op08Size >> 16) & 0xffff;
-#ifdef DebugDSP1
- Log_Message("OP08 %d,%d,%d", Op08X, Op08Y, Op08Z);
- Log_Message("OP08 ((Op08X^2)+(Op08Y^2)+(Op08X^2))=%x", Op08Size);
-#endif
}
int16_t Op18X, Op18Y, Op18Z, Op18R, Op18D;
@@ -1380,9 +1124,6 @@ void DSPOp18()
{
Op18D = (Op18X * Op18X + Op18Y * Op18Y + Op18Z * Op18Z - Op18R * Op18R) >> 15;
-#ifdef DebugDSP1
- Log_Message("Op18 X: %d Y: %d Z: %d R: %D DIFF %d", Op18X, Op18Y, Op38Z, Op18D);
-#endif
}
int16_t Op38X, Op38Y, Op38Z, Op38R, Op38D;
@@ -1392,9 +1133,6 @@ void DSPOp38()
Op38D = (Op38X * Op38X + Op38Y * Op38Y + Op38Z * Op38Z - Op38R * Op38R) >> 15;
Op38D++;
-#ifdef DebugDSP1
- Log_Message("OP38 X: %d Y: %d Z: %d R: %D DIFF %d", Op38X, Op38Y, Op38Z, Op38D);
-#endif
}
int16_t Op28X;
@@ -1422,10 +1160,6 @@ void DSPOp28()
Op28R >>= (E >> 1);
}
-#ifdef DebugDSP1
- Log_Message("OP28 X:%d Y:%d Z:%d", Op28X, Op28Y, Op28Z);
- Log_Message("OP28 Vector Length %d", Op28R);
-#endif
}
int16_t Op1CX, Op1CY, Op1CZ;
@@ -1457,9 +1191,6 @@ void DSPOp1C()
Op1CYAR = Op1CY1;
Op1CZAR = Op1CZ1;
-#ifdef DebugDSP1
- Log_Message("OP1C Apply Matrix CX:%d CY:%d CZ", Op1CXAR, Op1CYAR, Op1CZAR);
-#endif
}
uint16_t Op0FRamsize;
@@ -1469,9 +1200,6 @@ void DSPOp0F()
{
Op0FPass = 0x0000;
-#ifdef DebugDSP1
- Log_Message("OP0F RAM Test Pass:%d", Op0FPass);
-#endif
}
int16_t Op2FUnknown;
diff --git a/source/dsp2emu.c b/source/dsp2emu.c
index 0859fc9..43bfb45 100644
--- a/source/dsp2emu.c
+++ b/source/dsp2emu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dsp4.h b/source/dsp4.h
index 214fe34..6aeee61 100644
--- a/source/dsp4.h
+++ b/source/dsp4.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/dsp4emu.c b/source/dsp4emu.c
index bb187c7..a2ef53d 100644
--- a/source/dsp4emu.c
+++ b/source/dsp4emu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/font.h b/source/font.h
index 74538ca..d61fc82 100644
--- a/source/font.h
+++ b/source/font.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/fxdbg.c b/source/fxdbg.c
index bdfac1f..fcff834 100644
--- a/source/fxdbg.c
+++ b/source/fxdbg.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/fxemu.c b/source/fxemu.c
index ad146c7..749a00e 100644
--- a/source/fxemu.c
+++ b/source/fxemu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/fxemu.h b/source/fxemu.h
index 7170956..cee82f0 100644
--- a/source/fxemu.h
+++ b/source/fxemu.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/fxinst.c b/source/fxinst.c
index cc8cae0..ee16a54 100644
--- a/source/fxinst.c
+++ b/source/fxinst.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/fxinst.h b/source/fxinst.h
index b795b0a..cabf7ac 100644
--- a/source/fxinst.h
+++ b/source/fxinst.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/getset.h b/source/getset.h
index 51cea44..78e4cfe 100644
--- a/source/getset.h
+++ b/source/getset.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/gfx.c b/source/gfx.c
index 437ea97..d61bb09 100644
--- a/source/gfx.c
+++ b/source/gfx.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/gfx.h b/source/gfx.h
index 3169ced..ccaefcf 100644
--- a/source/gfx.h
+++ b/source/gfx.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/globals.c b/source/globals.c
index 65e4ec5..3381046 100644
--- a/source/globals.c
+++ b/source/globals.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/memmap.c b/source/memmap.c
index ac6384d..1eb9ff9 100644
--- a/source/memmap.c
+++ b/source/memmap.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/memmap.h b/source/memmap.h
index 02882bf..22122cf 100644
--- a/source/memmap.h
+++ b/source/memmap.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/messages.h b/source/messages.h
index 39b9ff5..369b060 100644
--- a/source/messages.h
+++ b/source/messages.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/missing.h b/source/missing.h
index d4a9b8a..012ce18 100644
--- a/source/missing.h
+++ b/source/missing.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/obc1.c b/source/obc1.c
index 0a4993a..d2de3f0 100644
--- a/source/obc1.c
+++ b/source/obc1.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/obc1.h b/source/obc1.h
index e0c475c..30cb012 100644
--- a/source/obc1.h
+++ b/source/obc1.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/pixform.h b/source/pixform.h
index c58f89c..9a5ac48 100644
--- a/source/pixform.h
+++ b/source/pixform.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/port.h b/source/port.h
index d48b4f8..9fb8b42 100644
--- a/source/port.h
+++ b/source/port.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/ppu.c b/source/ppu.c
index d3fdb20..379198a 100644
--- a/source/ppu.c
+++ b/source/ppu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/ppu.h b/source/ppu.h
index c85c29a..d04301a 100644
--- a/source/ppu.h
+++ b/source/ppu.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sa1.c b/source/sa1.c
index 6ac3041..5a95862 100644
--- a/source/sa1.c
+++ b/source/sa1.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sa1.h b/source/sa1.h
index a52df1e..6946ca0 100644
--- a/source/sa1.h
+++ b/source/sa1.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sa1cpu.c b/source/sa1cpu.c
index b2b33b7..0c8ea8d 100644
--- a/source/sa1cpu.c
+++ b/source/sa1cpu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sar.h b/source/sar.h
index 0441b71..8d28851 100644
--- a/source/sar.h
+++ b/source/sar.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sdd1.c b/source/sdd1.c
index c61e116..78380a5 100644
--- a/source/sdd1.c
+++ b/source/sdd1.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sdd1.h b/source/sdd1.h
index a2380c4..65662a8 100644
--- a/source/sdd1.h
+++ b/source/sdd1.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sdd1emu.c b/source/sdd1emu.c
index 4fbfac5..1e84cce 100644
--- a/source/sdd1emu.c
+++ b/source/sdd1emu.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/sdd1emu.h b/source/sdd1emu.h
index 695716f..8123712 100644
--- a/source/sdd1emu.h
+++ b/source/sdd1emu.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/seta.c b/source/seta.c
index 895fa32..0dcf90b 100644
--- a/source/seta.c
+++ b/source/seta.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/seta.h b/source/seta.h
index fc8f5ce..126abcd 100644
--- a/source/seta.h
+++ b/source/seta.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/seta010.c b/source/seta010.c
index aa89df2..9c7a122 100644
--- a/source/seta010.c
+++ b/source/seta010.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/seta011.c b/source/seta011.c
index c58a451..09b820d 100644
--- a/source/seta011.c
+++ b/source/seta011.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/seta018.c b/source/seta018.c
index d3a7092..674a0df 100644
--- a/source/seta018.c
+++ b/source/seta018.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/snes9x.h b/source/snes9x.h
index 4cc8cf9..e2d4f8f 100644
--- a/source/snes9x.h
+++ b/source/snes9x.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/soundux.c b/source/soundux.c
index a35c445..66af26b 100644
--- a/source/soundux.c
+++ b/source/soundux.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/soundux.h b/source/soundux.h
index ee2b0a2..de08db0 100644
--- a/source/soundux.h
+++ b/source/soundux.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/spc700.c b/source/spc700.c
index 140c832..97ab940 100644
--- a/source/spc700.c
+++ b/source/spc700.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/spc700.h b/source/spc700.h
index 5c0bb14..3738d0d 100644
--- a/source/spc700.h
+++ b/source/spc700.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/spc7110.c b/source/spc7110.c
index 5d2ffd6..49b8967 100644
--- a/source/spc7110.c
+++ b/source/spc7110.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/spc7110.h b/source/spc7110.h
index 65a794e..0186fc2 100644
--- a/source/spc7110.h
+++ b/source/spc7110.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/srtc.c b/source/srtc.c
index 2a5782d..28c5463 100644
--- a/source/srtc.c
+++ b/source/srtc.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/srtc.h b/source/srtc.h
index 789f059..894974b 100644
--- a/source/srtc.h
+++ b/source/srtc.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/tile.c b/source/tile.c
index d3d63eb..9ffff98 100644
--- a/source/tile.c
+++ b/source/tile.c
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.
diff --git a/source/tile.h b/source/tile.h
index 7971b3f..984c019 100644
--- a/source/tile.h
+++ b/source/tile.h
@@ -60,6 +60,8 @@
SH assembler code partly based on x86 assembler code
(c) Copyright 2002 - 2004 Marcus Comstedt (marcus@mc.pp.se)
+ (c) Copyright 2014 - 2016 Daniel De Matteis. (UNDER NO CIRCUMSTANCE
+ WILL COMMERCIAL RIGHTS EVER BE APPROPRIATED TO ANY PARTY)
Specific ports contains the works of other authors. See headers in
individual files.