Projects/tigris
Projects
/
tigris
Archived
5
0
Fork 0
This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
tigris/TIKI-100_emul-src/sound.c

31 lines
546 B
C
Raw Permalink Normal View History

2008-09-01 12:30:26 +02:00
/* sound.c V1.1.0
*
* AY-3-8912 emulering for TIKI-100_emul
* Copyright (C) Asbj<EFBFBD>rn Djupdal 2000-2001
*/
#include "TIKI-100_emul.h"
#include "protos.h"
/* variabler */
static byte reg = 0;
/*****************************************************************************/
/* skriv til kontrollregister */
void soundReg (byte value) {
reg = value;
}
/* skriv til dataregister */
void soundData (byte value) {
switch (reg) {
case 14: newOffset (value); break;
}
}
/* les dataregister */
byte getSoundData (void) {
return 0xff;
}