Mercurial > repos > blastem
comparison blastem.h @ 354:15dd6418fe67
Initial PSG support. Mostly works, noise channel is borked though.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 23 May 2013 23:42:42 -0700 |
parents | 2f264d2a60c2 |
children | c26e48a93fa3 |
comparison
equal
deleted
inserted
replaced
353:a60e527cd21f | 354:15dd6418fe67 |
---|---|
4 #include <stdint.h> | 4 #include <stdint.h> |
5 #include "m68k_to_x86.h" | 5 #include "m68k_to_x86.h" |
6 #include "z80_to_x86.h" | 6 #include "z80_to_x86.h" |
7 #include "ym2612.h" | 7 #include "ym2612.h" |
8 #include "vdp.h" | 8 #include "vdp.h" |
9 #include "psg.h" | |
9 | 10 |
10 typedef struct { | 11 typedef struct { |
11 uint32_t th_counter; | 12 uint32_t th_counter; |
12 uint32_t timeout_cycle; | 13 uint32_t timeout_cycle; |
13 uint8_t output; | 14 uint8_t output; |
22 typedef struct { | 23 typedef struct { |
23 m68k_context *m68k; | 24 m68k_context *m68k; |
24 z80_context *z80; | 25 z80_context *z80; |
25 vdp_context *vdp; | 26 vdp_context *vdp; |
26 ym2612_context *ym; | 27 ym2612_context *ym; |
28 psg_context *psg; | |
27 uint8_t *save_ram; | 29 uint8_t *save_ram; |
28 uint32_t save_ram_mask; | 30 uint32_t save_ram_mask; |
29 uint32_t save_flags; | 31 uint32_t save_flags; |
30 uint8_t bank_regs[8]; | 32 uint8_t bank_regs[8]; |
31 } genesis_context; | 33 } genesis_context; |