diff options
author | 2015-08-26 19:41:16 -0400 | |
---|---|---|
committer | 2015-08-26 19:41:16 -0400 | |
commit | 0d645cc62bd8f7c64309c055ac4066de8bab20ea (patch) | |
tree | b68ab33b282f5435d4463cf0781dde8831fdf99c /src/emu/sound/tms5110.h | |
parent | 9f6640deb5db821db12c935d3a075934b4624449 (diff) |
TMS51xx: Got rid of the request_bits and FIFO implementation, both of which were incorrect to hardware. Minor ZPAR fix. Some comment cleanup. [Lord Nightmare]
Diffstat (limited to 'src/emu/sound/tms5110.h')
-rw-r--r-- | src/emu/sound/tms5110.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/emu/sound/tms5110.h b/src/emu/sound/tms5110.h index ffd9b8f5150..c30dbf8c9db 100644 --- a/src/emu/sound/tms5110.h +++ b/src/emu/sound/tms5110.h @@ -7,7 +7,7 @@ #include "emu.h" -#define FIFO_SIZE 64 // TODO: technically the tms51xx chips don't have a fifo at all +#undef PERFECT_INTERPOLATION_HACK /* TMS5110 commands */ /* CTL8 CTL4 CTL2 CTL1 | PDC's */ @@ -15,7 +15,7 @@ #define TMS5110_CMD_RESET (0) /* 0 0 0 x | 1 */ #define TMS5110_CMD_LOAD_ADDRESS (2) /* 0 0 1 x | 2 */ #define TMS5110_CMD_OUTPUT (4) /* 0 1 0 x | 3 */ -#define TMS5110_CMD_SPKSLOW (6) /* 0 1 1 x | 1 | Note: this command is undocumented on the datasheets, it only appears on the patents. It might not actually work properly on some of the real chips as manufactured. Acts the same as CMD_SPEAK, but makes the interpolator take two A cycles whereever it would normally only take one, effectively making speech of any given word take about twice as long as normal. */ +#define TMS5110_CMD_SPKSLOW (6) /* 0 1 1 x | 1 | Note: this command is undocumented on the datasheets, it only appears on the patents. It might not actually work properly on some of the real chips as manufactured. Acts the same as CMD_SPEAK, but makes the interpolator take three A cycles whereever it would normally only take one, effectively making speech of any given word take twice as long as normal. */ #define TMS5110_CMD_READ_BIT (8) /* 1 0 0 x | 1 */ #define TMS5110_CMD_SPEAK (10) /* 1 0 1 x | 1 */ #define TMS5110_CMD_READ_BRANCH (12) /* 1 1 0 x | 1 */ @@ -64,7 +64,6 @@ public: */ DECLARE_READ8_MEMBER( romclk_hack_r ); - int ready_r(); void set_frequency(int frequency); int _speech_rom_read_bit(); @@ -93,9 +92,7 @@ private: void new_int_write_addr(UINT8 addr); UINT8 new_int_read(); void register_for_save_states(); - void FIFO_data_write(int data); int extract_bits(int count); - void request_bits(int no); void perform_dummy_read(); INT32 lattice_filter(); void process(INT16 *buffer, unsigned int size); @@ -109,12 +106,6 @@ private: /* coefficient tables */ const struct tms5100_coeffs *m_coeff; - /* these contain data that describes the 4 bit "FIFO" */ - UINT8 m_fifo[FIFO_SIZE]; - UINT8 m_fifo_head; - UINT8 m_fifo_tail; - UINT8 m_fifo_count; - /* these contain global status bits */ UINT8 m_PDC; UINT8 m_CTL_pins; |