Mercurial > repos > blastem
comparison lc8951.h @ 2058:70260f6051dd segacd
Initial work on CDC emulation
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 21 Jan 2022 20:24:48 -0800 |
parents | |
children | 07ed42bd7b4c |
comparison
equal
deleted
inserted
replaced
2057:88deea42caf0 | 2058:70260f6051dd |
---|---|
1 #ifndef LC8951_H_ | |
2 #define LC8951_H_ | |
3 | |
4 #include <stdint.h> | |
5 | |
6 typedef struct { | |
7 uint32_t cycles; | |
8 | |
9 uint8_t buffer[0x4000]; | |
10 | |
11 uint8_t regs[16]; | |
12 uint8_t comin[8]; | |
13 | |
14 uint16_t dac; | |
15 uint8_t comin_write; | |
16 uint8_t comin_count; | |
17 uint8_t ifctrl; | |
18 uint8_t ctrl0; | |
19 uint8_t ctrl1; | |
20 uint8_t ar; | |
21 uint8_t ar_mask; | |
22 } lc8951; | |
23 | |
24 void lc8951_init(lc8951 *context); | |
25 //void lc8951_run(lc8951 *context, uint32_t cycle); | |
26 void lc8951_reg_write(lc8951 *context, uint8_t value); | |
27 uint8_t lc8951_reg_read(lc8951 *context); | |
28 void lc8951_ar_write(lc8951 *context, uint8_t value); | |
29 | |
30 #endif //LC8951_H_ |