comparison ym2612.h @ 739:2317bdca03b4

Add a basic YM-2612 command to the debugger. Fix negative detune values and get the correct precision for the multiplication step of phase inc calculation
author Michael Pavone <pavone@retrodev.com>
date Wed, 27 May 2015 20:53:21 -0700
parents aaa77e351c24
children 3a18b5f63afc
comparison
equal deleted inserted replaced
738:8972378e314f 739:2317bdca03b4
24 uint16_t sustain_level; 24 uint16_t sustain_level;
25 uint8_t rates[4]; 25 uint8_t rates[4];
26 uint8_t key_scaling; 26 uint8_t key_scaling;
27 uint8_t multiple; 27 uint8_t multiple;
28 uint8_t detune; 28 uint8_t detune;
29 uint8_t am;
29 uint8_t env_phase; 30 uint8_t env_phase;
30 } ym_operator; 31 } ym_operator;
31 32
32 typedef struct { 33 typedef struct {
33 FILE * logfile; 34 FILE * logfile;
103 void ym_address_write_part2(ym2612_context * context, uint8_t address); 104 void ym_address_write_part2(ym2612_context * context, uint8_t address);
104 void ym_data_write(ym2612_context * context, uint8_t value); 105 void ym_data_write(ym2612_context * context, uint8_t value);
105 uint8_t ym_read_status(ym2612_context * context); 106 uint8_t ym_read_status(ym2612_context * context);
106 uint8_t ym_load_gst(ym2612_context * context, FILE * gstfile); 107 uint8_t ym_load_gst(ym2612_context * context, FILE * gstfile);
107 uint8_t ym_save_gst(ym2612_context * context, FILE * gstfile); 108 uint8_t ym_save_gst(ym2612_context * context, FILE * gstfile);
109 void ym_print_channel_info(ym2612_context *context, int channel);
108 110
109 #endif //YM2612_H_ 111 #endif //YM2612_H_
110 112