From 54d9e71c726f8e3a313509dd1a05fcd068c0af7a Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Mon, 29 Oct 2001 19:33:20 +0000 Subject: [PATCH] Fixed stupid bug --- zsnes/src/ui.asm | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/zsnes/src/ui.asm b/zsnes/src/ui.asm index 33664e36..1c4adce5 100644 --- a/zsnes/src/ui.asm +++ b/zsnes/src/ui.asm @@ -77,23 +77,17 @@ NEWSYM zstart 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 + mov ecx,28/4 + mov esi,CmdLineTCPIPAddress + mov edi,TCPIPAddress +.netplayloop + mov eax,[esi] + add esi,byte 4 + mov [edi],eax + add edi,byte 4 + dec ecx + jnz .netplayloop + xor eax,eax .nocmdlinenetplay call setnoise