gbasys
diff src/syscall.c @ 1:c50064b181c2
stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 04 Mar 2012 07:06:41 +0200 |
parents | 875ef6085efc |
children | 72c6429ae953 |
line diff
1.1 --- a/src/syscall.c Sun Mar 04 04:04:25 2012 +0200 1.2 +++ b/src/syscall.c Sun Mar 04 07:06:41 2012 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 /* 1.5 Copyright 2004 John Tsiombikas <nuclear@siggraph.org> 1.6 1.7 -This file is part of libgba, a library for GameBoy Advance development. 1.8 +This file is part of gbasys, a library for GameBoy Advance development. 1.9 1.10 This program is free software; you can redistribute it and/or modify 1.11 it under the terms of the GNU General Public License as published by 1.12 @@ -18,21 +18,24 @@ 1.13 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1.14 */ 1.15 1.16 -#include "libgba_config.h" 1.17 +#include "config.h" 1.18 1.19 #include <stdio.h> 1.20 #include <stdarg.h> 1.21 #include "syscall.h" 1.22 1.23 -void halt(void) { 1.24 +void halt(void) 1.25 +{ 1.26 __syscall(2); 1.27 } 1.28 1.29 -void stop(void) { 1.30 +void stop(void) 1.31 +{ 1.32 __syscall(3); 1.33 } 1.34 1.35 -void print_vba(const char *str, ...) { 1.36 +void print_vba(const char *str, ...) 1.37 +{ 1.38 char buf[128]; 1.39 va_list arg_list; 1.40