Rev 2984 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2984 | Rev 6619 | ||
---|---|---|---|
Line 1277... | Line 1277... | ||
1277 | 1277 | ||
Line 1278... | Line 1278... | ||
1278 | mov ecx,.y |
1278 | mov ecx,.y |
1279 | or ecx,ecx |
1279 | or ecx,ecx |
1280 | jl .bl_end |
1280 | jl .bl_end |
- | 1281 | movzx edx,word[size_y_var] |
|
1281 | cmp ecx,SIZE_Y |
1282 | cmp ecx,edx ;SIZE_Y |
1282 | jge .bl_end |
1283 | jge .bl_end |
Line 1283... | Line 1284... | ||
1283 | 1284 | ||
1284 | cmp eax,ebx |
1285 | cmp eax,ebx |
1285 | jl .bl_ok |
1286 | jl .bl_ok |
Line 1378... | Line 1379... | ||
1378 | ;end if |
1379 | ;end if |
Line 1379... | Line 1380... | ||
1379 | 1380 | ||
1380 | push eax |
1381 | push eax |
- | 1382 | push ebx ;store x1, x2 |
|
- | 1383 | movzx ebx,word[size_x_var] |
|
1381 | push ebx ;store x1, x2 |
1384 | ; mov eax,.x1 |
1382 | cmp dword .x1,SIZE_X |
1385 | cmp dword .x1,ebx ;dword .x1,SIZE_X |
1383 | jge .bl_end |
1386 | jge .bl_end |
1384 | cmp dword .x2,0 |
1387 | cmp dword .x2,0 |
Line 1385... | Line 1388... | ||
1385 | jle .bl_end |
1388 | jle .bl_end |
Line 1530... | Line 1533... | ||
1530 | imul ebx |
1533 | imul ebx |
1531 | add .ty1,eax |
1534 | add .ty1,eax |
1532 | 1535 | ||
Line 1533... | Line 1536... | ||
1533 | @@: |
1536 | @@: |
- | 1537 | ; mov ebx,.x2 |
|
- | 1538 | movzx eax,word[size_x_var] |
|
1534 | cmp dword .x2,SIZE_X |
1539 | ; cmp dword .x2,SIZE_X |
- | 1540 | cmp dword .x2,eax ; eax,ebx |
|
1535 | jl @f |
1541 | jl @f |
1536 | mov dword .x2,SIZE_X |
1542 | mov dword .x2,eax ;SIZE_X |
1537 | @@: |
1543 | @@: |
1538 | mov eax,SIZE_X ;calc memory begin in buffers |
1544 | movzx eax,word[size_x_var] ;SIZE_X ;calc memory begin in buffers |
1539 | mul .y |
1545 | mul .y |
1540 | add eax,.x1 |
1546 | add eax,.x1 |
1541 | lea esi,[4*eax] |
1547 | lea esi,[4*eax] |
1542 | add esi,.z_buff ; z-buffer filled with dd variables |
1548 | add esi,.z_buff ; z-buffer filled with dd variables |
1543 | lea eax,[eax*3] |
1549 | lea eax,[eax*3] |