Subversion Repositories Kolibri OS

Rev

Rev 145 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. format ELF
  2. include "public_stdcall.inc"
  3. section '.text' executable
  4. public_stdcall _msys_sound_load_block,4
  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.  
  14. public_stdcall _msys_sound_play_block,0
  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.  
  23. public_stdcall _msys_sound_set_channels,4
  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.  
  34. public_stdcall _msys_sound_set_data_size,4
  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.  
  46. public_stdcall _msys_sound_set_frequency,4
  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.  
  57. public_stdcall _msys_sound_speaker_play,4
  58. ;arg1 - data
  59.   mov   edx,ebx
  60.   mov   eax,55
  61.   mov   ebx,55
  62.   mov   ecx,[esp+4]
  63.   int   0x40
  64.   mov   ebx,edx
  65.   ret   4