2006-09-07 18:14:53 +04:00
|
|
|
format ELF
|
2006-09-23 18:00:36 +04:00
|
|
|
include "public_stdcall.inc"
|
2006-09-07 18:14:53 +04:00
|
|
|
section '.text' executable
|
2008-01-14 22:33:34 +03:00
|
|
|
public_stdcall _ksys_sound_load_block,4
|
2006-09-07 18:14:53 +04:00
|
|
|
;arg1 - blockptr
|
|
|
|
mov edx,ebx
|
|
|
|
mov eax,55
|
|
|
|
xor ebx,ebx
|
|
|
|
mov ecx,[esp+4]
|
|
|
|
int 0x40
|
|
|
|
mov ebx,edx
|
|
|
|
ret 4
|
|
|
|
|
2008-01-14 22:33:34 +03:00
|
|
|
public_stdcall _ksys_sound_play_block,0
|
2006-09-07 18:14:53 +04:00
|
|
|
mov edx,ebx
|
|
|
|
mov eax,55
|
|
|
|
xor ebx,ebx
|
|
|
|
inc ebx
|
|
|
|
int 0x40
|
|
|
|
mov ebx,edx
|
|
|
|
ret
|
|
|
|
|
2008-01-14 22:33:34 +03:00
|
|
|
public_stdcall _ksys_sound_set_channels,4
|
2006-09-07 18:14:53 +04:00
|
|
|
;arg1 - channels
|
|
|
|
push ebx
|
|
|
|
mov eax,55
|
|
|
|
mov ebx,2
|
|
|
|
xor ecx,ecx
|
|
|
|
mov edx,[esp+8]
|
|
|
|
int 0x40
|
|
|
|
pop ebx
|
|
|
|
ret 4
|
|
|
|
|
2008-01-14 22:33:34 +03:00
|
|
|
public_stdcall _ksys_sound_set_data_size,4
|
2006-09-07 18:14:53 +04:00
|
|
|
;arg1 - data size
|
|
|
|
push ebx
|
|
|
|
mov eax,55
|
|
|
|
mov ebx,2
|
|
|
|
xor ecx,ecx
|
|
|
|
inc ecx
|
|
|
|
mov edx,[esp+8]
|
|
|
|
int 0x40
|
|
|
|
pop ebx
|
|
|
|
ret 4
|
|
|
|
|
2008-01-14 22:33:34 +03:00
|
|
|
public_stdcall _ksys_sound_set_frequency,4
|
2006-09-07 18:14:53 +04:00
|
|
|
;arg1 - frequency
|
|
|
|
push ebx
|
|
|
|
mov eax,55
|
|
|
|
mov ebx,2
|
|
|
|
mov ecx,2
|
|
|
|
mov edx,[esp+8]
|
|
|
|
int 0x40
|
|
|
|
pop ebx
|
|
|
|
ret 4
|
|
|
|
|
2008-01-14 22:33:34 +03:00
|
|
|
public_stdcall _ksys_sound_speaker_play,4
|
2006-09-07 18:14:53 +04:00
|
|
|
;arg1 - data
|
|
|
|
mov edx,ebx
|
|
|
|
mov eax,55
|
|
|
|
mov ebx,55
|
2008-01-14 22:33:34 +03:00
|
|
|
mov esi,[esp+4]
|
2006-09-07 18:14:53 +04:00
|
|
|
int 0x40
|
|
|
|
mov ebx,edx
|
2008-01-14 22:33:34 +03:00
|
|
|
ret 4
|