summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-05-05 01:10:40 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-05-05 01:10:40 +0000
commit72d8b1db585768db90f38411e108e706ceee7320 (patch)
treeb925639e4117f95ce89db793a4441614c68233a9
parent0eae440981787f0c77f6cf3255591dbb36ec8e96 (diff)
Cleanups and version bump.
-rw-r--r--src/emu/debug/express.c22
-rw-r--r--src/emu/drivers/xtal.h2
-rw-r--r--src/emu/sound/aica.c6
-rw-r--r--src/emu/sound/tms5220.c10
-rw-r--r--src/emu/sound/vrender0.c2
-rw-r--r--src/mame/drivers/aristmk4.c18
-rw-r--r--src/mame/drivers/bbusters.c20
-rw-r--r--src/mame/drivers/crystal.c12
-rw-r--r--src/mame/drivers/galdrvr.c2
-rw-r--r--src/mame/drivers/harddriv.c2
-rw-r--r--src/mame/drivers/jollyjgr.c4
-rw-r--r--src/mame/drivers/mw8080bw.c2
-rw-r--r--src/mame/drivers/namcops2.c6
-rw-r--r--src/mame/drivers/namcos12.c6
-rw-r--r--src/mame/drivers/namcos2.c8
-rw-r--r--src/mame/drivers/namcos23.c26
-rw-r--r--src/mame/drivers/pachifev.c6
-rw-r--r--src/mame/drivers/pgm.c274
-rw-r--r--src/mame/drivers/photon.c2
-rw-r--r--src/mame/drivers/segas18.c6
-rw-r--r--src/mame/drivers/segas32.c18
-rw-r--r--src/mame/drivers/segaybd.c66
-rw-r--r--src/mame/drivers/shaolins.c4
-rw-r--r--src/mame/drivers/subsino.c2
-rw-r--r--src/mame/drivers/taito_z.c14
-rw-r--r--src/mame/drivers/vsnes.c38
-rw-r--r--src/mame/includes/taito_z.h4
-rw-r--r--src/mame/machine/dc.c8
-rw-r--r--src/mame/machine/namcos2.c2
-rw-r--r--src/mame/machine/stvcd.c2
-rw-r--r--src/mame/machine/taitoio.c6
-rw-r--r--src/mame/mamedriv.c2
-rw-r--r--src/mame/video/dc.c2
-rw-r--r--src/mame/video/model3.c34
-rw-r--r--src/mame/video/rdpblend.c2
-rw-r--r--src/mame/video/rdpblend.h2
-rw-r--r--src/mame/video/rdpfb.h2
-rw-r--r--src/mame/video/rdpfrect.h2
-rw-r--r--src/mame/video/rdpspn16.c2
-rw-r--r--src/mame/video/rdptpipe.h2
-rw-r--r--src/mame/video/rdptrect.c2
-rw-r--r--src/mame/video/rdptri.h2
-rw-r--r--src/mame/video/sega16sp.c16
-rw-r--r--src/mame/video/taitoic.c2
-rw-r--r--src/mame/video/vrender0.c4
-rw-r--r--src/tools/srcclean.c2
-rw-r--r--src/version.c2
47 files changed, 340 insertions, 340 deletions
diff --git a/src/emu/debug/express.c b/src/emu/debug/express.c
index a539713c926..07ef01d69b1 100644
--- a/src/emu/debug/express.c
+++ b/src/emu/debug/express.c
@@ -1982,17 +1982,17 @@ int symtable_add(symbol_table *table, const char *name, const symbol_entry *entr
/* we cannot add numeric symbols */
/*
- all_digits = TRUE;
- for (i = 0; name[i]; i++)
- {
- if (!isdigit((UINT8)name[i]))
- {
- all_digits = FALSE;
- break;
- }
- }
- assert_always(!all_digits, "All-digit symbols are not allowed");
- */
+ all_digits = TRUE;
+ for (i = 0; name[i]; i++)
+ {
+ if (!isdigit((UINT8)name[i]))
+ {
+ all_digits = FALSE;
+ break;
+ }
+ }
+ assert_always(!all_digits, "All-digit symbols are not allowed");
+ */
/* see if we already have an entry and just overwrite it if we do */
oldentry = (symbol_entry *)symtable_find(table, name);
diff --git a/src/emu/drivers/xtal.h b/src/emu/drivers/xtal.h
index 158be10b504..93efebd96cd 100644
--- a/src/emu/drivers/xtal.h
+++ b/src/emu/drivers/xtal.h
@@ -142,7 +142,7 @@ enum
XTAL_27_2109MHz = 27210900, /* LA Girl */
XTAL_28MHz = 28000000,
XTAL_28_37516MHz = 28375160, /* Amiga PAL systems */
- XTAL_28_48MHz = 28480000, /* Chromatics CGC-7900 */
+ XTAL_28_48MHz = 28480000, /* Chromatics CGC-7900 */
XTAL_28_63636MHz = 28636360, /* Later Leland games and Atari GT, Amiga NTSC , Raiden2 h/w */
XTAL_30MHz = 30000000, /* Impera Magic Card */
XTAL_30_4761MHz = 30476100, /* Taito JC */
diff --git a/src/emu/sound/aica.c b/src/emu/sound/aica.c
index 0710bedf875..d68d76de816 100644
--- a/src/emu/sound/aica.c
+++ b/src/emu/sound/aica.c
@@ -367,7 +367,7 @@ static int EG_Update(struct _SLOT *slot)
slot->EG.volume+=slot->EG.AR;
if(slot->EG.volume>=(0x3ff<<EG_SHIFT))
{
- if (!LPSLNK(slot) && slot->EG.D1R)
+ if (!LPSLNK(slot) && slot->EG.D1R)
{
slot->EG.state=DECAY1;
if(slot->EG.D1R>=(1024<<EG_SHIFT) && slot->EG.D2R) //Skip DECAY1, go directly to DECAY2
@@ -856,7 +856,7 @@ static void AICA_UpdateRegR(aica_state *AICA, int reg)
}
}
break;
-
+
case 0x14: // CA (slot address)
case 0x15:
{
@@ -1186,7 +1186,7 @@ static void AICA_DoMasterSamples(aica_state *AICA, int nsamples)
for(sl=0;sl<64;++sl)
{
struct _SLOT *slot=AICA->Slots+sl;
- RBUFDST=AICA->RINGBUF+AICA->BUFPTR;
+ RBUFDST=AICA->RINGBUF+AICA->BUFPTR;
if(AICA->Slots[sl].active)
{
unsigned int Enc;
diff --git a/src/emu/sound/tms5220.c b/src/emu/sound/tms5220.c
index e96d65c5cbd..a8d8800d18e 100644
--- a/src/emu/sound/tms5220.c
+++ b/src/emu/sound/tms5220.c
@@ -50,8 +50,8 @@ TODO:
* If a command is still executing, /READY will be kept high until the command has
finished if the next command is written.
* tomcat has a 5220 which is not hooked up at all
- * documentation is inconsistent in the patents about what data is returned for chirp rom addresses (base 0) 41 to 51; the patent says the 'rom returns zeroes for locations beyond 40', but at the same time the rom stores the complement of the actual chirp rom value, so are locations beyond 40 = 0x00(0) or = 0xFF(-1)? The latter seems more likely to me, and that is how it is currently implemented. (LN).
- * Is the TS=0 forcing energy to 0 for next frame in the interpolator actually correct?
+ * documentation is inconsistent in the patents about what data is returned for chirp rom addresses (base 0) 41 to 51; the patent says the 'rom returns zeroes for locations beyond 40', but at the same time the rom stores the complement of the actual chirp rom value, so are locations beyond 40 = 0x00(0) or = 0xFF(-1)? The latter seems more likely to me, and that is how it is currently implemented. (LN).
+ * Is the TS=0 forcing energy to 0 for next frame in the interpolator actually correct?
Pedantic detail from observation of real chip:
The 5200 and 5220 chips outputs the following coefficients over PROMOUT while
@@ -292,7 +292,7 @@ struct _tms5220_state
//UINT8 interp_period; /* TODO: the current interpolation period, counts 1,2,3,4,5,6,7,0 for divide by 8,8,8,4,4,4,2,1 */
UINT8 interp_count; /* number of samples within each sub-interpolation period, ranges from 0-24 */
- //UINT8 spkslow_delay; /* delay counter for interp count, only used on tms51xx */
+ //UINT8 spkslow_delay; /* delay counter for interp count, only used on tms51xx */
UINT8 sample_count; /* number of samples within the ENTIRE interpolation period, ranges from 0-199 */
UINT8 tms5220c_rate; /* only relevant for tms5220C's multi frame rate feature; is the actual 4 bit value written on a 0x2* or 0x0* command */
UINT16 pitch_count; /* pitch counter; provides chirp rom address */
@@ -577,7 +577,7 @@ static void update_status_and_ints(tms5220_state *tms)
}
}
/* Note that TS being unset will also generate an interrupt when a STOP
- frame is encountered; this is handled in the sample generator code and not here */
+ frame is encountered; this is handled in the sample generator code and not here */
}
/**********************************************************************************************
@@ -903,7 +903,7 @@ static void tms5220_process(tms5220_state *tms, INT16 *buffer, unsigned int size
case 13: /* PC=6, B cycle, nothing happens (update K5) */
break;
case 14: /* PC=7, A cycle, update K5 (calc K6) */
- if (interp_period == PC_COUNT_LOAD)
+ if (interp_period == PC_COUNT_LOAD)
tms->current_k[4] = (tms->coeff->ktable[4][tms->old_frame_k_idx[4]] * (1-zpar));
tms->current_k[4] += ((tms->target_k[4] - tms->current_k[4]) >> tms->coeff->interp_coeff[interp_period]);
break;
diff --git a/src/emu/sound/vrender0.c b/src/emu/sound/vrender0.c
index b448ce55253..9f2a408dab6 100644
--- a/src/emu/sound/vrender0.c
+++ b/src/emu/sound/vrender0.c
@@ -115,7 +115,7 @@ static DEVICE_START( vrender0 )
VR0->stream = stream_create(device, 0, 2, 44100, VR0, VR0_Update);
- state_save_register_device_item_array(device, 0, VR0->SOUNDREGS);
+ state_save_register_device_item_array(device, 0, VR0->SOUNDREGS);
}
WRITE32_DEVICE_HANDLER(vr0_snd_write)
diff --git a/src/mame/drivers/aristmk4.c b/src/mame/drivers/aristmk4.c
index 336ce459272..9ede0e6ebdb 100644
--- a/src/mame/drivers/aristmk4.c
+++ b/src/mame/drivers/aristmk4.c
@@ -25,15 +25,15 @@ Technical Notes:
It also provides the real time clock DS1287 to the CPU.
- 27/04/10 - FrasheR
- 2 x Sound Chips connected to the 6522 VIA.
- Notes
- The VIA uses Port A to write to the D0-D7 on the AY8910s. Port B hooks first 4 bits up to BC1/BC2/BDIR and A9 on AY1 and A8 on AY2
- The remaining 4 bits are connected to other hardware, read via the VIA.
+ 27/04/10 - FrasheR
+ 2 x Sound Chips connected to the 6522 VIA.
+ Notes
+ The VIA uses Port A to write to the D0-D7 on the AY8910s. Port B hooks first 4 bits up to BC1/BC2/BDIR and A9 on AY1 and A8 on AY2
+ The remaining 4 bits are connected to other hardware, read via the VIA.
- The AY8910 named ay1 has writes on PORT B to the ZN434 DA convertor.
- The AY8910 named ay2 has writes to lamps and the light tower on Port A and B. I
- -- I have not coded these and such a warning will be received when data is written to port A and port B of AY2.
+ The AY8910 named ay1 has writes on PORT B to the ZN434 DA convertor.
+ The AY8910 named ay2 has writes to lamps and the light tower on Port A and B. I
+ -- I have not coded these and such a warning will be received when data is written to port A and port B of AY2.
***********************************************************************************************************************************************/
@@ -543,7 +543,7 @@ static const ay8910_interface ay8910_config2 =
static const via6522_interface via_interface =
{
- /*inputs : A/B */ DEVCB_HANDLER(via_a_r),DEVCB_HANDLER(via_b_r),
+ /*inputs : A/B */ DEVCB_HANDLER(via_a_r),DEVCB_HANDLER(via_b_r),
/*inputs : CA/B1,CA/B2 */ DEVCB_NULL,DEVCB_NULL,DEVCB_HANDLER(via_ca2_r),DEVCB_HANDLER(via_cb2_r),
/*outputs: A/B */ DEVCB_HANDLER(via_a_w), DEVCB_HANDLER(via_b_w),
/*outputs: CA/B1,CA/B2 */ DEVCB_NULL,DEVCB_NULL,DEVCB_HANDLER(via_ca2_w),DEVCB_HANDLER(via_cb2_w),
diff --git a/src/mame/drivers/bbusters.c b/src/mame/drivers/bbusters.c
index 6618566b93b..d998bf7b292 100644
--- a/src/mame/drivers/bbusters.c
+++ b/src/mame/drivers/bbusters.c
@@ -262,15 +262,15 @@ static WRITE8_HANDLER( sound_status_w )
static WRITE16_HANDLER( sound_cpu_w )
{
-
+
if (ACCESSING_BITS_0_7)
{
-
-
+
+
soundlatch_w(space, 0, data&0xff);
cputag_set_input_line(space->machine, "audiocpu", INPUT_LINE_NMI, PULSE_LINE);
}
-
+
}
/* Eprom is byte wide, top half of word _must_ be 0xff */
@@ -297,17 +297,17 @@ static WRITE16_HANDLER( gun_select_w )
logerror("%08x: gun r\n",cpu_get_pc(space->cpu));
cpu_set_input_line(space->cpu, 2, HOLD_LINE);
-
+
gun_select = data & 0xff;
-
+
}
static WRITE16_HANDLER( two_gun_output_w )
{
output_set_value("Player1_Gun_Recoil",(data & 0x01));
output_set_value("Player2_Gun_Recoil",(data & 0x02)>>1);
-
-
+
+
}
static WRITE16_HANDLER( three_gun_output_w )
@@ -315,8 +315,8 @@ static WRITE16_HANDLER( three_gun_output_w )
output_set_value("Player1_Gun_Recoil",(data & 0x01));
output_set_value("Player2_Gun_Recoil",(data & 0x02)>>1);
output_set_value("Player3_Gun_Recoil",(data & 0x04)>>2);
-
-
+
+
}
static READ16_HANDLER( kludge_r )
diff --git a/src/mame/drivers/crystal.c b/src/mame/drivers/crystal.c
index b243d2df84f..d5ce0d97931 100644
--- a/src/mame/drivers/crystal.c
+++ b/src/mame/drivers/crystal.c
@@ -128,9 +128,9 @@ class crystal_state
{
public:
static void *alloc(running_machine &machine) { return auto_alloc_clear(&machine, crystal_state(machine)); }
-
+
crystal_state(running_machine &machine) { }
-
+
/* memory pointers */
UINT32 * workram;
UINT32 * textureram;
@@ -138,7 +138,7 @@ public:
UINT32 * sysregs;
UINT32 * vidregs;
// UINT32 * nvram; // currently this uses generic nvram handling
-
+
#ifdef IDLE_LOOP_SPEEDUP
UINT8 FlipCntRead;
#endif
@@ -566,17 +566,17 @@ static MACHINE_START( crystal )
state->maincpu = devtag_get_device(machine, "maincpu");
state->ds1302 = devtag_get_device(machine, "rtc");
state->vr0video = devtag_get_device(machine, "vr0");
-
+
cpu_set_irq_callback(devtag_get_device(machine, "maincpu"), icallback);
for (i = 0; i < 4; i++)
state->Timer[i] = timer_alloc(machine, Timercb, (void*)(FPTR)i);
PatchReset(machine);
-
+
#ifdef IDLE_LOOP_SPEEDUP
state_save_register_global(machine, state->FlipCntRead);
#endif
-
+
state_save_register_global(machine, state->Bank);
state_save_register_global(machine, state->FlipCount);
state_save_register_global(machine, state->IntHigh);
diff --git a/src/mame/drivers/galdrvr.c b/src/mame/drivers/galdrvr.c
index bf4c2afbfdd..e05e86bd199 100644
--- a/src/mame/drivers/galdrvr.c
+++ b/src/mame/drivers/galdrvr.c
@@ -3182,7 +3182,7 @@ Cut the track on the bottom of the board going to pin 21 of IC 1K
Cut the track on the bottom of the board going to pin 21 of IC 1H
(2716 eprom).
-Join pins 21 of IC's 1H and 1K together and connect both to +5 volts
+Join pins 21 of IC's 1H and 1K together and connect both to +5 volts
(although I've seen one set of docs saying to connect to pin 1 of
ic 2N (7408) instead) */
diff --git a/src/mame/drivers/harddriv.c b/src/mame/drivers/harddriv.c
index 793381eaf1e..8d44db61b2a 100644
--- a/src/mame/drivers/harddriv.c
+++ b/src/mame/drivers/harddriv.c
@@ -3510,7 +3510,7 @@ ROM_START( racedrivpan )
ROM_REGION16_BE( 0x51000, "user3", 0 ) /* 256k for DSK ROMs + 64k for RAM + 4k for ZRAM */
ROM_LOAD16_BYTE( "rdpd1026.bin", 0x000000, 0x020000, CRC(16572618) SHA1(08d9f7f76e6e75d5233240d4deab96808825994b) )
ROM_LOAD16_BYTE( "rdpd1025.bin", 0x000001, 0x020000, CRC(57b8a266) SHA1(257246d42841aa30220caeb91945e29978ee8fc0) )
-
+
/* Audio ROMs - show up as bad in self-test but so do racedriv's */
ROM_REGION( 0x50000, "serialroms", 0 ) /* 5*64k for audio serial ROMs */
ROM_LOAD( "rdps1123.bin", 0x000000, 0x010000, CRC(a88411dc) SHA1(1fd53c7eadffa163d5423df2f8338757e58d5f2e) )
diff --git a/src/mame/drivers/jollyjgr.c b/src/mame/drivers/jollyjgr.c
index 27d1ba19ba1..660a6a7f8c0 100644
--- a/src/mame/drivers/jollyjgr.c
+++ b/src/mame/drivers/jollyjgr.c
@@ -695,8 +695,8 @@ ROM_START( fspiderb )
ROM_REGION( 0x1000, "gfx3", ROMREGION_ERASE00 )
ROM_COPY( "gfx_bank", 0x0800, 0x0400, 0x400)
ROM_COPY( "gfx_bank", 0x1800, 0x0c00, 0x400)
-// ROM_COPY( "gfx_bank", 0x2800, 0x1000, 0x800)
-// ROM_COPY( "gfx_bank", 0x3800, 0x1800, 0x800)
+// ROM_COPY( "gfx_bank", 0x2800, 0x1000, 0x800)
+// ROM_COPY( "gfx_bank", 0x3800, 0x1800, 0x800)
ROM_REGION( 0x1000, "proms", 0 )
ROM_LOAD( "82s123.1f", 0x0000, 0x0020, CRC(cda6001a) SHA1(e10fe848e8123e53bd2db8a14cfa2d8c6621d6aa) )
diff --git a/src/mame/drivers/mw8080bw.c b/src/mame/drivers/mw8080bw.c
index be2565298ae..b5e1b0830f0 100644
--- a/src/mame/drivers/mw8080bw.c
+++ b/src/mame/drivers/mw8080bw.c
@@ -439,7 +439,7 @@ static WRITE8_HANDLER( gunfight_io_w )
if (offset & 0x04)
mb14241_shift_data_w(state->mb14241, 0, data);
-
+
}
diff --git a/src/mame/drivers/namcops2.c b/src/mame/drivers/namcops2.c
index ea4aed2a853..b59d5066948 100644
--- a/src/mame/drivers/namcops2.c
+++ b/src/mame/drivers/namcops2.c
@@ -240,7 +240,7 @@ ROM_START( tekken51 )
DISK_IMAGE_READONLY( "te510b", 0, SHA1(2a0ac3723725572c1810b0ef4bcfa7aa114062f8) )
ROM_END
-ROM_START( zgundm )
+ROM_START( zgundm )
ROM_REGION(0x200000, "bios", 0)
SYSTEM246_BIOS
@@ -256,8 +256,8 @@ ROM_START( timecrs3 )
SYSTEM246_BIOS
ROM_REGION(0x840000, "key", ROMREGION_ERASE00)
- ROM_LOAD( "tst1vera.ic002", 0x000000, 0x800000, CRC(2c7ede91) SHA1(b3d3547f5aac402da2fe76ef51dca3841a982a5e) )
- ROM_LOAD( "tst1vera_spr.ic002", 0x800000, 0x040000, CRC(ee9c8132) SHA1(fb00e102389e2163d2c7efcfefd4f680f0b4d4e8) )
+ ROM_LOAD( "tst1vera.ic002", 0x000000, 0x800000, CRC(2c7ede91) SHA1(b3d3547f5aac402da2fe76ef51dca3841a982a5e) )
+ ROM_LOAD( "tst1vera_spr.ic002", 0x800000, 0x040000, CRC(ee9c8132) SHA1(fb00e102389e2163d2c7efcfefd4f680f0b4d4e8) )
DISK_REGION("dvd")
DISK_IMAGE_READONLY( "tst1dvd0", 0, SHA1(f8a447d9a4224282516bea590f5217c751bdc4ae) )
diff --git a/src/mame/drivers/namcos12.c b/src/mame/drivers/namcos12.c
index e8b5b58b24e..e9d9ddab707 100644
--- a/src/mame/drivers/namcos12.c
+++ b/src/mame/drivers/namcos12.c
@@ -1124,13 +1124,13 @@ static WRITE32_HANDLER( system11gun_w )
{
if( ACCESSING_BITS_0_15 )
{
-
+
/* blowback 1 */
/* blowback 2 */
/* Note: output label has been changed for the Engrish Impaired ;-) */
output_set_value("Player1_Gun_Recoil", (~data & 0x02)>>1);
- output_set_value("Player2_Gun_Recoil", (~data & 0x01));
-
+ output_set_value("Player2_Gun_Recoil", (~data & 0x01));
+
/* start 1 */
output_set_value("P2_Start_lamp", (~data & 0x08)>>3);
/* start 2 */
diff --git a/src/mame/drivers/namcos2.c b/src/mame/drivers/namcos2.c
index 2ab6b7ac43f..4d06e5a88de 100644
--- a/src/mame/drivers/namcos2.c
+++ b/src/mame/drivers/namcos2.c
@@ -514,7 +514,7 @@ GollyGhostUpdateDiorama_c0( int data )
/* gun recoils */
output_set_value("Player1_Gun_Recoil",(data & 0x20)>>5);
output_set_value("Player2_Gun_Recoil",(data & 0x40)>>6);
-
+
}
else
{
@@ -545,7 +545,7 @@ static WRITE16_HANDLER( namcos2_68k_dpram_word_w )
switch( offset )
{
case 0xc0/2: GollyGhostUpdateDiorama_c0(data); break;
- case 0xc2/2:
+ case 0xc2/2:
/* unknown; 0x00 or 0x01 - probably lights up guns */
break;
case 0xc4/2: GollyGhostUpdateLED_c4(data); break;
@@ -558,7 +558,7 @@ static WRITE16_HANDLER( namcos2_68k_dpram_word_w )
}
/* Note: Outputs for the other gun games pass through here as well, but I couldn't find the offsets. */
/* Steel Gunner 1 & 2 have 6 "damage lamps" (three on each side) as well as gun recoils. */
-
+
}
}
@@ -657,7 +657,7 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( common_sgunner_am, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x800000, 0x8141ff) AM_READWRITE(namco_obj16_r,namco_obj16_w)
- AM_RANGE(0x818000, 0x818001) AM_WRITENOP
+ AM_RANGE(0x818000, 0x818001) AM_WRITENOP
AM_RANGE(0xa00000, 0xa0000f) AM_READWRITE(namcos2_68k_key_r,namcos2_68k_key_w)
AM_IMPORT_FROM( namcos2_68k_default_cpu_board_am )
ADDRESS_MAP_END
diff --git a/src/mame/drivers/namcos23.c b/src/mame/drivers/namcos23.c
index fbe8e220afb..7086034e27f 100644
--- a/src/mame/drivers/namcos23.c
+++ b/src/mame/drivers/namcos23.c
@@ -1280,19 +1280,19 @@ static READ16_HANDLER(s23_c417_r)
{
switch(offset) {
/* According to timecrs2c, +0 is the status word with bits being:
- 15: test mode flag (huh?)
- 10: fifo data ready
- 9: cmd ram data ready
- 8: matrix busy
- 7: output unit busy (inverted)
- 6: hokan/tenso unit busy
- 5: point unit busy
- 4: access unit busy
- 3: c403 busy (inverted)
- 2: 2nd c435 busy (inverted)
- 1: 1st c435 busy (inverted)
- 0: xcpreq
- */
+ 15: test mode flag (huh?)
+ 10: fifo data ready
+ 9: cmd ram data ready
+ 8: matrix busy
+ 7: output unit busy (inverted)
+ 6: hokan/tenso unit busy
+ 5: point unit busy
+ 4: access unit busy
+ 3: c403 busy (inverted)
+ 2: 2nd c435 busy (inverted)
+ 1: 1st c435 busy (inverted)
+ 0: xcpreq
+ */
case 0: return 0x8e | (video_screen_get_vblank(space->machine->primary_screen) ? 0x0000 : 0x8000);
case 1: return c417_adr;
case 4:
diff --git a/src/mame/drivers/pachifev.c b/src/mame/drivers/pachifev.c
index 311cfb73c78..3997d2708b7 100644
--- a/src/mame/drivers/pachifev.c
+++ b/src/mame/drivers/pachifev.c
@@ -6,11 +6,11 @@ PACHI FEVER / (c) 1983 SANKI DENSHI KOGYO
Many thanks to Olivier Galibert and Wilbert Pol for identify the CPU
-Driver by Tomasz Slanina
+Driver by Tomasz Slanina
- CPU has scratched surface and custom marks "GEN480830 DBS 30102" plus TI logo.
There's "GENZUK 01" print on the PCB, near the chip.
- It's TMS9995 or derivative ( decrementer + lvl3 interrupt, internal ram)
+ It's TMS9995 or derivative ( decrementer + lvl3 interrupt, internal ram)
XTAL:12.000MHZ
- VDP has also custom label ( "RY 050012 DDU 30600" ) plus TI logo
Seems to be TMS9928A
@@ -331,7 +331,7 @@ ROM_START( pachifev )
ROM_REGION( 0x4000, "adpcm", 0 )
ROM_LOAD( "ic66.10", 0x0000, 0x2000, CRC(217c573e) SHA1(6fb90865d1d81f5ea00fa7916d0ccb6756ef5ce5) )
-
+
ROM_END
GAME( 1983, pachifev, 0, pachifev, pachifev, 0, ROT270, "Sanki Denshi Kogyo", "Pachifever", GAME_IMPERFECT_SOUND )
diff --git a/src/mame/drivers/pgm.c b/src/mame/drivers/pgm.c
index f1cb3a01bc4..0ff7f945028 100644
--- a/src/mame/drivers/pgm.c
+++ b/src/mame/drivers/pgm.c
@@ -147,34 +147,34 @@ ASIC 3:
Oriental Legend
function:
-ASIC 25 + ASIC 12
+ASIC 25 + ASIC 12
ASIC25 is a logic device (not MCU) which performs bitswap operations
ASIC12 is ... ? (rom overlays?)
-
- used by:
+
+ used by:
Dragon World 2
-ASIC 25 + ASIC 22
+ASIC 25 + ASIC 22
ASIC25 is a logic device (not MCU) which performs bitswap operations, and connects to the ASIC22. It differs per region.
- ASIC22 is an MCU and acts as an encrypted DMA device
-
- (ASIC22 can be swapped between games with no side-effects, ASIC25 can't)
-
- used by:
+ ASIC22 is an MCU and acts as an encrypted DMA device
+
+ (ASIC22 can be swapped between games with no side-effects, ASIC25 can't)
+
+ used by:
Dragon World 3
The Killing Blade
ASIC 25 + ASIC 28
ASIC25 (see above)
- ASIC28 acts as an encrypted DMA device (updated version of ASIC22 with different encryption etc.)
-
- used by:
- Oriental Legend Super
+ ASIC28 acts as an encrypted DMA device (updated version of ASIC22 with different encryption etc.)
+
+ used by:
+ Oriental Legend Super
ASIC 27 (55857E):
performs a variety of calculations, quite complex, different per region, supplies region code
-
- used by:
+
+ used by:
Knights of Valour 1 / (Plus?)
Photo Y2k / Real and Fake
@@ -1960,9 +1960,9 @@ ROM_START( drgw3 )
ROM_LOAD16_BYTE( "dw3_v106.u13", 0x100000, 0x080000, CRC(28284e22) SHA1(4643a69881ddb7383ca10f3eb2aa2cf41be39e9f) )
/* CPU2 = Z80, romless, code uploaded by 68k */
-
-// ROM_REGION( 0x40000, "user2", 0 ) /* RAM dump - to be removed once the DMA is hooked up */
-// ROM_LOAD16_WORD_SWAP( "dw3c_prot_ramdump", 0x0000, 0x4000, CRC(6b4fc08b) SHA1(61583637c2f1767df4bc637f922987c9510a584f) )
+
+// ROM_REGION( 0x40000, "user2", 0 ) /* RAM dump - to be removed once the DMA is hooked up */
+// ROM_LOAD16_WORD_SWAP( "dw3c_prot_ramdump", 0x0000, 0x4000, CRC(6b4fc08b) SHA1(61583637c2f1767df4bc637f922987c9510a584f) )
ROM_REGION( 0x010000, "igs022data", 0 ) /* Protection Data - is it correct for this set? */
ROM_LOAD16_WORD_SWAP( "dw3_v100.u15", 0x000000, 0x010000, CRC(03dc4fdf) SHA1(b329b04325d4f725231b1bb7862eedef2319b652) )
@@ -1994,8 +1994,8 @@ ROM_START( drgw3105 )
ROM_LOAD16_BYTE( "dw3_v105.u13", 0x100000, 0x080000, CRC(8d6c9d39) SHA1(cb79303ab551e91f07e11414db4254d5b161d415) )
//ROM_LOAD( "dw3c_prg.rom", 0x100000, 0x100000, CRC(e274cf03) SHA1(2ba532446bd5b5dbccf43a6d1b1f6b36842b2c8d) )
-// ROM_REGION( 0x40000, "user2", 0 ) /* RAM dump - to be removed once the DMA is hooked up */
-// ROM_LOAD16_WORD_SWAP( "dw3c_prot_ramdump", 0x0000, 0x4000, CRC(6b4fc08b) SHA1(61583637c2f1767df4bc637f922987c9510a584f) )
+// ROM_REGION( 0x40000, "user2", 0 ) /* RAM dump - to be removed once the DMA is hooked up */
+// ROM_LOAD16_WORD_SWAP( "dw3c_prot_ramdump", 0x0000, 0x4000, CRC(6b4fc08b) SHA1(61583637c2f1767df4bc637f922987c9510a584f) )
/* CPU2 = Z80, romless, code uploaded by 68k */
@@ -2051,9 +2051,9 @@ ROM_START( drgw3100 )
ROM_LOAD16_BYTE( "dw3_v100.u13", 0x100000, 0x080000, CRC(b7cded21) SHA1(c1ae2af2e42227503c81bbcd2bd6862aa416bd78) )
/* CPU2 = Z80, romless, code uploaded by 68k */
-
-// ROM_REGION( 0x40000, "user2", 0 ) /* RAM dump - to be removed once the DMA is hooked up */
-// ROM_LOAD16_WORD_SWAP( "dw3c_prot_ramdump", 0x0000, 0x4000, CRC(6b4fc08b) SHA1(61583637c2f1767df4bc637f922987c9510a584f) )
+
+// ROM_REGION( 0x40000, "user2", 0 ) /* RAM dump - to be removed once the DMA is hooked up */
+// ROM_LOAD16_WORD_SWAP( "dw3c_prot_ramdump", 0x0000, 0x4000, CRC(6b4fc08b) SHA1(61583637c2f1767df4bc637f922987c9510a584f) )
ROM_REGION( 0x010000, "igs022data", 0 ) /* Protection Data */
ROM_LOAD16_WORD_SWAP( "dw3_v100.u15", 0x000000, 0x010000, CRC(03dc4fdf) SHA1(b329b04325d4f725231b1bb7862eedef2319b652) )
@@ -4196,10 +4196,10 @@ static DRIVER_INIT( dmnfrnt )
/* The IGS022 is an MCU which performs encrypted DMA used by
- The Killing Blade
- Dragon World 3
-
+
There is also an automatic transfer which happens on startup using params stored in the data ROM.
This has been verified on real hardware running without any 68k game program.
-
+
*/
@@ -4208,16 +4208,16 @@ static void IGS022_do_dma(running_machine* machine, UINT16 src, UINT16 dst, UINT
pgm_state *state = (pgm_state *)machine->driver_data;
UINT16 param;
/*
- P_SRC =0x300290 (offset from prot rom base)
- P_DST =0x300292 (words from 0x300000)
- P_SIZE=0x300294 (words)
- P_MODE=0x300296
+ P_SRC =0x300290 (offset from prot rom base)
+ P_DST =0x300292 (words from 0x300000)
+ P_SIZE=0x300294 (words)
+ P_MODE=0x300296
- Mode 5 direct
- Mode 6 swap nibbles and bytes
+ Mode 5 direct
+ Mode 6 swap nibbles and bytes
- 1,2,3 table based ops
- */
+ 1,2,3 table based ops
+ */
//mame_printf_debug("src %04x dst %04x size %04x mode %04x\n", src, dst, size, mode);
@@ -4230,52 +4230,52 @@ static void IGS022_do_dma(running_machine* machine, UINT16 src, UINT16 dst, UINT
if ((mode == 0) || (mode == 1) || (mode == 2) || (mode == 3))
{
/* mode3 applies a xor from a 0x100 byte table to the data being
- transferred
+ transferred
- the table is stored at the start of the protection rom.
+ the table is stored at the start of the protection rom.
- the param used with the mode gives a start offset into the table
+ the param used with the mode gives a start offset into the table
- odd offsets seem to change the table slightly (see rawDataOdd)
+ odd offsets seem to change the table slightly (see rawDataOdd)
+
+ */
- */
-
/*
- unsigned char rawDataOdd[256] = {
- 0xB6, 0xA8, 0xB1, 0x5D, 0x2C, 0x5D, 0x4F, 0xC1,
- 0xCF, 0x39, 0x3A, 0xB7, 0x65, 0x85, 0xD9, 0xEE,
- 0xDB, 0x7B, 0x5F, 0x81, 0x03, 0x6D, 0xEB, 0x07,
- 0x0F, 0xB5, 0x61, 0x59, 0xCD, 0x60, 0x06, 0x21,
- 0xA0, 0x99, 0xDD, 0x27, 0x42, 0xD7, 0xC5, 0x5B,
- 0x3B, 0xC6, 0x4F, 0xA2, 0x20, 0xF6, 0x61, 0x61,
- 0x8C, 0x46, 0x8C, 0xCA, 0xE0, 0x0E, 0x2C, 0xE9,
- 0xBA, 0x0F, 0x45, 0x6D, 0x36, 0x1C, 0x18, 0x37,
- 0xE7, 0x85, 0x89, 0xA4, 0x94, 0x46, 0x30, 0x9B,
- 0xB2, 0xF4, 0x41, 0x55, 0xA5, 0x63, 0x1C, 0xEF,
- 0xB7, 0x18, 0xB3, 0xB1, 0xD4, 0x72, 0xA0, 0x1C,
- 0x0B, 0x97, 0x02, 0xB6, 0xC5, 0x1F, 0x1B, 0x94,
- 0xC3, 0x83, 0xAA, 0xAC, 0xD9, 0x44, 0x09, 0xD7,
- 0x6C, 0xDB, 0x07, 0xA9, 0xAD, 0x64, 0x83, 0xF1,
- 0x92, 0x09, 0xCD, 0x0E, 0x99, 0x2F, 0xBC, 0xF8,
- 0x3C, 0x63, 0x8F, 0x0A, 0x33, 0x03, 0x84, 0x91,
- 0x6C, 0xAC, 0x3A, 0x15, 0xCB, 0x67, 0xC7, 0x69,
- 0xA1, 0x92, 0x99, 0x74, 0xEE, 0x90, 0x0D, 0xBE,
- 0x57, 0x30, 0xD1, 0xBA, 0xE5, 0xDE, 0xFA, 0xD6,
- 0x83, 0x8C, 0xE4, 0x43, 0x36, 0x5E, 0xCD, 0x84,
- 0x1A, 0x18, 0x31, 0xB9, 0x20, 0x48, 0xE3, 0xA8,
- 0x89, 0x32, 0xF0, 0x90, 0x21, 0x80, 0x33, 0xAE,
- 0x3C, 0xA6, 0xB8, 0x8C, 0x72, 0x17, 0xD1, 0x0C,
- 0x1A, 0x29, 0xFA, 0x38, 0x87, 0xC9, 0x6E, 0xC7,
- 0x05, 0xDE, 0x85, 0x6E, 0x92, 0x7E, 0xD4, 0xED,
- 0x5C, 0xD3, 0x03, 0xD4, 0xFE, 0xCB, 0x6C, 0x19,
- 0x7A, 0x83, 0x79, 0x5B, 0xF6, 0x71, 0xBA, 0xF4,
- 0x37, 0x53, 0xC9, 0xC1, 0xDE, 0xDB, 0xDE, 0xB1,
- 0x64, 0x17, 0x31, 0x0E, 0xD7, 0xA2, 0x13, 0x8E,
- 0x52, 0x8D, 0xCB, 0x19, 0x3D, 0x0B, 0x31, 0x58,
- 0x4A, 0xDE, 0x0C, 0x01, 0x2B, 0x85, 0x2D, 0xE5,
- 0x13, 0x22, 0x48, 0xB6, 0xF3, 0x2D, 0x00, 0x9A
- };
- */
+ unsigned char rawDataOdd[256] = {
+ 0xB6, 0xA8, 0xB1, 0x5D, 0x2C, 0x5D, 0x4F, 0xC1,
+ 0xCF, 0x39, 0x3A, 0xB7, 0x65, 0x85, 0xD9, 0xEE,
+ 0xDB, 0x7B, 0x5F, 0x81, 0x03, 0x6D, 0xEB, 0x07,
+ 0x0F, 0xB5, 0x61, 0x59, 0xCD, 0x60, 0x06, 0x21,
+ 0xA0, 0x99, 0xDD, 0x27, 0x42, 0xD7, 0xC5, 0x5B,
+ 0x3B, 0xC6, 0x4F, 0xA2, 0x20, 0xF6, 0x61, 0x61,
+ 0x8C, 0x46, 0x8C, 0xCA, 0xE0, 0x0E, 0x2C, 0xE9,
+ 0xBA, 0x0F, 0x45, 0x6D, 0x36, 0x1C, 0x18, 0x37,
+ 0xE7, 0x85, 0x89, 0xA4, 0x94, 0x46, 0x30, 0x9B,
+ 0xB2, 0xF4, 0x41, 0x55, 0xA5, 0x63, 0x1C, 0xEF,
+ 0xB7, 0x18, 0xB3, 0xB1, 0xD4, 0x72, 0xA0, 0x1C,
+ 0x0B, 0x97, 0x02, 0xB6, 0xC5, 0x1F, 0x1B, 0x94,
+ 0xC3, 0x83, 0xAA, 0xAC, 0xD9, 0x44, 0x09, 0xD7,
+ 0x6C, 0xDB, 0x07, 0xA9, 0xAD, 0x64, 0x83, 0xF1,
+ 0x92, 0x09, 0xCD, 0x0E, 0x99, 0x2F, 0xBC, 0xF8,
+ 0x3C, 0x63, 0x8F, 0x0A, 0x33, 0x03, 0x84, 0x91,
+ 0x6C, 0xAC, 0x3A, 0x15, 0xCB, 0x67, 0xC7, 0x69,
+ 0xA1, 0x92, 0x99, 0x74, 0xEE, 0x90, 0x0D, 0xBE,
+ 0x57, 0x30, 0xD1, 0xBA, 0xE5, 0xDE, 0xFA, 0xD6,
+ 0x83, 0x8C, 0xE4, 0x43, 0x36, 0x5E, 0xCD, 0x84,
+ 0x1A, 0x18, 0x31, 0xB9, 0x20, 0x48, 0xE3, 0xA8,
+ 0x89, 0x32, 0xF0, 0x90, 0x21, 0x80, 0x33, 0xAE,
+ 0x3C, 0xA6, 0xB8, 0x8C, 0x72, 0x17, 0xD1, 0x0C,
+ 0x1A, 0x29, 0xFA, 0x38, 0x87, 0xC9, 0x6E, 0xC7,
+ 0x05, 0xDE, 0x85, 0x6E, 0x92, 0x7E, 0xD4, 0xED,
+ 0x5C, 0xD3, 0x03, 0xD4, 0xFE, 0xCB, 0x6C, 0x19,
+ 0x7A, 0x83, 0x79, 0x5B, 0xF6, 0x71, 0xBA, 0xF4,
+ 0x37, 0x53, 0xC9, 0xC1, 0xDE, 0xDB, 0xDE, 0xB1,
+ 0x64, 0x17, 0x31, 0x0E, 0xD7, 0xA2, 0x13, 0x8E,
+ 0x52, 0x8D, 0xCB, 0x19, 0x3D, 0x0B, 0x31, 0x58,
+ 0x4A, 0xDE, 0x0C, 0x01, 0x2B, 0x85, 0x2D, 0xE5,
+ 0x13, 0x22, 0x48, 0xB6, 0xF3, 0x2D, 0x00, 0x9A
+ };
+ */
int x;
UINT16 *PROTROM = (UINT16*)memory_region(machine, "igs022data");
@@ -4289,25 +4289,25 @@ static void IGS022_do_dma(running_machine* machine, UINT16 src, UINT16 dst, UINT
UINT8 extraoffset = param&0xfe; // the lowest bit changed the table addressing in tests, see 'rawDataOdd' table instead.. it's still related to the main one, not identical
UINT8* dectable = (UINT8*)memory_region(machine, "igs022data");//rawDataEven; // the basic decryption table is at the start of the mcu data rom! at least in killbld
UINT16 extraxor = ((dectable[((x*2)+0+extraoffset)&0xff]) << 8) | (dectable[((x*2)+1+extraoffset)&0xff] << 0);
-
+
dat2 = ((dat2 & 0x00ff)<<8) | ((dat2 & 0xff00)>>8);
-
+
// mode==0 plain
- if (mode==3) dat2 ^= extraxor;
+ if (mode==3) dat2 ^= extraxor;
if (mode==2) dat2 += extraxor;
if (mode==1) dat2 -= extraxor;
-
+
//if (dat!=dat2)
- // printf("Mode %04x Param %04x Mismatch %04x %04x\n", mode, param, dat, dat2);
+ // printf("Mode %04x Param %04x Mismatch %04x %04x\n", mode, param, dat, dat2);
state->sharedprotram[dst + x] = dat2;
}
/* hack, patches out some additional security checks... we need to emulate them instead!
- they occur before it displays the disclaimer, so if you remove the overlay patches it will display
- the highscore table before coming up with this error... */
+ they occur before it displays the disclaimer, so if you remove the overlay patches it will display
+ the highscore table before coming up with this error... */
if ((mode==3) && (param==0x54) && (src*2==0x2120) && (dst*2==0x2600)) state->sharedprotram[0x2600 / 2] = 0x4e75;
-
+
}
if (mode == 4)
{
@@ -4368,7 +4368,7 @@ static void IGS022_reset(running_machine* machine)
UINT16 *PROTROM = (UINT16*)memory_region(machine, "igs022data");
pgm_state *state = (pgm_state *)machine->driver_data;
UINT16 tmp;
-
+
// fill ram with A5 patern
for (i = 0; i < 0x4000/2; i++)
state->sharedprotram[i] = 0xa55a;
@@ -4378,18 +4378,18 @@ static void IGS022_reset(running_machine* machine)
UINT32 dst = PROTROM[0x102 / 2];
UINT16 size = PROTROM[0x104/ 2];
UINT16 mode = PROTROM[0x106 / 2];
-
+
src = ((src & 0xff00) >> 8) | ((src & 0x00ff) << 8);
dst = ((dst & 0xff00) >> 8) | ((dst & 0x00ff) << 8);
size = ((size & 0xff00) >> 8) | ((size & 0x00ff) << 8);
mode &= 0xff;
-
+
src >>= 1;
-
+
printf("Auto-DMA %04x %04x %04x %04x\n",src,dst,size,mode);
IGS022_do_dma(machine,src,dst,size,mode);
-
+
// there is also a version ID? (or is it some kind of checksum) that is stored in the data rom, and gets copied..
// Dragon World 3 checks it
tmp = PROTROM[0x114/2];
@@ -4442,7 +4442,7 @@ static void IGS022_handle_command(running_machine* machine)
IGS022_do_dma(machine, src,dst,size,mode);
}
-
+
}
@@ -4504,8 +4504,8 @@ static READ16_HANDLER( killbld_igs025_prot_r )
static MACHINE_RESET( killbld )
{
- MACHINE_RESET_CALL(pgm);
- /* fill the protection ram with a5 + auto dma */
+ MACHINE_RESET_CALL(pgm);
+ /* fill the protection ram with a5 + auto dma */
IGS022_reset(machine);
}
@@ -4543,41 +4543,41 @@ static MACHINE_RESET( dw3 )
IGS022_reset(machine);
/* game won't boot unless various values are in protection RAM
- - these should almost certainly end up there as the result of executing the protection
- commands are startup, but which, and how? */
-
-// state->sharedprotram[0x200/2] = 0x006d;
+ - these should almost certainly end up there as the result of executing the protection
+ commands are startup, but which, and how? */
+
+// state->sharedprotram[0x200/2] = 0x006d;
state->sharedprotram[0x202/2] = 0x007c; // it cares about this, operation status flag?
-
-// state->sharedprotram[0x20c/2] = 0x0000;
-// state->sharedprotram[0x20e/2] = 0x0007;
-// state->sharedprotram[0x210/2] = 0x0000;
-// state->sharedprotram[0x212/2] = 0x0004;
-// state->sharedprotram[0x214/2] = 0x0000;
-// state->sharedprotram[0x216/2] = 0x0007;
-// state->sharedprotram[0x218/2] = 0x0000;
-// state->sharedprotram[0x21a/2] = 0x0004;
-
-// state->sharedprotram[0x288/2] = 0x0000;
-// state->sharedprotram[0x28a/2] = 0x00c2;
-// state->sharedprotram[0x28c/2] = 0x0000;
-// state->sharedprotram[0x28e/2] = 0x00c2;
-// state->sharedprotram[0x290/2] = 0x0500;
-// state->sharedprotram[0x292/2] = 0x1000;
-// state->sharedprotram[0x294/2] = 0x00c3;
-// state->sharedprotram[0x296/2] = 0x7104;
-// state->sharedprotram[0x298/2] = 0x0000;
-// state->sharedprotram[0x29a/2] = 0x0003;
-// state->sharedprotram[0x29c/2] = 0x0108;
-// state->sharedprotram[0x29e/2] = 0x0009;
-
-// state->sharedprotram[0x2a2/2] = 0x84f6; // it cares about this, it's the version number of the data rom, copied automatically!
-
-// state->sharedprotram[0x2ac/2] = 0x006d;
-// state->sharedprotram[0x2ae/2] = 0x0000;
-
-// state->sharedprotram[0x2b0/2] = 0xaf56;
-
+
+// state->sharedprotram[0x20c/2] = 0x0000;
+// state->sharedprotram[0x20e/2] = 0x0007;
+// state->sharedprotram[0x210/2] = 0x0000;
+// state->sharedprotram[0x212/2] = 0x0004;
+// state->sharedprotram[0x214/2] = 0x0000;
+// state->sharedprotram[0x216/2] = 0x0007;
+// state->sharedprotram[0x218/2] = 0x0000;
+// state->sharedprotram[0x21a/2] = 0x0004;
+
+// state->sharedprotram[0x288/2] = 0x0000;
+// state->sharedprotram[0x28a/2] = 0x00c2;
+// state->sharedprotram[0x28c/2] = 0x0000;
+// state->sharedprotram[0x28e/2] = 0x00c2;
+// state->sharedprotram[0x290/2] = 0x0500;
+// state->sharedprotram[0x292/2] = 0x1000;
+// state->sharedprotram[0x294/2] = 0x00c3;
+// state->sharedprotram[0x296/2] = 0x7104;
+// state->sharedprotram[0x298/2] = 0x0000;
+// state->sharedprotram[0x29a/2] = 0x0003;
+// state->sharedprotram[0x29c/2] = 0x0108;
+// state->sharedprotram[0x29e/2] = 0x0009;
+
+// state->sharedprotram[0x2a2/2] = 0x84f6; // it cares about this, it's the version number of the data rom, copied automatically!
+
+// state->sharedprotram[0x2ac/2] = 0x006d;
+// state->sharedprotram[0x2ae/2] = 0x0000;
+
+// state->sharedprotram[0x2b0/2] = 0xaf56;
+
}
@@ -4601,14 +4601,14 @@ static WRITE16_HANDLER( drgw3_igs025_prot_w )
printf("%06X: ASIC25 W CMD %X VAL %X\n",cpu_get_pc(space->cpu),state->kb_cmd,data);
if(state->kb_cmd==0)
reg=data;
- else if(state->kb_cmd==3) //ÃüÁ£¿£¿
+ else if(state->kb_cmd==3) //??????????
{
dw3_swap = data;
printf("SWAP %02x\n",dw3_swap);
}
//else if(kb_cmd==4)
- // ptr=data;
+ // ptr=data;
else if(state->kb_cmd==0x20)
ptr++;
}
@@ -4665,17 +4665,17 @@ static DRIVER_INIT( drgw3 )
pgm_basic_init(machine);
/*
- pgm_state *state = (pgm_state *)machine->driver_data;
-
- {
- int x;
- UINT16 *RAMDUMP = (UINT16*)memory_region(machine, "user2");
- for (x=0;x<(0x4000/2);x++)
- {
- state->sharedprotram[x] = RAMDUMP[x];
- if((x>=0x100)&&(x<0x110)) printf("data 0x%4x, offset:%x\n",state->sharedprotram[x],x);
- }
- }
+ pgm_state *state = (pgm_state *)machine->driver_data;
+
+ {
+ int x;
+ UINT16 *RAMDUMP = (UINT16*)memory_region(machine, "user2");
+ for (x=0;x<(0x4000/2);x++)
+ {
+ state->sharedprotram[x] = RAMDUMP[x];
+ if((x>=0x100)&&(x<0x110)) printf("data 0x%4x, offset:%x\n",state->sharedprotram[x],x);
+ }
+ }
*/
memory_install_readwrite16_handler(cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xDA5610, 0xDA5613, 0, 0, drgw3_igs025_prot_r, drgw3_igs025_prot_w);
diff --git a/src/mame/drivers/photon.c b/src/mame/drivers/photon.c
index 1129586774c..8a750648fb7 100644
--- a/src/mame/drivers/photon.c
+++ b/src/mame/drivers/photon.c
@@ -12,7 +12,7 @@
- Python
- Klad/Labyrinth
- Use joystick left and right in Klad/Labyrinth attract mode to select a game to play.
+ Use joystick left and right in Klad/Labyrinth attract mode to select a game to play.
*/
#include "emu.h"
diff --git a/src/mame/drivers/segas18.c b/src/mame/drivers/segas18.c
index d1d49006237..6a500864290 100644
--- a/src/mame/drivers/segas18.c
+++ b/src/mame/drivers/segas18.c
@@ -300,8 +300,8 @@ static WRITE16_HANDLER( io_chip_w )
output_set_value("P1_Gun_Recoil",(~data & 0x01));
output_set_value("P2_Gun_Recoil",(~data & 0x02)>>1);
output_set_value("P3_Gun_Recoil",(~data & 0x04)>>2);
- }
-
+ }
+
break;
/* miscellaneous output */
@@ -2261,7 +2261,7 @@ static DRIVER_INIT( lghost )
{
has_guns=1;
segas1x_state *state = (segas1x_state *)machine->driver_data;
-
+
DRIVER_INIT_CALL(generic_5987);
state->custom_io_r = lghost_custom_io_r;
state->custom_io_w = lghost_custom_io_w;
diff --git a/src/mame/drivers/segas32.c b/src/mame/drivers/segas32.c
index f8b33d674b3..69f9ea0f320 100644
--- a/src/mame/drivers/segas32.c
+++ b/src/mame/drivers/segas32.c
@@ -317,7 +317,7 @@ MIB.42
Output Notes:
All outputs are hooked up properly with the following exceptions:
radm: Motors aren't hooked up, as the board isn't emulated. Also the 2nd and 3rd lamps "die" when the cabinet dip is set to deluxe.
- They probably get moved over to the motor driver board.
+ They probably get moved over to the motor driver board.
radr: See radm
@@ -325,7 +325,7 @@ kokoroj: This driver isn't finished enough to flesh out the outputs, but a space
jpark: Since the piston driver board isn't fully emulated, they aren't hooked up. offset 0c of the common chip function seems to have something to do with it.
-orunners: Interleaved with the dj and << >> buttons is the data the drives the lcd display.
+orunners: Interleaved with the dj and << >> buttons is the data the drives the lcd display.
****************************************************************************/
#include "emu.h"
@@ -835,19 +835,19 @@ static READ32_HANDLER( io_expansion_0_r )
static WRITE32_HANDLER( io_expansion_0_w )
{
/* only LSB matters */
-
-
+
+
if (ACCESSING_BITS_0_7)
{
/* harddunk uses bits 4,5 for output lamps */
if (segas32_sw3_output)
segas32_sw3_output(0, data & 0xff);
-
+
if (custom_io_w[0])
(*custom_io_w[0])(space, offset*2+0, data, mem_mask);
else
logerror("%06X:io_expansion_w(%X) = %02X\n", cpu_get_pc(space->cpu), offset, data & 0xff);
-
+
}
if (ACCESSING_BITS_16_23)
{
@@ -3814,10 +3814,10 @@ static void segas32_common_init(read16_space_func custom_r, write16_space_func c
* TODO: kokoroj2 and jpark (SW2)
*
* Additional notes:
- * - about jpark: the compression switch is broken/inoperative
- * and because of that all piston data, which is in this
+ * - about jpark: the compression switch is broken/inoperative
+ * and because of that all piston data, which is in this
* section is frozen. bits x01, x04 and x10 when which == 0
- * (IO chip 0), seem to have something to do with the sensor
+ * (IO chip 0), seem to have something to do with the sensor
* switches we need to fix
*************************************/
diff --git a/src/mame/drivers/segaybd.c b/src/mame/drivers/segaybd.c
index a274b40c592..2689300e832 100644
--- a/src/mame/drivers/segaybd.c
+++ b/src/mame/drivers/segaybd.c
@@ -69,7 +69,7 @@ static void yboard_generic_init( running_machine *machine )
/* reset globals */
state->vblank_irq_state = 0;
state->timer_irq_state = 0;
-
+
ybd_output_cb1 = NULL;
ybd_output_cb2 = NULL;
}
@@ -344,7 +344,7 @@ static WRITE16_HANDLER( io_chip_w )
/* miscellaneous output */
case 0x08/2:
-
+
/*
D7 = /KILL
D6 = CONT
@@ -353,9 +353,9 @@ static WRITE16_HANDLER( io_chip_w )
D3 = XRES
D2 = YRES
D1-D0 = ADC0-1
- */
+ */
segaic16_set_display_enable(space->machine, data & 0x80);
- if (((old ^ data) & 0x20) && !(data & 0x20))
+ if (((old ^ data) & 0x20) && !(data & 0x20))
watchdog_reset_w(space, 0, 0);
cpu_set_input_line(state->soundcpu, INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
cpu_set_input_line(state->subx, INPUT_LINE_RESET, (data & 0x08) ? ASSERT_LINE : CLEAR_LINE);
@@ -363,7 +363,7 @@ static WRITE16_HANDLER( io_chip_w )
break;
/* mute */
-
+
case 0x0e/2:
if (ybd_output_cb2)
ybd_output_cb2(data);
@@ -1928,17 +1928,17 @@ ROM_END
* TODO: kokoroj2 and jpark (SW2)
*
* Additional notes:
- * - about jpark: the compression switch is broken/inoperative
- * and because of that all piston data, which is in this
+ * - about jpark: the compression switch is broken/inoperative
+ * and because of that all piston data, which is in this
* section is frozen. bits x01, x04 and x10 when which == 0
- * (IO chip 0), seem to have something to do with the sensor
+ * (IO chip 0), seem to have something to do with the sensor
* switches we need to fix
*************************************/
-
+
static void pdrift_output_cb1( UINT16 data )
{
/* Note: this is an approximation to get a relatively accurate bank value. It is obviously not 100% */
-
+
/* for some stupid reason the data is set to all on in the debug menu so we need to check for that */
if (data != 255)
{
@@ -1990,10 +1990,10 @@ static void pdrift_output_cb1( UINT16 data )
output_set_value("bank_motor_position", 4);
pdrift_bank = 4;
break;
-
+
}
}
-
+
if ((data == 161))
/* moving right */
{
@@ -2038,9 +2038,9 @@ static void pdrift_output_cb1( UINT16 data )
output_set_value("bank_motor_position", 4);
pdrift_bank = 4;
break;
-
+
}
-
+
}
}
else
@@ -2048,16 +2048,16 @@ static void pdrift_output_cb1( UINT16 data )
/* the vibration value uses the first few bits to give a number between 0 and 7 */
output_set_value("vibration_motor", data & 7);
/* normalize the data and subtract the vibration value from it*/
-
+
pdrift_bank = (data - (data & 7));
output_set_value("bank_data_raw", pdrift_bank);
-
+
/* position values from left to right */
/* 56 48 40 120 72 80 88 */
-
+
/* the normalized values we'll use */
/* 1 2 3 4 5 6 7 */
-
+
switch (pdrift_bank)
{
case 56:
@@ -2085,20 +2085,20 @@ static void pdrift_output_cb1( UINT16 data )
output_set_value("bank_motor_position", 7);
break;
/* these are the only valid values but 24 pops up sometimes when we crash */
-
+
}
}
}
}
-
+
static void gloc_output_cb1( UINT16 data )
{
if ((data < 32))
{
output_set_value("right_motor_position", data);
-
- /* normalization here prevents strange data from being transferred */
- /* we do this because for some odd reason */
+
+ /* normalization here prevents strange data from being transferred */
+ /* we do this because for some odd reason */
/* gloc starts with one piston all up and one all down.... at least data-wise it does */
if ((data > 1) && (data < 29))
output_set_value("right_motor_position_nor", data);
@@ -2106,7 +2106,7 @@ static void gloc_output_cb1( UINT16 data )
if ((data < 40) && (data > 31))
output_set_value("right_motor_speed", data - 32);
-
+
if ((data < 96) && (data > 63))
{
output_set_value("left_motor_position", data);
@@ -2114,17 +2114,17 @@ static void gloc_output_cb1( UINT16 data )
if (((data - 64) > 1) && ((data - 64) < 29))
output_set_value("left_motor_position_nor", data - 64);
}
-
+
if ((data < 104) && (data > 95))
output_set_value("left_motor_speed", data - 96);
}
-
+
static void pdrift_output_cb2( UINT16 data )
{
output_set_value("start_lamp", BIT(data, 2));
output_set_value("upright_wheel_motor", BIT(data, 1));
}
-
+
static void gforce2_output_cb2( UINT16 data )
{
output_set_value("start_lamp", BIT(data, 2));
@@ -2136,7 +2136,7 @@ static void gloc_output_cb2( UINT16 data )
output_set_value("danger_lamp", BIT(data, 5));
output_set_value("crash_lamp", BIT(data, 6));
}
-
+
static void r360_output_cb2( UINT16 data )
{
/* r360 cabinet */
@@ -2144,7 +2144,7 @@ static void r360_output_cb2( UINT16 data )
/* even though the same ouput is used, I've split them to avoid confusion. */
output_set_value("emergency_stop_lamp", BIT(data, 2));
}
-
+
static void rchase_output_cb2( UINT16 data )
{
output_set_value("left_start_lamp", BIT(data, 2));
@@ -2168,9 +2168,9 @@ static DRIVER_INIT( gforce2 )
static DRIVER_INIT( pdrift )
{
- /* because some of the output data isn't fully understood we need to "center" the motor */
+ /* because some of the output data isn't fully understood we need to "center" the motor */
yboard_generic_init(machine);
-
+
ybd_output_cb1 = pdrift_output_cb1;
ybd_output_cb2 = pdrift_output_cb2;
}
@@ -2179,7 +2179,7 @@ static DRIVER_INIT( gloc )
{
/* because some of the output data isn't fully understood we need to "center" the rams */
output_set_value("left_motor_position_nor", 16);
- output_set_value("right_motor_position_nor", 16);
+ output_set_value("right_motor_position_nor", 16);
yboard_generic_init(machine);
ybd_output_cb1 = gloc_output_cb1;
@@ -2197,7 +2197,7 @@ static DRIVER_INIT( rchase )
yboard_generic_init(machine);
ybd_output_cb2 = rchase_output_cb2;
}
-
+
/*************************************
*
* Game driver(s)
diff --git a/src/mame/drivers/shaolins.c b/src/mame/drivers/shaolins.c
index 80212278192..651fabcf7df 100644
--- a/src/mame/drivers/shaolins.c
+++ b/src/mame/drivers/shaolins.c
@@ -256,8 +256,8 @@ ROM_START( kicker )
ROM_REGION( 0x4000, "gfx1", 0 )
ROM_LOAD( "477-k06.a10", 0x0000, 0x4000, CRC(63202dc4) SHA1(0ffb9cfe3737c2b4f842b57607550a656b013d66) )
-// ROM_LOAD( "kikra10.a10", 0x0000, 0x2000, CRC(4d156afc) SHA1(29eb66e2ebcf2f1c1d5ece5413d1ebf54663f9cf) ) /* proper Konami rom labels unknown */
-// ROM_LOAD( "kikra11.a11", 0x2000, 0x2000, CRC(ff6ca5df) SHA1(dfcd445c8b233a0a4168eb249472e53784eda25d) ) /* proper Konami rom labels unknown */
+// ROM_LOAD( "kikra10.a10", 0x0000, 0x2000, CRC(4d156afc) SHA1(29eb66e2ebcf2f1c1d5ece5413d1ebf54663f9cf) ) /* proper Konami rom labels unknown */
+// ROM_LOAD( "kikra11.a11", 0x2000, 0x2000, CRC(ff6ca5df) SHA1(dfcd445c8b233a0a4168eb249472e53784eda25d) ) /* proper Konami rom labels unknown */
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_LOAD( "477-k02.h15", 0x0000, 0x4000, CRC(b94e645b) SHA1(65ae48134a0fe1e910a787714f7ae721734ded5b) )
diff --git a/src/mame/drivers/subsino.c b/src/mame/drivers/subsino.c
index 8cfffa69bd2..bce29708a7b 100644
--- a/src/mame/drivers/subsino.c
+++ b/src/mame/drivers/subsino.c
@@ -1481,7 +1481,7 @@ static INPUT_PORTS_START( stisub )
PORT_DIPSETTING( 0x18, "1 Pulse / 20 Credits" )
PORT_DIPSETTING( 0x10, "1 Pulse / 25 Credits" )
PORT_DIPSETTING( 0x08, "1 Pulse / 50 Credits" )
- PORT_DIPSETTING( 0x00, "1 Pulse / 100 Credits" )
+ PORT_DIPSETTING( 0x00, "1 Pulse / 100 Credits" )
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) PORT_DIPLOCATION("SW1:7")
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
diff --git a/src/mame/drivers/taito_z.c b/src/mame/drivers/taito_z.c
index 49f7183fc69..0c258390576 100644
--- a/src/mame/drivers/taito_z.c
+++ b/src/mame/drivers/taito_z.c
@@ -917,7 +917,7 @@ static WRITE16_HANDLER( cpua_ctrl_w )
output_set_lamp_value(0, (data & 0x20) ? 1 : 0);
output_set_lamp_value(1, (data & 0x40) ? 1 : 0);
}
-
+
if (state->dblaxle_vibration) output_set_value("Wheel_Vibration", (data & 0x04)>>2);
logerror("CPU #0 PC %06x: write %04x to cpu control\n", cpu_get_pc(space->cpu), data);
}
@@ -1374,7 +1374,7 @@ logerror("CPU #0 PC %06x: warning - write %04x to motor cpu %03x\n",cpu_get_pc(s
static WRITE16_HANDLER( nightstr_motor_w )
{
-
+
/* Despite the informative notes at the top, the high end of the word doesn't seem to output any useful data. */
/* I've added this so someone else can finish it. */
switch (offset)
@@ -1384,27 +1384,27 @@ static WRITE16_HANDLER( nightstr_motor_w )
if (data & 1) output_set_value("Motor_1_Direction",1);
if (data & 2) output_set_value("Motor_1_Direction",2);
output_set_value("Motor_1_Speed",(data & 60)/4);
-
+
break;
-
+
case 4:
output_set_value("Motor_2_Direction",0);
if (data & 1) output_set_value("Motor_2_Direction",1);
if (data & 2) output_set_value("Motor_2_Direction",2);
output_set_value("Motor_2_Speed",(data & 60)/4);
-
+
break;
case 8:
output_set_value("Motor_3_Direction",0);
if (data & 1) output_set_value("Motor_3_Direction",1);
if (data & 2) output_set_value("Motor_3_Direction",2);
output_set_value("Motor_3_Speed",(data & 60)/4);
-
+
break;
default:
output_set_value("motor_debug",data);
}
-
+
}
diff --git a/src/mame/drivers/vsnes.c b/src/mame/drivers/vsnes.c
index 3243614af05..be9f4769d3a 100644
--- a/src/mame/drivers/vsnes.c
+++ b/src/mame/drivers/vsnes.c
@@ -513,19 +513,19 @@ static INPUT_PORTS_START( golf )
PORT_DIPSETTING( 0x00, DEF_STR( Easier ) )
PORT_DIPSETTING( 0x10, DEF_STR( Harder ) )
/*
-Stroke Play OFF/ON
-Hole in 1 +5 +4
-Double Eagle +4 +3
-Eagle +3 +2
-Birdie +2 +1
-Par +1 0
-Bogey 0 -1
-Other 0 -2
-
-Match Play OFF/ON
-Win Hole +1 +2
-Tie 0 0
-Lose Hole -1 -2
+Stroke Play OFF/ON
+Hole in 1 +5 +4
+Double Eagle +4 +3
+Eagle +3 +2
+Birdie +2 +1
+Par +1 0
+Bogey 0 -1
+Other 0 -2
+
+Match Play OFF/ON
+Win Hole +1 +2
+Tie 0 0
+Lose Hole -1 -2
*/
PORT_DIPNAME( 0x60, 0x00, "Starting Points" ) PORT_DIPLOCATION("SW1:!6,7")
PORT_DIPSETTING( 0x00, "10" )
@@ -712,7 +712,7 @@ static INPUT_PORTS_START( vsbball )
PORT_DIPSETTING( 0x08, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x04, DEF_STR( Medium ) )
PORT_DIPSETTING( 0x0c, "Strong" )
- PORT_DIPNAME( 0x30, 0x20, "Computer Defense Strength" ) PORT_DIPLOCATION("SW1:!5,!6")
+ PORT_DIPNAME( 0x30, 0x20, "Computer Defense Strength" ) PORT_DIPLOCATION("SW1:!5,!6")
PORT_DIPSETTING( 0x00, "Weak" )
PORT_DIPSETTING( 0x20, DEF_STR( Normal ) )
PORT_DIPSETTING( 0x10, DEF_STR( Medium ) )
@@ -739,7 +739,7 @@ static INPUT_PORTS_START( vsbball )
PORT_DIPSETTING( 0x28, "300 Pts" )
PORT_DIPSETTING( 0x18, "350 Pts" )
PORT_DIPSETTING( 0x38, "400 Pts" )
- PORT_DIPNAME( 0x40, 0x00, "Bonus Play" ) PORT_DIPLOCATION("SW2:!7")
+ PORT_DIPNAME( 0x40, 0x00, "Bonus Play" ) PORT_DIPLOCATION("SW2:!7")
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW2:!8")
@@ -818,7 +818,7 @@ static INPUT_PORTS_START( iceclmrj )
PORT_DIPSETTING( 0x18, "7" )
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x00, "SW1:!6" )
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x00, "SW1:!7" )
- PORT_DIPNAME( 0x80, 0x00, "Service Mode (Left Side)" ) PORT_TOGGLE PORT_CODE(KEYCODE_F2) PORT_DIPLOCATION("SW1:!8")
+ PORT_DIPNAME( 0x80, 0x00, "Service Mode (Left Side)" ) PORT_TOGGLE PORT_CODE(KEYCODE_F2) PORT_DIPLOCATION("SW1:!8")
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x80, DEF_STR( On ) )
@@ -885,7 +885,7 @@ static INPUT_PORTS_START( rbibb )
PORT_DIPSETTING( 0x0c, "2, 2, 4" )
PORT_DIPSETTING( 0x00, "3, 2, 6" )
PORT_DIPSETTING( 0x08, "4, 3, 7" )
- PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:!5")
+ PORT_DIPNAME( 0x10, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:!5")
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPNAME( 0xe0, 0x00, "PPU Type" ) PORT_DIPLOCATION("SW1:!6,!7,!8")
@@ -1396,7 +1396,7 @@ static INPUT_PORTS_START( goonies )
PORT_DIPNAME( 0x08, 0x00, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW1:!4")
PORT_DIPSETTING( 0x00, "4" )
PORT_DIPSETTING( 0x08, "3" )
- PORT_DIPNAME( 0x30, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:!5,!6")
+ PORT_DIPNAME( 0x30, 0x00, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:!5,!6")
PORT_DIPSETTING( 0x00, "40000" )
PORT_DIPSETTING( 0x20, "50000" )
PORT_DIPSETTING( 0x10, "60000" )
@@ -2427,7 +2427,7 @@ ROM_START( vsbball )
ROM_LOAD( "bb-2b", 0x0000, 0x2000, CRC(3ff8bec3) SHA1(28c1bf89ed1046243ca8cf122cefa0752c242577) )
ROM_LOAD( "bb-2a", 0x2000, 0x2000, CRC(13b20cfd) SHA1(cb333cbea09557a9d2bdc351fabc61fc7760c35d) )
-/* ROM_LOAD( "bb-2a", 0x2000, 0x2000, CRC(ebb88502) SHA1(010fdffbd1cddcde8176aaaae5ca8e9c3411c02a) )
+/* ROM_LOAD( "bb-2a", 0x2000, 0x2000, CRC(ebb88502) SHA1(010fdffbd1cddcde8176aaaae5ca8e9c3411c02a) )
This rom dump is suspected either bad or an operator hacked version. The GFX roms for all the other Vs. Baseball sets have mirrored
GFX roms. In this case, the bb-8a "gfx2" dump was placed in this slot to allow the Service Mode to green light all the roms.
diff --git a/src/mame/includes/taito_z.h b/src/mame/includes/taito_z.h
index 8656241f46e..e5cbd10c038 100644
--- a/src/mame/includes/taito_z.h
+++ b/src/mame/includes/taito_z.h
@@ -29,7 +29,7 @@ public:
INT32 dblaxle_int6;
INT32 ioc220_port;
UINT16 eep_latch;
-
+
// UINT8 pandata[4];
/* devices */
@@ -42,7 +42,7 @@ public:
running_device *tc0100scn;
running_device *tc0220ioc;
running_device *tc0140syt;
-
+
/* dblaxle motor flag */
int dblaxle_vibration;
};
diff --git a/src/mame/machine/dc.c b/src/mame/machine/dc.c
index 5ccc8683d36..637b6baae7d 100644
--- a/src/mame/machine/dc.c
+++ b/src/mame/machine/dc.c
@@ -1377,9 +1377,9 @@ WRITE64_HANDLER( dc_g2_ctrl_w )
/*dma flag (active HIGH, bug in docs)*/
case SB_ADEN: wave_dma.flag = (dat & 1); break;
/*
- SB_ADTSEL
- bit 1: (0) Wave DMA thru SB_ADST flag (1) Wave DMA thru irq trigger, defined by SB_G2DTNRM / SB_G2DTEXT
- */
+ SB_ADTSEL
+ bit 1: (0) Wave DMA thru SB_ADST flag (1) Wave DMA thru irq trigger, defined by SB_G2DTNRM / SB_G2DTEXT
+ */
case SB_ADTSEL: wave_dma.sel = dat & 7; break;
/*ready for dma'ing*/
case SB_ADST:
@@ -1473,7 +1473,7 @@ WRITE64_HANDLER( pvr_ctrl_w )
case SB_PDTSEL:
pvr_dma.sel = dat & 1;
//if(pvr_dma.sel & 1)
- // printf("Warning: Unsupported irq mode trigger PVR-DMA\n");
+ // printf("Warning: Unsupported irq mode trigger PVR-DMA\n");
break;
case SB_PDEN: pvr_dma.flag = dat & 1; break;
case SB_PDST:
diff --git a/src/mame/machine/namcos2.c b/src/mame/machine/namcos2.c
index fc410aeae43..b6ca987b0ec 100644
--- a/src/mame/machine/namcos2.c
+++ b/src/mame/machine/namcos2.c
@@ -740,7 +740,7 @@ WRITE8_HANDLER( namcos2_mcu_analog_ctrl_w )
/* Check if this is a start of conversion */
/* Input ports 2 thru 9 are the analog channels */
-
+
if(data & 0x40)
{
/* Set the conversion complete flag */
diff --git a/src/mame/machine/stvcd.c b/src/mame/machine/stvcd.c
index d4a2ae0b909..359345974aa 100644
--- a/src/mame/machine/stvcd.c
+++ b/src/mame/machine/stvcd.c
@@ -1571,7 +1571,7 @@ static void cd_readTOC(void)
ntrks = 0;
}
- //toclen = (4 * ntrks); // toclen header entry
+ //toclen = (4 * ntrks); // toclen header entry
// data format for Saturn TOC:
// no header.
diff --git a/src/mame/machine/taitoio.c b/src/mame/machine/taitoio.c
index d1535de8f20..4fb19dc1747 100644
--- a/src/mame/machine/taitoio.c
+++ b/src/mame/machine/taitoio.c
@@ -126,13 +126,13 @@ WRITE8_DEVICE_HANDLER( tc0220ioc_w )
tc0220ioc->regs[offset] = data;
switch (offset)
{
-
+
case 0x00:
watchdog_reset(device->machine);
break;
case 0x04: /* coin counters and lockout, hi nibble irrelevant */
-
+
coin_lockout_w(device->machine, 0, ~data & 0x01);
coin_lockout_w(device->machine, 1, ~data & 0x02);
coin_counter_w(device->machine, 0, data & 0x04);
@@ -436,7 +436,7 @@ WRITE8_DEVICE_HANDLER( tc0640fio_w )
tc0640fio->regs[offset] = data;
switch (offset)
{
-
+
case 0x00:
watchdog_reset(device->machine);
break;
diff --git a/src/mame/mamedriv.c b/src/mame/mamedriv.c
index 3841f88aa84..af8a9bd3e11 100644
--- a/src/mame/mamedriv.c
+++ b/src/mame/mamedriv.c
@@ -4502,7 +4502,7 @@ BOMULEUL CHAJARA SEGA ST-V 1997/04/11
DRIVER( hod2bios ) /* 1998.11 The House of the Dead 2 */
DRIVER( hotd2 ) /* 1998.11 The House of the Dead 2 */
- DRIVER( hotd2o ) /* 1998.11 The House of the Dead 2 */
+ DRIVER( hotd2o ) /* 1998.11 The House of the Dead 2 */
DRIVER( dybbnao ) /* 1998.12 Dynamite Baseball NAOMI */
DRIVER( smlg99 ) /* 1999.?? Super Major League '99 */
DRIVER( pstone ) /* 1999.02 Power Stone */
diff --git a/src/mame/video/dc.c b/src/mame/video/dc.c
index a0fc77a8de1..bfe17aee618 100644
--- a/src/mame/video/dc.c
+++ b/src/mame/video/dc.c
@@ -1653,7 +1653,7 @@ WRITE64_HANDLER( ta_fifo_yuv_w )
reg = decode_reg_64(offset, mem_mask, &shift);
dat = (UINT32)(data >> shift);
-// printf("YUV FIFO: [%08x=%x] write %" I64FMT "x to %x, mask %" I64FMT "x %08x\n", 0x10800000+reg*4, dat, data, offset, mem_mask,test);
+// printf("YUV FIFO: [%08x=%x] write %" I64FMT "x to %x, mask %" I64FMT "x %08x\n", 0x10800000+reg*4, dat, data, offset, mem_mask,test);
}
/* test video start */
diff --git a/src/mame/video/model3.c b/src/mame/video/model3.c
index 3bd417b1891..725baf01ce6 100644
--- a/src/mame/video/model3.c
+++ b/src/mame/video/model3.c
@@ -381,21 +381,21 @@ static void copy_screen(bitmap_t *bitmap, const rectangle *cliprect)
VIDEO_UPDATE( model3 )
{
/*
- int layer_scroll_x[4], layer_scroll_y[4];
- UINT32 layer_data[4];
-
- layer_data[0] = BYTE_REVERSE32((UINT32)(layer_scroll[0] >> 32));
- layer_data[1] = BYTE_REVERSE32((UINT32)(layer_scroll[0] >> 0));
- layer_data[2] = BYTE_REVERSE32((UINT32)(layer_scroll[1] >> 32));
- layer_data[3] = BYTE_REVERSE32((UINT32)(layer_scroll[1] >> 0));
- layer_scroll_x[0] = (layer_data[0] & 0x8000) ? (layer_data[0] & 0x1ff) : -(layer_data[0] & 0x1ff);
- layer_scroll_y[0] = (layer_data[0] & 0x8000) ? (layer_data[0] & 0x1ff) : -(layer_data[0] & 0x1ff);
- layer_scroll_x[1] = (layer_data[1] & 0x8000) ? (layer_data[1] & 0x1ff) : -(layer_data[1] & 0x1ff);
- layer_scroll_y[1] = (layer_data[1] & 0x8000) ? (layer_data[1] & 0x1ff) : -(layer_data[1] & 0x1ff);
- layer_scroll_x[2] = (layer_data[2] & 0x8000) ? (layer_data[2] & 0x1ff) : -(layer_data[2] & 0x1ff);
- layer_scroll_y[2] = (layer_data[2] & 0x8000) ? (layer_data[2] & 0x1ff) : -(layer_data[2] & 0x1ff);
- layer_scroll_x[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff);
- layer_scroll_y[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff);
+ int layer_scroll_x[4], layer_scroll_y[4];
+ UINT32 layer_data[4];
+
+ layer_data[0] = BYTE_REVERSE32((UINT32)(layer_scroll[0] >> 32));
+ layer_data[1] = BYTE_REVERSE32((UINT32)(layer_scroll[0] >> 0));
+ layer_data[2] = BYTE_REVERSE32((UINT32)(layer_scroll[1] >> 32));
+ layer_data[3] = BYTE_REVERSE32((UINT32)(layer_scroll[1] >> 0));
+ layer_scroll_x[0] = (layer_data[0] & 0x8000) ? (layer_data[0] & 0x1ff) : -(layer_data[0] & 0x1ff);
+ layer_scroll_y[0] = (layer_data[0] & 0x8000) ? (layer_data[0] & 0x1ff) : -(layer_data[0] & 0x1ff);
+ layer_scroll_x[1] = (layer_data[1] & 0x8000) ? (layer_data[1] & 0x1ff) : -(layer_data[1] & 0x1ff);
+ layer_scroll_y[1] = (layer_data[1] & 0x8000) ? (layer_data[1] & 0x1ff) : -(layer_data[1] & 0x1ff);
+ layer_scroll_x[2] = (layer_data[2] & 0x8000) ? (layer_data[2] & 0x1ff) : -(layer_data[2] & 0x1ff);
+ layer_scroll_y[2] = (layer_data[2] & 0x8000) ? (layer_data[2] & 0x1ff) : -(layer_data[2] & 0x1ff);
+ layer_scroll_x[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff);
+ layer_scroll_y[3] = (layer_data[3] & 0x8000) ? (layer_data[3] & 0x1ff) : -(layer_data[3] & 0x1ff);
*/
screen_clip = (rectangle*)cliprect;
@@ -1478,8 +1478,8 @@ static void draw_viewport(running_machine *machine, int pri, UINT32 address)
viewport_region_height = ((node[20] >> 16) & 0xffff) >> 2;
/* frustum plane angles */
- //viewport_left = RADIAN_TO_DEGREE(asin(*(float *)&node[12]));
- //viewport_right = RADIAN_TO_DEGREE(asin(*(float *)&node[16]));
+ //viewport_left = RADIAN_TO_DEGREE(asin(*(float *)&node[12]));
+ //viewport_right = RADIAN_TO_DEGREE(asin(*(float *)&node[16]));
viewport_top = RADIAN_TO_DEGREE(asin(*(float *)&node[14]));
viewport_bottom = RADIAN_TO_DEGREE(asin(*(float *)&node[18]));
diff --git a/src/mame/video/rdpblend.c b/src/mame/video/rdpblend.c
index 9d607aaa637..43358d574a2 100644
--- a/src/mame/video/rdpblend.c
+++ b/src/mame/video/rdpblend.c
@@ -563,4 +563,4 @@ void RDP::Blender::DitherRGB(INT32 *r, INT32 *g, INT32 *b, int dith)
}
}
-} // namespace N64 \ No newline at end of file
+} // namespace N64
diff --git a/src/mame/video/rdpblend.h b/src/mame/video/rdpblend.h
index 4539c640c28..52edf993dd5 100644
--- a/src/mame/video/rdpblend.h
+++ b/src/mame/video/rdpblend.h
@@ -52,4 +52,4 @@ class Blender
} // namespace N64
-#endif // _VIDEO_RDPBLEND_H_ \ No newline at end of file
+#endif // _VIDEO_RDPBLEND_H_
diff --git a/src/mame/video/rdpfb.h b/src/mame/video/rdpfb.h
index 59794c47779..31487735a4b 100644
--- a/src/mame/video/rdpfb.h
+++ b/src/mame/video/rdpfb.h
@@ -34,4 +34,4 @@ class Framebuffer
} // namespace N64
-#endif // _VIDEO_RDPFB_H_ \ No newline at end of file
+#endif // _VIDEO_RDPFB_H_
diff --git a/src/mame/video/rdpfrect.h b/src/mame/video/rdpfrect.h
index 1bd0e8c670a..0dba4355305 100644
--- a/src/mame/video/rdpfrect.h
+++ b/src/mame/video/rdpfrect.h
@@ -51,4 +51,4 @@ class Rectangle
} // namespace N64
-#endif // _VIDEO_RDPFILLRECT_H_ \ No newline at end of file
+#endif // _VIDEO_RDPFILLRECT_H_
diff --git a/src/mame/video/rdpspn16.c b/src/mame/video/rdpspn16.c
index 792f8add267..43984539377 100644
--- a/src/mame/video/rdpspn16.c
+++ b/src/mame/video/rdpspn16.c
@@ -455,4 +455,4 @@ void Span::Draw(int index, int tilenum, bool shade, bool texture, bool zbuffer,
}
-} \ No newline at end of file
+}
diff --git a/src/mame/video/rdptpipe.h b/src/mame/video/rdptpipe.h
index 54ff8f10160..95cce003b60 100644
--- a/src/mame/video/rdptpipe.h
+++ b/src/mame/video/rdptpipe.h
@@ -52,4 +52,4 @@ class TexturePipe
} // namespace N64
-#endif // _VIDEO_RDPTEXPIPE_H_ \ No newline at end of file
+#endif // _VIDEO_RDPTEXPIPE_H_
diff --git a/src/mame/video/rdptrect.c b/src/mame/video/rdptrect.c
index 4f13f7c2d42..ba2dfed4e32 100644
--- a/src/mame/video/rdptrect.c
+++ b/src/mame/video/rdptrect.c
@@ -457,4 +457,4 @@ void TexRectangle::DrawCopy()
} // namespace RDP
-} // namespace N64 \ No newline at end of file
+} // namespace N64
diff --git a/src/mame/video/rdptri.h b/src/mame/video/rdptri.h
index d6bd265c973..999f044afdd 100644
--- a/src/mame/video/rdptri.h
+++ b/src/mame/video/rdptri.h
@@ -35,4 +35,4 @@ class Triangle
} // namespace N64
-#endif // _VIDEO_RDPTRI_H_ \ No newline at end of file
+#endif // _VIDEO_RDPTRI_H_
diff --git a/src/mame/video/sega16sp.c b/src/mame/video/sega16sp.c
index 3cb669d01d5..779f6f3b47a 100644
--- a/src/mame/video/sega16sp.c
+++ b/src/mame/video/sega16sp.c
@@ -1490,7 +1490,7 @@ void segaic16_sprites_draw(running_device *screen, bitmap_t *bitmap, const recta
void segaic16_sprites_set_bank(running_machine *machine, int which, int banknum, int offset)
{
running_device* device = 0;
-
+
if (!which)
device = devtag_get_device(machine,"segaspr1");
else
@@ -1520,7 +1520,7 @@ void segaic16_sprites_set_bank(running_machine *machine, int which, int banknum,
void segaic16_sprites_set_flip(running_machine *machine, int which, int flip)
{
running_device* device = 0;
-
+
if (!which)
device = devtag_get_device(machine,"segaspr1");
else
@@ -1551,12 +1551,12 @@ void segaic16_sprites_set_flip(running_machine *machine, int which, int flip)
void segaic16_sprites_set_shadow(running_machine *machine, int which, int shadow)
{
running_device* device = 0;
-
+
if (!which)
device = devtag_get_device(machine,"segaspr1");
else
device = devtag_get_device(machine,"segaspr2");
-
+
if (!device)
fatalerror("segaic16_sprites_set_shadow device not found\n");
@@ -1614,9 +1614,9 @@ static void segaic16_sprites_buffer(running_device* device)
WRITE16_HANDLER( segaic16_sprites_draw_0_w )
{
running_device* device = 0;
-
+
device = devtag_get_device(space->machine,"segaspr1");
-
+
if (!device)
fatalerror("segaic16_sprites_draw_0_w device not found\n");
@@ -1627,9 +1627,9 @@ WRITE16_HANDLER( segaic16_sprites_draw_0_w )
WRITE16_HANDLER( segaic16_sprites_draw_1_w )
{
running_device* device = 0;
-
+
device = devtag_get_device(space->machine,"segaspr2");
-
+
if (!device)
fatalerror("segaic16_sprites_draw_1_w device not found\n");
diff --git a/src/mame/video/taitoic.c b/src/mame/video/taitoic.c
index a6f5b72200d..0405d1a0418 100644
--- a/src/mame/video/taitoic.c
+++ b/src/mame/video/taitoic.c
@@ -3097,7 +3097,7 @@ WRITE16_DEVICE_HANDLER( tc0480scp_ctrl_word_w )
break;
/* offset 0x0e unused */
-
+
case 0x0f: /* control register */
{
int old_width = (tc0480scp->pri_reg & 0x80) >> 7;
diff --git a/src/mame/video/vrender0.c b/src/mame/video/vrender0.c
index d1e4f592644..87a3b1993f9 100644
--- a/src/mame/video/vrender0.c
+++ b/src/mame/video/vrender0.c
@@ -95,7 +95,7 @@ INLINE vr0video_state *get_safe_token( running_device *device )
assert(device != NULL);
assert(device->token != NULL);
assert(device->type == VIDEO_VRENDER0);
-
+
return (vr0video_state *)device->token;
}
@@ -597,7 +597,7 @@ static DEVICE_START( vr0video )
static DEVICE_RESET( vr0video )
{
vr0video_state *vr0 = get_safe_token(device);
-
+
memset(vr0->InternalPalette, 0, sizeof(vr0->InternalPalette));
vr0->LastPalUpdate = 0xffffffff;
}
diff --git a/src/tools/srcclean.c b/src/tools/srcclean.c
index e1c3855730c..f0c388b0578 100644
--- a/src/tools/srcclean.c
+++ b/src/tools/srcclean.c
@@ -238,7 +238,7 @@ int main(int argc, char *argv[])
modified[dst++] = 0x0a;
added_newline = 1;
}
-
+
/* if the result == original, skip it */
if (dst != bytes || memcmp(original, modified, bytes))
{
diff --git a/src/version.c b/src/version.c
index 8e91e84537e..56a8af888c4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -10,4 +10,4 @@
***************************************************************************/
extern const char build_version[];
-const char build_version[] = "0.137u3 ("__DATE__")";
+const char build_version[] = "0.137u4 ("__DATE__")";