comparison ym2612.h @ 1427:4e5797b3935a

WIP - New savestate format
author Michael Pavone <pavone@retrodev.com>
date Sun, 06 Aug 2017 00:06:36 -0700
parents 1b3fe6e03e7b
children ce1f93be0104
comparison
equal deleted inserted replaced
1426:957325c990d5 1427:4e5797b3935a
6 #ifndef YM2612_H_ 6 #ifndef YM2612_H_
7 #define YM2612_H_ 7 #define YM2612_H_
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include "serialize.h"
11 12
12 #define NUM_PART_REGS (0xB7-0x30) 13 #define NUM_PART_REGS (0xB7-0x30)
13 #define NUM_CHANNELS 6 14 #define NUM_CHANNELS 6
14 #define NUM_OPERATORS (4*NUM_CHANNELS) 15 #define NUM_OPERATORS (4*NUM_CHANNELS)
15 16
141 uint8_t ym_read_status(ym2612_context * context); 142 uint8_t ym_read_status(ym2612_context * context);
142 uint8_t ym_load_gst(ym2612_context * context, FILE * gstfile); 143 uint8_t ym_load_gst(ym2612_context * context, FILE * gstfile);
143 uint8_t ym_save_gst(ym2612_context * context, FILE * gstfile); 144 uint8_t ym_save_gst(ym2612_context * context, FILE * gstfile);
144 void ym_print_channel_info(ym2612_context *context, int channel); 145 void ym_print_channel_info(ym2612_context *context, int channel);
145 void ym_print_timer_info(ym2612_context *context); 146 void ym_print_timer_info(ym2612_context *context);
147 void ym_serialize(ym2612_context *context, serialize_buffer *buf);
148 void ym_deserialize(deserialize_buffer *buf, void *vcontext);
146 149
147 #endif //YM2612_H_ 150 #endif //YM2612_H_
148 151