Rev 145 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
145 | halyavin | 1 | format ELF |
159 | halyavin | 2 | include "public_stdcall.inc" |
145 | halyavin | 3 | section '.text' executable |
159 | halyavin | 4 | public_stdcall _msys_dga_get_resolution,16 |
145 | halyavin | 5 | ;arg1 - *xres |
6 | ;arg2 - *yres |
||
7 | ;arg3 - *bpp |
||
8 | ;arg4 - *bpscan |
||
9 | mov edx,ebx |
||
10 | |||
11 | mov eax,61 |
||
12 | mov ebx,1 |
||
13 | int 0x40 |
||
14 | mov ebx,[esp+8] |
||
15 | mov [ebx],ax |
||
16 | mov word [ebx+2],0 |
||
17 | shr eax,16 |
||
18 | mov ebx,[esp+4] |
||
19 | mov [ebx],eax |
||
20 | |||
21 | mov eax,61 |
||
22 | mov ebx,2 |
||
23 | int 0x40 |
||
24 | mov ebx,[esp+12] |
||
25 | mov [ebx],eax |
||
26 | |||
27 | mov eax,61 |
||
28 | mov ebx,3 |
||
29 | int 0x40 |
||
30 | mov ebx,[esp+16] |
||
31 | mov [ebx],eax |
||
32 | |||
33 | mov ebx,edx |
||
34 | ret 16 |