Rev 145 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 145 | Rev 159 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | format ELF |
1 | format ELF |
- | 2 | include "public_stdcall.inc" |
|
2 | section '.text' executable |
3 | section '.text' executable |
3 | public _msys_sound_load_block |
4 | public_stdcall _msys_sound_load_block,4 |
4 | _msys_sound_load_block: |
- | |
5 | ;arg1 - blockptr |
5 | ;arg1 - blockptr |
6 | mov edx,ebx |
6 | mov edx,ebx |
7 | mov eax,55 |
7 | mov eax,55 |
8 | xor ebx,ebx |
8 | xor ebx,ebx |
9 | mov ecx,[esp+4] |
9 | mov ecx,[esp+4] |
10 | int 0x40 |
10 | int 0x40 |
11 | mov ebx,edx |
11 | mov ebx,edx |
12 | ret 4 |
12 | ret 4 |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | public _msys_sound_play_block |
- | |
15 | _msys_sound_play_block: |
14 | public_stdcall _msys_sound_play_block,0 |
16 | mov edx,ebx |
15 | mov edx,ebx |
17 | mov eax,55 |
16 | mov eax,55 |
18 | xor ebx,ebx |
17 | xor ebx,ebx |
19 | inc ebx |
18 | inc ebx |
20 | int 0x40 |
19 | int 0x40 |
21 | mov ebx,edx |
20 | mov ebx,edx |
Line 22... | Line 21... | ||
22 | ret |
21 | ret |
23 | - | ||
24 | public _msys_sound_set_channels |
22 | |
25 | _msys_sound_set_channels: |
23 | public_stdcall _msys_sound_set_channels,4 |
26 | ;arg1 - channels |
24 | ;arg1 - channels |
27 | push ebx |
25 | push ebx |
28 | mov eax,55 |
26 | mov eax,55 |
29 | mov ebx,2 |
27 | mov ebx,2 |
30 | xor ecx,ecx |
28 | xor ecx,ecx |
31 | mov edx,[esp+8] |
29 | mov edx,[esp+8] |
32 | int 0x40 |
30 | int 0x40 |
Line 33... | Line 31... | ||
33 | pop ebx |
31 | pop ebx |
34 | ret 4 |
- | |
35 | 32 | ret 4 |
|
36 | public _msys_sound_set_data_size |
33 | |
37 | _msys_sound_set_data_size: |
34 | public_stdcall _msys_sound_set_data_size,4 |
38 | ;arg1 - data size |
35 | ;arg1 - data size |
39 | push ebx |
36 | push ebx |
Line 44... | Line 41... | ||
44 | mov edx,[esp+8] |
41 | mov edx,[esp+8] |
45 | int 0x40 |
42 | int 0x40 |
46 | pop ebx |
43 | pop ebx |
47 | ret 4 |
44 | ret 4 |
Line 48... | Line 45... | ||
48 | 45 | ||
49 | public _msys_sound_set_frequency |
- | |
50 | _msys_sound_set_frequency: |
46 | public_stdcall _msys_sound_set_frequency,4 |
51 | ;arg1 - frequency |
47 | ;arg1 - frequency |
52 | push ebx |
48 | push ebx |
53 | mov eax,55 |
49 | mov eax,55 |
54 | mov ebx,2 |
50 | mov ebx,2 |
55 | mov ecx,2 |
51 | mov ecx,2 |
56 | mov edx,[esp+8] |
52 | mov edx,[esp+8] |
57 | int 0x40 |
53 | int 0x40 |
58 | pop ebx |
54 | pop ebx |
Line 59... | Line 55... | ||
59 | ret 4 |
55 | ret 4 |
60 | - | ||
61 | public _msys_sound_speaker_play |
56 | |
62 | _msys_sound_speaker_play: |
57 | public_stdcall _msys_sound_speaker_play,4 |
63 | ;arg1 - data |
58 | ;arg1 - data |
64 | mov edx,ebx |
59 | mov edx,ebx |
65 | mov eax,55 |
60 | mov eax,55 |