diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..c0f5a3ca --- /dev/null +++ b/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. diff --git a/cpu/debug.c b/cpu/debug.c index 4fffcf67..1372627f 100644 --- a/cpu/debug.c +++ b/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 @@ -407,3 +410,4 @@ void pdb_cleanup(void) pdb_cpu_count = 0; } +// vim:shiftwidth=2:expandtab diff --git a/cpu/debug_net.c b/cpu/debug_net.c index 1d109cce..7fd540b9 100644 --- a/cpu/debug_net.c +++ b/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 #include #include diff --git a/cpu/drc/cmn.c b/cpu/drc/cmn.c index d796bfbf..3ec039be 100644 --- a/cpu/drc/cmn.c +++ b/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 #ifdef __linux__ #include diff --git a/cpu/drc/emit_arm.c b/cpu/drc/emit_arm.c index 06483eac..53c235f2 100644 --- a/cpu/drc/emit_arm.c +++ b/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.. diff --git a/cpu/drc/emit_x86.c b/cpu/drc/emit_x86.c index 3624f5c3..c110c859 100644 --- a/cpu/drc/emit_x86.c +++ b/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: diff --git a/cpu/sh2/compiler.c b/cpu/sh2/compiler.c index 6f08e7b8..a79f510f 100644 --- a/cpu/sh2/compiler.c +++ b/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 diff --git a/cpu/sh2/sh2.c b/cpu/sh2/sh2.c index 0e6be671..dbd4c2d8 100644 --- a/cpu/sh2/sh2.c +++ b/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 #include diff --git a/pico/32x/32x.c b/pico/32x/32x.c index 59aa1424..a452f83d 100644 --- a/pico/32x/32x.c +++ b/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" diff --git a/pico/32x/draw.c b/pico/32x/draw.c index 7b431d2d..66814abd 100644 --- a/pico/32x/draw.c +++ b/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); diff --git a/pico/32x/draw_arm.s b/pico/32x/draw_arm.s index 8ee8e87f..ad50ff3d 100644 --- a/pico/32x/draw_arm.s +++ b/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 diff --git a/pico/32x/memory.c b/pico/32x/memory.c index 7844acc3..170006dc 100644 --- a/pico/32x/memory.c +++ b/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 * diff --git a/pico/32x/pwm.c b/pico/32x/pwm.c index defbf0db..018a200f 100644 --- a/pico/32x/pwm.c +++ b/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; diff --git a/pico/cart.c b/pico/cart.c index b060079b..2f3078ed 100644 --- a/pico/cart.c +++ b/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" diff --git a/pico/carthw/carthw.c b/pico/carthw/carthw.c index e35ae75d..aba900ed 100644 --- a/pico/carthw/carthw.c +++ b/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" diff --git a/pico/carthw/svp/compiler.c b/pico/carthw/svp/compiler.c index 3632b919..e7d5b9e8 100644 --- a/pico/carthw/svp/compiler.c +++ b/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" diff --git a/pico/carthw/svp/memory.c b/pico/carthw/svp/memory.c index f7426c32..b37985e9 100644 --- a/pico/carthw/svp/memory.c +++ b/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" diff --git a/pico/carthw/svp/ssp16.c b/pico/carthw/svp/ssp16.c index 07831b0c..e8de0013 100644 --- a/pico/carthw/svp/ssp16.c +++ b/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. diff --git a/pico/carthw/svp/ssp16.h b/pico/carthw/svp/ssp16.h index 9f395e35..318a4a7e 100644 --- a/pico/carthw/svp/ssp16.h +++ b/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 { diff --git a/pico/carthw/svp/stub_arm.S b/pico/carthw/svp/stub_arm.S index 87c8f803..c65a2357 100644 --- a/pico/carthw/svp/stub_arm.S +++ b/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 diff --git a/pico/carthw/svp/svp.c b/pico/carthw/svp/svp.c index a3ed89eb..d09ebeb2 100644 --- a/pico/carthw/svp/svp.c +++ b/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" diff --git a/pico/cd/buffering.c b/pico/cd/buffering.c index dbf7b284..a79172d3 100644 --- a/pico/cd/buffering.c +++ b/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" diff --git a/pico/cd/cell_map.c b/pico/cd/cell_map.c index 151a3a83..d586e946 100644 --- a/pico/cd/cell_map.c +++ b/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) diff --git a/pico/cd/cue.c b/pico/cd/cue.c index ab09c103..2b92bee8 100644 --- a/pico/cd/cue.c +++ b/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 #include #include diff --git a/pico/cd/memory.c b/pico/cd/memory.c index f58fc0cf..9482eb94 100644 --- a/pico/cd/memory.c +++ b/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" diff --git a/pico/cd/memory_arm.s b/pico/cd/memory_arm.s index 74315e44..b9bbaec8 100644 --- a/pico/cd/memory_arm.s +++ b/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 diff --git a/pico/cd/misc.c b/pico/cd/misc.c index c3dcf699..227b4b22 100644 --- a/pico/cd/misc.c +++ b/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" diff --git a/pico/cd/misc_arm.s b/pico/cd/misc_arm.s index b8268d64..7d85c000 100644 --- a/pico/cd/misc_arm.s +++ b/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 diff --git a/pico/cd/pcm.c b/pico/cd/pcm.c index 9217d37c..d9774aa2 100644 --- a/pico/cd/pcm.c +++ b/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" diff --git a/pico/cd/pico.c b/pico/cd/pico.c index 383949c3..8bd716fe 100644 --- a/pico/cd/pico.c +++ b/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" diff --git a/pico/cd/pico_arm.s b/pico/cd/pico_arm.s index a51590f5..9159e28b 100644 --- a/pico/cd/pico_arm.s +++ b/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 diff --git a/pico/cd/sek.c b/pico/cd/sek.c index 65c8c233..96e63351 100644 --- a/pico/cd/sek.c +++ b/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" diff --git a/pico/debug.c b/pico/debug.c index d6c6e453..2370bfaf 100644 --- a/pico/debug.c +++ b/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" diff --git a/pico/debugCPU.c b/pico/debugCPU.c index 77ca4207..fd312142 100644 --- a/pico/debugCPU.c +++ b/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; diff --git a/pico/draw.c b/pico/draw.c index 0dd682c4..d14e9968 100644 --- a/pico/draw.c +++ b/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 diff --git a/pico/draw2.c b/pico/draw2.c index 575f6f7d..58139d93 100644 --- a/pico/draw2.c +++ b/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" diff --git a/pico/draw2_arm.s b/pico/draw2_arm.s index f0010895..4427bee6 100644 --- a/pico/draw2_arm.s +++ b/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 diff --git a/pico/draw_amips.s b/pico/draw_amips.s index 29aa7db8..fa7906ee 100644 --- a/pico/draw_amips.s +++ b/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 diff --git a/pico/draw_arm.s b/pico/draw_arm.s index ae6de760..ec5fcf7e 100644 --- a/pico/draw_arm.s +++ b/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 diff --git a/pico/eeprom.c b/pico/eeprom.c index f0f1b70b..916622a3 100644 --- a/pico/eeprom.c +++ b/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). diff --git a/pico/m68kif_cyclone.s b/pico/m68kif_cyclone.s index ea5daa68..f8b6927c 100644 --- a/pico/m68kif_cyclone.s +++ b/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 diff --git a/pico/memory.c b/pico/memory.c index ac4b31fd..2e8a821b 100644 --- a/pico/memory.c +++ b/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" diff --git a/pico/memory_amips.s b/pico/memory_amips.s index 4ff400b3..4f09198f 100644 --- a/pico/memory_amips.s +++ b/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 diff --git a/pico/memory_arm.s b/pico/memory_arm.s index 972b9182..9d46ba94 100644 --- a/pico/memory_arm.s +++ b/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 diff --git a/pico/misc.c b/pico/misc.c index 539416d6..f9e85cda 100644 --- a/pico/misc.c +++ b/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" diff --git a/pico/misc_amips.s b/pico/misc_amips.s index 283324c9..3aa70c77 100644 --- a/pico/misc_amips.s +++ b/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 diff --git a/pico/misc_arm.s b/pico/misc_arm.s index 1ef2e58f..15662a7b 100644 --- a/pico/misc_arm.s +++ b/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 diff --git a/pico/mode4.c b/pico/mode4.c index ecfbd75d..22e30419 100644 --- a/pico/mode4.c +++ b/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? diff --git a/pico/pico.c b/pico/pico.c index 2db3c3f2..2a0677d1 100644 --- a/pico/pico.c +++ b/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" diff --git a/pico/pico.h b/pico/pico.h index 561cae1a..e15f3160 100644 --- a/pico/pico.h +++ b/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 diff --git a/pico/pico/memory.c b/pico/pico/memory.c index 4bdc84b6..7c3a6463 100644 --- a/pico/pico/memory.c +++ b/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" diff --git a/pico/pico/pico.c b/pico/pico/pico.c index d85aeb5b..bff5a2a4 100644 --- a/pico/pico/pico.c +++ b/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 diff --git a/pico/pico/xpcm.c b/pico/pico/xpcm.c index da3f480c..0109dcf9 100644 --- a/pico/pico/xpcm.c +++ b/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. diff --git a/pico/pico_cmn.c b/pico/pico_cmn.c index 79606762..8499f93f 100644 --- a/pico/pico_cmn.c +++ b/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 diff --git a/pico/pico_int.h b/pico/pico_int.h index aaf2f502..5975c111 100644 --- a/pico/pico_int.h +++ b/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 diff --git a/pico/sek.c b/pico/sek.c index bc44c476..f42e2d97 100644 --- a/pico/sek.c +++ b/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" diff --git a/pico/sms.c b/pico/sms.c index 1e1e7487..58905bde 100644 --- a/pico/sms.c +++ b/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 diff --git a/pico/sound/mix.c b/pico/sound/mix.c index c344fba0..636edb55 100644 --- a/pico/sound/mix.c +++ b/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) diff --git a/pico/sound/mix_arm.s b/pico/sound/mix_arm.s index d44e2280..60a09495 100644 --- a/pico/sound/mix_arm.s +++ b/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 diff --git a/pico/sound/sound.c b/pico/sound/sound.c index 48ad4095..f3cd2217 100644 --- a/pico/sound/sound.c +++ b/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 #include "ym2612.h" diff --git a/pico/sound/ym2612_arm.s b/pico/sound/ym2612_arm.s index efc31970..7db31220 100644 --- a/pico/sound/ym2612_arm.s +++ b/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 diff --git a/pico/state.c b/pico/state.c index dbed8b9b..cb340695 100644 --- a/pico/state.c +++ b/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 diff --git a/pico/videoport.c b/pico/videoport.c index c1a1ba90..ab02af8b 100644 --- a/pico/videoport.c +++ b/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" diff --git a/pico/z80if.c b/pico/z80if.c index d6dbfb86..cb0fa9b1 100644 --- a/pico/z80if.c +++ b/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 #include "pico_int.h" #include "memory.h" diff --git a/platform/base_readme.txt b/platform/base_readme.txt index 013320ee..f2f97936 100644 --- a/platform/base_readme.txt +++ b/platform/base_readme.txt @@ -1139,20 +1139,40 @@ Changelog Initial release. -Disclaimer ----------- +License +------- -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. +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. diff --git a/platform/common/arm_utils.h b/platform/common/arm_utils.h index 8cf34ce8..21204c92 100644 --- a/platform/common/arm_utils.h +++ b/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); diff --git a/platform/common/arm_utils.s b/platform/common/arm_utils.s index fd13cac6..9e8d9f25 100644 --- a/platform/common/arm_utils.s +++ b/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 diff --git a/platform/common/config.c b/platform/common/config.c index 35ba25b8..3ef1387b 100644 --- a/platform/common/config.c +++ b/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 diff --git a/platform/common/emu.c b/platform/common/emu.c index a417926d..8066796b 100644 --- a/platform/common/emu.c +++ b/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 #include diff --git a/platform/common/emu.h b/platform/common/emu.h index 0bbdcbda..ae8e4d78 100644 --- a/platform/common/emu.h +++ b/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" diff --git a/platform/common/main.c b/platform/common/main.c index 5f31b060..5a0287ed 100644 --- a/platform/common/main.c +++ b/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 #include diff --git a/platform/common/menu_pico.c b/platform/common/menu_pico.c index da1a6be3..47f00236 100644 --- a/platform/common/menu_pico.c +++ b/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 #include "emu.h" diff --git a/platform/common/mp3.c b/platform/common/mp3.c index b00a5fb2..1a240eb7 100644 --- a/platform/common/mp3.c +++ b/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) diff --git a/platform/common/mp3_helix.c b/platform/common/mp3_helix.c index 75a4e75e..8ff66d8c 100644 --- a/platform/common/mp3_helix.c +++ b/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 #include diff --git a/platform/gizmondo/emu.h b/platform/gizmondo/emu.h index 9aa6c507..c7d58c0f 100644 --- a/platform/gizmondo/emu.h +++ b/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); diff --git a/platform/gizmondo/giz.c b/platform/gizmondo/giz.c index 9c1fdf73..90273888 100644 --- a/platform/gizmondo/giz.c +++ b/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 #include diff --git a/platform/gizmondo/main.c b/platform/gizmondo/main.c index 766f7b47..562b7ade 100644 --- a/platform/gizmondo/main.c +++ b/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 diff --git a/platform/gizmondo/menu.c b/platform/gizmondo/menu.c index 0e347794..d4f6bd49 100644 --- a/platform/gizmondo/menu.c +++ b/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 diff --git a/platform/gizmondo/menu.h b/platform/gizmondo/menu.h index 8a88679f..3951f399 100644 --- a/platform/gizmondo/menu.h +++ b/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); diff --git a/platform/gp2x/940ctl.c b/platform/gp2x/940ctl.c index 4bfd043c..88477f8e 100644 --- a/platform/gp2x/940ctl.c +++ b/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 #include diff --git a/platform/gp2x/soc_mmsp2.c b/platform/gp2x/soc_mmsp2.c index 35748d84..9ef1e9b8 100644 --- a/platform/gp2x/soc_mmsp2.c +++ b/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 #include #include diff --git a/platform/gp2x/soc_pollux.c b/platform/gp2x/soc_pollux.c index b7a8a124..0199ee16 100644 --- a/platform/gp2x/soc_pollux.c +++ b/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. + */ /* * * 00000000-029fffff linux (42MB) diff --git a/platform/linux/blit.c b/platform/linux/blit.c index fbaac03f..96326fe1 100644 --- a/platform/linux/blit.c +++ b/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 ... diff --git a/platform/linux/emu.c b/platform/linux/emu.c index cf05dbcc..931031b4 100644 --- a/platform/linux/emu.c +++ b/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 #include diff --git a/platform/linux/host_dasm.c b/platform/linux/host_dasm.c index a63a9acc..3d1b116d 100644 --- a/platform/linux/host_dasm.c +++ b/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 #include #include diff --git a/platform/linux/io.c b/platform/linux/io.c index 5e2d5e3a..5a766966 100644 --- a/platform/linux/io.c +++ b/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 #include #include diff --git a/platform/linux/log_io.c b/platform/linux/log_io.c index 9f3d4892..684215ed 100644 --- a/platform/linux/log_io.c +++ b/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 typedef struct diff --git a/platform/pandora/plat.c b/platform/pandora/plat.c index 1815274b..9863a326 100644 --- a/platform/pandora/plat.c +++ b/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 #include diff --git a/platform/psp/emu.c b/platform/psp/emu.c index feab5f56..c58fc17b 100644 --- a/platform/psp/emu.c +++ b/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 #include diff --git a/platform/psp/emu.h b/platform/psp/emu.h index aa98251a..4ef53834 100644 --- a/platform/psp/emu.h +++ b/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; diff --git a/platform/psp/main.c b/platform/psp/main.c index 952d1047..989ce5c7 100644 --- a/platform/psp/main.c +++ b/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 #include "psp.h" diff --git a/platform/psp/menu.c b/platform/psp/menu.c index 2c6c7fd2..24c6d606 100644 --- a/platform/psp/menu.c +++ b/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 diff --git a/platform/psp/menu.h b/platform/psp/menu.h index 24da1dce..d5aa6082 100644 --- a/platform/psp/menu.h +++ b/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); diff --git a/platform/psp/mp3.c b/platform/psp/mp3.c index 049b9a59..6cffc629 100644 --- a/platform/psp/mp3.c +++ b/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 #include diff --git a/platform/psp/psp.c b/platform/psp/psp.c index 9ddb9527..8aad4c07 100644 --- a/platform/psp/psp.c +++ b/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 #include #include diff --git a/platform/psp/psp.h b/platform/psp/psp.h index ef12f592..7067f051 100644 --- a/platform/psp/psp.h +++ b/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 diff --git a/platform/win32/plat.c b/platform/win32/plat.c index 42c493be..7ee685ef 100644 --- a/platform/win32/plat.c +++ b/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 #include