summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2008-09-29 23:50:59 +0200
committerSegher Boessenkool <segher@kernel.crashing.org>2008-09-29 23:50:59 +0200
commitfc87dfc0804d490d5fc612e3c55dc27bde279fdd (patch)
tree4e4ae5f9371cc11fa0a8df7b38c446a24989cc19 /audio.c
parent9ecac71abfcce3d01585db3710ee59c042f030c2 (diff)
Split audio hardware routines to audio.c file.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/audio.c b/audio.c
new file mode 100644
index 0000000..de55fc7
--- /dev/null
+++ b/audio.c
@@ -0,0 +1,25 @@
+// Copyright 2008 Segher Boessenkool <segher@kernel.crashing.org>
+// Licensed under the terms of the GNU GPL, version 2
+// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
+
+#include <stdio.h>
+
+#include "types.h"
+#include "emu.h"
+#include "audio.h"
+
+
+void audio_store(u16 val, u32 addr)
+{
+ mem[addr] = val;
+
+ if (addr < 0x3200) { // XXX
+ return;
+ } else if (addr < 0x3400) { // XXX
+ return;
+ } else { // XXX
+ return;
+ }
+
+ printf("AUDIO STORE %04x to %04x\n", val, addr);
+}