Mercurial > repos > blastem
comparison rf5c164.h @ 2280:9ead0fe69d9b
Implement savestate support for Sega CD
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 08 Jan 2023 14:42:24 -0800 |
parents | 5a21bc0ec583 |
children |
comparison
equal
deleted
inserted
replaced
2279:3b5fef896475 | 2280:9ead0fe69d9b |
---|---|
1 #ifndef RF5C164_H_ | 1 #ifndef RF5C164_H_ |
2 #define RF5C164_H_ | 2 #define RF5C164_H_ |
3 #include <stdint.h> | 3 #include <stdint.h> |
4 #include "render_audio.h" | 4 #include "render_audio.h" |
5 #include "oscilloscope.h" | 5 #include "oscilloscope.h" |
6 #include "serialize.h" | |
6 | 7 |
7 typedef struct { | 8 typedef struct { |
8 uint32_t cur_ptr; | 9 uint32_t cur_ptr; |
9 uint8_t regs[7]; | 10 uint8_t regs[7]; |
10 uint8_t sample; | 11 uint8_t sample; |
37 void rf5c164_adjust_master_clock(rf5c164* pcm, uint32_t mclks); | 38 void rf5c164_adjust_master_clock(rf5c164* pcm, uint32_t mclks); |
38 void rf5c164_run(rf5c164* pcm, uint32_t cycle); | 39 void rf5c164_run(rf5c164* pcm, uint32_t cycle); |
39 void rf5c164_write(rf5c164* pcm, uint16_t address, uint8_t value); | 40 void rf5c164_write(rf5c164* pcm, uint16_t address, uint8_t value); |
40 uint8_t rf5c164_read(rf5c164* pcm, uint16_t address); | 41 uint8_t rf5c164_read(rf5c164* pcm, uint16_t address); |
41 void rf5c164_enable_scope(rf5c164* pcm, oscilloscope *scope); | 42 void rf5c164_enable_scope(rf5c164* pcm, oscilloscope *scope); |
43 void rf5c164_serialize(rf5c164* pcm, serialize_buffer *buf); | |
44 void rf5c164_deserialize(deserialize_buffer *buf, void *vpcm); | |
42 | 45 |
43 #endif //RF5C164_H_ | 46 #endif //RF5C164_H_ |