Rev 551 | Rev 2493 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 551 | Rev 552 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | ; |
6 | ; |
7 | ; Compile with FASM for Menuet (requires .INC files - see DATA Section) |
7 | ; Compile with FASM for Menuet (requires .INC files - see DATA Section) |
8 | ; |
8 | ; |
9 | ; Willow - greatly srinked code size by using GIF texture and FPU to calculate sine table |
9 | ; Willow - greatly srinked code size by using GIF texture and FPU to calculate sine table |
10 | ; |
10 | ; |
11 | ; !!!! Don't use GIF.INC in your apps - it's modified for FREE3D !!!! |
11 | ; !!!! Don't use GIF_LITE.INC in your apps - it's modified for FREE3D !!!! |
12 | ; |
12 | ; |
13 | ; Heavyiron - new 0-function of drawing window from kolibri (do not work correctly with menuet) |
13 | ; Heavyiron - new 0-function of drawing window from kolibri (do not work correctly with menuet) |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | TEX_SIZE equ 64*64*4 |
15 | TEX_SIZE equ 64*64*4 |
Line 35... | Line 35... | ||
35 | dd APP_MEM;0x100000 ; esp |
35 | dd APP_MEM;0x100000 ; esp |
36 | dd 0x0 , 0x0 ; I_Param , I_Icon |
36 | dd 0x0 , 0x0 ; I_Param , I_Icon |
37 | include 'lang.inc' |
37 | include 'lang.inc' |
38 | include '..\..\..\macros.inc' |
38 | include '..\..\..\macros.inc' |
39 | COLOR_ORDER equ OTHER |
39 | COLOR_ORDER equ OTHER |
40 | include 'gif.inc' |
40 | include 'gif_lite.inc' |
Line 41... | Line 41... | ||
41 | 41 | ||
42 | START: ; start of execution |
42 | START: ; start of execution |
43 | mov esi,textures |
43 | mov esi,textures |
44 | mov edi,ceil |
- | |
45 | mov eax,sinus |
44 | mov edi,ceil-8 |
46 | call ReadGIF |
45 | call ReadGIF |
47 | mov esi,sinus |
46 | mov esi,sinus |
48 | mov ecx,360*10 |
47 | mov ecx,360*10 |
49 | fninit |
48 | fninit |
Line 149... | Line 148... | ||
149 | mov eax,[vpx] |
148 | mov eax,[vpx] |
150 | mov ebx,[vpy] |
149 | mov ebx,[vpy] |
Line 151... | Line 150... | ||
151 | 150 | ||
152 | - | ||
153 | mov ecx,[vheading] |
- | |
154 | ; imul ecx,4 |
151 | |
155 | ; add ecx,sinus |
- | |
Line 156... | Line 152... | ||
156 | lea ecx, [sinus+ecx*4] |
152 | mov ecx,[vheading] |
157 | mov edi,[ecx] |
153 | mov edi,[sinus+ecx*4] |
158 | 154 | ||
159 | mov edx,[vheading] |
155 | mov edx,[vheading] |
Line 191... | Line 187... | ||
191 | s_down: ; walk backward |
187 | s_down: ; walk backward |
192 | mov eax,[vpx] |
188 | mov eax,[vpx] |
193 | mov ebx,[vpy] |
189 | mov ebx,[vpy] |
Line 194... | Line 190... | ||
194 | 190 | ||
195 | mov ecx,[vheading] |
- | |
196 | ; imul ecx,4 |
- | |
197 | ; add ecx,sinus |
191 | mov ecx,[vheading] |
198 | lea ecx, [sinus+ecx*4] |
- | |
Line 199... | Line 192... | ||
199 | mov edi,[ecx] |
192 | mov edi,[sinus+ecx*4] |
200 | 193 | ||
201 | mov edx,[vheading] |
194 | mov edx,[vheading] |
202 | ; imul edx,4 |
195 | ; imul edx,4 |
Line 1085... | Line 1078... | ||
1085 | dd ?;- |
1078 | dd ?;- |
1086 | lasty: |
1079 | lasty: |
1087 | dd ?;- |
1080 | dd ?;- |
Line 1088... | Line 1081... | ||
1088 | 1081 | ||
- | 1082 | I_END: |
|
1089 | I_END: |
1083 | IncludeUGlobals |
1090 | sinus rd 360*10 |
1084 | sinus rd 360*10 |