Fixed cmdline netplay
This commit is contained in:
@@ -52,7 +52,14 @@ NEWSYM UIAsmStart
|
||||
|
||||
; Function 0501h
|
||||
; User Interface
|
||||
|
||||
; Search for CMDLINE= for commandline entry
|
||||
|
||||
|
||||
NEWSYM CmdLineNetPlay, db 0
|
||||
NEWSYM CmdLineTCPIPAddress, db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
||||
EXTSYM TCPIPAddress
|
||||
|
||||
SECTION .text
|
||||
|
||||
NEWSYM zstart
|
||||
@@ -68,6 +75,27 @@ NEWSYM zstart
|
||||
|
||||
cld ;clear direction flag
|
||||
|
||||
cmp byte[CmdLineNetPlay],0
|
||||
je .nocmdlinenetplay
|
||||
mov eax,[CmdLineTCPIPAddress]
|
||||
mov [TCPIPAddress],eax
|
||||
mov eax,[CmdLineTCPIPAddress+4]
|
||||
mov [TCPIPAddress+4],eax
|
||||
mov eax,[CmdLineTCPIPAddress+8]
|
||||
mov [TCPIPAddress+8],eax
|
||||
mov eax,[CmdLineTCPIPAddress+12]
|
||||
mov [TCPIPAddress+12],eax
|
||||
mov eax,[CmdLineTCPIPAddress+16]
|
||||
mov [TCPIPAddress+16],eax
|
||||
mov eax,[CmdLineTCPIPAddress+20]
|
||||
mov [TCPIPAddress+20],eax
|
||||
mov eax,[CmdLineTCPIPAddress+24]
|
||||
mov [TCPIPAddress+24],eax
|
||||
mov eax,[CmdLineTCPIPAddress+28]
|
||||
mov [TCPIPAddress+28],eax
|
||||
xor eax,eax
|
||||
.nocmdlinenetplay
|
||||
|
||||
call setnoise
|
||||
call InitSPC
|
||||
%ifndef __MSDOS__
|
||||
|
||||
Reference in New Issue
Block a user