diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2008-09-29 23:50:59 +0200 |
---|---|---|
committer | Segher Boessenkool <segher@kernel.crashing.org> | 2008-09-29 23:50:59 +0200 |
commit | fc87dfc0804d490d5fc612e3c55dc27bde279fdd (patch) | |
tree | 4e4ae5f9371cc11fa0a8df7b38c446a24989cc19 /audio.c | |
parent | 9ecac71abfcce3d01585db3710ee59c042f030c2 (diff) |
Split audio hardware routines to audio.c file.
Diffstat (limited to 'audio.c')
-rw-r--r-- | audio.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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); +} |