diff ym2612.h @ 1301:babff81e4cfd

Initial implementation of YM2612 SSG-EG mode
author Michael Pavone <pavone@retrodev.com>
date Mon, 27 Mar 2017 00:40:10 -0700
parents 4b893b02444e
children 1b3fe6e03e7b
line wrap: on
line diff
--- a/ym2612.h	Sat Mar 25 15:41:52 2017 -0700
+++ b/ym2612.h	Mon Mar 27 00:40:10 2017 -0700
@@ -27,6 +27,8 @@
 	uint8_t  detune;
 	uint8_t  am;
 	uint8_t  env_phase;
+	uint8_t  ssg;
+	uint8_t  inverted;
 } ym_operator;
 
 typedef struct {
@@ -118,6 +120,7 @@
 	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,