Rev 647 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 647 | Rev 696 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | format ELF |
1 | format ELF |
2 | include "public_stdcall.inc" |
2 | include "public_stdcall.inc" |
3 | section '.text' executable |
3 | section '.text' executable |
4 | public_stdcall _ksy_sound_load_block,4 |
4 | public_stdcall _ksys_sound_load_block,4 |
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_stdcall _ksy_sound_play_block,0 |
14 | public_stdcall _ksys_sound_play_block,0 |
15 | mov edx,ebx |
15 | mov edx,ebx |
16 | mov eax,55 |
16 | mov eax,55 |
17 | xor ebx,ebx |
17 | xor ebx,ebx |
18 | inc ebx |
18 | inc ebx |
19 | int 0x40 |
19 | int 0x40 |
20 | mov ebx,edx |
20 | mov ebx,edx |
Line 21... | Line 21... | ||
21 | ret |
21 | ret |
22 | 22 | ||
23 | public_stdcall _ksy_sound_set_channels,4 |
23 | public_stdcall _ksys_sound_set_channels,4 |
24 | ;arg1 - channels |
24 | ;arg1 - channels |
25 | push ebx |
25 | push ebx |
26 | mov eax,55 |
26 | mov eax,55 |
27 | mov ebx,2 |
27 | mov ebx,2 |
28 | xor ecx,ecx |
28 | xor ecx,ecx |
29 | mov edx,[esp+8] |
29 | mov edx,[esp+8] |
30 | int 0x40 |
30 | int 0x40 |
Line 31... | Line 31... | ||
31 | pop ebx |
31 | pop ebx |
32 | ret 4 |
32 | ret 4 |
33 | 33 | ||
34 | public_stdcall _ksy_sound_set_data_size,4 |
34 | public_stdcall _ksys_sound_set_data_size,4 |
35 | ;arg1 - data size |
35 | ;arg1 - data size |
36 | push ebx |
36 | push ebx |
Line 41... | Line 41... | ||
41 | mov edx,[esp+8] |
41 | mov edx,[esp+8] |
42 | int 0x40 |
42 | int 0x40 |
43 | pop ebx |
43 | pop ebx |
44 | ret 4 |
44 | ret 4 |
Line 45... | Line 45... | ||
45 | 45 | ||
46 | public_stdcall _ksy_sound_set_frequency,4 |
46 | public_stdcall _ksys_sound_set_frequency,4 |
47 | ;arg1 - frequency |
47 | ;arg1 - frequency |
48 | push ebx |
48 | push ebx |
49 | mov eax,55 |
49 | mov eax,55 |
50 | mov ebx,2 |
50 | mov ebx,2 |
51 | mov ecx,2 |
51 | mov ecx,2 |
52 | mov edx,[esp+8] |
52 | mov edx,[esp+8] |
53 | int 0x40 |
53 | int 0x40 |
54 | pop ebx |
54 | pop ebx |
Line 55... | Line 55... | ||
55 | ret 4 |
55 | ret 4 |
56 | 56 | ||
57 | public_stdcall _ksy_sound_speaker_play,4 |
57 | public_stdcall _ksys_sound_speaker_play,4 |
58 | ;arg1 - data |
58 | ;arg1 - data |
59 | mov edx,ebx |
59 | mov edx,ebx |
60 | mov eax,55 |
60 | mov eax,55 |
61 | mov ebx,55 |
61 | mov ebx,55 |
62 | mov ecx,[esp+4] |
62 | mov esi,[esp+4] |
63 | int 0x40 |
63 | int 0x40 |
64 | mov ebx,edx |
64 | mov ebx,edx |