| /trunk/decompiled/cs__15C2.c |
| |
| 1 |
|
/* $Id$ */ |
| 2 |
|
|
| 3 |
|
#include "types.h" |
| 4 |
|
#include "libemu.h" |
| 5 |
|
#include "decompiled.h" |
| 6 |
|
|
| 7 |
|
/** |
| 8 |
|
* Decompiled function emu_Script_LoadFromFile() |
| 9 |
|
* |
| 10 |
|
* @name emu_Script_LoadFromFile |
| 11 |
|
* @implements 15C2:00AC:0015:2FBF () |
| 12 |
|
* @implements 15C2:00BC:0005:9D87 |
| 13 |
|
* @implements 15C2:00BE:0003:9C13 |
| 14 |
|
* @implements 15C2:00C1:000A:D449 |
| 15 |
|
* @implements 15C2:00CB:000A:E8D9 |
| 16 |
|
* @implements 15C2:00D5:001E:CD33 |
| 17 |
|
* @implements 15C2:00F3:0024:0D45 |
| 18 |
|
* @implements 15C2:00F5:0022:2546 |
| 19 |
|
* @implements 15C2:0117:0009:B6AB |
| 20 |
|
* @implements 15C2:0120:000B:4489 |
| 21 |
|
* @implements 15C2:012B:0012:38D0 |
| 22 |
|
* @implements 15C2:013D:0049:3C82 |
| 23 |
|
* @implements 15C2:0186:000F:92A6 |
| 24 |
|
* @implements 15C2:0195:002B:0050 |
| 25 |
|
* @implements 15C2:01A2:001E:BBAE |
| 26 |
|
* @implements 15C2:01C0:0011:8F23 |
| 27 |
|
* @implements 15C2:01C3:000E:D267 |
| 28 |
|
* @implements 15C2:01D1:0020:DCD5 |
| 29 |
|
* @implements 15C2:01F1:002D:3393 |
| 30 |
|
* @implements 15C2:021E:000F:92A6 |
| 31 |
|
* @implements 15C2:022D:003E:C2E2 |
| 32 |
|
* @implements 15C2:023B:0030:B965 |
| 33 |
|
* @implements 15C2:026B:0007:ED2C |
| 34 |
|
* @implements 15C2:0272:0015:F826 |
| 35 |
|
* @implements 15C2:0287:002E:175A |
| 36 |
|
* @implements 15C2:0299:001C:84E5 |
| 37 |
|
* @implements 15C2:02B5:0020:DC54 |
| 38 |
|
* @implements 15C2:02D5:002D:33F5 |
| 39 |
|
* @implements 15C2:0302:000F:92A6 |
| 40 |
|
* @implements 15C2:0311:002D:06F2 |
| 41 |
|
* @implements 15C2:031F:001F:C809 |
| 42 |
|
* @implements 15C2:033E:0016:43F5 |
| 43 |
|
* @implements 15C2:0354:000A:297F |
| 44 |
|
* @implements 15C2:035E:000E:EEEB |
| 45 |
|
* @implements 15C2:036A:0002:CB3A |
| 46 |
|
* @implements 15C2:036C:000A:2971 |
| 47 |
|
* @implements 15C2:0376:0012:54A3 |
| 48 |
|
* @implements 15C2:0382:0006:46FE |
| 49 |
|
* @implements 15C2:0388:0007:0D24 |
| 50 |
|
* @implements 15C2:0389:0006:0D96 |
| 51 |
|
* @implements 15C2:038F:0006:F7CE |
| 52 |
|
* |
| 53 |
|
* Called From: B4B8:22C7:001F:5CD7 |
| 54 |
|
*/ |
| 55 |
|
void emu_Script_LoadFromFile() |
| 56 |
|
{ |
| 57 |
|
l__00AC: |
| 58 |
|
emu_push(emu_bp); |
| 59 |
|
emu_bp = emu_sp; |
| 60 |
|
emu_subw(&emu_sp, 0x8); |
| 61 |
|
emu_push(emu_si); |
| 62 |
|
emu_push(emu_di); |
| 63 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0xA); |
| 64 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, 0xC)); |
| 65 |
|
if (emu_ax != 0) goto l__00C1; |
| 66 |
|
l__00BC: |
| 67 |
|
emu_xorw(&emu_ax, emu_ax); |
| 68 |
|
l__00BE: |
| 69 |
|
goto l__038F; |
| 70 |
|
l__00C1: |
| 71 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x6); |
| 72 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, 0x8)); |
| 73 |
|
if (emu_ax != 0) goto l__00CB; |
| 74 |
|
goto l__00BC; |
| 75 |
|
l__00CB: |
| 76 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0xC)); |
| 77 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 78 |
|
emu_push(emu_cs); |
| 79 |
|
emu_push(0x00D5); emu_Script_ClearInfo(); |
| 80 |
|
l__00D5: |
| 81 |
|
emu_pop(&emu_cx); |
| 82 |
|
emu_pop(&emu_cx); |
| 83 |
|
emu_get_memory16(emu_ss, emu_bp, -0x6) = 0x0; |
| 84 |
|
emu_get_memory16(emu_ss, emu_bp, -0x8) = 0x0; |
| 85 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 86 |
|
emu_push(emu_es); |
| 87 |
|
emu_push(emu_bx); |
| 88 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 89 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, 0x14)); |
| 90 |
|
if (emu_ax != 0) goto l__00F3; |
| 91 |
|
emu_ax = 0x1; |
| 92 |
|
goto l__00F5; |
| 93 |
|
l__00F3: |
| 94 |
|
emu_xorw(&emu_ax, emu_ax); |
| 95 |
|
l__00F5: |
| 96 |
|
emu_pop(&emu_bx); |
| 97 |
|
emu_pop(&emu_es); |
| 98 |
|
emu_get_memory16(emu_es, emu_bx, 0x14) = emu_ax; |
| 99 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 100 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x10); |
| 101 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0xE); |
| 102 |
|
emu_get_memory16(emu_es, emu_bx, 0x12) = emu_ax; |
| 103 |
|
emu_get_memory16(emu_es, emu_bx, 0x10) = emu_dx; |
| 104 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0x8)); |
| 105 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0x6)); |
| 106 |
|
emu_push(emu_cs); emu_push(0x0117); emu_cs = 0x1FB5; emu_File_Exists(); |
| 107 |
|
l__0117: |
| 108 |
|
emu_pop(&emu_cx); |
| 109 |
|
emu_pop(&emu_cx); |
| 110 |
|
emu_orw(&emu_ax, emu_ax); |
| 111 |
|
if (emu_ax != 0) goto l__0120; |
| 112 |
|
goto l__0389; |
| 113 |
|
l__0120: |
| 114 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0x8)); |
| 115 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0x6)); |
| 116 |
|
emu_push(emu_cs); emu_push(0x012B); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Open(); |
| 117 |
|
l__012B: |
| 118 |
|
emu_pop(&emu_cx); |
| 119 |
|
emu_pop(&emu_cx); |
| 120 |
|
emu_si = emu_ax; |
| 121 |
|
emu_ax = 0x5458; |
| 122 |
|
emu_dx = 0x4554; |
| 123 |
|
emu_push(emu_ax); |
| 124 |
|
emu_push(emu_dx); |
| 125 |
|
emu_push(emu_si); |
| 126 |
|
emu_push(emu_cs); emu_push(0x013D); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Seek(); |
| 127 |
|
l__013D: |
| 128 |
|
emu_addw(&emu_sp, 0x6); |
| 129 |
|
emu_get_memory16(emu_ss, emu_bp, -0x2) = emu_dx; |
| 130 |
|
emu_get_memory16(emu_ss, emu_bp, -0x4) = emu_ax; |
| 131 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x2); |
| 132 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 133 |
|
emu_addw(&emu_get_memory16(emu_ss, emu_bp, -0x8), emu_dx); |
| 134 |
|
emu_adcw(&emu_get_memory16(emu_ss, emu_bp, -0x6), emu_ax); |
| 135 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 136 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 137 |
|
if (emu_ax == 0) goto l__01C3; |
| 138 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 139 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, 0x14)); |
| 140 |
|
if (emu_ax == 0) goto l__0186; |
| 141 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 142 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x14); |
| 143 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 144 |
|
emu_get_memory16(emu_es, emu_bx, 0x2) = emu_ax; |
| 145 |
|
emu_get_memory16(emu_es, emu_bx, 0x0) = emu_dx; |
| 146 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x14); |
| 147 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 148 |
|
emu_addw(&emu_dx, emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 149 |
|
emu_adcw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 150 |
|
emu_get_memory16(emu_ss, emu_bp, 0x14) = emu_ax; |
| 151 |
|
emu_get_memory16(emu_ss, emu_bp, 0x12) = emu_dx; |
| 152 |
|
goto l__01A2; |
| 153 |
|
l__0186: |
| 154 |
|
emu_ax = 0x30; |
| 155 |
|
emu_push(emu_ax); |
| 156 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 157 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 158 |
|
emu_push(emu_cs); emu_push(0x0195); emu_cs = 0x23E1; f__23E1_0004_0014_2BC0(); |
| 159 |
|
l__0195: |
| 160 |
|
emu_addw(&emu_sp, 0x6); |
| 161 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 162 |
|
emu_get_memory16(emu_es, emu_bx, 0x2) = emu_dx; |
| 163 |
|
emu_get_memory16(emu_es, emu_bx, 0x0) = emu_ax; |
| 164 |
|
l__01A2: |
| 165 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 166 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 167 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 168 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0x2)); |
| 169 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0x0)); |
| 170 |
|
emu_ax = 0x5458; |
| 171 |
|
emu_dx = 0x4554; |
| 172 |
|
emu_push(emu_ax); |
| 173 |
|
emu_push(emu_dx); |
| 174 |
|
emu_push(emu_si); |
| 175 |
|
emu_push(emu_cs); emu_push(0x01C0); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Read(); |
| 176 |
|
l__01C0: |
| 177 |
|
emu_addw(&emu_sp, 0xE); |
| 178 |
|
l__01C3: |
| 179 |
|
emu_ax = 0x5244; |
| 180 |
|
emu_dx = 0x524F; |
| 181 |
|
emu_push(emu_ax); |
| 182 |
|
emu_push(emu_dx); |
| 183 |
|
emu_push(emu_si); |
| 184 |
|
emu_push(emu_cs); emu_push(0x01D1); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Seek(); |
| 185 |
|
l__01D1: |
| 186 |
|
emu_addw(&emu_sp, 0x6); |
| 187 |
|
emu_get_memory16(emu_ss, emu_bp, -0x2) = emu_dx; |
| 188 |
|
emu_get_memory16(emu_ss, emu_bp, -0x4) = emu_ax; |
| 189 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x2); |
| 190 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 191 |
|
emu_addw(&emu_get_memory16(emu_ss, emu_bp, -0x8), emu_dx); |
| 192 |
|
emu_adcw(&emu_get_memory16(emu_ss, emu_bp, -0x6), emu_ax); |
| 193 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 194 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 195 |
|
if (emu_ax != 0) goto l__01F1; |
| 196 |
|
goto l__036C; |
| 197 |
|
l__01F1: |
| 198 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 199 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, 0x14)); |
| 200 |
|
if (emu_ax == 0) goto l__021E; |
| 201 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 202 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x14); |
| 203 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 204 |
|
emu_get_memory16(emu_es, emu_bx, 0xA) = emu_ax; |
| 205 |
|
emu_get_memory16(emu_es, emu_bx, 0x8) = emu_dx; |
| 206 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x14); |
| 207 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 208 |
|
emu_addw(&emu_dx, emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 209 |
|
emu_adcw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 210 |
|
emu_get_memory16(emu_ss, emu_bp, 0x14) = emu_ax; |
| 211 |
|
emu_get_memory16(emu_ss, emu_bp, 0x12) = emu_dx; |
| 212 |
|
goto l__023B; |
| 213 |
|
l__021E: |
| 214 |
|
emu_ax = 0x30; |
| 215 |
|
emu_push(emu_ax); |
| 216 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 217 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 218 |
|
emu_push(emu_cs); emu_push(0x022D); emu_cs = 0x23E1; f__23E1_0004_0014_2BC0(); |
| 219 |
|
l__022D: |
| 220 |
|
emu_addw(&emu_sp, 0x6); |
| 221 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 222 |
|
emu_get_memory16(emu_es, emu_bx, 0xA) = emu_dx; |
| 223 |
|
emu_get_memory16(emu_es, emu_bx, 0x8) = emu_ax; |
| 224 |
|
l__023B: |
| 225 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x2); |
| 226 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 227 |
|
emu_shrw(&emu_ax, 0x1); |
| 228 |
|
emu_rcrw(&emu_dx, 0x1); |
| 229 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 230 |
|
emu_get_memory16(emu_es, emu_bx, 0xC) = emu_dx; |
| 231 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 232 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 233 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 234 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0xA)); |
| 235 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0x8)); |
| 236 |
|
emu_ax = 0x5244; |
| 237 |
|
emu_dx = 0x524F; |
| 238 |
|
emu_push(emu_ax); |
| 239 |
|
emu_push(emu_dx); |
| 240 |
|
emu_push(emu_si); |
| 241 |
|
emu_push(emu_cs); emu_push(0x026B); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Read(); |
| 242 |
|
l__026B: |
| 243 |
|
emu_addw(&emu_sp, 0xE); |
| 244 |
|
emu_xorw(&emu_di, emu_di); |
| 245 |
|
goto l__0299; |
| 246 |
|
l__0272: |
| 247 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 248 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_es, emu_bx, 0x8)); |
| 249 |
|
emu_ax = emu_di; |
| 250 |
|
emu_shlw(&emu_ax, 0x1); |
| 251 |
|
emu_addw(&emu_bx, emu_ax); |
| 252 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0x0)); |
| 253 |
|
emu_push(emu_cs); emu_push(0x0287); emu_cs = 0x2BC0; emu_Tools_Swapw(); |
| 254 |
|
l__0287: |
| 255 |
|
emu_pop(&emu_cx); |
| 256 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 257 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_es, emu_bx, 0x8)); |
| 258 |
|
emu_dx = emu_di; |
| 259 |
|
emu_shlw(&emu_dx, 0x1); |
| 260 |
|
emu_addw(&emu_bx, emu_dx); |
| 261 |
|
emu_get_memory16(emu_es, emu_bx, 0x0) = emu_ax; |
| 262 |
|
emu_incw(&emu_di); |
| 263 |
|
l__0299: |
| 264 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x2); |
| 265 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 266 |
|
emu_shrw(&emu_ax, 0x1); |
| 267 |
|
emu_rcrw(&emu_dx, 0x1); |
| 268 |
|
emu_cmpw(&emu_dx, emu_di); |
| 269 |
|
if ((int16)emu_dx > (int16)emu_di) goto l__0272; |
| 270 |
|
emu_ax = 0x4154; |
| 271 |
|
emu_dx = 0x4144; |
| 272 |
|
emu_push(emu_ax); |
| 273 |
|
emu_push(emu_dx); |
| 274 |
|
emu_push(emu_si); |
| 275 |
|
emu_push(emu_cs); emu_push(0x02B5); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Seek(); |
| 276 |
|
l__02B5: |
| 277 |
|
emu_addw(&emu_sp, 0x6); |
| 278 |
|
emu_get_memory16(emu_ss, emu_bp, -0x2) = emu_dx; |
| 279 |
|
emu_get_memory16(emu_ss, emu_bp, -0x4) = emu_ax; |
| 280 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x2); |
| 281 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 282 |
|
emu_addw(&emu_get_memory16(emu_ss, emu_bp, -0x8), emu_dx); |
| 283 |
|
emu_adcw(&emu_get_memory16(emu_ss, emu_bp, -0x6), emu_ax); |
| 284 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 285 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 286 |
|
if (emu_ax != 0) goto l__02D5; |
| 287 |
|
goto l__0354; |
| 288 |
|
l__02D5: |
| 289 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 290 |
|
emu_orw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, 0x14)); |
| 291 |
|
if (emu_ax == 0) goto l__0302; |
| 292 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 293 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x14); |
| 294 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 295 |
|
emu_get_memory16(emu_es, emu_bx, 0x6) = emu_ax; |
| 296 |
|
emu_get_memory16(emu_es, emu_bx, 0x4) = emu_dx; |
| 297 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, 0x14); |
| 298 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, 0x12); |
| 299 |
|
emu_addw(&emu_dx, emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 300 |
|
emu_adcw(&emu_ax, emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 301 |
|
emu_get_memory16(emu_ss, emu_bp, 0x14) = emu_ax; |
| 302 |
|
emu_get_memory16(emu_ss, emu_bp, 0x12) = emu_dx; |
| 303 |
|
goto l__031F; |
| 304 |
|
l__0302: |
| 305 |
|
emu_ax = 0x30; |
| 306 |
|
emu_push(emu_ax); |
| 307 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 308 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 309 |
|
emu_push(emu_cs); emu_push(0x0311); emu_cs = 0x23E1; f__23E1_0004_0014_2BC0(); |
| 310 |
|
l__0311: |
| 311 |
|
emu_addw(&emu_sp, 0x6); |
| 312 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 313 |
|
emu_get_memory16(emu_es, emu_bx, 0x6) = emu_dx; |
| 314 |
|
emu_get_memory16(emu_es, emu_bx, 0x4) = emu_ax; |
| 315 |
|
l__031F: |
| 316 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x2)); |
| 317 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, -0x4)); |
| 318 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 319 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0x6)); |
| 320 |
|
emu_push(emu_get_memory16(emu_es, emu_bx, 0x4)); |
| 321 |
|
emu_ax = 0x4154; |
| 322 |
|
emu_dx = 0x4144; |
| 323 |
|
emu_push(emu_ax); |
| 324 |
|
emu_push(emu_dx); |
| 325 |
|
emu_push(emu_si); |
| 326 |
|
emu_push(emu_cs); emu_push(0x033E); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Read(); |
| 327 |
|
l__033E: |
| 328 |
|
emu_addw(&emu_sp, 0xE); |
| 329 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x2); |
| 330 |
|
emu_dx = emu_get_memory16(emu_ss, emu_bp, -0x4); |
| 331 |
|
emu_shrw(&emu_ax, 0x1); |
| 332 |
|
emu_rcrw(&emu_dx, 0x1); |
| 333 |
|
emu_lfp(&emu_es, &emu_bx, &emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 334 |
|
emu_get_memory16(emu_es, emu_bx, 0xE) = emu_dx; |
| 335 |
|
goto l__036A; |
| 336 |
|
l__0354: |
| 337 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0xC)); |
| 338 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 339 |
|
emu_push(emu_cs); |
| 340 |
|
emu_push(0x035E); emu_Script_ClearInfo(); |
| 341 |
|
l__035E: |
| 342 |
|
emu_pop(&emu_cx); |
| 343 |
|
emu_pop(&emu_cx); |
| 344 |
|
emu_get_memory16(emu_ss, emu_bp, -0x6) = 0x0; |
| 345 |
|
emu_get_memory16(emu_ss, emu_bp, -0x8) = 0x0; |
| 346 |
|
l__036A: |
| 347 |
|
goto l__0382; |
| 348 |
|
l__036C: |
| 349 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0xC)); |
| 350 |
|
emu_push(emu_get_memory16(emu_ss, emu_bp, 0xA)); |
| 351 |
|
emu_push(emu_cs); |
| 352 |
|
emu_push(0x0376); emu_Script_ClearInfo(); |
| 353 |
|
l__0376: |
| 354 |
|
emu_pop(&emu_cx); |
| 355 |
|
emu_pop(&emu_cx); |
| 356 |
|
emu_get_memory16(emu_ss, emu_bp, -0x6) = 0x0; |
| 357 |
|
emu_get_memory16(emu_ss, emu_bp, -0x8) = 0x0; |
| 358 |
|
l__0382: |
| 359 |
|
emu_push(emu_si); |
| 360 |
|
emu_push(emu_cs); emu_push(0x0388); emu_cs = 0x34B1; overlay(0x34B1, 0); emu_ChunkFile_Close(); |
| 361 |
|
l__0388: |
| 362 |
|
emu_pop(&emu_cx); |
| 363 |
|
l__0389: |
| 364 |
|
emu_ax = emu_get_memory16(emu_ss, emu_bp, -0x8); |
| 365 |
|
goto l__00BE; |
| 366 |
|
l__038F: |
| 367 |
|
emu_pop(&emu_di); |
| 368 |
|
emu_pop(&emu_si); |
| 369 |
|
emu_sp = emu_bp; |
| 370 |
|
emu_pop(&emu_bp); |
| 371 |
|
|
| 372 |
|
/* Return from this function */ |
| 373 |
|
emu_pop(&emu_ip); |
| 374 |
|
emu_pop(&emu_cs); |
| 375 |
|
return; |
| 376 |
|
} |
| |