diff ym2612.h @ 1300:4b893b02444e

Basic implementation of CSM mode that should handle documented edge cases. Dodesn't handle the weird undocumented edge cases I don't have a good understanding of yet though
author Michael Pavone <pavone@retrodev.com>
date Sat, 25 Mar 2017 15:41:52 -0700
parents 8d032a368dd5
children babff81e4cfd
line wrap: on
line diff
--- a/ym2612.h	Sat Mar 25 11:31:43 2017 -0700
+++ b/ym2612.h	Sat Mar 25 15:41:52 2017 -0700
@@ -42,6 +42,7 @@
 	uint8_t  ams;
 	uint8_t  pms;
 	uint8_t  lr;
+	uint8_t  keyon;
 } ym_channel;
 
 typedef struct {
@@ -93,6 +94,7 @@
 	uint8_t     lfo_counter;
 	uint8_t     lfo_am_step;
 	uint8_t     lfo_pm_step;
+	uint8_t     csm_keyon;
 	uint8_t     status;
 	uint8_t     selected_reg;
 	uint8_t     selected_part;