From eea61b3c936774c613edacb430263f289e0d6e0d Mon Sep 17 00:00:00 2001 From: grinvader <> Date: Tue, 15 Feb 2005 04:29:17 +0000 Subject: [PATCH] Correct ASM calls, small typo fix. --- zsnes/src/asm_call.h | 2 +- zsnes/src/uic.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/zsnes/src/asm_call.h b/zsnes/src/asm_call.h index a20f99a3..b8caee68 100644 --- a/zsnes/src/asm_call.h +++ b/zsnes/src/asm_call.h @@ -65,4 +65,4 @@ _asm popad #endif //////////////////////////////////////////////////////// -#endif \ No newline at end of file +#endif diff --git a/zsnes/src/uic.c b/zsnes/src/uic.c index be48442f..48c72b98 100644 --- a/zsnes/src/uic.c +++ b/zsnes/src/uic.c @@ -28,6 +28,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include #endif +#include "asm_call.h" + //C++ style code in C #define bool unsigned char #define true 1 @@ -208,7 +210,7 @@ const char* ZVERSION = "Pre 1.43"; void zstart () { - StartUp (); + asm_call(StartUp); // Print welcome message. printf("ZSNES v%s, (c) 1997-2005, ZSNES Team\n", ZVERSION); @@ -218,18 +220,18 @@ void zstart () puts("ZSNES comes with ABSOLUTELY NO WARRANTY. This is free software,"); puts("and you are welcome to redistribute it under certain conditions;"); puts("please read 'LICENSE.TXT' thoroughly before doing so.\n"); - puts("Use ZSNES -? for command line defintitions.\n"); + puts("Use ZSNES -? for command line definitions.\n"); - SystemInit (); + asm_call(SystemInit); #ifdef OPENSPC OSPC_Init (); #else - setnoise (); - InitSPC (); + asm_call(setnoise); + asm_call(InitSPC); #endif - allocmem (); + asm_call(allocmem); if (!soundon && !SPCDisable) { @@ -251,8 +253,6 @@ void zstart () gammalevel16b = gammalevel * 2; - MMXCheck (); - - init (); + asm_call(MMXCheck); + asm_call(init); } -