forked from KolibriOS/kolibrios
48ecbd9104
It is added makefile for compilation of programs under KolibriOS with the help gcc. git-svn-id: svn://kolibrios.org@696 a494cfbc-eb01-0410-851d-a64ba20cac60
66 lines
1.1 KiB
NASM
66 lines
1.1 KiB
NASM
format ELF
|
|
include "public_stdcall.inc"
|
|
section '.text' executable
|
|
public_stdcall _ksys_sound_load_block,4
|
|
;arg1 - blockptr
|
|
mov edx,ebx
|
|
mov eax,55
|
|
xor ebx,ebx
|
|
mov ecx,[esp+4]
|
|
int 0x40
|
|
mov ebx,edx
|
|
ret 4
|
|
|
|
public_stdcall _ksys_sound_play_block,0
|
|
mov edx,ebx
|
|
mov eax,55
|
|
xor ebx,ebx
|
|
inc ebx
|
|
int 0x40
|
|
mov ebx,edx
|
|
ret
|
|
|
|
public_stdcall _ksys_sound_set_channels,4
|
|
;arg1 - channels
|
|
push ebx
|
|
mov eax,55
|
|
mov ebx,2
|
|
xor ecx,ecx
|
|
mov edx,[esp+8]
|
|
int 0x40
|
|
pop ebx
|
|
ret 4
|
|
|
|
public_stdcall _ksys_sound_set_data_size,4
|
|
;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
|
|
|
|
public_stdcall _ksys_sound_set_frequency,4
|
|
;arg1 - frequency
|
|
push ebx
|
|
mov eax,55
|
|
mov ebx,2
|
|
mov ecx,2
|
|
mov edx,[esp+8]
|
|
int 0x40
|
|
pop ebx
|
|
ret 4
|
|
|
|
public_stdcall _ksys_sound_speaker_play,4
|
|
;arg1 - data
|
|
mov edx,ebx
|
|
mov eax,55
|
|
mov ebx,55
|
|
mov esi,[esp+4]
|
|
int 0x40
|
|
mov ebx,edx
|
|
ret 4
|