Forráskód Böngészése

clarify PicoDrive's license

- PicoDrive was originally released by fDave with simple
  "free for non-commercial use / For commercial use, separate licencing
  terms must be obtained" license and I kept it in my releases.
- in 2011, fDave re-released his code (same that I used as base
  many years ago) dual licensed with GPLv2 and MAME licenses:
    https://code.google.com/p/cyclone68000/

Based on the above I now proclaim that the whole source code is licensed
under the MAME license as more elaborate form of "for non-commercial use".
If that raises any doubt, I announce that all my modifications (which
is the vast majority of code by now) is licensed under the MAME license,
as it reads in COPYING file in this commit.

This does not affect ym2612.c/sn76496.c that were MAME licensed already
from the beginning.
notaz 11 éve
szülő
commit
cff531af94
97 módosított fájl, 801 hozzáadás és 337 törlés
  1. 30 0
      COPYING
  2. 5 1
      cpu/debug.c
  3. 7 0
      cpu/debug_net.c
  4. 7 0
      cpu/drc/cmn.c
  5. 7 5
      cpu/drc/emit_arm.c
  6. 6 0
      cpu/drc/emit_x86.c
  7. 7 1
      cpu/sh2/compiler.c
  8. 7 0
      cpu/sh2/sh2.c
  9. 7 0
      pico/32x/32x.c
  10. 7 0
      pico/32x/draw.c
  11. 8 1
      pico/32x/draw_arm.s
  12. 6 0
      pico/32x/memory.c
  13. 7 0
      pico/32x/pwm.c
  14. 8 8
      pico/cart.c
  15. 3 3
      pico/carthw/carthw.c
  16. 7 4
      pico/carthw/svp/compiler.c
  17. 27 7
      pico/carthw/svp/memory.c
  18. 28 8
      pico/carthw/svp/ssp16.c
  19. 27 7
      pico/carthw/svp/ssp16.h
  20. 8 6
      pico/carthw/svp/stub_arm.S
  21. 27 7
      pico/carthw/svp/svp.c
  22. 7 2
      pico/cd/buffering.c
  23. 7 2
      pico/cd/cell_map.c
  24. 7 0
      pico/cd/cue.c
  25. 7 2
      pico/cd/memory.c
  26. 8 5
      pico/cd/memory_arm.s
  27. 7 2
      pico/cd/misc.c
  28. 8 5
      pico/cd/misc_arm.s
  29. 7 3
      pico/cd/pcm.c
  30. 7 2
      pico/cd/pico.c
  31. 8 4
      pico/cd/pico_arm.s
  32. 7 2
      pico/cd/sek.c
  33. 7 2
      pico/debug.c
  34. 8 0
      pico/debugCPU.c
  35. 8 8
      pico/draw.c
  36. 7 10
      pico/draw2.c
  37. 10 9
      pico/draw2_arm.s
  38. 10 6
      pico/draw_amips.s
  39. 10 7
      pico/draw_arm.s
  40. 4 0
      pico/eeprom.c
  41. 8 1
      pico/m68kif_cyclone.s
  42. 8 8
      pico/memory.c
  43. 8 7
      pico/memory_amips.s
  44. 8 5
      pico/memory_arm.s
  45. 7 7
      pico/misc.c
  46. 8 5
      pico/misc_amips.s
  47. 8 7
      pico/misc_arm.s
  48. 7 0
      pico/mode4.c
  49. 8 8
      pico/pico.c
  50. 8 10
      pico/pico.h
  51. 7 0
      pico/pico/memory.c
  52. 7 0
      pico/pico/pico.c
  53. 6 0
      pico/pico/xpcm.c
  54. 7 2
      pico/pico_cmn.c
  55. 8 7
      pico/pico_int.h
  56. 8 8
      pico/sek.c
  57. 7 0
      pico/sms.c
  58. 7 2
      pico/sound/mix.c
  59. 8 6
      pico/sound/mix_arm.s
  60. 8 8
      pico/sound/sound.c
  61. 8 0
      pico/sound/ym2612_arm.s
  62. 7 6
      pico/state.c
  63. 8 8
      pico/videoport.c
  64. 8 0
      pico/z80if.c
  65. 34 14
      platform/base_readme.txt
  66. 0 4
      platform/common/arm_utils.h
  67. 8 7
      platform/common/arm_utils.s
  68. 4 1
      platform/common/config.c
  69. 7 4
      platform/common/emu.c
  70. 7 4
      platform/common/emu.h
  71. 7 4
      platform/common/main.c
  72. 7 0
      platform/common/menu_pico.c
  73. 7 0
      platform/common/mp3.c
  74. 8 4
      platform/common/mp3_helix.c
  75. 0 5
      platform/gizmondo/emu.h
  76. 7 0
      platform/gizmondo/giz.c
  77. 7 4
      platform/gizmondo/main.c
  78. 7 4
      platform/gizmondo/menu.c
  79. 7 4
      platform/gizmondo/menu.h
  80. 7 2
      platform/gp2x/940ctl.c
  81. 7 0
      platform/gp2x/soc_mmsp2.c
  82. 7 0
      platform/gp2x/soc_pollux.c
  83. 7 0
      platform/linux/blit.c
  84. 7 4
      platform/linux/emu.c
  85. 7 0
      platform/linux/host_dasm.c
  86. 7 0
      platform/linux/io.c
  87. 7 0
      platform/linux/log_io.c
  88. 7 4
      platform/pandora/plat.c
  89. 7 4
      platform/psp/emu.c
  90. 0 5
      platform/psp/emu.h
  91. 7 4
      platform/psp/main.c
  92. 7 4
      platform/psp/menu.c
  93. 0 4
      platform/psp/menu.h
  94. 7 4
      platform/psp/mp3.c
  95. 7 5
      platform/psp/psp.c
  96. 7 4
      platform/psp/psp.h
  97. 7 0
      platform/win32/plat.c

+ 30 - 0
COPYING

@@ -0,0 +1,30 @@
+
+ Redistribution and use of this code or any derivative works are permitted
+ provided that the following conditions are met:
+
+ * Redistributions may not be sold, nor may they be used in a commercial
+ product or activity.
+
+ * Redistributions that are modified from the original source must include the
+ complete source code, including the source code for all components used by a
+ binary built from the modified sources. However, as a special exception, the
+ source code distributed need not include anything that is normally distributed
+ (in either source or binary form) with the major components (compiler, kernel,
+ and so on) of the operating system on which the executable runs, unless that
+ component itself accompanies the executable.
+
+ * Redistributions must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.

+ 5 - 1
cpu/debug.c

@@ -1,6 +1,9 @@
 /*
- * vim:shiftwidth=2:expandtab
  * PDB, the PicoDrive debugger
+ * (C) notaz, 2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
  */
 #define _GNU_SOURCE
 #include <stdio.h>
@@ -407,3 +410,4 @@ void pdb_cleanup(void)
   pdb_cpu_count = 0;
 }
 
+// vim:shiftwidth=2:expandtab

+ 7 - 0
cpu/debug_net.c

@@ -1,3 +1,10 @@
+/*
+ * PDB, the PicoDrive debugger
+ * (C) notaz, 2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 7 - 0
cpu/drc/cmn.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * Copyright (C) 2009,2010 notaz
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #ifdef __linux__
 #include <sys/mman.h>

+ 7 - 5
cpu/drc/emit_arm.c

@@ -1,8 +1,10 @@
-// Basic macros to emit ARM instructions and some utils
-
-// (c) Copyright 2008-2009, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
+/*
+ * Basic macros to emit ARM instructions and some utils
+ * Copyright (C) 2008,2009,2010 notaz
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #define CONTEXT_REG 11
 
 // XXX: tcache_ptr type for SVP and SH2 compilers differs..

+ 6 - 0
cpu/drc/emit_x86.c

@@ -1,4 +1,10 @@
 /*
+ * Basic macros to emit x86 instructions and some utils
+ * Copyright (C) 2008,2009,2010 notaz
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ *
  * note:
  *  temp registers must be eax-edx due to use of SETcc and r/w 8/16.
  * note about silly things like emith_eor_r_r_r:

+ 7 - 1
cpu/sh2/compiler.c

@@ -1,5 +1,9 @@
 /*
- * vim:shiftwidth=2:expandtab
+ * SH2 recompiler
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
  *
  * notes:
  * - tcache, block descriptor, link buffer overflows result in sh2_translate()
@@ -3124,3 +3128,5 @@ void sh2_drc_finish(SH2 *sh2)
     hash_table = NULL;
   }
 }
+
+// vim:shiftwidth=2:expandtab

+ 7 - 0
cpu/sh2/sh2.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <string.h>
 #include <stddef.h>
 

+ 7 - 0
pico/32x/32x.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include "../pico_int.h"
 #include "../sound/ym2612.h"
 

+ 7 - 0
pico/32x/draw.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include "../pico_int.h"
 
 int (*PicoScan32xBegin)(unsigned int num);

+ 8 - 1
pico/32x/draw_arm.s

@@ -1,4 +1,10 @@
-@ vim:filetype=armasm
+@*
+@* PicoDrive
+@* (C) notaz, 2010
+@*
+@* This work is licensed under the terms of MAME license.
+@* See COPYING file in the top-level directory.
+@*
 
 .extern Pico32x
 .extern PicoDraw2FB
@@ -361,3 +367,4 @@ make_do_loop_rl do_loop_rl_md,      0, 1
 make_do_loop_rl do_loop_rl_scan,    1, 0
 make_do_loop_rl do_loop_rl_scan_md, 1, 1
 
+@ vim:filetype=armasm

+ 6 - 0
pico/32x/memory.c

@@ -1,4 +1,10 @@
 /*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ *
  * SH2 addr lines:
  * iii. .cc. ..xx *   // Internal, Cs, x
  *

+ 7 - 0
pico/32x/pwm.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include "../pico_int.h"
 
 static int pwm_line_samples;

+ 8 - 8
pico/cart.c

@@ -1,11 +1,11 @@
-// This is part of Pico Library
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include "../zlib/zlib.h"

+ 3 - 3
pico/carthw/carthw.c

@@ -1,9 +1,9 @@
 /*
  * Support for a few cart mappers and some protection.
+ * (C) notaz, 2008,2009,2010
  *
- * (c) Copyright 2008-2009, Grazvydas "notaz" Ignotas
- * Free for non-commercial use.
- *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
  */
 
 #include "../pico_int.h"

+ 7 - 4
pico/carthw/svp/compiler.c

@@ -1,7 +1,10 @@
-// SSP1601 to ARM recompiler
-
-// (c) Copyright 2008, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
+/*
+ * SSP1601 to ARM recompiler
+ * (C) notaz, 2008,2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../../pico_int.h"
 #include "../../../cpu/drc/cmn.h"

+ 27 - 7
pico/carthw/svp/memory.c

@@ -1,10 +1,30 @@
-// The SVP chip emulator, mem I/O stuff
-
-// (c) Copyright 2008, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * The SVP chip emulator, mem I/O stuff
+ *
+ * Copyright (c) Gražvydas "notaz" Ignotas, 2008
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in the
+ *       documentation and/or other materials provided with the distribution.
+ *     * Neither the name of the organization nor the
+ *       names of its contributors may be used to endorse or promote products
+ *       derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "../../pico_int.h"
 #include "../../memory.h"

+ 28 - 8
pico/carthw/svp/ssp16.c

@@ -1,11 +1,31 @@
-// basic, incomplete SSP160x (SSP1601?) interpreter
-// with SVP memory controller emu
-
-// (c) Copyright 2008, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/* 
+ * basic, incomplete SSP160x (SSP1601?) interpreter
+ * with SVP memory controller emu
+ *
+ * Copyright (c) Gražvydas "notaz" Ignotas, 2008
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in the
+ *       documentation and/or other materials provided with the distribution.
+ *     * Neither the name of the organization nor the
+ *       names of its contributors may be used to endorse or promote products
+ *       derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 //#define USE_DEBUGGER
 /* detect ops with unimplemented/invalid fields.

+ 27 - 7
pico/carthw/svp/ssp16.h

@@ -1,10 +1,30 @@
-// basic, incomplete SSP160x (SSP1601?) interpreter
-
-// (c) Copyright 2008, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/* 
+ * basic, incomplete SSP160x (SSP1601?) interpreter
+ *
+ * Copyright (c) Gražvydas "notaz" Ignotas, 2008
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in the
+ *       documentation and/or other materials provided with the distribution.
+ *     * Neither the name of the organization nor the
+ *       names of its contributors may be used to endorse or promote products
+ *       derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 // register names
 enum {

+ 8 - 6
pico/carthw/svp/stub_arm.S

@@ -1,9 +1,10 @@
-@ vim:filetype=armasm
-
-@ Compiler helper functions and some SVP HLE code
-
-@ (c) Copyright 2008, Grazvydas "notaz" Ignotas
-@ Free for non-commercial use.
+@*
+@* Compiler helper functions and some SVP HLE code
+@* (C) notaz, 2008,2009
+@*
+@* This work is licensed under the terms of MAME license.
+@* See COPYING file in the top-level directory.
+@*
 
 .global ssp_drc_entry
 .global ssp_drc_next
@@ -615,3 +616,4 @@ hle_07_036_ending2:
     mov     r0, #0x87
     b       ssp_drc_next	@ let the dispatcher finish this
 
+@ vim:filetype=armasm

+ 27 - 7
pico/carthw/svp/svp.c

@@ -1,10 +1,30 @@
-// The SVP chip emulator
-
-// (c) Copyright 2008, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * The SVP chip emulator
+ *
+ * Copyright (c) Gražvydas "notaz" Ignotas, 2008
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *     * Redistributions of source code must retain the above copyright
+ *       notice, this list of conditions and the following disclaimer.
+ *     * Redistributions in binary form must reproduce the above copyright
+ *       notice, this list of conditions and the following disclaimer in the
+ *       documentation and/or other materials provided with the distribution.
+ *     * Neither the name of the organization nor the
+ *       names of its contributors may be used to endorse or promote products
+ *       derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 
 #include "../../pico_int.h"
 #include "../../cpu/drc/cmn.h"

+ 7 - 2
pico/cd/buffering.c

@@ -1,5 +1,10 @@
-// Buffering handling
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+/*
+ * Buffering handling
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../pico_int.h"
 

+ 7 - 2
pico/cd/cell_map.c

@@ -1,5 +1,10 @@
-// Convert "cell arrange" address to normal address.
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+/*
+ * Convert "cell arrange" address to normal address.
+ * (C) notaz, 2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 // 64 x32 x16 x8 x4 x4
 static unsigned int cell_map(int celln)

+ 7 - 0
pico/cd/cue.c

@@ -1,3 +1,10 @@
+/*
+ * cuefile handling
+ * (C) notaz, 2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 7 - 2
pico/cd/memory.c

@@ -1,5 +1,10 @@
-// Memory I/O handlers for Sega/Mega CD.
-// (c) Copyright 2007-2009, Grazvydas "notaz" Ignotas
+/*
+ * Memory I/O handlers for Sega/Mega CD.
+ * (C) notaz, 2007-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../pico_int.h"
 #include "../memory.h"

+ 8 - 5
pico/cd/memory_arm.s

@@ -1,8 +1,10 @@
-@ vim:filetype=armasm
-
-@ Memory I/O handlers for Sega/Mega CD emulation
-@ (c) Copyright 2007-2009, Grazvydas "notaz" Ignotas
-
+@*
+@* Memory I/O handlers for Sega/Mega CD emulation
+@* (C) notaz, 2007-2009
+@*
+@* This work is licensed under the terms of MAME license.
+@* See COPYING file in the top-level directory.
+@*
 
 .equiv PCM_STEP_SHIFT, 11
 
@@ -734,3 +736,4 @@ m_s68k_write16_regs_spec:               @ special case
 
 .pool
 
+@ vim:filetype=armasm

+ 7 - 2
pico/cd/misc.c

@@ -1,5 +1,10 @@
-// Some misc stuff
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+/*
+ * PicoDrive
+ * (C) notaz, 2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../pico_int.h"
 

+ 8 - 5
pico/cd/misc_arm.s

@@ -1,7 +1,10 @@
-@ vim:filetype=armasm
-
-@ Memory converters for different modes
-@ (c) Copyright 2007, Grazvydas "notaz" Ignotas
+@*
+@* Memory converters for different modes
+@* (C) notaz, 2007-2008
+@*
+@* This work is licensed under the terms of MAME license.
+@* See COPYING file in the top-level directory.
+@*
 
 
 @ r10 is tmp, io1 is lsb halfword, io2 is msb
@@ -73,4 +76,4 @@ _1Mto2M_loop:
 
     ldmfd   sp!,{r4-r11,pc}
 
-
+@ vim:filetype=armasm

+ 7 - 3
pico/cd/pcm.c

@@ -1,6 +1,10 @@
-// Emulation routines for the RF5C164 PCM chip.
-// Based on Gens code by Stéphane Dallongeville
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+/*
+ * Emulation routines for the RF5C164 PCM chip
+ * (C) notaz, 2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../pico_int.h"
 #include "pcm.h"

+ 7 - 2
pico/cd/pico.c

@@ -1,5 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-
+/*
+ * PicoDrive
+ * (C) notaz, 2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../pico_int.h"
 #include "../sound/ym2612.h"

+ 8 - 4
pico/cd/pico_arm.s

@@ -1,12 +1,15 @@
-@ vim:filetype=armasm
+@*
+@* CPU scheduling code
+@* (C) notaz, 2007-2008
+@*
+@* This work is licensed under the terms of MAME license.
+@* See COPYING file in the top-level directory.
+@*
 
 @ SekRunPS runs PicoCpuCM68k and PicoCpuCS68k interleaved in steps of PS_STEP_M68K
 @ cycles. This is done without calling CycloneRun and jumping directly to
 @ Cyclone code to avoid pushing/popping all the registers every time.
 
-@ (c) Copyright 2007, Grazvydas "notaz" Ignotas
-@ All Rights Reserved
-
 
 .equiv PS_STEP_M68K, ((488<<16)/20) @ ~24
 
@@ -179,3 +182,4 @@ CycloneSpecial2:
   mov r5,#0
   bx r1
 
+@ vim:filetype=armasm

+ 7 - 2
pico/cd/sek.c

@@ -1,5 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-
+/*
+ * PicoDrive
+ * (C) notaz, 2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "../pico_int.h"
 

+ 7 - 2
pico/debug.c

@@ -1,5 +1,10 @@
-// some debug code, just for fun of it
-// (c) Copyright 2008 notaz, All rights reserved.
+/*
+ * debug stuff
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include "sound/ym2612.h"

+ 8 - 0
pico/debugCPU.c

@@ -1,3 +1,11 @@
+/*
+ * debug stuff
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
+
 #include "pico_int.h"
 
 typedef unsigned char  u8;

+ 8 - 8
pico/draw.c

@@ -1,11 +1,11 @@
-// This is part of Pico Library
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2008 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * line renderer
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 /*
  * The renderer has 4 modes now:
  * - normal

+ 7 - 10
pico/draw2.c

@@ -1,13 +1,10 @@
-// This is part of Pico Library
-
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
-
-// this is a frame-based renderer, alternative to Dave's line based which is in Draw.c
-
+/*
+ * tile renderer
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 

+ 10 - 9
pico/draw2_arm.s

@@ -1,11 +1,12 @@
-@ vim:filetype=armasm
-
-@ assembly optimized versions of most funtions from draw2.c
-@ this is highly specialized, be careful if changing related C code!
-
-@ (c) Copyright 2007, Grazvydas "notaz" Ignotas
-@ All Rights Reserved
-
+/*
+ * assembly optimized versions of most funtions from draw2.c
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ *
+ * this is highly specialized, be careful if changing related C code!
+ */
 
 .extern Pico
 .extern PicoDraw2FB
@@ -926,4 +927,4 @@ DrawSpriteFull:
 
 .pool
 
-
+@ vim:filetype=armasm

+ 10 - 6
pico/draw_amips.s

@@ -1,8 +1,12 @@
-# vim:filetype=mips
-
-# several drawing related functions for Allegrex MIPS
-# (c) Copyright 2007, Grazvydas "notaz" Ignotas
-# All Rights Reserved
+#*
+#* several drawing related functions for Allegrex MIPS
+#* (C) notaz, 2007-2008
+#*
+#* This work is licensed under the terms of MAME license.
+#* See COPYING file in the top-level directory.
+#*
+#* this is highly specialized, be careful if changing related C code!
+#*
 
 .set noreorder # don't reorder any instructions
 .set noat      # don't use $at
@@ -1749,4 +1753,4 @@ TileTable:
   .long tile11110000, tile11110001, tile11110010, tile11110011, tile11110100, tile11110101, tile11110110, tile11110111
   .long tile11111000, tile11111001, tile11111010, tile11111011, tile11111100, tile11111101, tile11111110, tile11111111
 
-
+# vim:filetype=mips

+ 10 - 7
pico/draw_arm.s

@@ -1,10 +1,12 @@
-@ vim:filetype=armasm
-
-@ ARM assembly versions of some funtions from draw.c
-@ this is highly specialized, be careful if changing related C code!
-
-@ (c) Copyright 2007-2008, Grazvydas "notaz" Ignotas
-@ All Rights Reserved
+/*
+ * assembly optimized versions of most funtions from draw.c
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ *
+ * this is highly specialized, be careful if changing related C code!
+ */
 
 .include "port_config.s"
 
@@ -2026,3 +2028,4 @@ blockcpy_loop_or:
     ldmfd   sp!, {r4-r6}
     bx      lr
 
+@ vim:filetype=armasm

+ 4 - 0
pico/eeprom.c

@@ -1,5 +1,9 @@
 /*
  * rarely used EEPROM code
+ * (C) notaz, 2007-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
  *
  * (see Genesis Plus for Wii/GC code and docs for info,
  * full game list and better code).

+ 8 - 1
pico/m68kif_cyclone.s

@@ -1,4 +1,10 @@
-@ vim:filetype=armasm
+/*
+ * PicoDrive
+ * (C) notaz, 2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 .equ M68K_MEM_SHIFT, 16
 
@@ -138,3 +144,4 @@ cyclone_write32: @ u32 a, u32 d
     add     r0, r0, #2
     bx      r2
 
+@ vim:filetype=armasm

+ 8 - 8
pico/memory.c

@@ -1,11 +1,11 @@
-// This is part of Pico Library
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * memory handling
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include "memory.h"

+ 8 - 7
pico/memory_amips.s

@@ -1,13 +1,13 @@
-# vim:filetype=mips
+#*
+#* memory handlers with banking support
+#* (C) notaz, 2007-2008
+#*
+#* This work is licensed under the terms of MAME license.
+#* See COPYING file in the top-level directory.
+#*
 
-# memory handlers with banking support for SSF II - The New Challengers
-# mostly based on Gens code
 # OUT OF DATE
 
-# (c) Copyright 2007, Grazvydas "notaz" Ignotas
-# All Rights Reserved
-
-
 .set noreorder
 .set noat
 
@@ -787,3 +787,4 @@ pwr_banking:
     jr      $ra
     nop
 
+# vim:filetype=mips

+ 8 - 5
pico/memory_arm.s

@@ -1,8 +1,10 @@
-@ vim:filetype=armasm
-
-@ (c) Copyright 2006-2009, Grazvydas "notaz" Ignotas
-@ All Rights Reserved
-
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 @@ .include "port_config.s"
 
@@ -304,3 +306,4 @@ m_write16_not_sreg:
 
 .pool
 
+@ vim:filetype=armasm

+ 7 - 7
pico/misc.c

@@ -1,10 +1,10 @@
-// This is part of Pico Library
-
-// (c) Copyright 2006 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * rarely used EEPROM code
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 

+ 8 - 5
pico/misc_amips.s

@@ -1,8 +1,10 @@
-# vim:filetype=mips
-
-# Some misc routines for Allegrex MIPS
-# (c) Copyright 2007, Grazvydas "notaz" Ignotas
-# All Rights Reserved
+#*
+#* Some misc routines for Allegrex MIPS
+#* (C) notaz, 2007-2008
+#*
+#* This work is licensed under the terms of MAME license.
+#* See COPYING file in the top-level directory.
+#*
 
 .set noreorder
 .set noat
@@ -173,3 +175,4 @@ mc32_return:
     jr      $ra
     nop
 
+# vim:filetype=mips

+ 8 - 7
pico/misc_arm.s

@@ -1,8 +1,10 @@
-@ vim:filetype=armasm
-
-@ Generic memory routines.
-@ (c) Copyright 2007, Grazvydas "notaz" Ignotas
-
+/*
+ * Generic memory routines.
+ * (C) notaz, 2007-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 .global memcpy16 @ unsigned short *dest, unsigned short *src, int count
 
@@ -177,5 +179,4 @@ mst32_fin:
     ldmfd   sp!, {lr}
     bx      lr
 
-
-
+@ vim:filetype=armasm

+ 7 - 0
pico/mode4.c

@@ -1,3 +1,10 @@
+/*
+ * mode4/SMS renderer
+ * (C) notaz, 2009-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 /*
  * TODO:
  * - TMS9918 modes?

+ 8 - 8
pico/pico.c

@@ -1,11 +1,11 @@
-// PicoDrive
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2008 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include "sound/ym2612.h"

+ 8 - 10
pico/pico.h

@@ -1,13 +1,11 @@
-
-// -------------------- Pico Library --------------------
-
-// Pico Library - Header File
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #ifndef PICO_H
 #define PICO_H

+ 7 - 0
pico/pico/memory.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include "../pico_int.h"
 #include "../memory.h"
 #include "../sound/sn76496.h"

+ 7 - 0
pico/pico/pico.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include "../pico_int.h"
 
 // x: 0x03c - 0x19d

+ 6 - 0
pico/pico/xpcm.c

@@ -1,4 +1,10 @@
 /*
+ * PicoDrive
+ * (C) notaz, 2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ *
  * The following ADPCM algorithm was stolen from MAME aica driver.
  * I'm quite sure it's not the right one, but it's the
  * best sounding of the ones that I tried.

+ 7 - 2
pico/pico_cmn.c

@@ -1,5 +1,10 @@
-// common code for Pico.c and cd/Pico.c
-// (c) Copyright 2007-2009 Grazvydas "notaz" Ignotas
+/*
+ * common code for pico.c and cd/pico.c
+ * (C) notaz, 2007-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #define CYCLES_M68K_LINE     488 // suitable for both PAL/NTSC
 #define CYCLES_M68K_VINT_LAG  68

+ 8 - 7
pico/pico_int.h

@@ -1,10 +1,11 @@
-// Pico Library - Internal Header File
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2009 Grazvydas "notaz" Ignotas, all rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive - Internal Header File
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #ifndef PICO_INTERNAL_INCLUDED
 #define PICO_INTERNAL_INCLUDED

+ 8 - 8
pico/sek.c

@@ -1,11 +1,11 @@
-// This is part of Pico Library
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include "memory.h"

+ 7 - 0
pico/sms.c

@@ -1,3 +1,10 @@
+/*
+ * SMS emulation
+ * (C) notaz, 2009-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 /*
  * TODO:
  * - start in a state as if BIOS ran

+ 7 - 2
pico/sound/mix.c

@@ -1,5 +1,10 @@
-// some code for sample mixing
-// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
+/*
+ * some code for sample mixing
+ * (C) notaz, 2006,2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #define MAXOUT		(+32767)
 #define MINOUT		(-32768)

+ 8 - 6
pico/sound/mix_arm.s

@@ -1,8 +1,10 @@
-@ vim:filetype=armasm
-
-@ Generic routines for mixing audio samples
-@ (c) Copyright 2007, Grazvydas "notaz" Ignotas
-
+/*
+ * Generic routines for mixing audio samples
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 .text
 .align 4
@@ -364,4 +366,4 @@ m32_16l_st_l_no_unal2:
     ldmfd   sp!, {r4-r9,lr}
     bx      lr
 
-
+@ vim:filetype=armasm

+ 8 - 8
pico/sound/sound.c

@@ -1,11 +1,11 @@
-// This is part of Pico Library
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006,2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <string.h>
 #include "ym2612.h"

+ 8 - 0
pico/sound/ym2612_arm.s

@@ -1,3 +1,11 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2006
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
+
 @ this is a rewrite of MAME's ym2612 code, in particular this is only the main sample-generatin loop.
 @ it does not seem to give much performance increase (if any at all), so don't use it if it causes trouble.
 @ - notaz, 2006

+ 7 - 6
pico/state.c

@@ -1,9 +1,10 @@
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2010 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (C) notaz, 2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include <zlib/zlib.h>

+ 8 - 8
pico/videoport.c

@@ -1,11 +1,11 @@
-// PicoDrive
-
-// (c) Copyright 2004 Dave, All rights reserved.
-// (c) Copyright 2006-2008, Grazvydas "notaz" Ignotas
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (c) Copyright Dave, 2004
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "pico_int.h"
 #include "cd/gfx_cd.h"

+ 8 - 0
pico/z80if.c

@@ -1,3 +1,11 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2007-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
+
 #include <stddef.h>
 #include "pico_int.h"
 #include "memory.h"

+ 34 - 14
platform/base_readme.txt

@@ -1139,20 +1139,40 @@ Changelog
   Initial release.
 
 
-Disclaimer
-----------
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
-POSSIBILITY OF SUCH DAMAGE. 
+License
+-------
+
+This program and it's code is released under the terms of MAME license:
+
+ Redistribution and use of this code or any derivative works are permitted
+ provided that the following conditions are met:
+
+ * Redistributions may not be sold, nor may they be used in a commercial
+ product or activity.
+
+ * Redistributions that are modified from the original source must include the
+ complete source code, including the source code for all components used by a
+ binary built from the modified sources. However, as a special exception, the
+ source code distributed need not include anything that is normally distributed
+ (in either source or binary form) with the major components (compiler, kernel,
+ and so on) of the operating system on which the executable runs, unless that
+ component itself accompanies the executable.
+
+ * Redistributions must reproduce the above copyright notice, this list of
+ conditions and the following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
 
 SEGA/Genesis/MegaDrive/SEGA-CD/Mega-CD/32X are trademarks of
 Sega Enterprises Ltd.

+ 0 - 4
platform/common/arm_utils.h

@@ -1,7 +1,3 @@
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
 
 void bgr444_to_rgb32(void *to, void *from);
 void bgr444_to_rgb32_sh(void *to, void *from);

+ 8 - 7
platform/common/arm_utils.s

@@ -1,10 +1,10 @@
-@ vim:filetype=armasm
-@ some color conversion and blitting routines
-
-@ (c) Copyright 2006, 2007 notaz
-@ All Rights Reserved
-
-@ vim:filetype=armasm
+/*
+ * some color conversion and blitting routines
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 .text
 .align 4
@@ -335,3 +335,4 @@ spend_cycles:
 
     bx      lr
 
+@ vim:filetype=armasm

+ 4 - 1
platform/common/config.c

@@ -1,6 +1,9 @@
 /*
  * Human-readable config file management for PicoDrive
- * (c) notaz, 2008
+ * (C) notaz, 2008-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
  */
 
 #include <stdio.h>

+ 7 - 4
platform/common/emu.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2007-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <stdlib.h>

+ 7 - 4
platform/common/emu.h

@@ -1,7 +1,10 @@
-// (c) Copyright 2006-2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include "port_config.h"
 

+ 7 - 4
platform/common/main.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <stdlib.h>

+ 7 - 0
platform/common/menu_pico.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2010,2011
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <string.h>
 
 #include "emu.h"

+ 7 - 0
platform/common/mp3.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include "mp3.h"
 
 int mp3_find_sync_word(const unsigned char *buf, int size)

+ 8 - 4
platform/common/mp3_helix.c

@@ -1,7 +1,11 @@
-// Some mp3 related code for Sega/Mega CD.
-// Uses the Helix Fixed-point MP3 decoder
-
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+/*
+ * Some mp3 related code for Sega/Mega CD.
+ * Uses the Helix Fixed-point MP3 decoder
+ * (C) notaz, 2007-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <string.h>

+ 0 - 5
platform/gizmondo/emu.h

@@ -1,8 +1,3 @@
-// (c) Copyright 2006-2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
 extern unsigned char gfx_buffer[321*240*2*2];
 
 void emu_stateCb(const char *str);

+ 7 - 0
platform/gizmondo/giz.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <windows.h>
 #include <stdio.h>
 

+ 7 - 4
platform/gizmondo/main.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <windows.h>
 

+ 7 - 4
platform/gizmondo/menu.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2006,2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 // don't like to use loads of #ifdefs, so duplicating GP2X code
 // horribly instead

+ 7 - 4
platform/gizmondo/menu.h

@@ -1,7 +1,10 @@
-// (c) Copyright 2006,2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 void menu_loop(void);
 int  menu_loop_tray(void);

+ 7 - 2
platform/gp2x/940ctl.c

@@ -1,5 +1,10 @@
-// Code for communication with ARM940 and control of it.
-// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+/*
+ * Code for communication with ARM940 and control of it.
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <stdlib.h>

+ 7 - 0
platform/gp2x/soc_mmsp2.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 7 - 0
platform/gp2x/soc_pollux.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 /*
  * <random_info=mem_map>
  * 00000000-029fffff linux (42MB)

+ 7 - 0
platform/linux/blit.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2006,2009
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 // Convert 0000bbb0 ggg0rrr0 0000bbb0 ggg0rrr0
 // to      00000000 rrr00000 ggg00000 bbb00000 ...

+ 7 - 4
platform/linux/emu.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <unistd.h>

+ 7 - 0
platform/linux/host_dasm.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 7 - 0
platform/linux/io.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2007-2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 7 - 0
platform/linux/log_io.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2007
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 
 typedef struct

+ 7 - 4
platform/pandora/plat.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2006-2009 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2010,2011
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <unistd.h>

+ 7 - 4
platform/psp/emu.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <sys/stat.h>
 #include <sys/types.h>

+ 0 - 5
platform/psp/emu.h

@@ -1,8 +1,3 @@
-// (c) Copyright 2006-2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
 
 extern int engineStateSuspend;
 

+ 7 - 4
platform/psp/main.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <string.h>
 #include "psp.h"

+ 7 - 4
platform/psp/menu.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2006-2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 // don't like to use loads of #ifdefs, so duplicating GP2X code
 // horribly instead

+ 0 - 4
platform/psp/menu.h

@@ -1,7 +1,3 @@
-// (c) Copyright 2006,2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
 
 void menu_loop(void);
 int  menu_loop_tray(void);

+ 7 - 4
platform/psp/mp3.c

@@ -1,7 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <stdio.h>
 #include <string.h>

+ 7 - 5
platform/psp/psp.c

@@ -1,8 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
-
+/*
+ * PicoDrive
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>

+ 7 - 4
platform/psp/psp.h

@@ -1,7 +1,10 @@
-// (c) Copyright 2007 notaz, All rights reserved.
-// Free for non-commercial use.
-
-// For commercial use, separate licencing terms must be obtained.
+/*
+ * PicoDrive
+ * (C) notaz, 2007,2008
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 
 #include <pspctrl.h>
 

+ 7 - 0
platform/win32/plat.c

@@ -1,3 +1,10 @@
+/*
+ * PicoDrive
+ * (C) notaz, 2009,2010
+ *
+ * This work is licensed under the terms of MAME license.
+ * See COPYING file in the top-level directory.
+ */
 #include <windows.h>
 #include <stdio.h>