A good load of short jumps fixed.

This commit is contained in:
grinvader
2005-05-28 00:05:46 +00:00
parent 8fc2fa9eab
commit b38f44b833

View File

@@ -405,7 +405,7 @@ GUIStringGreater2:
%macro GUIOuttextwin2load 3 %macro GUIOuttextwin2load 3
test dword[cloadnleft],80000000h test dword[cloadnleft],80000000h
jnz %%skip jnz near %%skip
cmp byte[GUIloadfntype],0 cmp byte[GUIloadfntype],0
jne %%nottype0 jne %%nottype0
mov eax,[cloadnposb] mov eax,[cloadnposb]
@@ -562,7 +562,7 @@ DisplayGUILoad:
.text .text
mov dword[cloadmaxlen],39 mov dword[cloadmaxlen],39
cmp dword[GUIcurrentfilewin],0 cmp dword[GUIcurrentfilewin],0
jne .nofiles jne near .nofiles
%ifndef __MSDOS__ %ifndef __MSDOS__
mov eax,[GUIcurrentcursloc] mov eax,[GUIcurrentcursloc]
mov eax,[spcRamcmp+eax*4] mov eax,[spcRamcmp+eax*4]
@@ -1489,14 +1489,14 @@ DisplayGUIVideo:
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIINVID+eax],0 cmp byte[GUIINVID+eax],0
je .notext3 je near .notext3
GUIDisplayTextu 5,26,83,GUIVideoText3,0 GUIDisplayTextu 5,26,83,GUIVideoText3,0
.notext3 ; Eagle Eng. .notext3 ; Eagle Eng.
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIEAVID+eax],0 cmp byte[GUIEAVID+eax],0
je .notext4 je near .notext4
GUIDisplayTextu 5,26,83,GUIVideoText4,9 GUIDisplayTextu 5,26,83,GUIVideoText4,9
.notext4 ; Full/Widescreen .notext4 ; Full/Widescreen
@@ -1505,7 +1505,7 @@ DisplayGUIVideo:
cmp byte[GUIFSVID+eax],0 cmp byte[GUIFSVID+eax],0
je near .notext5 je near .notext5
cmp byte[GUIWSVID+eax],0 cmp byte[GUIWSVID+eax],0
je .notext4a je near .notext4a
GUIDisplayTextu 5,26,93,GUIVideoText5b,6 GUIDisplayTextu 5,26,93,GUIVideoText5b,6
jmp .notext5 jmp .notext5
.notext4a .notext4a
@@ -1515,7 +1515,7 @@ DisplayGUIVideo:
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUISSVID+eax],0 cmp byte[GUISSVID+eax],0
je .notext6 je near .notext6
GUIDisplayTextu 5,26,103,GUIVideoText6,1 GUIDisplayTextu 5,26,103,GUIVideoText6,1
.notext6 ; Triple Buff .notext6 ; Triple Buff
@@ -1524,16 +1524,16 @@ DisplayGUIVideo:
cmp byte[TripBufAvail],0 cmp byte[TripBufAvail],0
je near .notext7 je near .notext7
cmp byte[GUITBVID+eax],0 cmp byte[GUITBVID+eax],0
je .notext7 je near .notext7
GUIDisplayTextu 5,26,168,GUIVideoText7,0 GUIDisplayTextu 5,26,168,GUIVideoText7,0
.notext7 ; HiRes Mode 7 .notext7 ; HiRes Mode 7
xor eax,eax xor eax,eax
mov al,[cvidmode] mov al,[cvidmode]
cmp byte[GUIM7VID+eax],0 cmp byte[GUIM7VID+eax],0
je .notext8 je near .notext8
cmp byte[newengen],0 cmp byte[newengen],0
je .notext8 je near .notext8
GUIDisplayTextu 5,26,178,GUIVideoText8b,0 GUIDisplayTextu 5,26,178,GUIVideoText8b,0
.notext8 ; 2x .notext8 ; 2x
@@ -2066,7 +2066,7 @@ DisplayGUICheatConv:
%macro GUIOuttextwin2cheat 2 %macro GUIOuttextwin2cheat 2
test dword[ccheatnleft],80000000h test dword[ccheatnleft],80000000h
jnz %%skip jnz near %%skip
call DisplayGUICheatConv call DisplayGUICheatConv
mov byte[GUItextcolor],223 mov byte[GUItextcolor],223
GUIOuttextwin2 7,%1,%2,GUICheatTextZ3 GUIOuttextwin2 7,%1,%2,GUICheatTextZ3
@@ -3252,7 +3252,7 @@ DisplayGUIAbout: ; Displays the About Box
GUIDrawWindowBox 11,GUIAboutDisp GUIDrawWindowBox 11,GUIAboutDisp
cmp byte[EEgg],1 cmp byte[EEgg],1
je .eegg je near .eegg
GUIDisplayText 11,6,16,GUIGUIAboutTextA1 ; Text GUIDisplayText 11,6,16,GUIGUIAboutTextA1 ; Text
GUIDisplayText 11,6,26,GUIGUIAboutTextA2 GUIDisplayText 11,6,26,GUIGUIAboutTextA2
GUIDisplayTextY 11,6,36,GUIGUIAboutTextB GUIDisplayTextY 11,6,36,GUIGUIAboutTextB