Optimized code a bit.

This commit is contained in:
jbo_85
2006-02-16 23:18:00 +00:00
parent 8f626ac7d6
commit 43b751f2c4

View File

@@ -32,7 +32,7 @@ EXTSYM spritetablea,sprlefttot,newengen,spcextraram,resolutn,Open_File
EXTSYM Close_File,Write_File,Create_File,Get_Key,Get_Date,continueprognokeys EXTSYM Close_File,Write_File,Create_File,Get_Key,Get_Date,continueprognokeys
EXTSYM ForceNonTransp,GUIOn,Check_Key,JoyRead,GetScreen,SSKeyPressed EXTSYM ForceNonTransp,GUIOn,Check_Key,JoyRead,GetScreen,SSKeyPressed
EXTSYM SPCKeyPressed,StopSound,StartSound,ExecExitOkay,t1cc,Clear2xSaIBuffer EXTSYM SPCKeyPressed,StopSound,StartSound,ExecExitOkay,t1cc,Clear2xSaIBuffer
EXTSYM romdata,romtype,ScreenShotFormat,Voice0Disable,Voice1Disable EXTSYM romdata,infoloc,ScreenShotFormat,Voice0Disable,Voice1Disable
EXTSYM Voice2Disable,Voice3Disable,Voice4Disable,Voice5Disable,Voice6Disable EXTSYM Voice2Disable,Voice3Disable,Voice4Disable,Voice5Disable,Voice6Disable
EXTSYM Voice7Disable,SRAMChdir,SPCPath,SnapPath,CHPath,ZFileCHDir EXTSYM Voice7Disable,SRAMChdir,SPCPath,SnapPath,CHPath,ZFileCHDir
%ifndef NO_PNG %ifndef NO_PNG
@@ -909,11 +909,7 @@ NEWSYM savespcdata
; Copy Game Title ; Copy Game Title
mov esi,[romdata] mov esi,[romdata]
add esi,7FC0h add esi,[infoloc]
cmp byte[romtype],2
jne .nohirom2
add esi,8000h
.nohirom2
mov ecx,20 mov ecx,20
mov edi,ssdatst+46+32 mov edi,ssdatst+46+32
.romloop .romloop