MAMEWorld Central >> EmuChat
View all threads Index   Flat Mode Flat  

mancinii
MAME Fan
Reged: 12/31/11
Posts: 91
Send PM
Re: Marcello
01/16/12 07:02 AM


* Taito "Indian Battle" */
/* Sept 2005, D.R. */
/*******************************************************/
static const discrete_dac_r1_ladder indianbt_music_dac =
{3, {0, RES_K(47), RES_K(12)}, 0, 0, 0, CAP_U(0.1)};

#define INDIANBT_MUSIC_CLK (7680.0*2*2*2)

/* Nodes - Inputs */
#define INDIANBT_MUSIC_DATA NODE_01
/* Nodes - Sounds */
#define INDIANBT_MUSIC NODE_11

DISCRETE_SOUND_START(indianbt)

DISCRETE_INPUT_DATA (INDIANBT_MUSIC_DATA)

/******************************************************************************
*
* Music Generator
*
******************************************************************************/
DISCRETE_NOTE(NODE_20, 1, INDIANBT_MUSIC_CLK, INDIANBT_MUSIC_DATA, 255, 5, DISC_CLK_IS_FREQ)

// Convert count to 7492 output
DISCRETE_TRANSFORM2(NODE_21, NODE_20, 2, "01>0+")

DISCRETE_DAC_R1(NODE_22, NODE_21, DEFAULT_TTL_V_LOGIC_1, &indianbt_music_dac)

/******************************************************************************
*
* Final Mixing and Output
*
******************************************************************************/
DISCRETE_CRFILTER(NODE_90, NODE_22, RES_K(10), CAP_U(0.1))

DISCRETE_OUTPUT(NODE_90, 21000)

DISCRETE_SOUND_END

WRITE8_HANDLER( indianbt_sh_port_1_w )
{
/* bit 4 occurs every 5.25 seconds during gameplay */
_8080bw_state *state = space->machine().driver_data<_8080bw_state>();
UINT8 rising_bits = data & ~state->m_port_1_last_extra;

if (rising_bits & 0x01) sample_start(state->m_samples, 1, 7, 0); /* Death */
if (rising_bits & 0x02) sample_start(state->m_samples, 0, 1, 0); /* Shot Sound */
if (rising_bits & 0x04) sample_start(state->m_samples, 2, 3, 0); /* Move */
if (rising_bits & 0x08) sample_start(state->m_samples, 3, 2, 0); /* Hit */

space->machine().sound().system_enable(data & 0x20);

state->m_screen_red = data & 0x01;

state->m_port_1_last_extra = data;
}

WRITE8_HANDLER( indianbt_sh_port_2_w )
{
_8080bw_state *state = space->machine().driver_data<_8080bw_state>();
UINT8 rising_bits = data & ~state->m_port_2_last_extra;

if (rising_bits & 0x01) sample_start(state->m_samples, 4, 0, 0); /* Bird dropped an egg, Lasso used */
if (rising_bits & 0x02) sample_start(state->m_samples, 4, 2, 0); /* Egg hatches, egg shot */
if (rising_bits & 0x08) sample_start(state->m_samples, 5, 0, 0); /* Grabber, Lasso caught something */
if (rising_bits & 0x10) sample_start(state->m_samples, 3, 7, 0); /* Lasso sound */

state->m_port_2_last_extra = data;
}

WRITE8_DEVICE_HANDLER( indianbt_sh_port_3_w )
{
discrete_sound_w(device, INDIANBT_MUSIC_DATA, data);
}







Será que eu entendi que tem um componente CHAMADO 7492?







Entire thread
Subject Posted by Posted on
* videos of Galactica - discrete audio and an entry for MAMETesters too gregf 01/11/12 01:03 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 07:47 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/07/12 09:03 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  05/17/12 06:26 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  05/17/12 06:28 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too Anonymous  03/14/12 01:37 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/14/12 02:14 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/20/12 10:09 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/21/12 03:26 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too redk9258Moderator  03/14/12 11:03 PM
. * I love you *nt* ScaledSprite  03/14/12 09:29 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:14 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/07/12 09:22 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:09 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/07/12 09:10 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:26 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too Lord Nightmare  03/07/12 11:19 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/07/12 10:58 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/08/12 01:28 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/08/12 01:38 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/08/12 02:28 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/08/12 02:45 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/08/12 03:17 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/08/12 03:21 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/08/12 03:46 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/08/12 05:26 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/09/12 03:11 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/09/12 03:14 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/11/12 08:37 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/11/12 08:03 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/14/12 02:37 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/14/12 02:45 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/14/12 03:05 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/14/12 03:08 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/14/12 03:18 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too Sune  03/14/12 09:14 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/14/12 10:20 PM
. * Indian Battle Music Board Derrick Renaud  03/18/12 02:27 PM
. * Re: Indian Battle Music Board mancinii  06/14/12 01:10 AM
. * Re: Indian Battle Music Board mancinii  04/04/12 06:29 AM
. * Re: Indian Battle Music Board mancinii  03/21/12 08:13 AM
. * Re: Indian Battle Music Board mancinii  03/19/12 03:26 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/11/12 09:20 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/09/12 03:36 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/08/12 10:35 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/08/12 02:36 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/07/12 09:31 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:47 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:42 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:38 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too mancinii  03/07/12 09:20 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too Master O  06/08/12 04:36 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too SmitdoggAdministrator  03/07/12 09:23 AM
. * D's thoughts Derrick Renaud  01/16/12 06:50 PM
. * Re: D's thoughts mancinii  06/08/12 03:23 AM
. * Re: D's thoughts Sune  06/08/12 04:06 AM
. * Re: D's thoughts mancinii  06/08/12 04:13 AM
. * Re: D's thoughts Sune  06/08/12 04:55 AM
. * Re: D's thoughts mancinii  06/08/12 05:45 AM
. * Re: D's thoughts mancinii  06/08/12 05:26 AM
. * Re: D's thoughts Sune  06/08/12 05:39 AM
. * Re: D's thoughts mancinii  06/08/12 05:53 AM
. * Re: D's thoughts Sune  06/08/12 06:15 AM
. * Re: D's thoughts mancinii  06/08/12 06:22 AM
. * Sune... translate please... Mr. DoAdministrator  06/08/12 04:27 AM
. * Re: Sune... translate please... mancinii  09/03/12 02:31 AM
. * Re: Sune... translate please... SmitdoggAdministrator  09/03/12 04:35 AM
. * Re: Sune... translate please... mancinii  06/08/12 05:08 AM
. * Re: Sune... translate please... mancinii  06/08/12 05:12 AM
. * Aeeee vc falou grosso!! Sune  06/08/12 05:09 AM
. * Galactica artwork Sune  06/08/12 05:01 AM
. * Re: Galactica artwork Mr. DoAdministrator  06/08/12 06:28 AM
. * Re: Sune... translate please... mancinii  06/08/12 04:44 AM
. * Re: D's thoughts gregf  01/17/12 12:30 AM
. * Re: D's thoughts Derrick Renaud  01/17/12 12:42 AM
. * Re: D's thoughts mancinii  02/29/12 09:22 AM
. * Re: D's thoughts mancinii  02/15/12 08:10 AM
. * Re: D's thoughts Sune  01/23/12 08:05 AM
. * Re: D's thoughts mancinii  02/23/12 06:55 AM
. * Re: D's thoughts mancinii  02/23/12 05:42 AM
. * Re: D's thoughts mancinii  02/13/12 10:41 PM
. * Re: D's thoughts mancinii  02/13/12 10:55 PM
. * Re: D's thoughts mancinii  02/08/12 08:01 AM
. * Translation Sune  02/08/12 07:48 PM
. * Re: D's thoughts mancinii  01/23/12 11:14 PM
. * Re: D's thoughts mancinii  01/18/12 04:32 AM
. * Re: D's thoughts mancinii  01/17/12 01:33 AM
. * Re: D's thoughts Sune  01/17/12 02:41 AM
. * Re: D's thoughts mancinii  01/17/12 03:45 AM
. * Translation + personal opinion Sune  01/17/12 06:15 AM
. * Re: Translation + personal opinion mancinii  01/20/12 03:17 AM
. * Re: Translation + personal opinion mancinii  01/20/12 03:21 AM
. * Re: Translation + personal opinion mancinii  01/20/12 03:25 AM
. * Re: Translation + personal opinion CptGuapo  01/23/12 12:02 AM
. * Re: Translation + personal opinion mancinii  01/23/12 01:32 AM
. * Re: Translation + personal opinion Moose  01/23/12 05:30 AM
. * Re: Translation + personal opinion mancinii  01/17/12 07:32 AM
. * Translation - 8080 trimpot/variable resistor info! Sune  01/17/12 03:58 AM
. * Re: Translation - 8080 trimpot/variable resistor info! mancinii  01/17/12 06:52 AM
. * Translation - corrected 8080 trimpot/variable resistor info! Sune  01/17/12 07:01 AM
. * Re: Translation - corrected 8080 trimpot/variable resistor info! R. Belmont  01/21/12 12:00 AM
. * Re: Translation - 8080 trimpot/variable resistor info! mancinii  01/17/12 04:46 AM
. * Re: D's thoughts Sune  01/17/12 01:22 AM
. * Re: D's thoughts mancinii  01/17/12 02:54 AM
. * Translation Sune  01/17/12 03:31 AM
. * Re: D's thoughts gregf  01/17/12 12:49 AM
. * Re: D's thoughts mancinii  01/18/12 08:07 AM
. * Re: D's thoughts mancinii  01/17/12 05:07 AM
. * Re: D's thoughts Sune  01/16/12 07:27 PM
. * Re: D's thoughts mancinii  01/16/12 11:17 PM
. * Translation Sune  01/17/12 03:44 AM
. * Re: D's thoughts mancinii  01/16/12 11:31 PM
. * Re: D's thoughts mancinii  01/16/12 11:46 PM
. * Re: D's thoughts mancinii  01/16/12 11:52 PM
. * Re: D's thoughts mancinii  01/17/12 12:14 AM
. * Re: D's thoughts Derrick Renaud  01/16/12 08:27 PM
. * Re: D's thoughts mancinii  01/16/12 10:28 PM
. * I get it Sune  01/12/12 03:27 AM
. * " You am Brazil! " gregf  01/12/12 10:30 PM
. * Okay, thanks guys... StilettoAdministrator  01/12/12 03:45 AM
. * Re: Okay, thanks guys... gregf  01/12/12 10:35 PM
. * Re: Okay, thanks guys... Sune  01/13/12 05:30 AM
. * Re: Okay, thanks guys... mancinii  01/16/12 01:01 AM
. * Re: Okay, thanks guys... mancinii  01/16/12 01:58 AM
. * Marcello Sune  01/16/12 01:21 AM
. * Re: Marcello mancinii  01/16/12 03:06 AM
. * Re: Marcello Sune  01/16/12 03:22 AM
. * Re: Marcello mancinii  01/16/12 04:11 AM
. * Translation Sune  01/16/12 04:30 AM
. * Re: Marcello mancinii  01/16/12 05:14 AM
. * Re: Marcello mancinii  01/16/12 05:16 AM
. * Re: Marcello mancinii  01/16/12 05:19 AM
. * Re: Marcello Sune  01/17/12 07:02 AM
. * Re: Marcello mancinii  01/17/12 09:10 AM
. * Re: Marcello mancinii  01/17/12 09:12 AM
. * Re: Marcello mancinii  01/17/12 09:16 AM
. * Re: Marcello mancinii  01/17/12 09:18 AM
. * Re: Marcello mancinii  01/17/12 08:53 AM
. * Re: Marcello mancinii  01/17/12 08:57 AM
. * Re: Marcello mancinii  01/16/12 05:41 AM
. * Re: Marcello mancinii  01/16/12 05:48 AM
. * Translation Sune  01/16/12 06:00 AM
. * Re: Marcello mancinii  01/16/12 08:43 AM
. * Re: Marcello mancinii  01/16/12 05:52 AM
. * Re: Marcello Sune  01/16/12 06:06 AM
. * Re: Marcello mancinii  01/16/12 07:02 AM
. * Re: Marcello Sune  01/16/12 04:03 PM
. * Re: Marcello mancinii  01/16/12 06:50 AM
. * Re: Marcello mancinii  01/16/12 06:38 AM
. * Re: Marcello mancinii  01/16/12 05:54 AM
. * Re: Marcello mancinii  01/16/12 05:10 AM
. * Re: Marcello mancinii  01/16/12 02:49 AM
. * Re: Marcello Sune  01/16/12 03:16 AM
. * If anyone wants to ask him something about the PCB, post here Sune  01/16/12 01:43 AM
. * Re: If anyone wants to ask him something about the PCB, post here Kitsune Sniper  01/16/12 03:58 AM
. * Re: If anyone wants to ask him something about the PCB, post here Sune  01/16/12 04:09 AM
. * Re: If anyone wants to ask him something about the PCB, post here mancinii  01/16/12 04:46 AM
. * Translation Sune  01/16/12 05:31 AM
. * Re: If anyone wants to ask him something about the PCB, post here mancinii  01/16/12 08:17 AM
. * Re: If anyone wants to ask him something about the PCB, post here Sune  01/16/12 04:12 PM
. * I guess Sune understands.... mogli  01/12/12 12:31 PM
. * Re: I guess Sune understands.... Sune  01/12/12 05:03 PM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too StilettoAdministrator  01/12/12 01:16 AM
. * Re: videos of Galactica - discrete audio and an entry for MAMETesters too gregf  01/12/12 02:38 AM

Extra information Permissions
Moderator:  redk9258, URherenow, Tafoid 
1 registered and 29 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 19016