This commit was generated by cvs2svn to compensate for changes in r2,
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
This commit is contained in:
43
include/_sid.h
Normal file
43
include/_sid.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* _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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user