Clean-ups and version bump

This commit is contained in:
Miodrag Milanovic 2012-06-11 08:00:48 +00:00
parent 5fb5795a27
commit f9f61e103a
54 changed files with 284 additions and 284 deletions

View File

@ -95,7 +95,7 @@ void i8008_device::device_start()
astring tempstr;
for (int addrnum = 0; addrnum < 8; addrnum++)
state_add(I8008_ADDR1 + addrnum, tempstr.format("ADDR%d", addrnum + 1), m_ADDR[addrnum].w.l).mask(0xfff);
init_tables();
}

View File

@ -39,10 +39,10 @@ protected:
virtual UINT32 execute_max_cycles() const;
virtual void execute_run();
virtual void execute_set_input(int inputnum, int state);
// device_memory_interface overrides
virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const;
// device_state_interface overrides
virtual void state_import(const device_state_entry &entry);
virtual void state_export(const device_state_entry &entry);
@ -53,7 +53,7 @@ protected:
virtual UINT32 disasm_min_opcode_bytes() const;
virtual UINT32 disasm_max_opcode_bytes() const;
virtual offs_t disasm_disassemble(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram, UINT32 options);
virtual void execute_one(int opcode);
void push_stack();
@ -68,10 +68,10 @@ protected:
void illegal(UINT8 opcode);
void take_interrupt();
void init_tables(void);
int m_pc_pos; // PC possition in ADDR
int m_icount;
// configuration
const address_space_config m_program_config;
const address_space_config m_io_config;
@ -85,11 +85,11 @@ protected:
UINT8 m_PF; // Parity flag
UINT8 m_HALT;
UINT8 m_flags; // temporary I/O only
UINT8 m_irq_state;
UINT8 m_PARITY[256];
address_space *m_program;
address_space *m_io;
direct_read_data *m_direct;

View File

@ -289,13 +289,13 @@ double duart68681_get_ct_rate(duart68681_state *duart68681)
UINT16 duart68681_get_ct_count(duart68681_state *duart68681)
{
double clock = duart68681_get_ct_rate(duart68681);
double clock = duart68681_get_ct_rate(duart68681);
return (duart68681->duart_timer->remaining() * clock).as_double();
}
void duart68681_start_ct(duart68681_state *duart68681, int count)
{
double clock = duart68681_get_ct_rate(duart68681);
double clock = duart68681_get_ct_rate(duart68681);
duart68681->duart_timer->adjust(attotime::from_hz(clock) * count, 0);
}
@ -600,7 +600,7 @@ READ8_DEVICE_HANDLER( duart68681_r )
case 0x05: /* ISR */
r = duart68681->ISR;
break;
case 0x06: /* CUR */
r = duart68681_get_ct_count(duart68681) >> 8;
break;
@ -608,7 +608,7 @@ READ8_DEVICE_HANDLER( duart68681_r )
case 0x07: /* CLR */
r = duart68681_get_ct_count(duart68681) & 0xff;
break;
case 0x08: /* MR1B/MR2B */
if ( duart68681->channel[1].MR_ptr == 0 )
{

View File

@ -9,10 +9,10 @@
/*
TODO:
TODO:
- memory-to-memory transfer
- external EOP
- memory-to-memory transfer
- external EOP
*/
@ -271,7 +271,7 @@ inline void am9517a_device::dma_advance()
if (MODE_ADDRESS_DECREMENT)
{
m_channel[m_current_channel].m_address--;
if ((m_channel[m_current_channel].m_address & 0xff) == 0xff)
{
msb_changed = true;
@ -280,7 +280,7 @@ inline void am9517a_device::dma_advance()
else
{
m_channel[m_current_channel].m_address++;
if ((m_channel[m_current_channel].m_address & 0xff) == 0x00)
{
msb_changed = true;
@ -314,11 +314,11 @@ inline void am9517a_device::dma_advance()
set_dack();
m_state = STATE_SI;
break;
case MODE_BLOCK:
m_state = get_state1(msb_changed);
break;
case MODE_CASCADE:
break;
}
@ -514,7 +514,7 @@ void am9517a_device::execute_run()
{
m_current_channel = -1;
m_state = STATE_SI;
}
}
set_dack();
break;
@ -527,13 +527,13 @@ void am9517a_device::execute_run()
set_dack();
m_state = COMMAND_COMPRESSED_TIMING ? STATE_S4 : STATE_S3;
break;
case STATE_S3:
dma_read();
if (COMMAND_EXTENDED_WRITE)
{
dma_write();
dma_write();
}
m_state = m_ready ? STATE_S4 : STATE_SW;
@ -542,7 +542,7 @@ void am9517a_device::execute_run()
case STATE_SW:
m_state = m_ready ? STATE_S4 : STATE_SW;
break;
case STATE_S4:
if (COMMAND_COMPRESSED_TIMING)
{
@ -556,7 +556,7 @@ void am9517a_device::execute_run()
dma_advance();
break;
case STATE_S11:
m_current_channel = 0;
@ -570,27 +570,27 @@ void am9517a_device::execute_run()
case STATE_S13:
m_state = STATE_S14;
break;
case STATE_S14:
dma_read();
m_state = STATE_S21;
break;
case STATE_S21:
m_current_channel = 1;
m_state = STATE_S22;
break;
case STATE_S22:
m_state = STATE_S23;
break;
case STATE_S23:
m_state = STATE_S24;
break;
case STATE_S24:
dma_write();
dma_advance();
@ -603,7 +603,7 @@ void am9517a_device::execute_run()
//-------------------------------------------------
// read -
// read -
//-------------------------------------------------
READ8_MEMBER( am9517a_device::read )
@ -655,7 +655,7 @@ READ8_MEMBER( am9517a_device::read )
case REGISTER_TEMPORARY:
data = m_temp;
break;
case REGISTER_MASK:
data = m_mask;
break;
@ -667,7 +667,7 @@ READ8_MEMBER( am9517a_device::read )
//-------------------------------------------------
// write -
// write -
//-------------------------------------------------
WRITE8_MEMBER( am9517a_device::write )
@ -675,7 +675,7 @@ WRITE8_MEMBER( am9517a_device::write )
if (!BIT(offset, 3))
{
int channel = (offset >> 1) & 0x03;
switch (offset & 0x01)
{
case REGISTER_ADDRESS:
@ -737,7 +737,7 @@ WRITE8_MEMBER( am9517a_device::write )
if (LOG) logerror("AM9517A '%s' Request Register: %01x\n", tag(), m_request);
}
break;
case REGISTER_SINGLE_MASK:
{
int channel = data & 0x03;
@ -754,7 +754,7 @@ WRITE8_MEMBER( am9517a_device::write )
if (LOG) logerror("AM9517A '%s' Mask Register: %01x\n", tag(), m_mask);
}
break;
case REGISTER_MODE:
{
int channel = data & 0x03;
@ -767,25 +767,25 @@ WRITE8_MEMBER( am9517a_device::write )
if (LOG) logerror("AM9517A '%s' Channel %u Mode: %02x\n", tag(), channel, data & 0xfc);
}
break;
case REGISTER_BYTE_POINTER:
if (LOG) logerror("AM9517A '%s' Clear Byte Pointer Flip-Flop\n", tag());
m_msb = 0;
break;
case REGISTER_MASTER_CLEAR:
if (LOG) logerror("AM9517A '%s' Master Clear\n", tag());
device_reset();
break;
case REGISTER_CLEAR_MASK:
if (LOG) logerror("AM9517A '%s' Clear Mask Register\n", tag());
m_mask = 0;
break;
case REGISTER_MASK:
m_mask = data & 0x0f;

View File

@ -128,7 +128,7 @@ private:
devcb_resolved_write_line m_out_eop_func;
devcb_resolved_read8 m_in_memr_func;
devcb_resolved_write8 m_out_memw_func;
struct
{
devcb_resolved_read8 m_in_ior_func;
@ -161,6 +161,6 @@ private:
// device type definition
extern const device_type AM9517A;
#endif

View File

@ -74,14 +74,14 @@ inline void im6402_device::set_tre(int state)
inline void im6402_device::receive_bit(int state)
{
if (LOG) logerror("IM6402 '%s' Receive Bit %u\n", tag(), state);
receive_register_update_bit(state);
if (is_receive_register_full())
{
receive_register_extract();
m_rbr = get_received_char();
if (LOG) logerror("IM6402 '%s' Receive Data %02x\n", tag(), m_rbr);
if (m_dr)
@ -90,7 +90,7 @@ inline void im6402_device::receive_bit(int state)
}
set_dr(ASSERT_LINE);
}
}
}
@ -283,7 +283,7 @@ void im6402_device::device_timer(emu_timer &timer, device_timer_id id, int param
void im6402_device::input_callback(UINT8 state)
{
int bit = (state & SERIAL_STATE_RX_DATA) ? 1 : 0;
receive_bit(bit);
}
@ -496,7 +496,7 @@ WRITE_LINE_MEMBER( im6402_device::pi_w )
WRITE_LINE_MEMBER( im6402_device::sbs_w )
{
if (LOG) logerror("IM6402 '%s' Stop Bit Select %u\n", tag(), state);
m_sbs = state;
}
@ -520,7 +520,7 @@ WRITE_LINE_MEMBER( im6402_device::cls1_w )
WRITE_LINE_MEMBER( im6402_device::cls2_w )
{
if (LOG) logerror("IM6402 '%s' Character Length Select 2 %u\n", tag(), state);
m_cls2 = state;
}

View File

@ -130,7 +130,7 @@ private:
inline void receive();
inline void transmit();
enum
enum
{
TIMER_RX,
TIMER_TX

View File

@ -309,7 +309,7 @@ WRITE8_MEMBER( mc2661_device::write )
case REGISTER_SYNC:
if (LOG) logerror("MC2661 '%s' Sync Register %u: %02x\n", tag(), m_sync_index + 1, data);
m_sync[m_sync_index] = data;
m_sync_index++;
@ -329,16 +329,16 @@ WRITE8_MEMBER( mc2661_device::write )
switch (MODE_STOP_BITS)
{
case STOP_BITS_1: stop_bits = 1; break;
case STOP_BITS_1_5: stop_bits = 1.5; break;
case STOP_BITS_2: stop_bits = 2; break;
case STOP_BITS_1: stop_bits = 1; break;
case STOP_BITS_1_5: stop_bits = 1.5; break;
case STOP_BITS_2: stop_bits = 2; break;
}
if (!MODE_PARITY) parity_code = SERIAL_PARITY_NONE;
else if (MODE_PARITY_EVEN) parity_code = SERIAL_PARITY_EVEN;
else parity_code = SERIAL_PARITY_ODD;
set_data_frame(word_length, stop_bits, parity_code);
set_data_frame(word_length, stop_bits, parity_code);
}
m_mode_index++;

View File

@ -108,7 +108,7 @@ private:
inline void receive();
inline void transmit();
enum
enum
{
TIMER_RX,
TIMER_TX

View File

@ -168,7 +168,7 @@ void ram_device::device_validity_check(validity_checker &valid) const
mame_printf_warning("Setting value to default %s\n",m_default_size);
astring error;
mconfig().options().set_value(OPTION_RAMSIZE, m_default_size, OPTION_PRIORITY_CMDLINE, error);
assert(!error);
assert(!error);
}
}

View File

@ -96,7 +96,7 @@ machine_config::machine_config(const game_driver &gamedrv, emu_options &options)
device_t *new_dev = device_add(&owner, intf[i].name, intf[i].devtype, is_default ? slot->default_clock() : 0);
found = true;
if (is_default) {
device_t::static_set_input_default(*new_dev, slot->input_ports_defaults());
device_t::static_set_input_default(*new_dev, slot->input_ports_defaults());
if (slot->default_config()) {
device_t::static_set_static_config(*new_dev, slot->default_config());
}

View File

@ -259,8 +259,8 @@ void pokey_device::device_start()
vol_init();
/* The pokey does not have a reset line. These should be initialized
* with random values.
*/
* with random values.
*/
m_KBCODE = 0x09; /* Atari 800 'no key' */
m_SKCTL = SK_RESET; /* let the RNG run after reset */
@ -454,7 +454,7 @@ void pokey_device::execute_run()
do
{
// debugging
//m_ppc = m_pc; // copy PC to previous PC
//m_ppc = m_pc; // copy PC to previous PC
if (check_debugger)
debugger_instruction_hook(this, 0); //m_pc);
@ -728,8 +728,8 @@ void pokey_device::sound_stream_update(sound_stream &stream, stream_sample_t **i
out = (out > 0x7fff) ? 0x7fff : out;
while( samples > 0 )
{
*buffer++ = out;
samples--;
*buffer++ = out;
samples--;
}
}
else if (m_output_type == RC_LOWPASS)
@ -741,51 +741,51 @@ void pokey_device::sound_stream_update(sound_stream &stream, stream_sample_t **i
while( samples > 0 )
{
/* store sum of output signals into the buffer */
m_out_filter += (V0 - m_out_filter) * mult;
*buffer++ = m_out_filter;
samples--;
/* store sum of output signals into the buffer */
m_out_filter += (V0 - m_out_filter) * mult;
*buffer++ = m_out_filter;
samples--;
}
}
else if (m_output_type == OPAMP_C_TO_GROUND)
{
double rTot = m_voltab[m_output];
/* In this configuration there is a capacitor in parallel to the pokey output to ground.
* With a LM324 in LTSpice this causes the opamp circuit to oscillate at around 100 kHz.
* We are ignoring the capacitor here, since this oscillation would not be audible.
*/
/* In this configuration there is a capacitor in parallel to the pokey output to ground.
* With a LM324 in LTSpice this causes the opamp circuit to oscillate at around 100 kHz.
* We are ignoring the capacitor here, since this oscillation would not be audible.
*/
/* This post-pokey stage usually has a high-pass filter behind it
* It is approximated by eliminating m_v_ref ( -1.0 term)
*/
/* This post-pokey stage usually has a high-pass filter behind it
* It is approximated by eliminating m_v_ref ( -1.0 term)
*/
double V0 = ((rTot+m_r_pullup) / rTot - 1.0) * m_v_ref / 5.0 * 32767.0;
while( samples > 0 )
{
/* store sum of output signals into the buffer */
*buffer++ = V0;
samples--;
/* store sum of output signals into the buffer */
*buffer++ = V0;
samples--;
}
}
else if (m_output_type == OPAMP_LOW_PASS)
{
double rTot = m_voltab[m_output];
/* This post-pokey stage usually has a low-pass filter behind it
* It is approximated by not adding in VRef below.
*/
/* This post-pokey stage usually has a low-pass filter behind it
* It is approximated by not adding in VRef below.
*/
double V0 = (m_r_pullup / rTot) * m_v_ref / 5.0 * 32767.0;
double mult = (m_cap == 0.0) ? 1.0 : 1.0 - exp(-1.0 / (m_cap * m_r_pullup) * m_clock_period.as_double());
while( samples > 0 )
{
/* store sum of output signals into the buffer */
m_out_filter += (V0 - m_out_filter) * mult;
*buffer++ = m_out_filter /* + m_v_ref */; // see above
samples--;
/* store sum of output signals into the buffer */
m_out_filter += (V0 - m_out_filter) * mult;
*buffer++ = m_out_filter /* + m_v_ref */; // see above
samples--;
}
}
else if (m_output_type == DISCRETE_VAR_R)
@ -793,8 +793,8 @@ void pokey_device::sound_stream_update(sound_stream &stream, stream_sample_t **i
INT32 out = m_voltab[m_output];
while( samples > 0 )
{
*buffer++ = out;
samples--;
*buffer++ = out;
samples--;
}
}
}
@ -1112,8 +1112,8 @@ void pokey_device::pokey_potgo(void)
if (r == 0)
{
/* immediately set the ready - bit of m_ALLPOT
* In this case, most likely no capacitor is connected
*/
* In this case, most likely no capacitor is connected
*/
m_ALLPOT |= (1<<pot);
}
@ -1128,8 +1128,8 @@ void pokey_device::vol_init()
double resistors[4] = {90000, 26500, 8050, 3400};
double pull_up = 10000;
/* just a guess, there has to be a resistance since the doc specifies that
* Vout is at least 4.2V if all channels turned off.
*/
* Vout is at least 4.2V if all channels turned off.
*/
double r_off = 8e6;
double r_chan[16];
double rTot;
@ -1276,12 +1276,12 @@ char *pokey_device::audctl2str(int val)
pokey_device::pokey_channel::pokey_channel()
: m_AUDF(0),
m_AUDC(0),
m_AUDC(0),
m_borrow_cnt(0),
m_counter(0),
m_output(0),
m_filter_sample(0),
m_div2(0)
m_counter(0),
m_output(0),
m_filter_sample(0),
m_div2(0)
{
}

View File

@ -180,8 +180,8 @@ public:
enum /* sync-operations */
{
SYNC_NOOP = 11,
SYNC_SET_IRQST = 12,
SYNC_NOOP = 11,
SYNC_SET_IRQST = 12,
SYNC_POT = 13,
SYNC_WRITE = 14
};

View File

@ -412,7 +412,7 @@ const char *ui_menu_slot_devices::slot_get_prev(device_slot_interface *slot)
if (idx==-2) idx = slot_get_length(slot) -1;
if (idx==-1) return "";
if (slot->get_slot_interfaces()[idx].internal) idx--;
} while (slot->get_slot_interfaces()[idx].internal);
} while (slot->get_slot_interfaces()[idx].internal);
return slot->get_slot_interfaces()[idx].name;
}
@ -479,7 +479,7 @@ void ui_menu_slot_devices::handle()
if (menu_event != NULL && menu_event->itemref != NULL)
{
if (menu_event->iptkey == IPT_UI_LEFT || menu_event->iptkey == IPT_UI_RIGHT) {
device_slot_interface *slot = (device_slot_interface *)menu_event->itemref;
device_slot_interface *slot = (device_slot_interface *)menu_event->itemref;
const char *val = (menu_event->iptkey == IPT_UI_LEFT) ? slot_get_prev(slot) : slot_get_next(slot);
set_slot_device(slot,val);
reset(UI_MENU_RESET_REMEMBER_REF);

View File

@ -3,7 +3,7 @@
formats/esq16_dsk.c
Formats for 16-bit Ensoniq synthesizers and samplers
Disk is PC MFM, 80 tracks, double-sided, with 10 sectors per track
*********************************************************************/

View File

@ -3,7 +3,7 @@
formats/esq16_dsk.h
Formats for 16-bit Ensoniq synthesizers and samplers
Disk is PC MFM, 80 tracks, double-sided, with 10 sectors per track
*********************************************************************/

View File

@ -575,7 +575,7 @@ const char *core_options::value(const char *name) const
//-------------------------------------------------
// priority - return the priority of option
// priority - return the priority of option
//-------------------------------------------------
int core_options::priority(const char *name) const

View File

@ -53,11 +53,11 @@ static const pokey_interface pokey_interface_2 =
#define BW_C33 CAP_U(0.22)
static discrete_op_amp_filt_info stage1_bwidow_info = {
BW_R45, 0, 0, 0, /* r1 .. r4 */
BW_R45, 0, 0, 0, /* r1 .. r4 */
BW_R43, /* rF */
BW_C27, /* C1 */
BW_C30, /* C2 */
0, /* C3 */
0, /* C3 */
0.0, /* vRef */
15.0, /* vP */
-15.0, /* vN */
@ -67,7 +67,7 @@ static discrete_op_amp_filt_info stage1_bwidow_info = {
static discrete_op_amp_filt_info stage2_bwidow_info = {
BW_R48, 0, 0, 0, /* r1 .. r4 */
BW_R44, /* rF */
BW_C28, /* C1 */ /* on schematic, not on parts list, gravitar retrofit manual says not needed - so what? */
BW_C28, /* C1 */ /* on schematic, not on parts list, gravitar retrofit manual says not needed - so what? */
0, /* C2 */
0, /* C3 */
0.0, /* vRef */
@ -76,7 +76,7 @@ static discrete_op_amp_filt_info stage2_bwidow_info = {
};
static discrete_mixer_desc bwidow_mixer = {
DISC_MIXER_IS_OP_AMP, /* type */
DISC_MIXER_IS_OP_AMP, /* type */
{ BW_R49, BW_R46 }, /* r{} */
{}, /* r_node */
{ BW_C33, 0 }, /* c{} */
@ -111,11 +111,11 @@ DISCRETE_SOUND_END
#define GRAV_C27 CAP_N(1)
static discrete_op_amp_filt_info stage1_gravitar_info = {
BW_R45, 0, 0, 0, /* r1 .. r4 */
BW_R45, 0, 0, 0, /* r1 .. r4 */
BW_R43, /* rF */
GRAV_C27, /* C1 */
BW_C30, /* C2 */
0, /* C3 */
0, /* C3 */
0.0, /* vRef */
15.0, /* vP */
-15.0, /* vN */
@ -125,7 +125,7 @@ static discrete_op_amp_filt_info stage1_gravitar_info = {
static discrete_op_amp_filt_info stage2_gravitar_info = {
BW_R48, 0, 0, 0, /* r1 .. r4 */
BW_R44, /* rF */
BW_C28, /* C1 */ /* on schematic, not on parts list, gravitar retrofit manual says not needed - so what? */
BW_C28, /* C1 */ /* on schematic, not on parts list, gravitar retrofit manual says not needed - so what? */
0, /* C2 */
0, /* C3 */
0.0, /* vRef */
@ -134,7 +134,7 @@ static discrete_op_amp_filt_info stage2_gravitar_info = {
};
static discrete_mixer_desc gravitar_mixer = {
DISC_MIXER_IS_OP_AMP, /* type */
DISC_MIXER_IS_OP_AMP, /* type */
{ BW_R49, GRAV_R46 }, /* r{} */
{}, /* r_node */
{ BW_C33, 0 }, /* c{} */

View File

@ -2,9 +2,9 @@
Taito Ensoniq ES5505-based sound hardware
TODO:
TODO:
* Implement ES5510 ESP
* Implement ES5510 ESP
****************************************************************************/
@ -20,7 +20,7 @@
* Statics
*
*************************************/
static UINT16 es5510_dsp_ram[0x200];
static UINT32 es5510_gpr[0xc0];
static UINT32 es5510_dram[1<<24];
@ -37,7 +37,7 @@ static UINT32 *snd_shared_ram;
* Handlers
*
*************************************/
static READ16_HANDLER( en_68000_share_r )
{
switch (offset & 3)
@ -217,7 +217,7 @@ ADDRESS_MAP_END
* Reset
*
*************************************/
SOUND_RESET( taito_en_soundsystem_reset )
{
/* Sound cpu program loads to 0xc00000 so we use a bank */
@ -251,7 +251,7 @@ static void mb87078_gain_changed( running_machine &machine, int channel, int per
if (channel < 2)
{
es5505_device *es5505 = machine.device<es5505_device>("ensoniq");
es5505->set_output_gain(channel, percent / 100.0);
}
}
@ -262,17 +262,17 @@ static void mb87078_gain_changed( running_machine &machine, int channel, int per
* M68681 callback
*
*************************************/
static void taito_en_duart_irq_handler(device_t *device, int state, UINT8 vector)
{
if (state == ASSERT_LINE)
{
{
device_set_input_line_vector(device->machine().device("audiocpu"), M68K_IRQ_6, vector);
device_set_input_line(device->machine().device("audiocpu"), M68K_IRQ_6, ASSERT_LINE);
device_set_input_line(device->machine().device("audiocpu"), M68K_IRQ_6, ASSERT_LINE);
}
else
{
device_set_input_line(device->machine().device("audiocpu"), M68K_IRQ_6, CLEAR_LINE);
device_set_input_line(device->machine().device("audiocpu"), M68K_IRQ_6, CLEAR_LINE);
}
}
@ -282,7 +282,7 @@ static void taito_en_duart_irq_handler(device_t *device, int state, UINT8 vector
* Device interfaces
*
*************************************/
static const duart68681_config taito_en_duart68681_config =
{
taito_en_duart_irq_handler,
@ -309,7 +309,7 @@ static const es5505_interface es5505_taito_en_config =
* Machine driver
*
*************************************/
MACHINE_CONFIG_FRAGMENT( taito_en_sound )
MCFG_CPU_ADD("audiocpu", M68000, XTAL_16MHz)
MCFG_CPU_PROGRAM_MAP(en_sound_map)

View File

@ -654,19 +654,19 @@ WRITE8_MEMBER(atarisy2_state::mixer_w)
/* these gains are cheesed up, but give an approximate effect */
/*
* Before the volume adjustment, all channels pass through
* a high-pass filter which removes DC components. The
* filter frequency does also depend on the settings on
* the resistors.
*
* The op-amp after the pokey feeds mixes the op-amp output voltage
* with a low impedance back to the input. The internal resistance of the
* pokey now is the ground pole of a three pole resistor mixer: ground,
* 15V and op-amp output voltage.
*
* ==> DISCRETE candidate
*
*/
* Before the volume adjustment, all channels pass through
* a high-pass filter which removes DC components. The
* filter frequency does also depend on the settings on
* the resistors.
*
* The op-amp after the pokey feeds mixes the op-amp output voltage
* with a low impedance back to the input. The internal resistance of the
* pokey now is the ground pole of a three pole resistor mixer: ground,
* 15V and op-amp output voltage.
*
* ==> DISCRETE candidate
*
*/
/* bits 0-2 control the volume of the YM2151, using 22k, 47k, and 100k resistors */
rtop = 1.0/(1.0/100 + 1.0/100);

View File

@ -183,7 +183,7 @@ public:
m_vfd1(*this, "vfd1")
{ }
optional_device<bfm_bd1_t> m_vfd0;
optional_device<bfm_bd1_t> m_vfd0;
optional_device<bfm_bd1_t> m_vfd1;
int m_sc2gui_update_mmtr;

View File

@ -10,8 +10,8 @@
This file contains the set lists only, for the actual hardware
emulation see bfm_sc4h.c
However, the handlers for DMD are currently here, because we only
have it hooked up for one game, there must be more.
However, the handlers for DMD are currently here, because we only
have it hooked up for one game, there must be more.
note: default Jackpot keys are set to whatever value the game

View File

@ -480,7 +480,7 @@ void bfm_sc4_write_serial_vfd(running_machine &machine, bool cs, bool clock, boo
if ( !clock )
{
//Should move to the internal serial process when DM01 is device-ified
// m_vfd0->shift_data(!data);
// m_vfd0->shift_data(!data);
state->vfd_ser_value <<= 1;
if (data) state->vfd_ser_value |= 1;
@ -491,7 +491,7 @@ void bfm_sc4_write_serial_vfd(running_machine &machine, bool cs, bool clock, boo
if (machine.device("matrix"))
{
BFM_dm01_writedata(machine,state->vfd_ser_value);
}
}
else
{
state->m_vfd0->write_char(state->vfd_ser_value);

View File

@ -785,7 +785,7 @@ Rom Component Equivalents & Locations:
Program rom locations as same as redbarona listed below
*/
ROM_START( redbaron ) /* Analog Vec Gen A035742-02 Rev. C+ */
ROM_REGION( 0x8000, "maincpu", 0 )

View File

@ -1088,7 +1088,7 @@ MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( armora, cinemat_jmi_16k )
MCFG_FRAGMENT_ADD(armora_sound)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( ripoff, cinemat_jmi_8k )
MCFG_FRAGMENT_ADD(ripoff_sound)

View File

@ -239,9 +239,9 @@ static ADDRESS_MAP_START( main_io_map, AS_IO, 8, clayshoo_state )
AM_RANGE(0x00, 0x00) AM_WRITE(watchdog_reset_w)
AM_RANGE(0x20, 0x23) AM_DEVREADWRITE("ppi8255_0", i8255_device, read, write)
AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255_1", i8255_device, read, write)
// AM_RANGE(0x40, 0x43) AM_NOP // 8253 for sound?
// AM_RANGE(0x50, 0x50) AM_NOP // ?
// AM_RANGE(0x60, 0x60) AM_NOP // ?
// AM_RANGE(0x40, 0x43) AM_NOP // 8253 for sound?
// AM_RANGE(0x50, 0x50) AM_NOP // ?
// AM_RANGE(0x60, 0x60) AM_NOP // ?
ADDRESS_MAP_END

View File

@ -667,7 +667,7 @@ WRITE8_MEMBER(dec0_automat_state::automat_adpcm_w)
static ADDRESS_MAP_START( automat_s_map, AS_PROGRAM, 8, dec0_automat_state )
AM_RANGE(0xc000, 0xc7ff) AM_RAM
AM_RANGE(0xc800, 0xc801) AM_DEVWRITE_LEGACY("2203a", ym2203_w)
AM_RANGE(0xd800, 0xd800) AM_READ(soundlatch_byte_r)
AM_RANGE(0xd800, 0xd800) AM_READ(soundlatch_byte_r)
AM_RANGE(0xd000, 0xd001) AM_DEVWRITE_LEGACY("2203b", ym2203_w)
AM_RANGE(0xf000, 0xf000) AM_WRITE(automat_adpcm_w)
AM_RANGE(0x0000, 0xffff) AM_ROM
@ -1423,7 +1423,7 @@ static void automat_vclk_cb(device_t *device)
else
{
msm5205_data_w(device, state->m_automat_adpcm_byte >> 4);
// cputag_set_input_line(device->machine(), "maincpu", INPUT_LINE_NMI, PULSE_LINE);
// cputag_set_input_line(device->machine(), "maincpu", INPUT_LINE_NMI, PULSE_LINE);
}
state->m_automat_msm5205_vclk_toggle ^= 1;

View File

@ -172,13 +172,13 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, destiny_state )
AM_RANGE(0x9003, 0x9003) AM_READ_PORT("KEY1")
AM_RANGE(0x9004, 0x9004) AM_READ_PORT("KEY2")
AM_RANGE(0x9005, 0x9005) AM_READ_PORT("DIPSW") AM_WRITE(out_w)
// AM_RANGE(0x9006, 0x9006) AM_NOP // printer motor on
// AM_RANGE(0x9007, 0x9007) AM_NOP // printer data
// AM_RANGE(0x9006, 0x9006) AM_NOP // printer motor on
// AM_RANGE(0x9007, 0x9007) AM_NOP // printer data
AM_RANGE(0x900a, 0x900a) AM_WRITE(sound_on_w)
AM_RANGE(0x900b, 0x900b) AM_WRITE(sound_off_w)
AM_RANGE(0x900c, 0x900c) AM_WRITE(bank_select_w)
// AM_RANGE(0x900d, 0x900d) AM_NOP // printer motor off
// AM_RANGE(0x900e, 0x900e) AM_NOP // printer motor jam reset
// AM_RANGE(0x900d, 0x900d) AM_NOP // printer motor off
// AM_RANGE(0x900e, 0x900e) AM_NOP // printer motor jam reset
AM_RANGE(0xc000, 0xffff) AM_ROM
ADDRESS_MAP_END
@ -222,7 +222,7 @@ static INPUT_PORTS_START( destiny )
PORT_DIPSETTING( 0x20, DEF_STR( On ) )
PORT_DIPNAME( 0xc0, 0x00, "Operation Mode" ) PORT_DIPLOCATION("SW1:7,8")
PORT_DIPSETTING( 0x00, "Normal Mode" )
// PORT_DIPSETTING( 0x40, "Normal Mode" ) // dupe
// PORT_DIPSETTING( 0x40, "Normal Mode" ) // dupe
PORT_DIPSETTING( 0x80, "Test Mode" )
PORT_DIPSETTING( 0xc0, "I/O Test" )

View File

@ -3151,9 +3151,9 @@ The base board for the conversion dates from 1981.
Base Board
----------
There are 2 x Toshiba 2114, 2 x Mitsubushi 2101 and 5 x Intel 2115 making up
the video RAM. There are 6 ROM sockets for the video ROM but the daughter card
only connects to two of them. I believe that this is a version of
There are 2 x Toshiba 2114, 2 x Mitsubushi 2101 and 5 x Intel 2115 making up
the video RAM. There are 6 ROM sockets for the video ROM but the daughter card
only connects to two of them. I believe that this is a version of
Scramble/Galaxians video hardware.
There are 4 x Toshiba 2114 that make up the CPU RAM. There are 8 ROM sockets

View File

@ -1062,13 +1062,13 @@ WRITE32_MEMBER( hng64_state::hng64_soundcpu_enable_w )
}
else
{
printf("unknown hng64_soundcpu_enable_w cmd %04x\n", cmd);
printf("unknown hng64_soundcpu_enable_w cmd %04x\n", cmd);
}
}
if (mem_mask&0x0000ffff)
{
printf("unknown hng64_soundcpu_enable_w %08x %08x\n", data, mem_mask);
printf("unknown hng64_soundcpu_enable_w %08x %08x\n", data, mem_mask);
}
}
@ -1165,7 +1165,7 @@ static ADDRESS_MAP_START( hng_map, AS_PROGRAM, 32, hng64_state )
AM_RANGE(0x30200000, 0x3025ffff) AM_READWRITE(hng64_3d_2_r, hng64_3d_2_w) AM_SHARE("3d_2") // 3D Display Buffer B
// Sound
// AM_RANGE(0x60000000, 0x601fffff) AM_READWRITE(hng64_soundram2_r, hng64_soundram2_w) // if this area acts as RAM then xrally will copy the sound program here and blank out the usual area below. None of the other games test this as sound ram (usually just write to the first byte) -- maybe it's actually unmapped?
// AM_RANGE(0x60000000, 0x601fffff) AM_READWRITE(hng64_soundram2_r, hng64_soundram2_w) // if this area acts as RAM then xrally will copy the sound program here and blank out the usual area below. None of the other games test this as sound ram (usually just write to the first byte) -- maybe it's actually unmapped?
AM_RANGE(0x60200000, 0x603fffff) AM_READWRITE(hng64_soundram_r, hng64_soundram_w) // uploads the v53 sound program here, elsewhere on ss64-2
// These are sound ports of some sort

View File

@ -318,8 +318,8 @@ static MACHINE_CONFIG_START( irobot, irobot_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
/* FIXME: I-Robot has all channels of the quad-pokey tied together
* This needs to be taken into account in the design.
*/
* This needs to be taken into account in the design.
*/
MCFG_POKEY_ADD("pokey1", MAIN_CLOCK/8)
MCFG_POKEY_CONFIG(pokey_config)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)

View File

@ -1,20 +1,20 @@
/***************************************************************************
GX800 (Konami Test board)
GX800 (Konami Test board)
driver by Angelo Salese
driver by Angelo Salese
Notes:
Z80, 8KB RAM, 2 * SN76489AN for sound, TTLs for video/misc
There are 5 x 005273 (Konami custom resistor array (SIL10)) on the PCB,
also seen on Jail Break HW
menu translation:
* screen distortion adjustment normal
* screen distortion adjustment wide
* input/output check
* color check
* sound check
Notes:
Z80, 8KB RAM, 2 * SN76489AN for sound, TTLs for video/misc
There are 5 x 005273 (Konami custom resistor array (SIL10)) on the PCB,
also seen on Jail Break HW
menu translation:
* screen distortion adjustment normal
* screen distortion adjustment wide
* input/output check
* color check
* sound check
***************************************************************************/
@ -153,7 +153,7 @@ WRITE8_MEMBER(kontest_state::control_w)
// d2: ? (reset during 1st grid test and color test)
// other bits: ?
m_control = data;
device_set_input_line(m_maincpu, 0, CLEAR_LINE);
}

View File

@ -87,50 +87,50 @@
| '----------' '-----------' '----------' '----------' '-----------' '-------------' '-------------' |
'--. .------. .-----. conn .-----------. .----------. .----------. .-----------. .-------------. .-------------. |
| |S12MD3| | ??? | |HD74LS161AP| |HD74LS86P | |HD74LS157P| |HD74LS245P | | 6116ALSP-12 | | 6116ALSP-12 | B |
| '------' '-----' '-----------' '----------' '----------' '-----------' '-------------' '-------------' |
| '------' '-----' '-----------' '----------' '----------' '-----------' '-------------' '-------------' |
.--' 36 .-----------. .-----------. .-----------. .----------. .----------. .-----------. .--------------. .--------------. |
|-- |HD74LS174P | | TBP24S10N | | TBP24S10N | |HD74LS86P | |HD74LS86P | |HD74LS273P | | | | | C |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' | 06B49P | | M5L8251AP-5 | |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' | 06B49P | | M5L8251AP-5 | |
|-- .-----------. .-----------. .-----------. .----------. .----------. .-----------. | | | | |
|-- |HD74LS174P | | TBP24S10N | | TBP24S10N | |HD74LS08P | |HD74LS86P | |HD74LS273P | >--------------< >--------------< D |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' | | | | |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' | | | | |
|-- .-----------. .-----------. .-----------. .----------. .----------. .-----------. | 06B53P | | 06B53P | |
|-- |HD74LS174P | | TBP24S10N | | TBP24S10N | |HD74LS21P | |HD74LS08P | |HD74LS240P | | | | | E |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' '--------------' '--------------' |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' '--------------' '--------------' |
|-- .-----------. .-----------. .-----------. .----------. .----------. .-----------. .--------------. .--------------. |
|-- |HD74LS367AP| | HD74LS08P | | HD7425P | |HD74LS138P| |HD74LS138P| |HD74LS245P | |11 | |16 | F |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' | M27512 | | M27512 | |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' | M27512 | | M27512 | |
|-- .-----------. .-----------. .-----------. .----------. .----------. .-----------. | | | | |
|-- |HD74LS174AP| | HD74LS10P | | HD74LS04P | |HD74LS138P| |HD74LS138P| |HD74LS245P | >--------------< >--------------< H |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' |12 | |17 | |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' |12 | |17 | |
|-- .-----------. .-----------. .-----------. .----------. .----------. .-----------. | M27512 | | M27512 | |
|-- |HD74LS174AP| | HD74LS10P | |HD74LS139P | |HD74LS32P | |HD74LS08P | |HD74LS273P | | | | | J |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' >--------------< >--------------< |
|-- '-----------' '-----------' '-----------' '----------' '----------' '-----------' >--------------< >--------------< |
|-- .-------------------------------. .----------. .----------. .-----------. |13 | |18 | |
|-- | | | SW1 (x8) | |HD74LS157P| |HD74LS240P | | M27512 | | M27512 | K |
|-- | MITSUBISHI | '----------' '----------' '-----------' | | | | |
|-- | MITSUBISHI | '----------' '----------' '-----------' | | | | |
|-- | M5M82C255ASP | .----------. .----------. .-----------. >--------------< >--------------< |
|-- | | | SW2 (x8) | |HD74LS32P | |HD74LS240P | |14 | |19 | L |
|-- '-------------------------------' '----------' '----------' '-----------' | M27512 | | M27512 | |
|-- '-------------------------------' '----------' '----------' '-----------' | M27512 | | M27512 | |
|-- .-------------------------------. .----------. .----------. .-----------. | | | | |
|-- | | | SW3 (x8) | |HD74LS32P | |HD74LS244P | >--------------< >--------------< M |
|-- | MITSUBISHI | '----------' '----------' '-----------' |15 | |EMPTY | |
|-- | MITSUBISHI | '----------' '----------' '-----------' |15 | |EMPTY | |
|-- | M5M82C255ASP | .----------. .----------. .-----------. | M27512 | | (M27512) | |
|-- | | | SW4 (x8) | | TC4019BP | |HD74LS240P | | | | | N |
|-- '-------------------------------' '----------' '----------' '-----------' '--------------' '--------------' |
|-- '-------------------------------' '----------' '----------' '-----------' '--------------' '--------------' |
|-- .-----------. .-----------. .-----------. .----------. .------------------------. .--------------------------------. |
|-- |HD74LS244P | |HD74LS368? | |HD74LS32P? | |HD74LS32P | | YAMAHA | | B 0L2 | P |
|-- '-----------' '-----------' '-----------' '----------' | YM2149F | | .-------+--------------+-. | |
|-- '-----------' '-----------' '-----------' '----------' | YM2149F | | .-------+--------------+-. | |
|-- .-----------. .-----------. .-----------. .----------. '------------------------' |\ | WING | | | /| |
|-- |HD74LS244P | | ????? | |HD74LS08P? | |HD74LS00P | .------------------------. | | | CPU +--+--+--+--+--+ | | | R |
|-- '-----------' '-----------' '-----------' '----------' | 09R81P | |o| | A001 | | | | | | | |o| |
|-- '-----------' '-----------' '-----------' '----------' | 09R81P | |o| | A001 | | | | | | | |o| |
'--. 01 .---------. .---------. .-----------. .-----------. .----------. | | |o| '-------+--+--+--+--+--+-' |o| |
| | NEC | |OKI M5205| | ????? | | SN76489AN | |SN76489AN | '------------------------' | | .---+--------------------. | | S |
| |UPC 1241H| '---------' '-----------' '-----------' '----------' .------------. .--------. |/ | 7 | WE8703 1992.10 | \| |
| |UPC 1241H| '---------' '-----------' '-----------' '----------' .------------. .--------. |/ | 7 | WE8703 1992.10 | \| |
.--' '---------' .-----------. .----------. | NPC | | XTAL | | | | LUCKY 74-7 | | |
| .---. .---------. | ????? | |SN76489AN | | SM7831 | | 12 MHZ | | '---+--------------------' | T |
| =|RES| | BATTERY | '-----------' '----------' '------------' '--------' '--------------------------------' |
| '---' '---------' 8 7 6 5 4 3 2 1 |
| =|RES| | BATTERY | '-----------' '----------' '------------' '--------' '--------------------------------' |
| '---' '---------' 8 7 6 5 4 3 2 1 |
'-------------------------------------------------------------------------------------------------------------------------------------------'
To confirm:
@ -173,8 +173,8 @@
There are 2 video layers...
ROMS 1F, 1J, 1K & 1L have the background graphics, and are driven by the 06B53P at 1E.
ROMS 2F, 2J, 2K & 2L have the foreground graphics, and are driven by the 06B53P at 2E.
ROMS 1F, 1J, 1K & 1L have the background graphics, and are driven by the 06B53P at 1E.
ROMS 2F, 2J, 2K & 2L have the foreground graphics, and are driven by the 06B53P at 2E.
ROMS 2N & 1N have the 4-bits ADPCM samples.
@ -1487,7 +1487,7 @@ ROM_START( lucky74a )
ROM_END
/*
Exciting Black Jack.
Sega (Wing?), 1992. (game say 198?).

View File

@ -109,18 +109,18 @@ driver modified by Eisuke Watanabe
READ16_MEMBER(metro_state::metro_irq_cause_r)
{
/* interrupt cause, used by
int[0] vblank
int[1] ? DAITORIDE, BALCUBE, KARATOUR, MOUJA
int[2] blitter
int[3] ? KARATOUR
int[4] ?
int[5] ? KARATOUR, BLZNTRND
int[6] unused
int[7] unused
*/
int[0] vblank
int[1] ? DAITORIDE, BALCUBE, KARATOUR, MOUJA
int[2] blitter
int[3] ? KARATOUR
int[4] ?
int[5] ? KARATOUR, BLZNTRND
int[6] unused
int[7] unused
*/
UINT16 res = 0;
for (int i = 0; i < 8; i++)
res |= (m_requested_int[i] << i);
@ -5950,7 +5950,7 @@ static DRIVER_INIT( karatour )
state->m_vram_1[i] = machine.rand();
state->m_vram_2[i] = machine.rand();
}
DRIVER_INIT_CALL(metro);
}

View File

@ -500,10 +500,10 @@ static MACHINE_CONFIG_START( mhavoc, mhavoc_state )
MCFG_SPEAKER_STANDARD_MONO("mono")
/* FIXME: Outputs 1,2,3 are tied together
* This signal and Output 4 are processed separately.
* Later they are mixed together again.
* ==> DISCRETE emulation, below is just an approximation.
*/
* This signal and Output 4 are processed separately.
* Later they are mixed together again.
* ==> DISCRETE emulation, below is just an approximation.
*/
MCFG_POKEY_ADD("pokey1", MHAVOC_CLOCK_1_25M)
MCFG_POKEY_CONFIG(pokey_config)

View File

@ -2769,18 +2769,18 @@ ROM_START( manxtt ) /* Manx TT Superbike Twin Revision C, Model 2A */
ROM_REGION( 0x100000, "audiocpu", 0 ) // Sound program
ROM_LOAD16_WORD_SWAP( "epr-18826.30", 0x080000, 0x040000, CRC(ed9fe4c1) SHA1(c3dd8a1324a4dc9b012bd9bf21d1f48578870f72) ) /* Sound program for Twin set */
// ROM_LOAD16_WORD_SWAP( "epr-18924a.30", 0x080000, 0x040000, CRC(ad6f40ec) SHA1(27aa0477dc325162766d459ffe95b61ee65dd28f) ) /* Sound program for ?? set */
// ROM_LOAD16_WORD_SWAP( "epr-18924a.30", 0x080000, 0x040000, CRC(ad6f40ec) SHA1(27aa0477dc325162766d459ffe95b61ee65dd28f) ) /* Sound program for ?? set */
ROM_REGION( 0x800000, "scsp", 0 ) // Samples
ROM_LOAD( "mpr-18827.31", 0x000000, 0x200000, CRC(58d78ca1) SHA1(95275ed8315c044bfde2f23c10416f22627b34df) ) /* Sound sample for Twin set */
// ROM_LOAD( "mpr-18763.31", 0x000000, 0x200000, CRC(1bcb2283) SHA1(a4a8a2f8f0901bfb57778351210ccfc421cacbd4) ) /* Sound sample for DX set */
// ROM_LOAD( "mpr-18763.31", 0x000000, 0x200000, CRC(1bcb2283) SHA1(a4a8a2f8f0901bfb57778351210ccfc421cacbd4) ) /* Sound sample for DX set */
ROM_LOAD( "mpr-18764.32", 0x200000, 0x200000, CRC(0dc6a860) SHA1(cb2ada0f8a592940de11ee781ad4beb5095c3b37) )
ROM_LOAD( "mpr-18765.36", 0x400000, 0x200000, CRC(ca4a803c) SHA1(70b59da8f2532a02e980caba5bb86ec13a4d7ab5) )
ROM_LOAD( "mpr-18766.37", 0x600000, 0x200000, CRC(e41892ea) SHA1(9ef5e26db4abf0ed36df63fc246b568e1c5d6cfa) )
ROM_REGION( 0x20000, "cpu4", 0) // Communication program
ROM_LOAD16_WORD_SWAP( "epr-18643.7", 0x000000, 0x020000, CRC(7166fca7) SHA1(f5d02906b64bb2fd1af8e3772c1b01a4e006c060) )
// ROM_LOAD16_WORD_SWAP( "epr-18643a.7", 0x000000, 0x020000, CRC(b5e048ec) SHA1(8182e05a2ffebd590a936c1359c81e60caa79c2a) ) /* COMM boards found with either revision */
// ROM_LOAD16_WORD_SWAP( "epr-18643a.7", 0x000000, 0x020000, CRC(b5e048ec) SHA1(8182e05a2ffebd590a936c1359c81e60caa79c2a) ) /* COMM boards found with either revision */
MODEL2_CPU_BOARD
MODEL2A_VID_BOARD

View File

@ -1519,7 +1519,7 @@ static void HaltSlaveDSP( running_machine &machine )
static void EnableSlaveDSP( running_machine &machine )
{
// namcos22_state *state = machine.driver_data<namcos22_state>();
// namcos22_state *state = machine.driver_data<namcos22_state>();
// device_set_input_line(state->m_slave, INPUT_LINE_RESET, CLEAR_LINE);
namcos22_enable_slave_simulation(machine, 1);
}

View File

@ -25,19 +25,19 @@ TODO (general):
- ngdup23a, ngdup23c: missing DIMM emulation, hence they can't possibly work, emulate the DIMM means to add an extra SH-4 ...
- games using "m4" decryption have never successfully worked, may be
an issue there.
- Following games doesn't boot, any attempt makes it to return to the system test mode (note these are also "m4" type games)
* Illvelo
* Akatsuki Blitzkampf Ausf Achse
- Doesn't boot
* Shootout Pool (all 3 Shootout Pool games show an animated loading screen and then lock up)
* Shootout Pool Medal
* Shootout Pool Prize
- Boots and accepts coin, but won't accept start button
* Usagi Yamashiro Hen
- missing inputs (needs rotary channels):
* Crakin' DJ
* Dynamic Golf
@ -52,11 +52,11 @@ TODO (general):
- "com error occured between Naomi BD and I/O BD"
* Samba de Amigo
* Samba de Amigo Ver. 2000
- other issues:
* Death Crimson OX (boots now, but dies in YUV-mode movie; coining up before it appears to freeze the game)
* La Keyboard (boots fine & attract mode looks OK, but no keyboard)
TODO (game-specific):
- 18th Wheeler Deluxe: "MOTOR NETWORK ERR IN 01 OUT FF" msg pops up during gameplay;
- Airline Pilots Deluxe: returns error 03
@ -7941,7 +7941,7 @@ ROM_END
/* Cart games on Namco custom ROM board */
/* 25209801 */ GAME( 2000, wldkicks, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "World Kicks (WK2 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
/* 25349801 */ GAME( 2000, toukon4, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Shin Nihon Pro Wrestling Toukon Retsuden 4 Arcade Edition (TRF1 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
/* 25469801 */ GAME( 2000, ninjaslt, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Ninja Assault (NJA3 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
/* 25469801 */ GAME( 2000, ninjaslt, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Ninja Assault (NJA3 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
/* 25709801 */ GAME( 2001, gunsur2, naomi, naomi, naomi, naomi, ROT0, "Capcom / Namco", "Gun Survivor 2 Biohazard Code: Veronica (BHF1)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )
/* 25869812 */ GAME( 2002, mazan, naomi, naomim2, naomi, naomi, ROT0, "Capcom / Namco", "Mazan: Flash of the Blade (MAZ2 Ver. A)", GAME_UNEMULATED_PROTECTION|GAME_FLAGS )

View File

@ -43,7 +43,7 @@ TODO:
* http://www.youtube.com/watch?v=pDrRnJOCKZc
*/
#define MASTER_CLOCK 7139000
#define MASTER_CLOCK 7139000
#define V_TOTAL (0x105+1)
#define H_TOTAL (0x1C6+1) // 454
@ -284,13 +284,13 @@ private:
/* some gates */
inline UINT8 g_not(UINT8 in) {return in ^ 1; }
inline UINT8 g_nand7(UINT8 in1, UINT8 in2, UINT8 in3, UINT8 in4, UINT8 in5, UINT8 in6, UINT8 in7) { return (in1 && in2 && in3 && in4 && in5 && in6 && in7) ? 0 : 1; }
inline UINT8 g_nand7(UINT8 in1, UINT8 in2, UINT8 in3, UINT8 in4, UINT8 in5, UINT8 in6, UINT8 in7) { return (in1 && in2 && in3 && in4 && in5 && in6 && in7) ? 0 : 1; }
inline UINT8 g_nand5(UINT8 in1, UINT8 in2, UINT8 in3, UINT8 in4, UINT8 in5) { return (in1 && in2 && in3 && in4 && in5) ? 0 : 1; }
inline UINT8 g_nand3(UINT8 in1, UINT8 in2, UINT8 in3) { return (in1 && in2 && in3) ? 0 : 1; }
inline UINT8 g_nand2(UINT8 in1, UINT8 in2) { return (in1 && in2) ? 0 : 1; }
inline UINT8 g_nand3(UINT8 in1, UINT8 in2, UINT8 in3) { return (in1 && in2 && in3) ? 0 : 1; }
inline UINT8 g_nand2(UINT8 in1, UINT8 in2) { return (in1 && in2) ? 0 : 1; }
inline UINT8 g_nor4(UINT8 in1, UINT8 in2, UINT8 in3, UINT8 in4) { return (in1 || in2 || in3 || in4) ? 0 : 1; }
inline UINT8 g_nor3(UINT8 in1, UINT8 in2, UINT8 in3) { return (in1 || in2 || in3) ? 0 : 1; }
inline UINT8 g_nor2(UINT8 in1, UINT8 in2) { return (in1 || in2) ? 0 : 1; }
inline UINT8 g_nor3(UINT8 in1, UINT8 in2, UINT8 in3) { return (in1 || in2 || in3) ? 0 : 1; }
inline UINT8 g_nor2(UINT8 in1, UINT8 in2) { return (in1 || in2) ? 0 : 1; }
inline UINT8 s_4H() { return ic_f8.QC(); }
inline UINT8 s_8H() { return ic_f8.QD(); }
@ -491,8 +491,8 @@ private:
UINT8 m_jk_256;
UINT8 m_ff_h3a;
ic7493 ic_c7_score1; /* FIXME: realized by 74LS90 and 74LS107, both falling edge, using a 93 for now ... */
ic7493 ic_d7_score2; /* FIXME: realized by 74LS90 and 74LS107, both falling edge, using a 93 for now ... */
ic7493 ic_c7_score1; /* FIXME: realized by 74LS90 and 74LS107, both falling edge, using a 93 for now ... */
ic7493 ic_d7_score2; /* FIXME: realized by 74LS90 and 74LS107, both falling edge, using a 93 for now ... */
ic74107 ic_f3_topbot;
icMonoFlop ic_g4_sc;
@ -536,16 +536,16 @@ const device_type PONG = &device_creator<pong_device>;
void pong_state::machine_start()
{
// save_item(NAME(m_sound_nmi_enabled));
// save_item(NAME(m_nmi_enable));
// save_item(NAME(m_sound_nmi_enabled));
// save_item(NAME(m_nmi_enable));
dac_device *t = machine().device<dac_device>("dac");
downcast<pong_device *>(m_maincpu.target())->m_dac = t;
}
void pong_state::machine_reset()
{
// m_sound_nmi_enabled = FALSE;
// m_nmi_enable = 0;
// m_sound_nmi_enabled = FALSE;
// m_nmi_enable = 0;
}
@ -616,9 +616,9 @@ void pong_device::execute_run()
do
{
// debugging
//m_ppc = m_pc; // copy PC to previous PC
//m_ppc = m_pc; // copy PC to previous PC
//if (check_debugger)
// debugger_instruction_hook(this, 0); //m_pc);
// debugger_instruction_hook(this, 0); //m_pc);
// instruction fetch
//UINT16 op = opcode_read();
@ -661,7 +661,7 @@ void pong_device::step_one_clock()
ic_ff_hb.process(s_hreset(), g_not(g_nand2(s_16H(),s_64H())));
//if (s_hblank() && ic_e8.count()==0)
// printf("hblank %d\n", ic_f8.count());
// printf("hblank %d\n", ic_f8.count());
{
/* move logic */

View File

@ -243,8 +243,8 @@ static discrete_op_amp_filt_info pokey1_info = {
RES_K(220), 0, 0, 0, /* r1 .. r4 */
RES_K(220), /* rF */
CAP_U(0.022), /* C1 */
CAP_U(0.1), /* C2 */
0, /* C3 */
CAP_U(0.1), /* C2 */
0, /* C3 */
0.0, /* vRef */
15.0, /* vP */
-15.0, /* vN */
@ -271,7 +271,7 @@ static DISCRETE_SOUND_START(quantum)
/* Convert Pokey output to 5V Signal */
DISCRETE_INPUTX_STREAM(NODE_100, 0, 5.0 / 32768, 5.0) /* Add VRef again */
DISCRETE_INPUTX_STREAM(NODE_110, 1, 5.0 / 32768, 5.0) /* Add VRef again */
DISCRETE_INPUTX_STREAM(NODE_110, 1, 5.0 / 32768, 5.0) /* Add VRef again */
DISCRETE_OP_AMP_FILTER(NODE_150, 1, NODE_100, 0, DISC_OP_AMP_FILTER_IS_BAND_PASS_1, &pokey1_info)

View File

@ -167,7 +167,7 @@ INLINE void get_rabbit_tilemap_info(running_machine &machine, tile_data &tileinf
case 0xc:
tileno += 0x20000;
break;
default:
//printf("tilebank %x\n",bank);
break;

View File

@ -1347,12 +1347,12 @@ WRITE16_MEMBER(taitoz_state::chasehq_motor_w)
{
case 0x0:
break;
case 0x101:
/* outputs will go here, but driver is still broken */
break;
}
logerror("CPU #0 PC %06x: warning - write %04x to motor cpu %03x\n",cpu_get_pc(&space.device()),data,offset);
}
@ -2031,7 +2031,7 @@ static INPUT_PORTS_START( contcirc )
PORT_DIPSETTING( 0x01, "Cockpit" ) // analog pedals
PORT_DIPSETTING( 0x00, DEF_STR( Upright ) ) // digital pedals, no brake?, allow free steering wheel
PORT_DIPNAME( 0x02, 0x02, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW A:2")
PORT_DIPSETTING( 0x02, "Same as Start" )
PORT_DIPSETTING( 0x02, "Same as Start" )
PORT_DIPSETTING( 0x00, "Discount" )
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_LOW, "SW A:3" )
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW A:4")
@ -2122,7 +2122,7 @@ static INPUT_PORTS_START( chasehq ) // IN3-6 perhaps used with cockpit setup? //
PORT_DIPSETTING( 0x10, "3" )
PORT_DIPSETTING( 0x00, "5" )
PORT_DIPNAME( 0x20, 0x20, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SW B:6")
PORT_DIPSETTING( 0x20, "Same as Start" )
PORT_DIPSETTING( 0x20, "Same as Start" )
PORT_DIPSETTING( 0x00, "Discount" )
PORT_DIPNAME( 0x40, 0x40, "Clear Damage on Continue" ) PORT_DIPLOCATION("SW B:7")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )

View File

@ -435,7 +435,7 @@ static void topspeed_msm5205_clock( device_t *device, int chip )
msm5205_data_w(device, state->m_msm_sel[chip] ? data & 0xf : data >> 4 & 0xf);
state->m_msm_pos[chip] += state->m_msm_sel[chip];
state->m_msm_sel[chip] ^= 1;
if ((state->m_msm_pos[chip]) == state->m_msm_loop[chip])
state->m_msm_pos[chip] = state->m_msm_start[chip];
}
@ -454,10 +454,10 @@ static void topspeed_msm5205_vck_2( device_t *device )
WRITE8_MEMBER(topspeed_state::topspeed_msm5205_command_w)
{
int chip = offset >> 12 & 1;
// disable 2nd chip for now... it doesn't work yet
if (chip == 1) return;
switch (offset >> 8 & 0x2e)
{
// $b000 / $c000: start
@ -488,7 +488,7 @@ WRITE8_MEMBER(topspeed_state::topspeed_msm5205_command_w)
break;
case 0x22:
break;
default:
break;
}
@ -555,7 +555,7 @@ static INPUT_PORTS_START( topspeed )
PORT_DIPNAME( 0x03, 0x03, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SWA:1,2")
PORT_DIPSETTING( 0x03, "Deluxe" ) // analog pedals, racing wheel, motor (tilt disabled)
PORT_DIPSETTING( 0x02, "Standard" ) // digital pedals, continuous wheel
// PORT_DIPSETTING( 0x01, "Standard" )
// PORT_DIPSETTING( 0x01, "Standard" )
PORT_DIPSETTING( 0x00, "Mini" ) // analog pedals, racing wheel
TAITO_DSWA_BITS_2_TO_3_LOC(SWA)
TAITO_COINAGE_WORLD_LOC(SWA)
@ -577,7 +577,7 @@ static INPUT_PORTS_START( topspeed )
PORT_DIPSETTING( 0x40, DEF_STR( No ) )
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Continue_Price ) ) PORT_DIPLOCATION("SWB:8") // "KEEP OFF" in manual, see notes
PORT_DIPSETTING( 0x80, "Same as Start" )
PORT_DIPSETTING( 0x80, "Same as Start" )
PORT_DIPSETTING( 0x00, "Half of Start" )
PORT_START("IN0")
@ -724,7 +724,7 @@ static MACHINE_RESET( topspeed )
state->m_cpua_ctrl = 0xff;
state->m_ioc220_port = 0;
state->m_banknum = -1;
msm5205_reset_w(state->m_msm_chip[0], 1);
msm5205_reset_w(state->m_msm_chip[1], 1);
state->m_msm_loop[0] = 0;

View File

@ -1968,10 +1968,10 @@ ROM_END
/* From Gumshoe readme:
NOTE: There is a small board modification which consists of 2 extra jumpers added.
NOTE: There is a small board modification which consists of 2 extra jumpers added.
They appear to be:
pin 26 of 6D to pin 1, 74ls04 at 5E.
pin 26 of 6D to pin 1, 74ls04 at 5E.
pin 26 of 1D to pin 12, 74s32 at 4b.
possibly an extra address?

View File

@ -12,7 +12,7 @@ public:
sc4_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_vfd0(*this, "vfd0")
m_vfd0(*this, "vfd0")
{
m_chk41addr = -1;

View File

@ -142,7 +142,7 @@ public:
DECLARE_WRITE32_MEMBER(hng64_soundram_w);
DECLARE_READ32_MEMBER(hng64_soundram_r);
// not actually used, but left in code so you can turn it and see the (possibly undesired?) behavior, see notes in memory map
DECLARE_WRITE32_MEMBER(hng64_soundram2_w);
DECLARE_READ32_MEMBER(hng64_soundram2_r);

View File

@ -28,7 +28,7 @@ public:
UINT16 m_msm_loop[2];
UINT16 m_msm_pos[2];
UINT8 m_msm_sel[2];
/* misc */
UINT16 m_cpua_ctrl;
INT32 m_ioc220_port;

View File

@ -2,8 +2,8 @@
Bellfruit BD1 VFD module interface and emulation by J.Wallace
TODO: Implement flashing (our only datasheet has that section
completely illegible)
TODO: Implement flashing (our only datasheet has that section
completely illegible)
**********************************************************************/
#include "emu.h"
@ -14,7 +14,7 @@ const device_type BFM_BD1 = &device_creator<bfm_bd1_t>;
/*
BD1 14 segment charset lookup table, according to datasheet (we rewire this later)
2
---------
|\ |3 /|
@ -27,8 +27,8 @@ const device_type BFM_BD1 = &device_creator<bfm_bd1_t>;
--------- C
9
8 is flashing
8 is flashing
*/
static const UINT16 BD1charset[]=
@ -115,7 +115,7 @@ void bfm_bd1_t::device_start()
{
m_timer=timer_alloc(0);
save_item(NAME(m_cursor));
save_item(NAME(m_cursor));
save_item(NAME(m_cursor_pos));
save_item(NAME(m_window_start)); // display window start pos 0-15
save_item(NAME(m_window_end)); // display window end pos 0-15
@ -131,9 +131,9 @@ void bfm_bd1_t::device_start()
save_item(NAME(m_flash_control));
save_item(NAME(m_chars));
save_item(NAME(m_attrs));
save_item(NAME(m_user_data)); // user defined character data (16 bit)
save_item(NAME(m_user_def)); // user defined character state
save_item(NAME(m_user_data)); // user defined character data (16 bit)
save_item(NAME(m_user_def)); // user defined character state
device_reset();
}
@ -200,7 +200,7 @@ UINT32 bfm_bd1_t::set_display(UINT16 segin)
else segout &= ~0x2000;
if ( segin & 0x1000 ) segout |= 0x4000;
else segout &= ~0x4000;
return segout;
}
@ -286,7 +286,7 @@ int bfm_bd1_t::write_char(int data)
{
return 0;
}
setdata( m_user_data, data);
change ++;
}
@ -318,7 +318,7 @@ int bfm_bd1_t::write_char(int data)
}
setdata(BD1charset[(data & 0x3F)], data);
}
}
}
else
{
@ -347,7 +347,7 @@ int bfm_bd1_t::write_char(int data)
case 0xA0: // 0xA0 - 0xAF Set display mode
m_display_mode = data &0x03;
break;
case 0xB0: // 0xB0 - 0xBF Clear display area
switch ( data & 0x03 )
{
@ -593,7 +593,7 @@ void bfm_bd1_t::setdata(int segdata, int data)
void bfm_bd1_t::shift_data(int data)
{
m_shift_data <<= 1;
if ( !data ) m_shift_data |= 1;
if ( ++m_shift_count >= 8 )

View File

@ -12,7 +12,7 @@
#define MCFG_BFMBD1_REMOVE(_tag) \
MCFG_DEVICE_REMOVE(_tag)
class bfm_bd1_t : public device_t
{
public:
@ -61,8 +61,8 @@ protected:
virtual void device_start();
virtual void device_reset();
virtual void device_post_load();
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
};
extern const device_type BFM_BD1;

View File

@ -6,7 +6,7 @@
// also emulates the index optic //
// //
// 26-05-2012: J. Wallace - Implemented proper phase alignment, we no //
// longer need reverse interfaces here, the //
// longer need reverse interfaces here, the //
// layout will suffice. Added belt reel handler.//
// 09-04-2012: J. Wallace - Studied some old reel motors and added a //
// number of new stepper types. I am yet to //

View File

@ -41,7 +41,7 @@ struct _stepper_interface
INT16 index_start;/* start position of index (in half steps) */
INT16 index_end; /* end position of index (in half steps) */
INT16 index_patt; /* pattern needed on coils (0=don't care) */
UINT8 initphase; /* Phase at 0, for opto linkage */
UINT8 initphase; /* Phase at 0, for opto linkage */
};
extern const stepper_interface starpoint_interface_48step;

View File

@ -1962,10 +1962,10 @@ $(DRIVERS)/bfm_sc2.o: $(LAYOUT)/bfm_sc2.lh \
$(LAYOUT)/sltblgtk.lh
$(DRIVERS)/bfm_sc4.o: $(LAYOUT)/bfm_sc4.lh \
$(LAYOUT)/sc4_dmd.lh
$(LAYOUT)/sc4_dmd.lh
$(DRIVERS)/bfm_sc4h.o: $(LAYOUT)/bfm_sc4.lh \
$(LAYOUT)/sc4_dmd.lh
$(LAYOUT)/sc4_dmd.lh
$(DRIVERS)/blockade.o: $(LAYOUT)/blockade.lh

View File

@ -181,7 +181,7 @@ SCREEN_UPDATE_IND16( automat )
deco_bac06_pf_control_1_w(state->m_tilegen3,1,state->m_automat_scroll_regs[0], 0xffff);
// sprites seem very different, probably need new functions
state->flip_screen_set(state->m_tilegen1->get_flip_state());
if (state->m_pri & 0x04)
@ -208,10 +208,10 @@ SCREEN_UPDATE_IND16( automat )
state->m_tilegen2->deco_bac06_pf_draw(screen.machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
}
// if (state->m_pri & 0x02)
// state->m_spritegen->draw_sprites(screen.machine(), bitmap, cliprect, state->m_buffered_spriteram, 0x08, trans^0x08, 0x0f);
// else
// state->m_spritegen->draw_sprites(screen.machine(), bitmap, cliprect, state->m_buffered_spriteram, 0x00, 0x00, 0x0f);
// if (state->m_pri & 0x02)
// state->m_spritegen->draw_sprites(screen.machine(), bitmap, cliprect, state->m_buffered_spriteram, 0x08, trans^0x08, 0x0f);
// else
// state->m_spritegen->draw_sprites(screen.machine(), bitmap, cliprect, state->m_buffered_spriteram, 0x00, 0x00, 0x0f);
state->m_tilegen1->deco_bac06_pf_draw(screen.machine(),bitmap,cliprect,0, 0x00, 0x00, 0x00, 0x00);
return 0;
@ -339,7 +339,7 @@ VIDEO_START( dec0 )
VIDEO_START( automat )
{
// dec0_state *state = machine.driver_data<dec0_state>();
// dec0_state *state = machine.driver_data<dec0_state>();
}
/******************************************************************************/

View File

@ -38,4 +38,4 @@
***************************************************************************/
extern const char build_version[];
const char build_version[] = "0.146 ("__DATE__")";
const char build_version[] = "0.146u1 ("__DATE__")";