mirror of
https://github.com/cc65/cc65.git
synced 2025-01-18 11:29:45 +00:00
Rename sound to _sound.
remove extra comments.
This commit is contained in:
parent
bf9fb6dcdb
commit
27ecb555ea
@ -239,7 +239,7 @@ extern void __fastcall__ _scroll (signed char numlines);
|
||||
/* Sound function */
|
||||
/*****************************************************************************/
|
||||
|
||||
extern void __fastcall__ sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume); /* plays a sound in the specidied voice, to silence call with in other params*/
|
||||
extern void __fastcall__ _sound (unsigned char voice, unsigned char frequency, unsigned char distortion, unsigned char volume);
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Misc. functions */
|
||||
|
@ -5,10 +5,10 @@
|
||||
; atari lib
|
||||
;
|
||||
.include "atari.inc"
|
||||
.export _sound
|
||||
.export __sound
|
||||
.import popa
|
||||
; play sound, arguments: voice, pitch, distortion, volume. same as BASIC
|
||||
.proc _sound
|
||||
.proc __sound
|
||||
sta STORE2 ;save volume
|
||||
jsr popa ;get distortion
|
||||
sta STORE1 ;save distortion
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** testprogram printing the default device
|
||||
** Test program for _sound for atari
|
||||
**
|
||||
** January 6 2023 Mariano Domínguez
|
||||
*/
|
||||
@ -13,8 +13,8 @@ int main(void)
|
||||
{
|
||||
int i=0;
|
||||
printf("playing sound \n");
|
||||
sound(1,121,10,15);
|
||||
_sound(1,121,10,15); //voice, pitch, distortion, volume
|
||||
for(i=0;i<9000;i++);
|
||||
sound(1,0,0,0);
|
||||
_sound(1,0,0,0); //silencing, same as Atari Basic
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user