00001
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef __rom_sound_h__
00031 #define __rom_sound_h__
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00038
00039
00040
00042
00044
00050 extern inline void sound_system(unsigned nr)
00051 {
00052 __asm__ __volatile__(
00053 "push %0\n"
00054 "mov.w #0x4003,r6\n"
00055 "jsr @sound_system\n"
00056 "adds #0x2,sp\n"
00057 :
00058 :"r"(nr)
00059 :"r6", "cc", "memory"
00060 );
00061 }
00062
00064
00066 extern inline int sound_playing(void)
00067 {
00068 unsigned rc;
00069 __asm__ __volatile__(
00070 "mov.w r7,r6\n"
00071 "push r6\n"
00072 "mov.w #0x700c,r6\n"
00073 "jsr @sound_playing\n"
00074 "adds #0x2,sp\n"
00075 "mov.w @r7,%0\n"
00076 :"=r"(rc)
00077 :
00078 :"r6", "cc", "memory"
00079 );
00080
00081 return rc;
00082 }
00083
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087
00088 #endif // __rom_sound_h__