mirror of
https://github.com/holub/mame
synced 2025-07-07 19:03:29 +03:00
Cleanups and version bump.
This commit is contained in:
parent
844ea6b37e
commit
aff6be5877
@ -523,8 +523,8 @@ static DISCRETE_STEP(dsd_555_mstbl)
|
||||
v_cap = context->cap_voltage;
|
||||
|
||||
/* Sometimes a switching network is used to setup the capacitance.
|
||||
* These may select 'no' capacitor, causing oscillation to stop.
|
||||
*/
|
||||
* These may select 'no' capacitor, causing oscillation to stop.
|
||||
*/
|
||||
if (DSD_555_MSTBL__C == 0)
|
||||
{
|
||||
context->flip_flop = 0;
|
||||
@ -545,7 +545,7 @@ static DISCRETE_STEP(dsd_555_mstbl)
|
||||
|
||||
/* Has it charged past upper limit? */
|
||||
/* If trigger is still enabled, then we keep charging,
|
||||
* regardless of threshold. */
|
||||
* regardless of threshold. */
|
||||
if ((v_cap_next >= context->threshold) && !trigger)
|
||||
{
|
||||
dt = DSD_555_MSTBL__R * DSD_555_MSTBL__C * log(1.0 / (1.0 - ((v_cap_next - context->threshold) / (context->v_charge - v_cap))));
|
||||
@ -1491,7 +1491,7 @@ static const struct
|
||||
double osc_stop[6];
|
||||
} ne566 =
|
||||
{
|
||||
/* 10 10.5 11 11.5 12 13 14 15 B+ */
|
||||
/* 10 10.5 11 11.5 12 13 14 15 B+ */
|
||||
{3.364, /*3.784,*/ 4.259, /*4.552,*/ 4.888, 5.384, 5.896, 6.416}, /* c_high */
|
||||
{1.940, /*2.100,*/ 2.276, /*2.404,*/ 2.580, 2.880, 3.180, 3.488}, /* c_low */
|
||||
{4.352, /*4.144,*/ 4.080, /*4.260,*/ 4.500, 4.960, 5.456, 5.940}, /* sqr_low */
|
||||
|
@ -917,8 +917,8 @@ static void init_nodes(discrete_info *info, const linked_list_entry *block_list,
|
||||
if (!has_tasks)
|
||||
{
|
||||
/* make sure we have one simple task
|
||||
* No need to create a node since there are no dependencies.
|
||||
*/
|
||||
* No need to create a node since there are no dependencies.
|
||||
*/
|
||||
task = auto_alloc_clear(info->device->machine, discrete_task);
|
||||
task->numbuffered = 0;
|
||||
task->list = task_node_list;
|
||||
|
@ -3599,7 +3599,7 @@ enum
|
||||
#define DISC_SCHMITT_OSC_ENAB_IS_NOR 0x06
|
||||
|
||||
#define DISC_SCHMITT_OSC_ENAB_MASK 0x06 /* Bits that define output enable type.
|
||||
* Used only internally in module. */
|
||||
* Used only internally in module. */
|
||||
|
||||
/* 555 Common output flags */
|
||||
#define DISC_555_OUT_DC 0x00
|
||||
@ -3621,7 +3621,7 @@ enum
|
||||
#define DISC_555_OUT_COUNT_R_X 0x07
|
||||
|
||||
#define DISC_555_OUT_MASK 0x07 /* Bits that define output type.
|
||||
* Used only internally in module. */
|
||||
* Used only internally in module. */
|
||||
|
||||
#define DISC_555_ASTABLE_HAS_FAST_CHARGE_DIODE 0x80
|
||||
#define DISCRETE_555_CC_TO_DISCHARGE_PIN 0x00
|
||||
@ -3639,7 +3639,7 @@ enum
|
||||
#define DISC_566_OUT_COUNT_F_X 0x50
|
||||
#define DISC_566_OUT_COUNT_R_X 0x60
|
||||
#define DISC_566_OUT_MASK 0x70 /* Bits that define output type.
|
||||
* Used only internally in module. */
|
||||
* Used only internally in module. */
|
||||
|
||||
/* LS624 output flags */
|
||||
#define DISC_LS624_OUT_ENERGY 0x01
|
||||
|
@ -275,8 +275,8 @@ static DISCRETE_SOUND_START(galaxian)
|
||||
/************************************************/
|
||||
|
||||
/* since only a sample of the LFSR is latched @V2 we let the lfsr
|
||||
* run at a lower speed
|
||||
*/
|
||||
* run at a lower speed
|
||||
*/
|
||||
DISCRETE_LFSR_NOISE(NODE_150, 1, 1, RNG_RATE/100, 1.0, 0, 0.5, &galaxian_lfsr)
|
||||
DISCRETE_SQUAREWFIX(NODE_151,1,60*264/2,1.0,50,0.5,0) /* 2V signal */
|
||||
DISCRETE_LOGIC_DFLIPFLOP(NODE_152,1,1,NODE_151,NODE_150)
|
||||
|
@ -138,8 +138,8 @@
|
||||
* where calculated using least square approximation.
|
||||
* This approach gives a bit better results compared to the first approach.
|
||||
*/
|
||||
//#define LS624_F(_C, _VI, _VR) pow10( -0.912029404 * log10(_C) + 0.243264328 * (_VI)
|
||||
// - 0.091695877 * (_VR) -0.014110946 * (_VI) * (_VR) - 3.207072925)
|
||||
//#define LS624_F(_C, _VI, _VR) pow10( -0.912029404 * log10(_C) + 0.243264328 * (_VI)
|
||||
// - 0.091695877 * (_VR) -0.014110946 * (_VI) * (_VR) - 3.207072925)
|
||||
#define LS624_F(_in, _num) pow10(context->k1_##_num + 0.243264328 * (_in) + context->k2_##_num * (_in))
|
||||
|
||||
/************************************************************************
|
||||
|
@ -167,8 +167,8 @@ DISCRETE_OP_AMP_FILTER(NODE_RELATIVE(SPRINT8_MOTOR1_SND, _car - 1), 1, NODE_RELA
|
||||
|
||||
DISCRETE_SOUND_START( sprint8 )
|
||||
/************************************************
|
||||
* Input register mapping
|
||||
************************************************/
|
||||
* Input register mapping
|
||||
************************************************/
|
||||
DISCRETE_INPUT_LOGIC(SPRINT8_CRASH_EN)
|
||||
DISCRETE_INPUT_NOT (SPRINT8_SCREECH_EN)
|
||||
DISCRETE_INPUT_NOT (SPRINT8_ATTRACT_EN)
|
||||
@ -185,11 +185,11 @@ DISCRETE_SOUND_START( sprint8 )
|
||||
DISCRETE_ADJUSTMENT_TAG(SPRINT8_R132_POT, 0, SPRINT8_R132, DISC_LINADJ, "R132")
|
||||
|
||||
/************************************************
|
||||
* Noise Generator, Crash, Screech
|
||||
************************************************/
|
||||
* Noise Generator, Crash, Screech
|
||||
************************************************/
|
||||
/* Address line A2 is used to XOR the feedback bits.
|
||||
* This can not easily be implemented, so I just set the
|
||||
* feedback as XNOR. */
|
||||
* This can not easily be implemented, so I just set the
|
||||
* feedback as XNOR. */
|
||||
DISCRETE_LFSR_NOISE(SPRINT8_NOISE, /* IC F7, pin 13 */
|
||||
1, /* ENAB */
|
||||
SPRINT8_ATTRACT_EN, /* RESET */
|
||||
@ -237,8 +237,8 @@ DISCRETE_SOUND_START( sprint8 )
|
||||
DISCRETE_TASK_END()
|
||||
|
||||
/************************************************
|
||||
* Car Motor
|
||||
************************************************/
|
||||
* Car Motor
|
||||
************************************************/
|
||||
DISCRETE_TASK_START(1)
|
||||
SPRINT8_MOTOR_CIRCUIT(1)
|
||||
SPRINT8_MOTOR_CIRCUIT(2)
|
||||
@ -260,8 +260,8 @@ DISCRETE_SOUND_START( sprint8 )
|
||||
DISCRETE_TASK_END()
|
||||
|
||||
/************************************************
|
||||
* Final Mix
|
||||
************************************************/
|
||||
* Final Mix
|
||||
************************************************/
|
||||
DISCRETE_TASK_START(2)
|
||||
DISCRETE_MIXER3(SPRINT8_AUDIO_1_2,
|
||||
SPRINT8_ATTRACT_EN, /* ENAB */
|
||||
|
@ -1470,10 +1470,10 @@ static MACHINE_START(39in1)
|
||||
ROM[i] = BITSWAP8(ROM[i],7,2,5,6,0,3,1,4) ^ BITSWAP8((i>>3)&0xf, 3,2,4,1,4,4,0,4) ^ 0x90;
|
||||
|
||||
// 60-in-1 decrypt
|
||||
// if ((i%2)==0)
|
||||
// {
|
||||
// ROM[i] = BITSWAP8(ROM[i],5,1,4,2,0,7,6,3)^BITSWAP8(i, 6,0,4,13,0,5,3,11);
|
||||
// }
|
||||
// if ((i%2)==0)
|
||||
// {
|
||||
// ROM[i] = BITSWAP8(ROM[i],5,1,4,2,0,7,6,3)^BITSWAP8(i, 6,0,4,13,0,5,3,11);
|
||||
// }
|
||||
}
|
||||
|
||||
pxa255_start(machine);
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
01 Oct 2009 - Converted to use the HazeMD SMS code so that old code
|
||||
can be removed, however this makes the text transparent,
|
||||
which IIRC is incorrect
|
||||
which IIRC is incorrect
|
||||
|
||||
22 Sept 2007 - Started updating this to use the new Megadrive code,
|
||||
fixing issues with Mazin Wars + Grand Slam.
|
||||
@ -84,7 +84,7 @@ UINT16 *ic36_ram;
|
||||
//static UINT8 ic36_ram[0x4000];
|
||||
|
||||
|
||||
//static UINT8 hintcount; /* line interrupt counter, decreased each scanline */
|
||||
//static UINT8 hintcount; /* line interrupt counter, decreased each scanline */
|
||||
extern UINT8 segae_vintpending;
|
||||
extern UINT8 segae_hintpending;
|
||||
extern UINT8 *segae_vdp_regs[]; /* pointer to vdp's registers */
|
||||
@ -795,14 +795,14 @@ static VIDEO_START(megplay)
|
||||
{
|
||||
//printf("megplay vs\n");
|
||||
VIDEO_START_CALL(megadriv);
|
||||
// VIDEO_START_CALL(megaplay_normal);
|
||||
// VIDEO_START_CALL(megaplay_normal);
|
||||
}
|
||||
|
||||
static VIDEO_UPDATE(megplay)
|
||||
{
|
||||
//printf("megplay vu\n");
|
||||
VIDEO_UPDATE_CALL(megadriv);
|
||||
// VIDEO_UPDATE_CALL(megaplay_normal);
|
||||
// VIDEO_UPDATE_CALL(megaplay_normal);
|
||||
VIDEO_UPDATE_CALL(megaplay_bios);
|
||||
return 0;
|
||||
}
|
||||
|
@ -5295,15 +5295,15 @@ ROM_START( vf4cart )
|
||||
ROM_END
|
||||
|
||||
/*
|
||||
This is the same nonsense layout rom board as gram2000, and just like
|
||||
that it tests IC1 which doesn't exist - is it a mirror, or protection
|
||||
related? There is no physical rom for it, also note, the roms are
|
||||
interleaved, so each test is testing 2 roms and the labeling / ic
|
||||
positions on the cart don't relate to the display in test mode.
|
||||
This is the same nonsense layout rom board as gram2000, and just like
|
||||
that it tests IC1 which doesn't exist - is it a mirror, or protection
|
||||
related? There is no physical rom for it, also note, the roms are
|
||||
interleaved, so each test is testing 2 roms and the labeling / ic
|
||||
positions on the cart don't relate to the display in test mode.
|
||||
|
||||
Desired IC1 @ 0x800000 sums from the header = 9f39 fdc4
|
||||
Desired IC1 @ 0x800000 sums from the header = 9f39 fdc4
|
||||
|
||||
We need a USB dump of this from 0x800000 to 0x1000000.
|
||||
We need a USB dump of this from 0x800000 to 0x1000000.
|
||||
*/
|
||||
ROM_START( vf4evoct )
|
||||
NAOMI2_BIOS
|
||||
|
@ -119,11 +119,11 @@ static READ8_HANDLER( unk_87_r )
|
||||
static WRITE8_HANDLER(unk_8a_w)
|
||||
{
|
||||
/*
|
||||
n7751_command = (data & 0x07);
|
||||
cputag_set_input_line(space->machine, "n7751", 0, ((data & 0x08) == 0) ? ASSERT_LINE : CLEAR_LINE);
|
||||
//cputag_set_input_line(device->machine, "n7751", 0, (data & 0x02) ? CLEAR_LINE : ASSERT_LINE);
|
||||
cpuexec_boost_interleave(space->machine, attotime_zero, ATTOTIME_IN_USEC(100));
|
||||
*/
|
||||
n7751_command = (data & 0x07);
|
||||
cputag_set_input_line(space->machine, "n7751", 0, ((data & 0x08) == 0) ? ASSERT_LINE : CLEAR_LINE);
|
||||
//cputag_set_input_line(device->machine, "n7751", 0, (data & 0x02) ? CLEAR_LINE : ASSERT_LINE);
|
||||
cpuexec_boost_interleave(space->machine, attotime_zero, ATTOTIME_IN_USEC(100));
|
||||
*/
|
||||
|
||||
logerror("8a -> %x\n",data);
|
||||
}
|
||||
|
@ -248,11 +248,6 @@ static WRITE32_HANDLER( shared_ram_write )
|
||||
COMBINE_DATA(&shared_ram[offset]) ;
|
||||
|
||||
logerror("68k WRITING %04x & %04x to shared ram %x & %x [%08x] (@%x)\n", (shared_ram[offset] & 0xffff0000) >> 16,
|
||||
(shared_ram[offset] & 0x0000ffff),
|
||||
0xc000 + (offset<<1),
|
||||
0xc000 +((offset<<1)+1),
|
||||
mem_mask,
|
||||
cpu_get_pc(space->cpu));
|
||||
|
||||
/* write to the current dsp56k word */
|
||||
if (mem_mask | (0xffff0000))
|
||||
@ -274,12 +269,12 @@ static WRITE32_HANDLER( dsp_w_lines )
|
||||
/* 0x01000000 is the reset line - 0 is high, 1 is low */
|
||||
if ((data >> 24) & 0x01)
|
||||
{
|
||||
// logerror("RESET CLEARED\n");
|
||||
// logerror("RESET CLEARED\n");
|
||||
cputag_set_input_line(space->machine, "dsp", DSP56K_IRQ_RESET, CLEAR_LINE);
|
||||
}
|
||||
else
|
||||
{
|
||||
// logerror("RESET ASSERTED\n");
|
||||
// logerror("RESET ASSERTED\n");
|
||||
cputag_set_input_line(space->machine, "dsp", DSP56K_IRQ_RESET, ASSERT_LINE);
|
||||
|
||||
/* A little hacky - I can't seem to set these lines anywhere else where reset is asserted, so i do it here */
|
||||
|
@ -13,7 +13,7 @@
|
||||
Known bugs:
|
||||
* Pig Newton doesn't read cocktail controls (might be game bug)
|
||||
* Astro Blaster v1 dies when you first start if you only
|
||||
have one credit at the time (bad dump?, protection?)
|
||||
have one credit at the time (bad dump?, protection?)
|
||||
|
||||
****************************************************************************
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
/*
|
||||
SMS code from HazeMD
|
||||
- used by Syetem E
|
||||
- Megatech / Megaplay
|
||||
SMS code from HazeMD
|
||||
- used by Syetem E
|
||||
- Megatech / Megaplay
|
||||
|
||||
this contains common code to support those systems
|
||||
this contains common code to support those systems
|
||||
|
||||
(not currently very good / accurate, should be rewritten)
|
||||
(not currently very good / accurate, should be rewritten)
|
||||
|
||||
*/
|
||||
|
||||
@ -1736,7 +1736,7 @@ MACHINE_DRIVER_START( sms )
|
||||
MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB15)
|
||||
MDRV_SCREEN_SIZE(256, 256)
|
||||
MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 223)
|
||||
// MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 191)
|
||||
// MDRV_SCREEN_VISIBLE_AREA(0, 255, 0, 191)
|
||||
|
||||
MDRV_PALETTE_LENGTH(0x200)
|
||||
|
||||
|
@ -27,7 +27,7 @@ P0-045-A (M6100429A) 89 DownTown Taito / RomStar
|
||||
? (M6100430A) 89 U.S. Classic(2) Taito / RomStar
|
||||
? 88 Caliber 50 Taito / RomStar
|
||||
? 89 Arbalester Taito / RomStar
|
||||
PO-047A ?? Seta Roulette Seta / Visco
|
||||
PO-047A ?? Seta Roulette Seta / Visco
|
||||
P1-036-A + P0-045-A +
|
||||
P1-049-A 89 Meta Fox Taito / RomStar
|
||||
P0-053-1 89 Castle of Dragon/Dragon Unit Taito / RomStar / Athena
|
||||
@ -7281,7 +7281,7 @@ static MACHINE_DRIVER_START( setaroul )
|
||||
MDRV_PALETTE_LENGTH(512)
|
||||
|
||||
MDRV_VIDEO_START(dummy_start)
|
||||
//MDRV_VIDEO_EOF(seta_buffer_sprites) /* qzkklogy uses sprite buffering */
|
||||
//MDRV_VIDEO_EOF(seta_buffer_sprites) /* qzkklogy uses sprite buffering */
|
||||
MDRV_VIDEO_UPDATE(dummy_update)
|
||||
|
||||
/* sound hardware */
|
||||
|
@ -480,7 +480,7 @@ static MACHINE_DRIVER_START( sprint8 )
|
||||
|
||||
/* sound hardware */
|
||||
/* the proper way is to hook up 4 speakers, but they are not really
|
||||
* F/R/L/R speakers. Though you can pretend the 1-2 mix is the front. */
|
||||
* F/R/L/R speakers. Though you can pretend the 1-2 mix is the front. */
|
||||
MDRV_SPEAKER_ADD("speaker_1_2", 0.0, 0.0, 1.0) /* front */
|
||||
MDRV_SPEAKER_ADD("speaker_3_7", -0.2, 0.0, 1.0) /* left */
|
||||
MDRV_SPEAKER_ADD("speaker_5_6", 0.0, 0.0, -0.5) /* back */
|
||||
|
@ -7527,7 +7527,7 @@ BOMULEUL CHAJARA SEGA ST-V 1997/04/11
|
||||
DRIVER( calibr50 ) /* UH (c) 1989 + Romstar or Taito license (DSW) */
|
||||
DRIVER( arbalest ) /* UK (c) 1989 + Jordan, Romstar or Taito license (DSW) */
|
||||
DRIVER( metafox ) /* UP (c) 1989 + Jordan, Romstar or Taito license (DSW) */
|
||||
DRIVER( setaroul ) /* UF (c) 19?? Seta / Visco */
|
||||
DRIVER( setaroul ) /* UF (c) 19?? Seta / Visco */
|
||||
DRIVER( drgnunit ) /* (c) 1989 Athena / Seta + Romstar or Taito license (DSW) */
|
||||
DRIVER( wits ) /* (c) 1989 Athena (Visco license) */
|
||||
DRIVER( thunderl ) /* (c) 1990 Seta + Romstar or Visco license (DSW) */
|
||||
|
@ -10,4 +10,4 @@
|
||||
***************************************************************************/
|
||||
|
||||
extern const char build_version[];
|
||||
const char build_version[] = "0.134u1 ("__DATE__")";
|
||||
const char build_version[] = "0.134u2 ("__DATE__")";
|
||||
|
Loading…
Reference in New Issue
Block a user