From 6589288a04b3cb675d60e88528de8b45cfe687d7 Mon Sep 17 00:00:00 2001 From: Greg King Date: Tue, 6 Aug 2013 11:12:30 -0400 Subject: [PATCH] Exposed, to C code, the names of the Atmos ROM's sound effect functions. --- include/atmos.h | 24 ++++++++++++++++++++++++ libsrc/atmos/atmos.s | 15 +++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 libsrc/atmos/atmos.s 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