Rev 1951 | Rev 1958 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1951 | Rev 1956 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | ;include 'macros.inc' |
39 | ;include 'macros.inc' |
40 | include '../../../../macros.inc' |
40 | include '../../../../macros.inc' |
41 | ;--------------------------------------------------------------------- |
41 | ;--------------------------------------------------------------------- |
42 | START: |
42 | START: |
43 | pushad |
43 | pushad |
- | 44 | mov eax,dword [esp+36] |
|
44 | mov [pointer],eax |
45 | mov [pointer],eax |
45 | mov eax,[eax+4] |
46 | mov eax,[eax+4] |
46 | mov [image_file],eax |
47 | mov [image_file],eax |
47 | mov esi,[eax+28] |
48 | mov esi,[eax+28] |
48 | add esi,eax |
49 | add esi,eax |
Line 78... | Line 79... | ||
78 | shr eax,1 |
79 | shr eax,1 |
79 | mov [ebx+12],eax |
80 | mov [ebx+12],eax |
80 | @@: |
81 | @@: |
Line 81... | Line 82... | ||
81 | 82 | ||
82 | popad |
83 | popad |
83 | ret |
84 | ret 4 |
84 | ;--------------------------------------------------------------------- |
85 | ;--------------------------------------------------------------------- |
85 | .less_8b: |
86 | .less_8b: |
86 | mov edx,[image_file] |
87 | mov edx,[image_file] |
87 | mov ecx,[area_size] |
88 | mov ecx,[area_size] |
Line 107... | Line 108... | ||
107 | mcall 68,13 |
108 | mcall 68,13 |
108 | mov eax,[image_file] |
109 | mov eax,[image_file] |
109 | mov ebx,[pointer] |
110 | mov ebx,[pointer] |
110 | mov [ebx+4],eax |
111 | mov [ebx+4],eax |
111 | popad |
112 | popad |
112 | ret |
113 | ret 4 |
113 | ;--------------------------------------------------------------------- |
114 | ;--------------------------------------------------------------------- |
114 | .16b: |
115 | .16b: |
115 | cmp [eax+18],word 3 |
116 | cmp [eax+18],word 3 |
116 | je @f ;.convert_16_in_8 |
117 | je @f ;.convert_16_in_8 |
117 | cmp [eax+18],word 4 |
118 | cmp [eax+18],word 4 |
Line 380... | Line 381... | ||
380 | .ret_ok: |
381 | .ret_ok: |
381 | mov ebx,[pointer] |
382 | mov ebx,[pointer] |
382 | mov eax,[raw_area] |
383 | mov eax,[raw_area] |
383 | mov [ebx+20],eax ; store RAW pointer |
384 | mov [ebx+20],eax ; store RAW pointer |
384 | popad |
385 | popad |
385 | ret |
386 | ret 4 |
Line 386... | Line 387... | ||
386 | 387 | ||
387 | ;--------------------------------------------------------------------- |
388 | ;--------------------------------------------------------------------- |
388 | .32b: |
389 | .32b: |
389 | cld |
390 | cld |