mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
53dd513176
which included commits to RCS files with non-trunk default branches. git-svn-id: svn://svn.cc65.org/cc65/trunk@3 b7a2c559-68d2-44c3-8de9-860c34a00d81
44 lines
928 B
C
44 lines
928 B
C
/*
|
|
* _sid.h
|
|
*
|
|
* Ullrich von Bassewitz, 22.09.1998
|
|
*
|
|
* Internal include file, do not use directly.
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SID_H
|
|
#define __SID_H
|
|
|
|
|
|
|
|
/* Define a structure with the sid register offsets */
|
|
struct __sid_voice {
|
|
unsigned freq; /* Frequency */
|
|
unsigned pw; /* Pulse width */
|
|
unsigned char ctrl; /* Control register */
|
|
unsigned char ad; /* Attack/decay */
|
|
unsigned char sr; /* Sustain/release */
|
|
};
|
|
struct __sid {
|
|
struct __sid_voice v1; /* Voice 1 */
|
|
struct __sid_voice v2; /* Voice 2 */
|
|
struct __sid_voice v3; /* Voice 3 */
|
|
unsigned flt_freq; /* Filter frequency */
|
|
unsigned char flt_ctrl; /* Filter control register */
|
|
unsigned char amp; /* Amplitude */
|
|
unsigned char ad1; /* A/D converter 1 */
|
|
unsigned char noise; /* Noise generator */
|
|
unsigned char read3; /* Value of voice 3 */
|
|
};
|
|
|
|
|
|
|
|
/* End of _sid.h */
|
|
#endif
|
|
|
|
|
|
|