Cleanups and version bump

This commit is contained in:
Miodrag Milanovic 2013-02-11 07:44:56 +00:00
parent 4b0b4e6b2f
commit a440a8e020
397 changed files with 18639 additions and 18731 deletions

View File

@ -5,15 +5,12 @@
#define MCFG_LR35902_TIMER_CB(_devcb) \
lr35902_cpu_device::set_timer_cb(*device, DEVCB2_##_devcb); \
lr35902_cpu_device::set_timer_cb(*device, DEVCB2_##_devcb);
#define MCFG_LR35902_HALT_BUG \
lr35902_cpu_device::set_halt_bug(*device); \
lr35902_cpu_device::set_halt_bug(*device);
// This should be removed/improved once all gameboy boot roms have been dumped
#define MCFG_LR35902_RESET_VALUES(_regs) \
lr35902_cpu_device::set_reset_values(*device, _regs); \
lr35902_cpu_device::set_reset_values(*device, _regs);
enum
{

View File

@ -419,4 +419,3 @@ void sm8500_cpu_device::execute_set_input( int inptnum, int state )
m_program->write_byte(0x12, m_IR0);
m_program->write_byte(0x13, m_IR1);
}

View File

@ -4,12 +4,10 @@
#define __SM8500_H__
#define MCFG_SM8500_DMA_CB(_devcb) \
sm8500_cpu_device::set_dma_cb(*device, DEVCB2_##_devcb); \
sm8500_cpu_device::set_dma_cb(*device, DEVCB2_##_devcb);
#define MCFG_SM8500_TIMER_CB(_devcb) \
sm8500_cpu_device::set_timer_cb(*device, DEVCB2_##_devcb); \
sm8500_cpu_device::set_timer_cb(*device, DEVCB2_##_devcb);
enum
{

View File

@ -175,4 +175,3 @@ void midiin_device::xmit_char(UINT8 data)
void midiin_device::input_callback(UINT8 state)
{
}

View File

@ -94,4 +94,3 @@ void midiout_device::rcv_complete() // Rx completed receiving byte
void midiout_device::input_callback(UINT8 state)
{
}

View File

@ -976,4 +976,3 @@ void duart68681_channel::ACR_updated()
{
write_chan_reg(1, CSR);
}

View File

@ -688,4 +688,3 @@ WRITE8_MEMBER( digitalker_device::digitalker_data_w )
{
m_data = data;
}

View File

@ -119,4 +119,3 @@ void filter_rc_device::filter_rc_set_RC(int type, double R1, double R2, double R
m_stream->update();
set_RC_info(type, R1, R2, R3, C);
}

View File

@ -48,4 +48,3 @@ void filter_volume_device::flt_volume_set_volume(float volume)
{
m_gain = (int)(volume * 256);
}

View File

@ -198,5 +198,3 @@ void k056800_device::device_reset()
{
DEVICE_RESET_NAME( k056800 )(this);
}

View File

@ -140,4 +140,3 @@ WRITE8_MEMBER( namco_63701x_device::namco_63701x_w )
}
}
}

View File

@ -390,4 +390,3 @@ void ef9340_1_device::ef9340_scanline(int vpos)
}
}
}

View File

@ -17,8 +17,7 @@
#define MCFG_EF9340_1_ADD(_tag, _clock, _screen_tag) \
MCFG_DEVICE_ADD(_tag, EF9340_1, _clock) \
ef9340_1_device::set_screen_tag(*device, _screen_tag); \
ef9340_1_device::set_screen_tag(*device, _screen_tag);
class ef9340_1_device : public device_t
{
@ -82,4 +81,3 @@ protected:
extern const device_type EF9340_1;
#endif /* __EF9340_1_H__ */

View File

@ -553,7 +553,6 @@ void i8244_device::render_scanline(int vpos)
{
if ( y <= scanline && scanline < y + char_height * 2 )
{
UINT16 color = 8 + bgr2rgb[ ( ( m_vdc.s.quad[i].single[j].color >> 1 ) & 0x07 ) ];
int offset = ( m_vdc.s.quad[i].single[j].ptr | ( ( m_vdc.s.quad[i].single[j].color & 0x01 ) << 8 ) ) + ( y >> 1 ) + ( ( scanline - y ) >> 1 );
UINT8 chr = c_shape[ offset & 0x1FF ];
@ -791,5 +790,3 @@ UINT32 i8244_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap,
return 0;
}

View File

@ -22,23 +22,18 @@
MCFG_DEVICE_ADD(_tag, I8244, _clock) \
MCFG_I8244_SCREEN_TAG(_screen_tag) \
MCFG_I8244_IRQ_CB(_irq_cb) \
MCFG_I8244_POSTPROCESS_CB(_postprocess_cb) \
MCFG_I8244_POSTPROCESS_CB(_postprocess_cb)
#define MCFG_I8244_SCREEN_TAG(_screen_tag) \
i8244_device::set_screen_tag(*device, _screen_tag); \
i8244_device::set_screen_tag(*device, _screen_tag);
#define MCFG_I8244_IRQ_CB(_devcb) \
devcb = &i8244_device::set_irq_cb(*device, DEVCB2_##_devcb); \
devcb = &i8244_device::set_irq_cb(*device, DEVCB2_##_devcb);
#define MCFG_I8244_POSTPROCESS_CB(_devcb) \
devcb = &i8244_device::set_postprocess_cb(*device, DEVCB2_##_devcb); \
devcb = &i8244_device::set_postprocess_cb(*device, DEVCB2_##_devcb);
#define MCFG_I8245_ADD(_tag, _clock, _screen_tag, _irq_cb, _postprocess_cb) \
MCFG_DEVICE_ADD(_tag, I8245, _clock) \
MCFG_I8244_SCREEN_TAG(_screen_tag) \
MCFG_I8244_IRQ_CB(_irq_cb) \
MCFG_I8244_POSTPROCESS_CB(_postprocess_cb ) \
MCFG_I8244_POSTPROCESS_CB(_postprocess_cb )
/***************************************************************************
TYPE DEFINITIONS

View File

@ -272,7 +272,6 @@ bool d64_format::load(io_generic *io, UINT32 form_factor, floppy_image *image)
void d64_format::extract_sectors(floppy_image *image, const format &f, desc_s *sdesc, int track, int head)
{
}
bool d64_format::save(io_generic *io, floppy_image *image)

View File

@ -140,7 +140,6 @@
inline void ccastles_state::schedule_next_irq( int curscanline )
{
/* scan for a rising edge on the IRQCK signal */
for (curscanline++; ; curscanline = (curscanline + 1) & 0xff)
if ((m_syncprom[(curscanline - 1) & 0xff] & 8) == 0 && (m_syncprom[curscanline] & 8) != 0)

View File

@ -112,7 +112,6 @@
inline void cloud9_state::schedule_next_irq(int curscanline)
{
/* IRQ is clocked by /32V, so every 64 scanlines */
curscanline = (curscanline + 64) & 255;

View File

@ -692,7 +692,6 @@ void cps3_state::cps3_decrypt_bios()
void cps3_state::init_common(UINT32 key1, UINT32 key2, int altEncryption)
{
m_key1 = key1;
m_key2 = key2;
m_altEncryption = altEncryption;

View File

@ -402,7 +402,6 @@ INTERRUPT_GEN_MEMBER(dkong_state::s2650_interrupt)
void dkong_state::dkong_init_device_driver_data( )
{
m_dev_n2a03a = machine().device("n2a03a");
m_dev_n2a03b = machine().device("n2a03b");
m_dev_6h = machine().device("ls259.6h");

View File

@ -536,7 +536,6 @@ WRITE8_MEMBER(equites_state::equites_cymbal_ctrl_w)
void equites_state::equites_update_dac( )
{
// there is only one latch, which is used to drive two DAC channels.
// When the channel is enabled in the 4066, it goes to a series of
// low-pass filters. The channel is kept enabled only for a short time,

View File

@ -252,4 +252,3 @@ GAME( 200?, cjdh2c, cjdh2, igs_m036, igs_m036, igs_m036_state, igs_m036,
GAME( 200?, cjddzsp, 0, igs_m036_tt, igs_m036, igs_m036_state, igs_m036, ROT0, "IGS", "Super Dou Di Zhu Special (V122CN)", GAME_IS_SKELETON )
GAME( 200?, igsm312, 0, igs_m036_tt, igs_m036, igs_m036_state, igs_m036, ROT0, "IGS", "Unknown IGS036 CPU game (V312CN)", GAME_IS_SKELETON )

View File

@ -133,7 +133,6 @@ WRITE8_MEMBER(lwings_state::avengers_prot_bank_w)
int lwings_state::avengers_fetch_paldata( )
{
static const char pal_data[] =
/* page 1: 0x03,0x02,0x01,0x00 */
"0000000000000000" "A65486A6364676D6" "C764C777676778A7" "A574E5E5C5756AE5"

View File

@ -435,4 +435,3 @@ GAME( 2009, ddpdojh, 0, pgm2, pgm2, pgm2_state, ddpdojh, ROT27
GAME( 2009, kov3, 0, pgm2, pgm2, pgm2_state, kov3, ROT0, "IGS", "Knights of Valour 3 (V102, China)", GAME_IS_SKELETON )
#endif

View File

@ -123,5 +123,3 @@ enum
ALPHA68K_JONGBOU, // used in kyros_alpha_trigger_r & kyros_draw_sprites
ALPHA68K_KYROS // used in kyros_draw_sprites
};

View File

@ -184,4 +184,3 @@ public:
void install_timekeeper();
void init_gt_common();
};

View File

@ -714,4 +714,3 @@ public:
#define IRQ_DMAILL 1 << 12
#define IRQ_VDP1_END 1 << 13
#define IRQ_ABUS 1 << 15

View File

@ -83,4 +83,3 @@ public:
void tecmosys_prot_init(int which);
void tecmosys_prot_reset();
};

View File

@ -47,7 +47,6 @@ static const UINT8 mcu_data[256] = {
void chaknpop_state::mcu_update_seed( UINT8 data )
{
if (!(data & 0x80))
{
m_mcu_seed += 0x83;

View File

@ -163,7 +163,6 @@ inline void ccastles_state::ccastles_write_vram( UINT16 addr, UINT8 data, UINT8
inline void ccastles_state::bitmode_autoinc( )
{
/* auto increment in the x-direction if it's enabled */
if (!m_video_control[0]) /* /AX */
{

View File

@ -26,7 +26,6 @@ TIMER_CALLBACK_MEMBER(cchasm_state::cchasm_refresh_end)
void cchasm_state::cchasm_refresh ()
{
int pc = 0;
int done = 0;
int opcode, data;

View File

@ -80,7 +80,6 @@ void centiped_state::init_penmask()
void centiped_state::init_common()
{
save_item(NAME(m_flipscreen));
save_item(NAME(m_gfx_bank));
save_item(NAME(m_bullsdrt_sprites_bank));

View File

@ -156,7 +156,6 @@ inline void cloud9_state::cloud9_write_vram( UINT16 addr, UINT8 data, UINT8 bitm
inline void cloud9_state::bitmode_autoinc( )
{
/* auto increment in the x-direction if it's enabled */
if (!m_video_control[0]) /* /AX */
m_bitmode_addr[0]++;

View File

@ -2276,7 +2276,6 @@ void cps_state::cps1_find_last_sprite() /* Find the offset of last sprite */
void cps_state::cps1_render_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
#define DRAWSPRITE(CODE,COLOR,FLIPX,FLIPY,SX,SY) \
{ \
if (flip_screen()) \
@ -2510,7 +2509,6 @@ void cps_state::cps2_find_last_sprite() /* Find the offset of last sprite */
void cps_state::cps2_render_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int *primasks )
{
#define DRAWSPRITE(CODE,COLOR,FLIPX,FLIPY,SX,SY) \
{ \
if (flip_screen()) \

View File

@ -33,7 +33,6 @@ TIMER_CALLBACK_MEMBER(dday_state::countdown_timer_callback)
void dday_state::start_countdown_timer()
{
m_timer_value = 0;
machine().scheduler().timer_pulse(attotime::from_seconds(1), timer_expired_delegate(FUNC(dday_state::countdown_timer_callback),this));

View File

@ -669,7 +669,6 @@ void dkong_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect,
inline double dkong_state::CD4049(double x)
{
if (x>0)
return exp(-m_cd4049_a * pow(x,m_cd4049_b));
else
@ -690,7 +689,6 @@ inline double dkong_state::CD4049(double x)
void dkong_state::radarscp_step(int line_cnt)
{
/* Condensator is illegible in schematics for TRS2 board.
* TRS1 board states 3.3u.
*/

View File

@ -288,7 +288,6 @@ WRITE16_MEMBER(fromanc2_state::fromancr_gfxreg_1_w)
void fromanc2_state::fromancr_gfxbank_w( int data )
{
m_gfxbank[0][0] = (data & 0x0010) >> 4; // BG (1P)
m_gfxbank[0][1] = (data & 0xf000) >> 12; // FG (1P)
m_gfxbank[1][0] = (data & 0x0008) >> 3; // BG (2P)

View File

@ -55,7 +55,6 @@ TILE_GET_INFO_MEMBER(fromance_state::get_nekkyoku_fg_tile_info){ get_nekkyoku_ti
void fromance_state::init_common( )
{
/* allocate local videoram */
m_local_videoram[0] = auto_alloc_array(machine(), UINT8, 0x1000 * 3);
m_local_videoram[1] = auto_alloc_array(machine(), UINT8, 0x1000 * 3);

View File

@ -472,7 +472,6 @@ WRITE8_MEMBER(galaga_state::gatsbee_bank_w)
void galaga_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect )
{
UINT8 *spriteram = m_galaga_ram1 + 0x380;
UINT8 *spriteram_2 = m_galaga_ram2 + 0x380;
UINT8 *spriteram_3 = m_galaga_ram3 + 0x380;

View File

@ -1305,7 +1305,6 @@ void galaxold_state::dambustr_draw_background(bitmap_ind16 &bitmap, const rectan
void galaxold_state::dambustr_draw_upper_background(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
if (flip_screen_x())
{
rectangle clip(254 - m_dambustr_bg_split_line, m_dambustr_bg_split_line, 0, 255);

View File

@ -199,7 +199,6 @@ WRITE16_MEMBER(lastduel_state::lastduel_palette_word_w)
void lastduel_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri )
{
UINT16 *buffered_spriteram16 = m_spriteram->buffer();
int offs;

View File

@ -300,7 +300,6 @@ TIMER_CALLBACK_MEMBER(lockon_state::bufend_callback)
void lockon_state::ground_draw( )
{
/* ROM pointers */
const UINT8 *const gfx_rom = memregion("gfx4")->base();
const UINT8 *const lut_rom = gfx_rom + 0x30000 + ((m_ground_ctrl >> 2) & 0x3 ? 0x10000 : 0);

View File

@ -7023,5 +7023,3 @@ UINT32 saturn_state::screen_update_stv_vdp2(screen_device &screen, bitmap_rgb32
#endif
return 0;
}

View File

@ -542,5 +542,3 @@ void raiga_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap_bg, bitm
source -= 8;
}
}

View File

@ -5,4 +5,3 @@ void tecmo16_draw_sprites(running_machine &machine, bitmap_ind16 &bitmap_bg, bit
void gaiden_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap_bg, bitmap_ind16 &bitmap_fg, bitmap_ind16 &bitmap_sp, const rectangle &cliprect, UINT16* spriteram, int sprite_sizey, int spr_offset_y, int flipscreen );
void raiga_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap_bg, bitmap_ind16 &bitmap_fg, bitmap_ind16 &bitmap_sp, const rectangle &cliprect, UINT16* spriteram, int sprite_sizey, int spr_offset_y, int flipscreen );
int spbactn_draw_sprites(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority, bool alt_sprites, UINT16* spriteram);

View File

@ -492,4 +492,3 @@ COMP( 198?, apple2gsr3p, apple2gs, 0, apple2gs, apple2gs, driver_device, 0,
COMP( 1989, apple2gsr3lp, apple2gs, 0, apple2gs, apple2gs, driver_device, 0, "Apple Computer", "Apple IIgs (ROM03 late prototype?)", GAME_NOT_WORKING )
COMP( 1987, apple2gsr1, apple2gs, 0, apple2gsr1, apple2gs, driver_device, 0, "Apple Computer", "Apple IIgs (ROM01)", GAME_SUPPORTS_SAVE )
COMP( 1986, apple2gsr0, apple2gs, 0, apple2gsr1, apple2gs, driver_device, 0, "Apple Computer", "Apple IIgs (ROM00)", GAME_SUPPORTS_SAVE )

View File

@ -40,11 +40,9 @@ READ8_MEMBER( prof180x_state::read )
if (offset < 0x40000)
{
}
else
{
}
/*
switch ((m_mm1 << 1) | m_mm0)
@ -73,11 +71,9 @@ WRITE8_MEMBER( prof180x_state::write )
{
if (offset < 0x40000)
{
}
else
{
}
}

View File

@ -56,8 +56,7 @@
m_font[((woffs) + 0x10000)] = dat; /* flip x */ \
m_font[((woffs) + 0x14000)] = dat; /* flip x */ \
m_font[((woffs) + 0x18000) ^ 7] = dat; /* flip x+y */ \
m_font[((woffs) + 0x1c000) ^ 7] = dat; /* flip x+y */ \
m_font[((woffs) + 0x1c000) ^ 7] = dat; /* flip x+y */
/* FIXME: most if not all of these must be UINT8 */

View File

@ -67,4 +67,3 @@ UINT8 *a2eaux_ext80col_device::get_vram_ptr()
{
return &m_ram[0];
}

View File

@ -42,4 +42,3 @@ private:
extern const device_type A2EAUX_EXT80COL;
#endif /* __A2EAUX_EXT80COL__ */

View File

@ -92,4 +92,3 @@ void a2eaux_ramworks3_device::write_c07x(address_space &space, UINT8 offset, UIN
m_bank = 0x10000 * (data & 0x7f);
}
}

View File

@ -44,4 +44,3 @@ private:
extern const device_type A2EAUX_RAMWORKS3;
#endif /* __A2EAUX_RAMWORKS3__ */

View File

@ -75,4 +75,3 @@ UINT8 *a2eaux_std80col_device::get_vram_ptr()
{
return &m_ram[0];
}

View File

@ -42,4 +42,3 @@ private:
extern const device_type A2EAUX_STD80COL;
#endif /* __A2EAUX_STD80COL__ */

View File

@ -217,4 +217,3 @@ WRITE_LINE_MEMBER( a2bus_midi_device::tx_out )
{
m_mdout->tx(state);
}

View File

@ -230,4 +230,3 @@ WRITE_LINE_MEMBER( a2bus_ssc_device::acia_irq_w )
}
}
}

View File

@ -54,5 +54,3 @@ static READ8_HANDLER( bbsb_bankh_r )
return &mem[0x4000 + bbsb_bankh * 0x1000];
}
#endif

View File

@ -1168,4 +1168,3 @@ READ8_MEMBER(megaduck_state::megaduck_sound_r2)
{
return gb_sound_r(machine().device("custom"), space, 0x10 + megaduck_sound_offsets[offset]);
}

View File

@ -689,4 +689,3 @@ WRITE8_MEMBER(gb_rom_mmm01_device::write_bank)
}
}
}

View File

@ -366,4 +366,3 @@ WRITE8_MEMBER(megaduck_rom_device::write_ram)
m_latch_bank = data * 2;
m_latch_bank2 = data * 2 + 1;
}

View File

@ -535,7 +535,6 @@ int base_gb_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len)
const char * base_gb_cart_slot_device::get_default_card_software(const machine_config &config, emu_options &options)
{
if (open_image_file(options))
{
const char *slot_string = "rom";

View File

@ -1686,4 +1686,3 @@ void sb_device::xmit_char(UINT8 data)
m_tx_waiting++;
}
}

View File

@ -378,4 +378,3 @@ WRITE16_MEMBER(md_eeprom_blara_device::write)
i2cmem_sda_write(m_i2cmem, m_i2c_mem);
}
}

View File

@ -252,4 +252,3 @@ WRITE16_MEMBER(md_seprom_codemast_device::write)
m_jcart_io_data[1] = (data & 1) << 6;
}
}

View File

@ -90,4 +90,3 @@ machine_config_constructor md_rom_sk_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( sk_slot );
}

View File

@ -992,4 +992,3 @@ WRITE16_MEMBER(base_md_cart_slot_device::write_a15)
if (m_cart)
m_cart->write_a15(space, offset, data);
}

View File

@ -242,4 +242,3 @@ WRITE16_MEMBER(md_eeprom_stm95_device::write_a13)
m_stm95.set_cs_line(BIT(data, 3));
}
}

View File

@ -260,4 +260,3 @@ INPUT_CHANGED_MEMBER(psx_analog_controller_device::change_mode)
if(!m_analoglock)
m_analogmode = newval;
}

View File

@ -341,4 +341,3 @@ void psxcard_device::sel_w(bool state)
reset();
m_sel = state;
}

View File

@ -2362,4 +2362,3 @@ WRITE8_MEMBER(gb_state::gbc_video_w)
m_lcd.gb_vid_regs[offset] = data;
}

View File

@ -241,5 +241,3 @@ void DebuggerView::debuggerViewUpdate(debug_view& debugView, void* osdPrivate)
dView->viewport()->update();
dView->update();
}

View File

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