gbasys

changeset 7:72c6429ae953

changed all the copyright headers and added a README
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 18 Apr 2014 02:04:46 +0300
parents f77381b12726
children 85f219fcdc82
files README src/comm.c src/comm.h src/config.h src/dma.c src/dma.h src/error.c src/error.h src/font.c src/font.h src/font_8x16.c src/font_8x8.c src/gbasys.c src/gbasys.h src/gfx.c src/gfx.h src/input.c src/input.h src/intr.c src/intr.h src/signal.c src/signal.h src/syscall.c src/syscall.h src/term.c src/term.h src/timer.c src/timer.h
diffstat 28 files changed, 133 insertions(+), 226 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/README	Fri Apr 18 02:04:46 2014 +0300
     1.3 @@ -0,0 +1,15 @@
     1.4 +gbasys
     1.5 +------
     1.6 +GameBoy Advance hardware abstraction library
     1.7 +
     1.8 +Author: John Tsiombikas <nuclear@member.fsf.org>
     1.9 +License: GNU General Public License v3 (or later). See COPYING for details.
    1.10 +
    1.11 +gbasys provides a number of useful functions for writting programs on the
    1.12 +nintendo gameboy advance handheld console. Some of the features are:
    1.13 + * video modes and framebuffer access
    1.14 + * high-resolution timing
    1.15 + * DMA transfers
    1.16 + * interrupt-based pad input
    1.17 + * minimal pseudo-terminal and font rendering
    1.18 + * serial communications and GPIO.
     2.1 --- a/src/comm.c	Tue Sep 04 05:05:50 2012 +0300
     2.2 +++ b/src/comm.c	Fri Apr 18 02:04:46 2014 +0300
     2.3 @@ -1,6 +1,6 @@
     2.4  /*
     2.5  gbasys - a gameboy advance hardware abstraction library
     2.6 -Copyright (C) 2004-2012  John Tsiombikas <nuclear@member.fsf.org>
     2.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     2.8  
     2.9  This program is free software: you can redistribute it and/or modify
    2.10  it under the terms of the GNU General Public License as published by
    2.11 @@ -15,7 +15,6 @@
    2.12  You should have received a copy of the GNU General Public License
    2.13  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    2.14  */
    2.15 -
    2.16  #include "comm.h"
    2.17  #include "error.h"
    2.18  #include "signal.h"
     3.1 --- a/src/comm.h	Tue Sep 04 05:05:50 2012 +0300
     3.2 +++ b/src/comm.h	Fri Apr 18 02:04:46 2014 +0300
     3.3 @@ -1,6 +1,6 @@
     3.4  /*
     3.5  gbasys - a gameboy advance hardware abstraction library
     3.6 -Copyright (C) 2004-2012  John Tsiombikas <nuclear@member.fsf.org>
     3.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     3.8  
     3.9  This program is free software: you can redistribute it and/or modify
    3.10  it under the terms of the GNU General Public License as published by
     4.1 --- a/src/config.h	Tue Sep 04 05:05:50 2012 +0300
     4.2 +++ b/src/config.h	Fri Apr 18 02:04:46 2014 +0300
     4.3 @@ -1,11 +1,10 @@
     4.4  /*
     4.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
     4.6 +gbasys - a gameboy advance hardware abstraction library
     4.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     4.8  
     4.9 -This file is part of libgba, a library for GameBoy Advance development.
    4.10 -
    4.11 -This program is free software; you can redistribute it and/or modify
    4.12 +This program is free software: you can redistribute it and/or modify
    4.13  it under the terms of the GNU General Public License as published by
    4.14 -the Free Software Foundation; either version 2 of the License, or
    4.15 +the Free Software Foundation, either version 3 of the License, or
    4.16  (at your option) any later version.
    4.17  
    4.18  This program is distributed in the hope that it will be useful,
    4.19 @@ -14,10 +13,8 @@
    4.20  GNU General Public License for more details.
    4.21  
    4.22  You should have received a copy of the GNU General Public License
    4.23 -along with this program; if not, write to the Free Software
    4.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    4.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
    4.26  */
    4.27 -
    4.28  #ifndef _LIBGBA_CONFIG_H_
    4.29  #define _LIBGBA_CONFIG_H_
    4.30  
     5.1 --- a/src/dma.c	Tue Sep 04 05:05:50 2012 +0300
     5.2 +++ b/src/dma.c	Fri Apr 18 02:04:46 2014 +0300
     5.3 @@ -1,11 +1,10 @@
     5.4  /*
     5.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
     5.6 +gbasys - a gameboy advance hardware abstraction library
     5.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     5.8  
     5.9 -This file is part of gbasys, a library for GameBoy Advance development.
    5.10 -
    5.11 -This program is free software; you can redistribute it and/or modify
    5.12 +This program is free software: you can redistribute it and/or modify
    5.13  it under the terms of the GNU General Public License as published by
    5.14 -the Free Software Foundation; either version 2 of the License, or
    5.15 +the Free Software Foundation, either version 3 of the License, or
    5.16  (at your option) any later version.
    5.17  
    5.18  This program is distributed in the hope that it will be useful,
    5.19 @@ -14,10 +13,8 @@
    5.20  GNU General Public License for more details.
    5.21  
    5.22  You should have received a copy of the GNU General Public License
    5.23 -along with this program; if not, write to the Free Software
    5.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    5.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
    5.26  */
    5.27 -
    5.28  #include "config.h"
    5.29  #include "dma.h"
    5.30  
     6.1 --- a/src/dma.h	Tue Sep 04 05:05:50 2012 +0300
     6.2 +++ b/src/dma.h	Fri Apr 18 02:04:46 2014 +0300
     6.3 @@ -1,11 +1,10 @@
     6.4  /*
     6.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
     6.6 +gbasys - a gameboy advance hardware abstraction library
     6.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     6.8  
     6.9 -This file is part of libgba, a library for GameBoy Advance development.
    6.10 -
    6.11 -This program is free software; you can redistribute it and/or modify
    6.12 +This program is free software: you can redistribute it and/or modify
    6.13  it under the terms of the GNU General Public License as published by
    6.14 -the Free Software Foundation; either version 2 of the License, or
    6.15 +the Free Software Foundation, either version 3 of the License, or
    6.16  (at your option) any later version.
    6.17  
    6.18  This program is distributed in the hope that it will be useful,
    6.19 @@ -14,10 +13,8 @@
    6.20  GNU General Public License for more details.
    6.21  
    6.22  You should have received a copy of the GNU General Public License
    6.23 -along with this program; if not, write to the Free Software
    6.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    6.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
    6.26  */
    6.27 -
    6.28  #ifndef _DMA_H_
    6.29  #define _DMA_H_
    6.30  
     7.1 --- a/src/error.c	Tue Sep 04 05:05:50 2012 +0300
     7.2 +++ b/src/error.c	Fri Apr 18 02:04:46 2014 +0300
     7.3 @@ -1,11 +1,10 @@
     7.4  /*
     7.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
     7.6 +gbasys - a gameboy advance hardware abstraction library
     7.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     7.8  
     7.9 -This file is part of gbasys, a library for GameBoy Advance development.
    7.10 -
    7.11 -This program is free software; you can redistribute it and/or modify
    7.12 +This program is free software: you can redistribute it and/or modify
    7.13  it under the terms of the GNU General Public License as published by
    7.14 -the Free Software Foundation; either version 2 of the License, or
    7.15 +the Free Software Foundation, either version 3 of the License, or
    7.16  (at your option) any later version.
    7.17  
    7.18  This program is distributed in the hope that it will be useful,
    7.19 @@ -14,10 +13,8 @@
    7.20  GNU General Public License for more details.
    7.21  
    7.22  You should have received a copy of the GNU General Public License
    7.23 -along with this program; if not, write to the Free Software
    7.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    7.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
    7.26  */
    7.27 -
    7.28  #include "gfx.h"
    7.29  
    7.30  void panic(const char *str) {
     8.1 --- a/src/error.h	Tue Sep 04 05:05:50 2012 +0300
     8.2 +++ b/src/error.h	Fri Apr 18 02:04:46 2014 +0300
     8.3 @@ -1,11 +1,10 @@
     8.4  /*
     8.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
     8.6 +gbasys - a gameboy advance hardware abstraction library
     8.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     8.8  
     8.9 -This file is part of libgba, a library for GameBoy Advance development.
    8.10 -
    8.11 -This program is free software; you can redistribute it and/or modify
    8.12 +This program is free software: you can redistribute it and/or modify
    8.13  it under the terms of the GNU General Public License as published by
    8.14 -the Free Software Foundation; either version 2 of the License, or
    8.15 +the Free Software Foundation, either version 3 of the License, or
    8.16  (at your option) any later version.
    8.17  
    8.18  This program is distributed in the hope that it will be useful,
    8.19 @@ -14,10 +13,8 @@
    8.20  GNU General Public License for more details.
    8.21  
    8.22  You should have received a copy of the GNU General Public License
    8.23 -along with this program; if not, write to the Free Software
    8.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    8.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
    8.26  */
    8.27 -
    8.28  #ifndef _ERROR_H_
    8.29  #define _ERROR_H_
    8.30  
     9.1 --- a/src/font.c	Tue Sep 04 05:05:50 2012 +0300
     9.2 +++ b/src/font.c	Fri Apr 18 02:04:46 2014 +0300
     9.3 @@ -1,11 +1,10 @@
     9.4  /*
     9.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
     9.6 +gbasys - a gameboy advance hardware abstraction library
     9.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
     9.8  
     9.9 -This file is part of gbasys, a library for GameBoy Advance development.
    9.10 -
    9.11 -This program is free software; you can redistribute it and/or modify
    9.12 +This program is free software: you can redistribute it and/or modify
    9.13  it under the terms of the GNU General Public License as published by
    9.14 -the Free Software Foundation; either version 2 of the License, or
    9.15 +the Free Software Foundation, either version 3 of the License, or
    9.16  (at your option) any later version.
    9.17  
    9.18  This program is distributed in the hope that it will be useful,
    9.19 @@ -14,10 +13,8 @@
    9.20  GNU General Public License for more details.
    9.21  
    9.22  You should have received a copy of the GNU General Public License
    9.23 -along with this program; if not, write to the Free Software
    9.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    9.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
    9.26  */
    9.27 -
    9.28  #include "config.h"
    9.29  #include <stdlib.h>
    9.30  #include "font.h"
    10.1 --- a/src/font.h	Tue Sep 04 05:05:50 2012 +0300
    10.2 +++ b/src/font.h	Fri Apr 18 02:04:46 2014 +0300
    10.3 @@ -1,11 +1,10 @@
    10.4  /*
    10.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    10.6 +gbasys - a gameboy advance hardware abstraction library
    10.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    10.8  
    10.9 -This file is part of gbasys, a library for GameBoy Advance development.
   10.10 -
   10.11 -This program is free software; you can redistribute it and/or modify
   10.12 +This program is free software: you can redistribute it and/or modify
   10.13  it under the terms of the GNU General Public License as published by
   10.14 -the Free Software Foundation; either version 2 of the License, or
   10.15 +the Free Software Foundation, either version 3 of the License, or
   10.16  (at your option) any later version.
   10.17  
   10.18  This program is distributed in the hope that it will be useful,
   10.19 @@ -14,8 +13,7 @@
   10.20  GNU General Public License for more details.
   10.21  
   10.22  You should have received a copy of the GNU General Public License
   10.23 -along with this program; if not, write to the Free Software
   10.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   10.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   10.26  */
   10.27  #ifndef _FONT_H_
   10.28  #define _FONT_H_
    11.1 --- a/src/font_8x16.c	Tue Sep 04 05:05:50 2012 +0300
    11.2 +++ b/src/font_8x16.c	Fri Apr 18 02:04:46 2014 +0300
    11.3 @@ -1,23 +1,3 @@
    11.4 -/*
    11.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    11.6 -
    11.7 -This file is part of gbasys, a library for GameBoy Advance development.
    11.8 -
    11.9 -This program is free software; you can redistribute it and/or modify
   11.10 -it under the terms of the GNU General Public License as published by
   11.11 -the Free Software Foundation; either version 2 of the License, or
   11.12 -(at your option) any later version.
   11.13 -
   11.14 -This program is distributed in the hope that it will be useful,
   11.15 -but WITHOUT ANY WARRANTY; without even the implied warranty of
   11.16 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   11.17 -GNU General Public License for more details.
   11.18 -
   11.19 -You should have received a copy of the GNU General Public License
   11.20 -along with this program; if not, write to the Free Software
   11.21 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   11.22 -*/
   11.23 -
   11.24  /* This source file is derived from an 8x8 font definition file in
   11.25   * the Linux 2.6.7 kernel (drivers/video/console/font_8x8.c)
   11.26   */
    12.1 --- a/src/font_8x8.c	Tue Sep 04 05:05:50 2012 +0300
    12.2 +++ b/src/font_8x8.c	Fri Apr 18 02:04:46 2014 +0300
    12.3 @@ -1,23 +1,3 @@
    12.4 -/*
    12.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    12.6 -
    12.7 -This file is part of gbasys, a library for GameBoy Advance development.
    12.8 -
    12.9 -This program is free software; you can redistribute it and/or modify
   12.10 -it under the terms of the GNU General Public License as published by
   12.11 -the Free Software Foundation; either version 2 of the License, or
   12.12 -(at your option) any later version.
   12.13 -
   12.14 -This program is distributed in the hope that it will be useful,
   12.15 -but WITHOUT ANY WARRANTY; without even the implied warranty of
   12.16 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12.17 -GNU General Public License for more details.
   12.18 -
   12.19 -You should have received a copy of the GNU General Public License
   12.20 -along with this program; if not, write to the Free Software
   12.21 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   12.22 -*/
   12.23 -
   12.24  /* This source file is derived from an 8x8 font definition file in
   12.25   * the Linux 2.6.7 kernel (drivers/video/console/font_8x8.c)
   12.26   */
    13.1 --- a/src/gbasys.c	Tue Sep 04 05:05:50 2012 +0300
    13.2 +++ b/src/gbasys.c	Fri Apr 18 02:04:46 2014 +0300
    13.3 @@ -1,11 +1,10 @@
    13.4  /*
    13.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    13.6 +gbasys - a gameboy advance hardware abstraction library
    13.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    13.8  
    13.9 -This file is part of gbasys, a library for GameBoy Advance development.
   13.10 -
   13.11 -This program is free software; you can redistribute it and/or modify
   13.12 +This program is free software: you can redistribute it and/or modify
   13.13  it under the terms of the GNU General Public License as published by
   13.14 -the Free Software Foundation; either version 2 of the License, or
   13.15 +the Free Software Foundation, either version 3 of the License, or
   13.16  (at your option) any later version.
   13.17  
   13.18  This program is distributed in the hope that it will be useful,
   13.19 @@ -14,10 +13,8 @@
   13.20  GNU General Public License for more details.
   13.21  
   13.22  You should have received a copy of the GNU General Public License
   13.23 -along with this program; if not, write to the Free Software
   13.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   13.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   13.26  */
   13.27 -
   13.28  #include "config.h"
   13.29  #include "gbasys.h"
   13.30  
    14.1 --- a/src/gbasys.h	Tue Sep 04 05:05:50 2012 +0300
    14.2 +++ b/src/gbasys.h	Fri Apr 18 02:04:46 2014 +0300
    14.3 @@ -1,11 +1,10 @@
    14.4  /*
    14.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    14.6 +gbasys - a gameboy advance hardware abstraction library
    14.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    14.8  
    14.9 -This file is part of libgba, a library for GameBoy Advance development.
   14.10 -
   14.11 -This program is free software; you can redistribute it and/or modify
   14.12 +This program is free software: you can redistribute it and/or modify
   14.13  it under the terms of the GNU General Public License as published by
   14.14 -the Free Software Foundation; either version 2 of the License, or
   14.15 +the Free Software Foundation, either version 3 of the License, or
   14.16  (at your option) any later version.
   14.17  
   14.18  This program is distributed in the hope that it will be useful,
   14.19 @@ -14,10 +13,8 @@
   14.20  GNU General Public License for more details.
   14.21  
   14.22  You should have received a copy of the GNU General Public License
   14.23 -along with this program; if not, write to the Free Software
   14.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   14.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   14.26  */
   14.27 -
   14.28  #ifndef _LIBGBA_H_
   14.29  #define _LIBGBA_H_
   14.30  
    15.1 --- a/src/gfx.c	Tue Sep 04 05:05:50 2012 +0300
    15.2 +++ b/src/gfx.c	Fri Apr 18 02:04:46 2014 +0300
    15.3 @@ -1,11 +1,10 @@
    15.4  /*
    15.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    15.6 +gbasys - a gameboy advance hardware abstraction library
    15.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    15.8  
    15.9 -This file is part of gbasys, a library for GameBoy Advance development.
   15.10 -
   15.11 -This program is free software; you can redistribute it and/or modify
   15.12 +This program is free software: you can redistribute it and/or modify
   15.13  it under the terms of the GNU General Public License as published by
   15.14 -the Free Software Foundation; either version 2 of the License, or
   15.15 +the Free Software Foundation, either version 3 of the License, or
   15.16  (at your option) any later version.
   15.17  
   15.18  This program is distributed in the hope that it will be useful,
   15.19 @@ -14,10 +13,8 @@
   15.20  GNU General Public License for more details.
   15.21  
   15.22  You should have received a copy of the GNU General Public License
   15.23 -along with this program; if not, write to the Free Software
   15.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   15.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   15.26  */
   15.27 -
   15.28  #include "config.h"
   15.29  
   15.30  #include <stdlib.h>
    16.1 --- a/src/gfx.h	Tue Sep 04 05:05:50 2012 +0300
    16.2 +++ b/src/gfx.h	Fri Apr 18 02:04:46 2014 +0300
    16.3 @@ -1,10 +1,10 @@
    16.4  /*
    16.5 -This file is part of libgba, a library for GameBoy Advance development.
    16.6 -Copyright (C) 2004, 2005 John Tsiombikas <nuclear@siggraph.org>
    16.7 +gbasys - a gameboy advance hardware abstraction library
    16.8 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    16.9  
   16.10 -This program is free software; you can redistribute it and/or modify
   16.11 +This program is free software: you can redistribute it and/or modify
   16.12  it under the terms of the GNU General Public License as published by
   16.13 -the Free Software Foundation; either version 2 of the License, or
   16.14 +the Free Software Foundation, either version 3 of the License, or
   16.15  (at your option) any later version.
   16.16  
   16.17  This program is distributed in the hope that it will be useful,
   16.18 @@ -13,10 +13,8 @@
   16.19  GNU General Public License for more details.
   16.20  
   16.21  You should have received a copy of the GNU General Public License
   16.22 -along with this program; if not, write to the Free Software
   16.23 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   16.24 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   16.25  */
   16.26 -
   16.27  #ifndef _GFX_H_
   16.28  #define _GFX_H_
   16.29  
    17.1 --- a/src/input.c	Tue Sep 04 05:05:50 2012 +0300
    17.2 +++ b/src/input.c	Fri Apr 18 02:04:46 2014 +0300
    17.3 @@ -1,11 +1,10 @@
    17.4  /*
    17.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    17.6 +gbasys - a gameboy advance hardware abstraction library
    17.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    17.8  
    17.9 -This file is part of gbasys, a library for GameBoy Advance development.
   17.10 -
   17.11 -This program is free software; you can redistribute it and/or modify
   17.12 +This program is free software: you can redistribute it and/or modify
   17.13  it under the terms of the GNU General Public License as published by
   17.14 -the Free Software Foundation; either version 2 of the License, or
   17.15 +the Free Software Foundation, either version 3 of the License, or
   17.16  (at your option) any later version.
   17.17  
   17.18  This program is distributed in the hope that it will be useful,
   17.19 @@ -14,10 +13,8 @@
   17.20  GNU General Public License for more details.
   17.21  
   17.22  You should have received a copy of the GNU General Public License
   17.23 -along with this program; if not, write to the Free Software
   17.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   17.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   17.26  */
   17.27 -
   17.28  #include "input.h"
   17.29  
   17.30  volatile unsigned short *reg_key_state = (unsigned short*)0x4000130;
    18.1 --- a/src/input.h	Tue Sep 04 05:05:50 2012 +0300
    18.2 +++ b/src/input.h	Fri Apr 18 02:04:46 2014 +0300
    18.3 @@ -1,11 +1,10 @@
    18.4  /*
    18.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    18.6 +gbasys - a gameboy advance hardware abstraction library
    18.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    18.8  
    18.9 -This file is part of gbasys, a library for GameBoy Advance development.
   18.10 -
   18.11 -This program is free software; you can redistribute it and/or modify
   18.12 +This program is free software: you can redistribute it and/or modify
   18.13  it under the terms of the GNU General Public License as published by
   18.14 -the Free Software Foundation; either version 2 of the License, or
   18.15 +the Free Software Foundation, either version 3 of the License, or
   18.16  (at your option) any later version.
   18.17  
   18.18  This program is distributed in the hope that it will be useful,
   18.19 @@ -14,10 +13,8 @@
   18.20  GNU General Public License for more details.
   18.21  
   18.22  You should have received a copy of the GNU General Public License
   18.23 -along with this program; if not, write to the Free Software
   18.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   18.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   18.26  */
   18.27 -
   18.28  #ifndef _INPUT_H_
   18.29  #define _INPUT_H_
   18.30  
    19.1 --- a/src/intr.c	Tue Sep 04 05:05:50 2012 +0300
    19.2 +++ b/src/intr.c	Fri Apr 18 02:04:46 2014 +0300
    19.3 @@ -1,11 +1,10 @@
    19.4  /*
    19.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    19.6 +gbasys - a gameboy advance hardware abstraction library
    19.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    19.8  
    19.9 -This file is part of libgba, a library for GameBoy Advance development.
   19.10 -
   19.11 -This program is free software; you can redistribute it and/or modify
   19.12 +This program is free software: you can redistribute it and/or modify
   19.13  it under the terms of the GNU General Public License as published by
   19.14 -the Free Software Foundation; either version 2 of the License, or
   19.15 +the Free Software Foundation, either version 3 of the License, or
   19.16  (at your option) any later version.
   19.17  
   19.18  This program is distributed in the hope that it will be useful,
   19.19 @@ -14,10 +13,8 @@
   19.20  GNU General Public License for more details.
   19.21  
   19.22  You should have received a copy of the GNU General Public License
   19.23 -along with this program; if not, write to the Free Software
   19.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   19.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   19.26  */
   19.27 -
   19.28  #include "intr.h"
   19.29  #include "error.h"
   19.30  
   19.31 @@ -38,7 +35,7 @@
   19.32  	int i;
   19.33  	unsigned short irq;
   19.34  	char buf[20];
   19.35 -	
   19.36 +
   19.37  	clr_int();
   19.38  
   19.39  	irq = *reg_int & 0x3fff;
    20.1 --- a/src/intr.h	Tue Sep 04 05:05:50 2012 +0300
    20.2 +++ b/src/intr.h	Fri Apr 18 02:04:46 2014 +0300
    20.3 @@ -1,11 +1,10 @@
    20.4  /*
    20.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    20.6 +gbasys - a gameboy advance hardware abstraction library
    20.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    20.8  
    20.9 -This file is part of gbasys, a library for GameBoy Advance development.
   20.10 -
   20.11 -This program is free software; you can redistribute it and/or modify
   20.12 +This program is free software: you can redistribute it and/or modify
   20.13  it under the terms of the GNU General Public License as published by
   20.14 -the Free Software Foundation; either version 2 of the License, or
   20.15 +the Free Software Foundation, either version 3 of the License, or
   20.16  (at your option) any later version.
   20.17  
   20.18  This program is distributed in the hope that it will be useful,
   20.19 @@ -14,10 +13,8 @@
   20.20  GNU General Public License for more details.
   20.21  
   20.22  You should have received a copy of the GNU General Public License
   20.23 -along with this program; if not, write to the Free Software
   20.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   20.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   20.26  */
   20.27 -
   20.28  #ifndef _INTR_H_
   20.29  #define _INTR_H_
   20.30  
    21.1 --- a/src/signal.c	Tue Sep 04 05:05:50 2012 +0300
    21.2 +++ b/src/signal.c	Fri Apr 18 02:04:46 2014 +0300
    21.3 @@ -1,11 +1,10 @@
    21.4  /*
    21.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    21.6 +gbasys - a gameboy advance hardware abstraction library
    21.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    21.8  
    21.9 -This file is part of libgba, a library for GameBoy Advance development.
   21.10 -
   21.11 -This program is free software; you can redistribute it and/or modify
   21.12 +This program is free software: you can redistribute it and/or modify
   21.13  it under the terms of the GNU General Public License as published by
   21.14 -the Free Software Foundation; either version 2 of the License, or
   21.15 +the Free Software Foundation, either version 3 of the License, or
   21.16  (at your option) any later version.
   21.17  
   21.18  This program is distributed in the hope that it will be useful,
   21.19 @@ -14,10 +13,8 @@
   21.20  GNU General Public License for more details.
   21.21  
   21.22  You should have received a copy of the GNU General Public License
   21.23 -along with this program; if not, write to the Free Software
   21.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   21.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   21.26  */
   21.27 -
   21.28  #include "signal.h"
   21.29  #include "intr.h"
   21.30  
    22.1 --- a/src/signal.h	Tue Sep 04 05:05:50 2012 +0300
    22.2 +++ b/src/signal.h	Fri Apr 18 02:04:46 2014 +0300
    22.3 @@ -1,11 +1,10 @@
    22.4  /*
    22.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    22.6 +gbasys - a gameboy advance hardware abstraction library
    22.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    22.8  
    22.9 -This file is part of gbasys, a library for GameBoy Advance development.
   22.10 -
   22.11 -This program is free software; you can redistribute it and/or modify
   22.12 +This program is free software: you can redistribute it and/or modify
   22.13  it under the terms of the GNU General Public License as published by
   22.14 -the Free Software Foundation; either version 2 of the License, or
   22.15 +the Free Software Foundation, either version 3 of the License, or
   22.16  (at your option) any later version.
   22.17  
   22.18  This program is distributed in the hope that it will be useful,
   22.19 @@ -14,10 +13,8 @@
   22.20  GNU General Public License for more details.
   22.21  
   22.22  You should have received a copy of the GNU General Public License
   22.23 -along with this program; if not, write to the Free Software
   22.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   22.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   22.26  */
   22.27 -
   22.28  typedef void (*sighandler_t)(int);
   22.29  
   22.30  #define SIG_ERR	((sighandler_t)-1)		/* Error return.  */
    23.1 --- a/src/syscall.c	Tue Sep 04 05:05:50 2012 +0300
    23.2 +++ b/src/syscall.c	Fri Apr 18 02:04:46 2014 +0300
    23.3 @@ -1,11 +1,10 @@
    23.4  /*
    23.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    23.6 +gbasys - a gameboy advance hardware abstraction library
    23.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    23.8  
    23.9 -This file is part of gbasys, a library for GameBoy Advance development.
   23.10 -
   23.11 -This program is free software; you can redistribute it and/or modify
   23.12 +This program is free software: you can redistribute it and/or modify
   23.13  it under the terms of the GNU General Public License as published by
   23.14 -the Free Software Foundation; either version 2 of the License, or
   23.15 +the Free Software Foundation, either version 3 of the License, or
   23.16  (at your option) any later version.
   23.17  
   23.18  This program is distributed in the hope that it will be useful,
   23.19 @@ -14,10 +13,8 @@
   23.20  GNU General Public License for more details.
   23.21  
   23.22  You should have received a copy of the GNU General Public License
   23.23 -along with this program; if not, write to the Free Software
   23.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   23.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   23.26  */
   23.27 -
   23.28  #include "config.h"
   23.29  
   23.30  #include <stdio.h>
    24.1 --- a/src/syscall.h	Tue Sep 04 05:05:50 2012 +0300
    24.2 +++ b/src/syscall.h	Fri Apr 18 02:04:46 2014 +0300
    24.3 @@ -1,11 +1,10 @@
    24.4  /*
    24.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    24.6 +gbasys - a gameboy advance hardware abstraction library
    24.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    24.8  
    24.9 -This file is part of gbasys, a library for GameBoy Advance development.
   24.10 -
   24.11 -This program is free software; you can redistribute it and/or modify
   24.12 +This program is free software: you can redistribute it and/or modify
   24.13  it under the terms of the GNU General Public License as published by
   24.14 -the Free Software Foundation; either version 2 of the License, or
   24.15 +the Free Software Foundation, either version 3 of the License, or
   24.16  (at your option) any later version.
   24.17  
   24.18  This program is distributed in the hope that it will be useful,
   24.19 @@ -14,10 +13,8 @@
   24.20  GNU General Public License for more details.
   24.21  
   24.22  You should have received a copy of the GNU General Public License
   24.23 -along with this program; if not, write to the Free Software
   24.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   24.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   24.26  */
   24.27 -
   24.28  #ifndef _SYSCALL_H_
   24.29  #define _SYSCALL_H_
   24.30  
    25.1 --- a/src/term.c	Tue Sep 04 05:05:50 2012 +0300
    25.2 +++ b/src/term.c	Fri Apr 18 02:04:46 2014 +0300
    25.3 @@ -1,11 +1,10 @@
    25.4  /*
    25.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    25.6 +gbasys - a gameboy advance hardware abstraction library
    25.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    25.8  
    25.9 -This file is part of gbasys, a library for GameBoy Advance development.
   25.10 -
   25.11 -This program is free software; you can redistribute it and/or modify
   25.12 +This program is free software: you can redistribute it and/or modify
   25.13  it under the terms of the GNU General Public License as published by
   25.14 -the Free Software Foundation; either version 2 of the License, or
   25.15 +the Free Software Foundation, either version 3 of the License, or
   25.16  (at your option) any later version.
   25.17  
   25.18  This program is distributed in the hope that it will be useful,
   25.19 @@ -14,10 +13,8 @@
   25.20  GNU General Public License for more details.
   25.21  
   25.22  You should have received a copy of the GNU General Public License
   25.23 -along with this program; if not, write to the Free Software
   25.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   25.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   25.26  */
   25.27 -
   25.28  #include <stdlib.h>
   25.29  #include "term.h"
   25.30  #include "input.h"
    26.1 --- a/src/term.h	Tue Sep 04 05:05:50 2012 +0300
    26.2 +++ b/src/term.h	Fri Apr 18 02:04:46 2014 +0300
    26.3 @@ -1,11 +1,10 @@
    26.4  /*
    26.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    26.6 +gbasys - a gameboy advance hardware abstraction library
    26.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    26.8  
    26.9 -This file is part of gbasys, a library for GameBoy Advance development.
   26.10 -
   26.11 -This program is free software; you can redistribute it and/or modify
   26.12 +This program is free software: you can redistribute it and/or modify
   26.13  it under the terms of the GNU General Public License as published by
   26.14 -the Free Software Foundation; either version 2 of the License, or
   26.15 +the Free Software Foundation, either version 3 of the License, or
   26.16  (at your option) any later version.
   26.17  
   26.18  This program is distributed in the hope that it will be useful,
   26.19 @@ -14,10 +13,8 @@
   26.20  GNU General Public License for more details.
   26.21  
   26.22  You should have received a copy of the GNU General Public License
   26.23 -along with this program; if not, write to the Free Software
   26.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   26.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   26.26  */
   26.27 -
   26.28  #ifndef _TERM_H_
   26.29  #define _TERM_H_
   26.30  
    27.1 --- a/src/timer.c	Tue Sep 04 05:05:50 2012 +0300
    27.2 +++ b/src/timer.c	Fri Apr 18 02:04:46 2014 +0300
    27.3 @@ -1,11 +1,10 @@
    27.4  /*
    27.5 -Copyright 2004 John Tsiombikas <nuclear@siggraph.org>
    27.6 +gbasys - a gameboy advance hardware abstraction library
    27.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    27.8  
    27.9 -This file is part of libgba, a library for GameBoy Advance development.
   27.10 -
   27.11 -This program is free software; you can redistribute it and/or modify
   27.12 +This program is free software: you can redistribute it and/or modify
   27.13  it under the terms of the GNU General Public License as published by
   27.14 -the Free Software Foundation; either version 2 of the License, or
   27.15 +the Free Software Foundation, either version 3 of the License, or
   27.16  (at your option) any later version.
   27.17  
   27.18  This program is distributed in the hope that it will be useful,
   27.19 @@ -14,10 +13,8 @@
   27.20  GNU General Public License for more details.
   27.21  
   27.22  You should have received a copy of the GNU General Public License
   27.23 -along with this program; if not, write to the Free Software
   27.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   27.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   27.26  */
   27.27 -
   27.28  #include <limits.h>
   27.29  #include "intr.h"
   27.30  #include "signal.h"
    28.1 --- a/src/timer.h	Tue Sep 04 05:05:50 2012 +0300
    28.2 +++ b/src/timer.h	Fri Apr 18 02:04:46 2014 +0300
    28.3 @@ -1,11 +1,10 @@
    28.4  /*
    28.5 -Copyright 2004-2012 John Tsiombikas <nuclear@member.fsf.org>
    28.6 +gbasys - a gameboy advance hardware abstraction library
    28.7 +Copyright (C) 2004-2014  John Tsiombikas <nuclear@member.fsf.org>
    28.8  
    28.9 -This file is part of gbasys, a library for GameBoy Advance development.
   28.10 -
   28.11 -This program is free software; you can redistribute it and/or modify
   28.12 +This program is free software: you can redistribute it and/or modify
   28.13  it under the terms of the GNU General Public License as published by
   28.14 -the Free Software Foundation; either version 2 of the License, or
   28.15 +the Free Software Foundation, either version 3 of the License, or
   28.16  (at your option) any later version.
   28.17  
   28.18  This program is distributed in the hope that it will be useful,
   28.19 @@ -14,10 +13,8 @@
   28.20  GNU General Public License for more details.
   28.21  
   28.22  You should have received a copy of the GNU General Public License
   28.23 -along with this program; if not, write to the Free Software
   28.24 -Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   28.25 +along with this program.  If not, see <http://www.gnu.org/licenses/>.
   28.26  */
   28.27 -
   28.28  #ifndef _TIMER_H_
   28.29  #define _TIMER_H_
   28.30