summaryrefslogtreecommitdiff
path: root/ym2612.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-27 09:54:58 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-27 09:54:58 -0700
commit140052b8720dabfda7a66f2b754a81ce902e3d34 (patch)
treeec0a59a9ba12c3a1179ab87858881b786606b476 /ym2612.h
parent1def7c1cb5605bfe1417cdc5b64e5a4c6aac0007 (diff)
YM2612 WIP snapshot before register refactor
Diffstat (limited to 'ym2612.h')
-rw-r--r--ym2612.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ym2612.h b/ym2612.h
index 6b99dd0..f66a526 100644
--- a/ym2612.h
+++ b/ym2612.h
@@ -5,12 +5,20 @@
#define NUM_SHARED_REGS (0x30-0x21)
#define NUM_PART_REGS (0xB7-0x30)
+#define NUM_OPERATORS (4*6)
typedef struct {
uint32_t current_cycle;
uint32_t write_cycle;
uint8_t *selected_reg;
+ uint32_t phase_inc[NUM_OPERATORS];
+ uint32_t phase_counter[NUM_OPERATORS];
+ uint16_t envelope[NUM_OPERATORS];
+ uint16_t op_out[NUM_OPERATORS];
+ uint16_t channel_out[6];
uint16_t timer_a;
+ uint8_t env_phase[NUM_OPERATORS];
+ uint8_t keycode[NUM_OPERATORS];
uint8_t timer_b;
uint8_t reg_num;
uint8_t status;