]> git.sur5r.net Git - cc65/commitdiff
Exposed, to C code, the names of the Atmos ROM's sound effect functions. 26/head
authorGreg King <gregdk@users.sf.net>
Tue, 6 Aug 2013 15:12:30 +0000 (11:12 -0400)
committerGreg King <gregdk@users.sf.net>
Tue, 6 Aug 2013 15:12:30 +0000 (11:12 -0400)
include/atmos.h
libsrc/atmos/atmos.s [new file with mode: 0644]

index eed6d75646c760701f003fe197bd87b6b243e108..72388c9748e2c948a431bcb141d3e221b2cd7fef 100644 (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 */
diff --git a/libsrc/atmos/atmos.s b/libsrc/atmos/atmos.s
new file mode 100644 (file)
index 0000000..6b5a4a4
--- /dev/null
@@ -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