Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
647 andrew_pro 1
format ELF
2
include "public_stdcall.inc"
3
section '.text' executable
696 andrew_pro 4
public_stdcall _ksys_sound_load_block,4
647 andrew_pro 5
;arg1 - blockptr
6
  mov   edx,ebx
7
  mov   eax,55
8
  xor   ebx,ebx
9
  mov   ecx,[esp+4]
10
  int   0x40
11
  mov   ebx,edx
12
  ret   4
13
 
696 andrew_pro 14
public_stdcall _ksys_sound_play_block,0
647 andrew_pro 15
  mov   edx,ebx
16
  mov   eax,55
17
  xor   ebx,ebx
18
  inc   ebx
19
  int   0x40
20
  mov   ebx,edx
21
  ret
22
 
696 andrew_pro 23
public_stdcall _ksys_sound_set_channels,4
647 andrew_pro 24
;arg1 - channels
25
  push  ebx
26
  mov   eax,55
27
  mov   ebx,2
28
  xor   ecx,ecx
29
  mov   edx,[esp+8]
30
  int   0x40
31
  pop   ebx
32
  ret   4
33
 
696 andrew_pro 34
public_stdcall _ksys_sound_set_data_size,4
647 andrew_pro 35
;arg1 - data size
36
  push  ebx
37
  mov   eax,55
38
  mov   ebx,2
39
  xor   ecx,ecx
40
  inc   ecx
41
  mov   edx,[esp+8]
42
  int   0x40
43
  pop   ebx
44
  ret   4
45
 
696 andrew_pro 46
public_stdcall _ksys_sound_set_frequency,4
647 andrew_pro 47
;arg1 - frequency
48
  push  ebx
49
  mov   eax,55
50
  mov   ebx,2
51
  mov   ecx,2
52
  mov   edx,[esp+8]
53
  int   0x40
54
  pop   ebx
55
  ret   4
56
 
696 andrew_pro 57
public_stdcall _ksys_sound_speaker_play,4
647 andrew_pro 58
;arg1 - data
59
  mov   edx,ebx
60
  mov   eax,55
61
  mov   ebx,55
696 andrew_pro 62
  mov   esi,[esp+4]
647 andrew_pro 63
  int   0x40
64
  mov   ebx,edx
696 andrew_pro 65
  ret   4