Added copyright and license notices to each source file. Removed some bits with dubio...
authorslack <slack@codemaniacs.com>
Mon, 22 Sep 2008 15:45:13 +0000 (17:45 +0200)
committerslack <slack@codemaniacs.com>
Mon, 22 Sep 2008 15:46:04 +0000 (17:46 +0200)
34 files changed:
GBMemory.cc
GBMemory.h
GBRom.cc
GBRom.h
GBVideo.cc
GBVideo.h
Logger.h
MBC.cc
MBC.h
MBC1.cc
MBC1.h
NoMBC.cc
NoMBC.h
Singleton.h
gbcore.cc
gbcore.h
opcodes.h
sized_types.h
tests/test_core.cc
util.cc
util.h
wendi/CodeBlock.cc
wendi/CodeBlock.h
wendi/Instruction.cc [deleted file]
wendi/Instruction.h
wendi/disasm.cc
wendi/disasm.h
wendi/disasm_macros.h
wendi/disassembly_output.h
wendi/output_graph.cc
wendi/output_graph.h
wendi/output_txt.cc
wendi/output_txt.h
wendi/wendi.cc

index 25d86fe6673d2b2572767d7d43b265417e624728..9742e14906f32fdc480cd0e49b0d6cd2ed0c8f14 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "GBMemory.h"
 #include "MBC.h"
 #include "gbcore.h"
index 6b9aa6878e188353cdc58075e21c50a6e1f25c0f..10ce319ee4e68bdcd5614a15a6adc4512a103eb6 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef GBMEMORY_H
 #define GBMEMORY_H
 
index 466b7e6a036662c26b1c5f95f4e84d1697ce6ea7..23c568f1ffd63354be23f8527c89e1f0c986c886 100644 (file)
--- a/GBRom.cc
+++ b/GBRom.cc
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "GBRom.h"
 #include "Logger.h"
 #include <fstream>
diff --git a/GBRom.h b/GBRom.h
index 8065e32cb0283300ddf719d0faff64ba80c6150c..d2771e5ba1a0e32262913f9dd216daf991d7ada3 100644 (file)
--- a/GBRom.h
+++ b/GBRom.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef GBROM_H
 #define GBROM_H
 
index ec24a202d60fc827f48031e54a0030085ec38681..2a6d4b13f79f7714af47b5daf546f1cb2d76b565 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "GBVideo.h"
 #include "gbcore.h"
 #include "Logger.h"
index 32308335566aa9f04a3fc88f744dfe33a613ef18..e1d2ef74ee61444ae107e7b9ffb19e4a87e16546 100644 (file)
--- a/GBVideo.h
+++ b/GBVideo.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef GBVIDEO_H
 #define GBVIDEO_H
 
index 28a60633af1c10cd9c9ddc02c6199f45693715bf..f40261920d4b4d49e241c66d17e2780ad5261a7a 100644 (file)
--- a/Logger.h
+++ b/Logger.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #if !defined(LOGGER_H)
 #define LOGGER_H
 
diff --git a/MBC.cc b/MBC.cc
index 6dc90ed9dcdf8704f4290ca70f53773583a6bfb2..07af1b5f3d9d1f4026a04c76335b5470d836f8e4 100644 (file)
--- a/MBC.cc
+++ b/MBC.cc
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "MBC.h"
 #include "NoMBC.h"
 #include "MBC1.h"
diff --git a/MBC.h b/MBC.h
index fd7ee442e6ffd0b6f05429b97df69ecdc2da953d..b6786772a7dcccc97933b2e56526d7cdaba9eae4 100644 (file)
--- a/MBC.h
+++ b/MBC.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef MBC_H
 #define MBC_H
 
diff --git a/MBC1.cc b/MBC1.cc
index 1b35e0293a6ec30a7cfd0bad5fc4f50d766c8e07..dfea2bc40832cad7a7c8fd245c752b46d9d56277 100644 (file)
--- a/MBC1.cc
+++ b/MBC1.cc
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "MBC1.h"
 #include "Logger.h"
 
diff --git a/MBC1.h b/MBC1.h
index ac23e2c34cb730337fdd5badd2abd46d0763c254..1a565b10753e5d819a66a8cf0b631932a3d68a8a 100644 (file)
--- a/MBC1.h
+++ b/MBC1.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef MBC1_H
 #define MBC1_H
 
index 1f13c40e8a37e351a78eaf4971671d5e3a968432..1bdbd0b4bb6d149688e6d8602c578267fc4d7e5f 100644 (file)
--- a/NoMBC.cc
+++ b/NoMBC.cc
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "NoMBC.h"
 #include "Logger.h"
 
diff --git a/NoMBC.h b/NoMBC.h
index 81b3fd3b3d9ad322ca80cb81133f7b9d6874691b..533fc48083e5d23b14cc4f62a8f430798b726d9e 100644 (file)
--- a/NoMBC.h
+++ b/NoMBC.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef NOMBC_H
 #define NOMBC_H
 
index e500f2197790201cf6ce6503575424c9c9bd45d9..a96b9f529485743b6d4a27e747bd0c164e4f249a 100644 (file)
@@ -1,5 +1,21 @@
-// Meyers' singleton
-// from http://www.devarticles.com/c/a/Cplusplus/C-plus-plus-In-Theory-The-Singleton-Pattern-Part-2/1/
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
+// Meyers' singleton (see wikipedia)
 #if !defined(SINGLETON_H)
 #define SINGLETON_H
 
@@ -9,15 +25,16 @@ class Singleton
        public:
        static T& Instance() 
        {
-               static T _instance;
-               return _instance;
+               static T the_instance;
+               return the_instance;
        }
 
        protected:
-               Singleton() {}          // ctor hidden
-               virtual ~Singleton() {}          // dtor hidden
-               Singleton(Singleton const&);    // copy ctor hidden
-               Singleton& operator=(Singleton const&);  // assign op hidden
+    // Hide constructors, assignation operator and destructor
+    Singleton() {}
+    virtual ~Singleton() {}
+    Singleton(Singleton const&);
+    Singleton& operator=(Singleton const&);
 };
 
 #endif
index 78c2e642bc94a2ac4481e6428beced38605b2764..d93f2de2b21e9d47d52bb2c53f43940e449b0a6b 100644 (file)
--- a/gbcore.cc
+++ b/gbcore.cc
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #include "gbcore.h"
 
 #include "GBRom.h"
index 570dcd6cb364c4717fb018b50ab8d875b4c1dc73..e48dfbf4d055003aafd5ca77004894ae561bc19f 100644 (file)
--- a/gbcore.h
+++ b/gbcore.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
 #ifndef GBCORE_H
 #define GBCORE_H
 
index bb1ffb471871dd1e1de3df57a7d4a78aa4a4abdb..bd8d29fc6e4c23cd1d215c3c47472dbc6309fda6 100644 (file)
--- a/opcodes.h
+++ b/opcodes.h
@@ -1,3 +1,23 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/ 
+
+// Macro definitions to avoid unnecesary repetition in gbcore.cc
+
 #define set_flag_if(cond, flag) \
        if (cond) set_flag(flag); \
        else reset_flag(flag)
index 7bd02872d15886711014275f03df6e78deeecbbb..0cc4e6bde03873575931b02b863d95c378644cbd 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef SIZED_TYPES_H
 #define SIZED_TYPES_H
 
@@ -57,7 +74,7 @@
 #endif // SIZEOF_LONG_LONG
  
 #define COMPILE_TIME_ASSERT(name, x)               \
-              typedef int APRIL_SIZED_dummy_ ## name[(x) * 2 - 1]
+              typedef int WENBOI_SIZED_dummy_ ## name[(x) * 2 - 1]
 
 
 // Define 8-bit types
index ec615d66497ce50d394f142d6a1145a3c4b625c3..c6b60d10ebbfd5e23aad93a6f910411b768e0b6f 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #include "../gbcore.h"
 #include "../Logger.h"
 #include "../wendi/disasm.h"
diff --git a/util.cc b/util.cc
index 9258de77e76cd83b7e21b6401e7961597965313b..03e1af928e663ff9708986b17a6d29a08901d49e 100644 (file)
--- a/util.cc
+++ b/util.cc
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #include "util.h"
 
 uint32 set_bit(uint32 val, uint32 pos)
diff --git a/util.h b/util.h
index 52fd175183259b21653b0366ff5ce14dbb49142a..576587804f85ed7afd1d8f0dee0316eada9457a5 100644 (file)
--- a/util.h
+++ b/util.h
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef UTIL_H
 #define UTIL_H
 
index 5c99570455abf1dc8e6c499ec3468d3cdd302dd1..490a574dc78826f3dbc93981f6105dd8c7e1564d 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #include "CodeBlock.h"
 
 #include <algorithm>
index 4d4b8df14888ba1b133f52ddb6e4690f7fa4042f..6539cd96c50b9a80ef265443c626c2b59e8cdfc3 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef CODEBLOCK_H
 #define CODEBLOCK_H
 
diff --git a/wendi/Instruction.cc b/wendi/Instruction.cc
deleted file mode 100644 (file)
index 8848eae..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#include "Instruction.h"
-
index 8698f42323171076da17ae96bfaebfdc19d09f41..f7d53164242b424069ec163e60865457134e43d4 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef INSTRUCTION_H
 #define INSTRUCTION_H
 
index d716cf0e164de893ecf45b5b35b9ed72e9d2e40d..888e3857f1a21d41b5bdf3af094d7b9d87140e7e 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #include <iomanip>
 
 #include "../Logger.h"
index 2a484630c56aa6fd03681bc0be71bb50e865bddc..617435409ad2cabf31307984405f8be7a1c9decb 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef DISASM_H
 #define DISASM_H
 
index 1e093b258cdf8e3e5b559a83f17a699acb0c4aca..2721e5308cdb9bc9db2c17a2ab7fe97b3aaefafc 100644 (file)
@@ -1,3 +1,24 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+// Macros to avoid unnecesary repetition in disasm.cc (like opcodes.h for
+// gbcore)
+
 #ifndef DISASM_MACROS_H
 #define DISASM_MACROS_H
 
index a4123eb8d9d155fb27b31467908ba7be3737befb..0ab845bc156f8181cf0a8ade95b331da5fee1359 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef DISASSEMBLY_OUTPUT_H
 #define DISASSEMBLY_OUTPUT_H
 
index b67556b6c384914b807b05a607e1ea0afe89e434..517f890727a7c85f4a611c187ddf1dd894d8b414 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #include "output_graph.h"
 #include <sstream>
 #include <iomanip>
index 8a696647c4de460a80e85f69175f076b72c48add..62c00d85047c0d733b7f09663e67ea7345ecb332 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef OUTPUT_GRAPH
 #define OUTPUT_GRAPH
 #include "disassembly_output.h"
index 08bb1cfae796cbc8c5b486cc6e5763bdecd06da1..e7e84ebc992c5a9c59d6b290c30d88118782c46d 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #include "output_txt.h"
 #include <sstream>
 #include <iomanip>
index dc129d339014af3430fecb2d8453d3235c4b37fe..a864a0a764f59e0a0c4149161f2a7731cdca4f28 100644 (file)
@@ -1,3 +1,20 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
 #ifndef OUTPUT_TXT
 #define OUTPUT_TXT
 #include "disassembly_output.h"
index b3c67416d20ff288fbfb1d5c5a9b5841ce33cfac..7082b4a934bec6cf9fe0cf365c19945ba55c6e34 100644 (file)
@@ -1,3 +1,23 @@
+/*
+    Copyright 2008 Jorge Gorbe Moya <slack@codemaniacs.com>
+
+    This file is part of wenboi 
+
+    wenboi is free software: you can redistribute it and/or modify it under the
+    terms of the GNU General Public License version 3 only, as published by the
+    Free Software Foundation.
+
+    wenboi is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with wenboi.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+// wendi, the WENboi DIsassembler :)
+
 #include "../gbcore.h"
 #include "../Logger.h"
 #include "disassembly_output.h"