Removed more warnings and optimized the asm code a bit.

This commit is contained in:
jbo_85
2005-06-13 13:53:38 +00:00
parent 86bf6cf62d
commit 0baaa2b25d
4 changed files with 16 additions and 47 deletions

View File

@@ -25,6 +25,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifdef __LINUX__ #ifdef __LINUX__
#include "gblhdr.h" #include "gblhdr.h"
#else #else
#include <io.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#endif #endif
@@ -187,7 +188,7 @@ unsigned char cfgreinittime = 30;
void ConvertJoyMap1() void ConvertJoyMap1()
{ {
int bl; unsigned int bl;
// Convert if 2,4,6, or sidewinder // Convert if 2,4,6, or sidewinder
if (pl1contrl == 2) if (pl1contrl == 2)
{ {
@@ -248,7 +249,7 @@ void ConvertJoyMap1()
void ConvertJoyMap2() void ConvertJoyMap2()
{ {
int bl; unsigned int bl;
// mov al,[pl2contrl] // mov al,[pl2contrl]
// Convert if 2,4,6, or sidewinder // Convert if 2,4,6, or sidewinder
//If pl1contrl=2 and pl2contrl=2, then set pl2 buttons to 3 & 4 //If pl1contrl=2 and pl2contrl=2, then set pl2 buttons to 3 & 4

View File

@@ -65,29 +65,13 @@ NEWSYM SystemInit
mov byte[cfgcvidmode],2 mov byte[cfgcvidmode],2
mov byte[cvidmode],2 mov byte[cvidmode],2
call getcmdline call getcmdline
mov byte[esi],'z' mov dword[esi],'zsne'
mov byte[esi+1],'s' mov dword[esi+4],'sl.c'
mov byte[esi+2],'n' mov word[esi+8],'fg'
mov byte[esi+3],'e'
mov byte[esi+4],'s'
mov byte[esi+5],'l'
mov byte[esi+6],'.'
mov byte[esi+7],'c'
mov byte[esi+8],'f'
mov byte[esi+9],'g'
mov byte[esi+10],0 mov byte[esi+10],0
mov byte[esi+256],'z' mov dword[esi+256],'zgui'
mov byte[esi+1+256],'g' mov dword[esi+4+256],'cfgl'
mov byte[esi+2+256],'u' mov dword[esi+8+256],'.dat'
mov byte[esi+3+256],'i'
mov byte[esi+4+256],'c'
mov byte[esi+5+256],'f'
mov byte[esi+6+256],'g'
mov byte[esi+7+256],'l'
mov byte[esi+8+256],'.'
mov byte[esi+9+256],'d'
mov byte[esi+10+256],'a'
mov byte[esi+11+256],'t'
mov byte[esi+12+256],0 mov byte[esi+12+256],0
mov byte[spcon],1 mov byte[spcon],1

View File

@@ -70,29 +70,13 @@ NEWSYM SystemInit
mov byte[cvidmode],3 mov byte[cvidmode],3
call getcmdline call getcmdline
mov byte[esi],'z' mov dword[esi],'zsne'
mov byte[esi+1],'s' mov dword[esi+4],'sw.c'
mov byte[esi+2],'n' mov word[esi+8],'fg'
mov byte[esi+3],'e'
mov byte[esi+4],'s'
mov byte[esi+5],'w'
mov byte[esi+6],'.'
mov byte[esi+7],'c'
mov byte[esi+8],'f'
mov byte[esi+9],'g'
mov byte[esi+10],0 mov byte[esi+10],0
mov byte[esi+256],'z' mov dword[esi+256],'zgui'
mov byte[esi+1+256],'g' mov dword[esi+4+256],'cfgw'
mov byte[esi+2+256],'u' mov dword[esi+8+256],'.dat'
mov byte[esi+3+256],'i'
mov byte[esi+4+256],'c'
mov byte[esi+5+256],'f'
mov byte[esi+6+256],'g'
mov byte[esi+7+256],'w'
mov byte[esi+8+256],'.'
mov byte[esi+9+256],'d'
mov byte[esi+10+256],'a'
mov byte[esi+11+256],'t'
mov byte[esi+12+256],0 mov byte[esi+12+256],0
mov byte[spcon],1 mov byte[spcon],1

View File

@@ -552,7 +552,7 @@ LRESULT CALLBACK Main_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
static bool shiftpr; static bool shiftpr;
bool accept; bool accept;
int vkeyval=0; int vkeyval = 0;
switch (uMsg) switch (uMsg)
{ {