summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-03-27 00:40:10 -0700
committerMichael Pavone <pavone@retrodev.com>2017-03-27 00:40:10 -0700
commit8fcf3e21b40fa3c92341371eef9d9353b910ba1b (patch)
tree8056ca76f1390dc6f1525956abe993b3452e16f0 /ym2612.h
parent4a7dee9321f085f9f994a0d95e6f2190d984a2cd (diff)
Initial implementation of YM2612 SSG-EG mode
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ym2612.h b/ym2612.h
index df2fe03..71a00fd 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -27,6 +27,8 @@ typedef struct {
uint8_t detune;
uint8_t am;
uint8_t env_phase;
+ uint8_t ssg;
+ uint8_t inverted;
} ym_operator;
typedef struct {
@@ -118,6 +120,7 @@ enum {
REG_DECAY_AM = 0x60,
REG_SUSTAIN_RATE = 0x70,
REG_S_LVL_R_RATE = 0x80,
+ REG_SSG_EG = 0x90,
REG_FNUM_LOW = 0xA0,
REG_BLOCK_FNUM_H = 0xA4,