1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

Exposed, to C code, the names of the Atmos ROM's sound effect functions.

This commit is contained in:
Greg King 2013-08-06 11:12:30 -04:00
parent bf160cae69
commit 6589288a04
2 changed files with 39 additions and 0 deletions

View File

@ -126,12 +126,36 @@ extern void atmos_240_200_2_tgi[]; /* Referred to by tgi_static_stddrv[] */
/*****************************************************************************/
/* Functions */
/*****************************************************************************/
void __fastcall__ atmos_load(const char* name);
/* Load Atmos tape. */
void __fastcall__ atmos_save(const char* name, const void* start, const void* end);
/* Save Atmos tape. */
void atmos_explode (void);
/* Bomb sound effect */
void atmos_ping (void);
/* Bell or ricochet sound effect */
void atmos_shoot (void);
/* Pistol sound effect */
void atmos_tick (void);
/* High-pitch click */
void atmos_tock (void);
/* Low-pitch click */
void atmos_zap (void);
/* Raygun sound effect */
/* End of atmos.h */

15
libsrc/atmos/atmos.s Normal file
View File

@ -0,0 +1,15 @@
;
; Expose include-file symbol names to C code.
;
.export _atmos_ping, _atmos_shoot, _atmos_explode
.export _atmos_zap, _atmos_tick, _atmos_tock
.include "atmos.inc"
_atmos_ping := PING
_atmos_shoot := SHOOT
_atmos_explode := EXPLODE
_atmos_zap := ZAP
_atmos_tick := TICK
_atmos_tock := TOCK