More warnings removed and source cleaned up a bit.
This commit is contained in:
@@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|||||||
#include "../gblhdr.h"
|
#include "../gblhdr.h"
|
||||||
#else
|
#else
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PI
|
#ifdef PI
|
||||||
|
|||||||
@@ -18,6 +18,8 @@
|
|||||||
;along with this program; if not, write to the Free Software
|
;along with this program; if not, write to the Free Software
|
||||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%include "macros.mac"
|
%include "macros.mac"
|
||||||
|
|
||||||
EXTSYM DosExit,ZFileSystemInit,getcmdline,GUIRestoreVars,getcfg,obtaindir
|
EXTSYM DosExit,ZFileSystemInit,getcmdline,GUIRestoreVars,getcfg,obtaindir
|
||||||
@@ -573,8 +575,6 @@ NEWSYM Output_Text ; Output character (ah=02h) or string (ah=09h)
|
|||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NEWSYM InitPreGame ; Executes before starting/continuing a game
|
NEWSYM InitPreGame ; Executes before starting/continuing a game
|
||||||
mov byte[pressed+1],2
|
mov byte[pressed+1],2
|
||||||
pushad
|
pushad
|
||||||
@@ -704,6 +704,7 @@ NEWSYM deinitvideo
|
|||||||
; ** copy video mode functions **
|
; ** copy video mode functions **
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM converta, dd 0
|
NEWSYM converta, dd 0
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
NEWSYM DrawScreen ; In-game screen render w/ triple buffer check
|
NEWSYM DrawScreen ; In-game screen render w/ triple buffer check
|
||||||
cmp dword [converta],1
|
cmp dword [converta],1
|
||||||
@@ -972,9 +973,6 @@ NEWSYM ScanCodeListing
|
|||||||
db 'P2A','P2X','P2L','P2R',' ',' ',' ',' '
|
db 'P2A','P2X','P2L','P2R',' ',' ',' ',' '
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
SECTION .data
|
|
||||||
NEWSYM ZSNESBase, dd 0
|
NEWSYM ZSNESBase, dd 0
|
||||||
TempVarSeek dd 0
|
TempVarSeek dd 0
|
||||||
gotoroot db '/',0
|
gotoroot db '/',0
|
||||||
@@ -995,8 +993,8 @@ NEWSYM WMouseY, dd 0
|
|||||||
NEWSYM WMouseMoveX, dd 0
|
NEWSYM WMouseMoveX, dd 0
|
||||||
NEWSYM WMouseMoveY, dd 0
|
NEWSYM WMouseMoveY, dd 0
|
||||||
NEWSYM WMouseButton, dd 0
|
NEWSYM WMouseButton, dd 0
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
|
SECTION .text
|
||||||
NEWSYM Get_MouseData ; Returns both pressed and coordinates
|
NEWSYM Get_MouseData ; Returns both pressed and coordinates
|
||||||
; bx : bit 0 = left button, bit 1 = right button
|
; bx : bit 0 = left button, bit 1 = right button
|
||||||
; cx = Mouse X Position, dx = Mouse Y Position
|
; cx = Mouse X Position, dx = Mouse Y Position
|
||||||
|
|||||||
@@ -162,11 +162,10 @@ NEWSYM PrintStr ; Print ASCIIZ string
|
|||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM wfkey, db 0
|
NEWSYM wfkey, db 0
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
|
SECTION .text
|
||||||
NEWSYM WaitForKey ; Wait for a key to be pressed
|
NEWSYM WaitForKey ; Wait for a key to be pressed
|
||||||
pushad
|
pushad
|
||||||
call getch
|
call getch
|
||||||
@@ -178,7 +177,6 @@ NEWSYM WaitForKey ; Wait for a key to be pressed
|
|||||||
; return key in al
|
; return key in al
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
NEWSYM OsExit
|
NEWSYM OsExit
|
||||||
NEWSYM OSExit
|
NEWSYM OSExit
|
||||||
call exit
|
call exit
|
||||||
@@ -186,8 +184,8 @@ NEWSYM OSExit
|
|||||||
|
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM TempHandle, dd 0
|
NEWSYM TempHandle, dd 0
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
|
SECTION .text
|
||||||
NEWSYM Open_File
|
NEWSYM Open_File
|
||||||
pushad
|
pushad
|
||||||
mov dword[ZOpenMode],0
|
mov dword[ZOpenMode],0
|
||||||
@@ -751,7 +749,6 @@ NEWSYM Output_Text ; Output character (ah=02h) or string (ah=09h)
|
|||||||
popad
|
popad
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
NEWSYM InitPreGame ; Executes before starting/continuing a game
|
NEWSYM InitPreGame ; Executes before starting/continuing a game
|
||||||
mov byte[pressed+1],2
|
mov byte[pressed+1],2
|
||||||
pushad
|
pushad
|
||||||
@@ -828,7 +825,6 @@ SECTION .data
|
|||||||
NEWSYM firstvideo, dd 1
|
NEWSYM firstvideo, dd 1
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
NEWSYM initvideo ; Returns 1 in videotroub if trouble occurs
|
NEWSYM initvideo ; Returns 1 in videotroub if trouble occurs
|
||||||
mov byte[res640],1
|
mov byte[res640],1
|
||||||
mov byte[res480],1
|
mov byte[res480],1
|
||||||
@@ -886,8 +882,8 @@ NEWSYM deinitvideo
|
|||||||
; ** copy video mode functions **
|
; ** copy video mode functions **
|
||||||
SECTION .data
|
SECTION .data
|
||||||
NEWSYM converta, dd 0
|
NEWSYM converta, dd 0
|
||||||
SECTION .text
|
|
||||||
|
|
||||||
|
SECTION .text
|
||||||
NEWSYM DrawScreen ; In-game screen render w/ triple buffer check
|
NEWSYM DrawScreen ; In-game screen render w/ triple buffer check
|
||||||
cmp dword [converta],1
|
cmp dword [converta],1
|
||||||
jne near .skipconv
|
jne near .skipconv
|
||||||
@@ -946,7 +942,6 @@ NEWSYM vidpastecopyscr ; GUI screen render
|
|||||||
NEWSYM ClearScreen
|
NEWSYM ClearScreen
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
; ** Video Mode Variables **
|
; ** Video Mode Variables **
|
||||||
SECTION .data
|
SECTION .data
|
||||||
|
|
||||||
@@ -1146,11 +1141,10 @@ NEWSYM ScanCodeListing
|
|||||||
db 'P2B','P2Y','P2S','P2T','P2U','P2D','P2L','P2R'
|
db 'P2B','P2Y','P2S','P2T','P2U','P2D','P2L','P2R'
|
||||||
db 'P2A','P2X','P2L','P2R',' ',' ',' ',' '
|
db 'P2A','P2X','P2L','P2R',' ',' ',' ',' '
|
||||||
|
|
||||||
gotoroot db '\',0
|
|
||||||
|
|
||||||
SECTION .data
|
|
||||||
NEWSYM ZSNESBase, dd 0
|
NEWSYM ZSNESBase, dd 0
|
||||||
TempVarSeek dd 0
|
TempVarSeek dd 0
|
||||||
|
gotoroot db '\',0
|
||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
; ****************************
|
; ****************************
|
||||||
@@ -1171,7 +1165,6 @@ NEWSYM WMouseButton, dd 0
|
|||||||
|
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
NEWSYM Get_MouseData ; Returns both pressed and coordinates
|
NEWSYM Get_MouseData ; Returns both pressed and coordinates
|
||||||
; bx : bit 0 = left button, bit 1 = right button
|
; bx : bit 0 = left button, bit 1 = right button
|
||||||
; cx = Mouse X Position, dx = Mouse Y Position
|
; cx = Mouse X Position, dx = Mouse Y Position
|
||||||
@@ -1306,7 +1299,6 @@ BitSizeG db 6
|
|||||||
BitSizeB db 5
|
BitSizeB db 5
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
InitializeGfxStuff:
|
InitializeGfxStuff:
|
||||||
; Process Red Stuff
|
; Process Red Stuff
|
||||||
mov al,[BitPosR]
|
mov al,[BitPosR]
|
||||||
@@ -1414,7 +1406,6 @@ InitializeGfxStuff:
|
|||||||
call Init_2xSaIMMXW
|
call Init_2xSaIMMXW
|
||||||
pop eax
|
pop eax
|
||||||
|
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
@@ -1499,4 +1490,3 @@ SystemTime:
|
|||||||
.wMinute dw 0
|
.wMinute dw 0
|
||||||
.wSecond dw 0
|
.wSecond dw 0
|
||||||
.wMilliseconds dw 0
|
.wMilliseconds dw 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user