From: Greg King Date: Tue, 6 Aug 2013 15:12:30 +0000 (-0400) Subject: Exposed, to C code, the names of the Atmos ROM's sound effect functions. X-Git-Tag: V2.15~245^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F26%2Fhead;p=cc65 Exposed, to C code, the names of the Atmos ROM's sound effect functions. --- diff --git a/include/atmos.h b/include/atmos.h index eed6d7564..72388c974 100644 --- a/include/atmos.h +++ b/include/atmos.h @@ -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 */ diff --git a/libsrc/atmos/atmos.s b/libsrc/atmos/atmos.s new file mode 100644 index 000000000..6b5a4a49c --- /dev/null +++ b/libsrc/atmos/atmos.s @@ -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