Rev 5486 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5486 | Rev 8014 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | .convert1: |
29 | .convert1: |
30 | dec eax |
30 | dec eax |
31 | mov ebx,eax |
31 | mov ebx,eax |
32 | push eax |
32 | push eax |
33 | call ascii_to_integer |
33 | call ascii_to_integer |
34 | mov [points_count_var],dx |
34 | mov [points_count_var],edx |
35 | pop eax |
35 | pop eax |
Line 36... | Line 36... | ||
36 | 36 | ||
37 | @@: |
37 | @@: |
38 | inc eax |
38 | inc eax |
Line 57... | Line 57... | ||
57 | .convert2: |
57 | .convert2: |
58 | dec eax |
58 | dec eax |
59 | mov ebx,eax |
59 | mov ebx,eax |
60 | push eax |
60 | push eax |
61 | call ascii_to_integer |
61 | call ascii_to_integer |
62 | mov [triangles_count_var],dx |
62 | mov [triangles_count_var],edx |
63 | pop eax |
63 | pop eax |
Line 64... | Line 64... | ||
64 | 64 | ||
65 | @@: |
65 | @@: |
66 | inc eax |
66 | inc eax |
Line 112... | Line 112... | ||
112 | inc ecx |
112 | inc ecx |
113 | cmp ecx,3 |
113 | cmp ecx,3 |
114 | jne .decode_coord |
114 | jne .decode_coord |
115 | pop ebx |
115 | pop ebx |
116 | inc ebx |
116 | inc ebx |
117 | cmp bx,[points_count_var] |
117 | cmp ebx,[points_count_var] |
118 | jne .decode_vertices |
118 | jne .decode_vertices |
119 | mov dword[edi],-1 |
119 | mov dword[edi],-1 |
Line 173... | Line 173... | ||
173 | mov ebx,esi |
173 | mov ebx,esi |
174 | push esi |
174 | push esi |
175 | call ascii_to_integer |
175 | call ascii_to_integer |
176 | mov eax,edx |
176 | mov eax,edx |
Line 177... | Line 177... | ||
177 | 177 | ||
178 | stosw |
178 | stosd |
179 | pop esi |
179 | pop esi |
Line 180... | Line 180... | ||
180 | add esi,2 |
180 | add esi,4 |
181 | 181 | ||
182 | pop ecx |
182 | pop ecx |
183 | inc ecx |
183 | inc ecx |
184 | cmp ecx,3 |
184 | cmp ecx,3 |
185 | jne .next_vertex_number |
185 | jne .next_vertex_number |
186 | pop edx |
186 | pop edx |
187 | inc edx |
187 | inc edx |
188 | cmp dx,[triangles_count_var] |
188 | cmp edx,[triangles_count_var] |
189 | jne .decode_face |
189 | jne .decode_face |
190 | mov dword[edi],-1 ;dword[triangles+ebx+2],-1 ; end mark |
190 | mov dword[edi],-1 ;dword[triangles+ebx+2],-1 ; end mark |