Rev 180 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 180 | Rev 7258 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | ; edi - y coordinat of pixel |
42 | ; edi - y coordinat of pixel |
43 | ; OUT |
43 | ; OUT |
44 | ; eax - color of pixel in coordinats (x,y) |
44 | ; eax - color of pixel in coordinats (x,y) |
45 | GetColorOfPixel: |
45 | GetColorOfPixel: |
Line -... | Line 46... | ||
- | 46 | ||
- | 47 | cmp esi,ebx |
|
- | 48 | jb @f |
|
- | 49 | xor eax,eax |
|
- | 50 | dec eax |
|
- | 51 | ret |
|
46 | 52 | @@: |
|
47 | imul ebx,edi |
53 | imul ebx,edi |
48 | add ebx,esi |
54 | add ebx,esi |
49 | lea ebx,[ebx+ebx*2] |
- | |
50 | add eax,ebx |
55 | lea ebx,[ebx+ebx*2] |
51 | mov ebx,[eax] |
56 | mov eax,[eax+ebx] |
52 | and ebx,0xffffff |
- | |
53 | mov eax,ebx |
57 | and eax,0xffffff |
Line 54... | Line 58... | ||
54 | ret |
58 | ret |
55 | 59 | ||
56 | ;procedure <<< |
60 | ;procedure <<< |