summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-11-30 01:46:32 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-11-30 01:46:32 +0000
commitb5c3081f3efaf3b4aad986ae72342d4f83cfd12b (patch)
tree70fff2ee5556328c3204643d2e85d52909fe76fd
parent6967cdf013877eeca01152c1c418abb1d0d1b1eb (diff)
Cleanups and version bump.mame0135u2
-rw-r--r--src/emu/audio/generic.c2
-rw-r--r--src/emu/cpu/i8008/i8008.c2
-rw-r--r--src/emu/devintrf.c10
-rw-r--r--src/emu/devintrf.h4
-rw-r--r--src/emu/inptport.c14
-rw-r--r--src/emu/inptport.h4
-rw-r--r--src/emu/machine/generic.c10
-rw-r--r--src/emu/mame.c2
-rw-r--r--src/emu/mame.h2
-rw-r--r--src/emu/mconfig.c2
-rw-r--r--src/emu/sound/cdp1869.c2
-rw-r--r--src/emu/streams.c8
-rw-r--r--src/emu/uimenu.c2
-rw-r--r--src/emu/validity.c8
-rw-r--r--src/emu/video/generic.c2
-rw-r--r--src/lib/util/tagmap.c14
-rw-r--r--src/lib/util/tagmap.h12
-rw-r--r--src/mame/drivers/1945kiii.c2
-rw-r--r--src/mame/drivers/2mindril.c6
-rw-r--r--src/mame/drivers/actfancr.c8
-rw-r--r--src/mame/drivers/albazg.c8
-rw-r--r--src/mame/drivers/angelkds.c6
-rw-r--r--src/mame/drivers/armedf.c52
-rw-r--r--src/mame/drivers/astrocorp.c2
-rw-r--r--src/mame/drivers/bigevglf.c4
-rw-r--r--src/mame/drivers/bigfghtr.c10
-rw-r--r--src/mame/drivers/bublbobl.c8
-rw-r--r--src/mame/drivers/bwing.c46
-rw-r--r--src/mame/drivers/calorie.c2
-rw-r--r--src/mame/drivers/cchance.c2
-rw-r--r--src/mame/drivers/champbas.c4
-rw-r--r--src/mame/drivers/champbwl.c2
-rw-r--r--src/mame/drivers/chinagat.c4
-rw-r--r--src/mame/drivers/cntsteer.c52
-rw-r--r--src/mame/drivers/cop01.c26
-rw-r--r--src/mame/drivers/cosmic.c6
-rw-r--r--src/mame/drivers/cps1.c4
-rw-r--r--src/mame/drivers/cps2.c10
-rw-r--r--src/mame/drivers/cultures.c2
-rw-r--r--src/mame/drivers/dcheese.c2
-rw-r--r--src/mame/drivers/ddealer.c2
-rw-r--r--src/mame/drivers/ddragon3.c4
-rw-r--r--src/mame/drivers/deco156.c4
-rw-r--r--src/mame/drivers/decocass.c60
-rw-r--r--src/mame/drivers/diverboy.c2
-rw-r--r--src/mame/drivers/dominob.c2
-rw-r--r--src/mame/drivers/drgnmst.c10
-rw-r--r--src/mame/drivers/drtomy.c2
-rw-r--r--src/mame/drivers/drw80pkr.c12
-rw-r--r--src/mame/drivers/dunhuang.c44
-rw-r--r--src/mame/drivers/dynadice.c8
-rw-r--r--src/mame/drivers/egghunt.c2
-rw-r--r--src/mame/drivers/eolith.c2
-rw-r--r--src/mame/drivers/eolith16.c2
-rw-r--r--src/mame/drivers/esd16.c2
-rw-r--r--src/mame/drivers/exerion.c2
-rw-r--r--src/mame/drivers/f-32.c2
-rw-r--r--src/mame/drivers/fantland.c8
-rw-r--r--src/mame/drivers/firetrap.c14
-rw-r--r--src/mame/drivers/flstory.c2
-rw-r--r--src/mame/drivers/freekick.c4
-rw-r--r--src/mame/drivers/gaiden.c4
-rw-r--r--src/mame/drivers/gal3.c150
-rw-r--r--src/mame/drivers/galaxi.c6
-rw-r--r--src/mame/drivers/groundfx.c4
-rw-r--r--src/mame/drivers/hng64.c38
-rw-r--r--src/mame/drivers/igs017.c12
-rw-r--r--src/mame/drivers/jokrwild.c36
-rw-r--r--src/mame/drivers/kaneko16.c2
-rw-r--r--src/mame/drivers/konamigq.c2
-rw-r--r--src/mame/drivers/limenko.c6
-rw-r--r--src/mame/drivers/metro.c2
-rw-r--r--src/mame/drivers/missb2.c4
-rw-r--r--src/mame/drivers/namcops2.c6
-rw-r--r--src/mame/drivers/norautp.c128
-rw-r--r--src/mame/drivers/portrait.c46
-rw-r--r--src/mame/drivers/snesb.c2
-rw-r--r--src/mame/drivers/sub.c28
-rw-r--r--src/mame/drivers/taito_b.c2
-rw-r--r--src/mame/drivers/taito_f3.c2
-rw-r--r--src/mame/drivers/taito_z.c2
-rw-r--r--src/mame/drivers/taitojc.c2
-rw-r--r--src/mame/drivers/tnzs.c8
-rw-r--r--src/mame/drivers/toaplan2.c2
-rw-r--r--src/mame/drivers/zr107.c2
-rw-r--r--src/mame/includes/actfancr.h6
-rw-r--r--src/mame/includes/aquarium.h2
-rw-r--r--src/mame/includes/armedf.h4
-rw-r--r--src/mame/includes/ashnojoe.h2
-rw-r--r--src/mame/includes/blktiger.h6
-rw-r--r--src/mame/includes/bogeyman.h4
-rw-r--r--src/mame/includes/bombjack.h2
-rw-r--r--src/mame/includes/btime.h4
-rw-r--r--src/mame/includes/bublbobl.h2
-rw-r--r--src/mame/includes/capbowl.h2
-rw-r--r--src/mame/includes/ccastles.h4
-rw-r--r--src/mame/includes/citycon.h2
-rw-r--r--src/mame/includes/cloud9.h4
-rw-r--r--src/mame/includes/commando.h2
-rw-r--r--src/mame/includes/compgolf.h2
-rw-r--r--src/mame/includes/cosmic.h2
-rw-r--r--src/mame/includes/crospang.h2
-rw-r--r--src/mame/includes/ddragon.h4
-rw-r--r--src/mame/includes/ddragon3.h2
-rw-r--r--src/mame/includes/dec8.h6
-rw-r--r--src/mame/includes/deniam.h2
-rw-r--r--src/mame/includes/dogfgt.h2
-rw-r--r--src/mame/includes/drgnmst.h2
-rw-r--r--src/mame/includes/equites.h2
-rw-r--r--src/mame/includes/esd16.h2
-rw-r--r--src/mame/includes/exedexes.h2
-rw-r--r--src/mame/includes/exprraid.h2
-rw-r--r--src/mame/includes/fantland.h6
-rw-r--r--src/mame/includes/fitfight.h2
-rw-r--r--src/mame/includes/flstory.h4
-rw-r--r--src/mame/includes/fuukifg2.h2
-rw-r--r--src/mame/includes/tnzs.h4
-rw-r--r--src/mame/includes/yunsun16.h4
-rw-r--r--src/mame/includes/zerozone.h4
-rw-r--r--src/mame/machine/bigevglf.c6
-rw-r--r--src/mame/machine/btime.c6
-rw-r--r--src/mame/machine/bublbobl.c4
-rw-r--r--src/mame/machine/docastle.c4
-rw-r--r--src/mame/machine/flstory.c8
-rw-r--r--src/mame/machine/tnzs.c12
-rw-r--r--src/mame/video/actfancr.c18
-rw-r--r--src/mame/video/aquarium.c6
-rw-r--r--src/mame/video/armedf.c26
-rw-r--r--src/mame/video/blktiger.c2
-rw-r--r--src/mame/video/blockout.c8
-rw-r--r--src/mame/video/btime.c10
-rw-r--r--src/mame/video/bublbobl.c2
-rw-r--r--src/mame/video/bwing.c58
-rw-r--r--src/mame/video/cop01.c2
-rw-r--r--src/mame/video/copsnrob.c2
-rw-r--r--src/mame/video/crospang.c6
-rw-r--r--src/mame/video/ddragon.c6
-rw-r--r--src/mame/video/deniam.c2
-rw-r--r--src/mame/video/dooyong.c2
-rw-r--r--src/mame/video/drgnmst.c4
-rw-r--r--src/mame/video/esd16.c8
-rw-r--r--src/mame/video/exedexes.c2
-rw-r--r--src/mame/video/fitfight.c2
-rw-r--r--src/mame/video/funybubl.c6
-rw-r--r--src/mame/video/fuukifg2.c2
-rw-r--r--src/mame/video/hng64.c72
-rw-r--r--src/mame/video/model1.c2
-rw-r--r--src/mame/video/n64.c18
-rw-r--r--src/mame/video/portrait.c32
-rw-r--r--src/mame/video/tnzs.c2
-rw-r--r--src/mame/video/yunsun16.c2
-rw-r--r--src/mame/video/zerozone.c2
-rw-r--r--src/version.c2
153 files changed, 752 insertions, 752 deletions
diff --git a/src/emu/audio/generic.c b/src/emu/audio/generic.c
index 41eb35a0314..217f7b0dcad 100644
--- a/src/emu/audio/generic.c
+++ b/src/emu/audio/generic.c
@@ -39,7 +39,7 @@ struct _generic_audio_private
int generic_sound_init(running_machine *machine)
{
generic_audio_private *state;
-
+
state = machine->generic_audio_data = auto_alloc_clear(machine, generic_audio_private);
/* register globals with the save state system */
diff --git a/src/emu/cpu/i8008/i8008.c b/src/emu/cpu/i8008/i8008.c
index 12a13c0434a..f479d0cfae9 100644
--- a/src/emu/cpu/i8008/i8008.c
+++ b/src/emu/cpu/i8008/i8008.c
@@ -377,7 +377,7 @@ static void execute_one(i8008_state *cpustate, int opcode)
case 6 : // LrI
cpustate->icount -= 8;
if (REG_1==7) cpustate->icount -= 1; // LMI
- SET_REG(cpustate,REG_1, ARG(cpustate));
+ SET_REG(cpustate,REG_1, ARG(cpustate));
break;
case 7 : // RET
cpustate->icount -= 5;
diff --git a/src/emu/devintrf.c b/src/emu/devintrf.c
index e7e1d4023a6..054f6362935 100644
--- a/src/emu/devintrf.c
+++ b/src/emu/devintrf.c
@@ -88,7 +88,7 @@ INLINE int device_matches_type(const device_config *device, device_type type)
***************************************************************************/
/*-------------------------------------------------
- device_list_init - initialize a device list
+ device_list_init - initialize a device list
structure, optionally allocating a map for it
-------------------------------------------------*/
@@ -107,7 +107,7 @@ void device_list_init(device_list *devlist, int allocmap)
/*-------------------------------------------------
- device_list_deinit - free memory attached to
+ device_list_deinit - free memory attached to
a device list and clear out the structure
-------------------------------------------------*/
@@ -116,7 +116,7 @@ void device_list_deinit(device_list *devlist)
/* release all devices */
while (devlist->head != NULL)
device_list_remove(devlist, devlist->head->tag);
-
+
/* release the map memory */
if (devlist->map != NULL)
tagmap_free(devlist->map);
@@ -148,7 +148,7 @@ device_config *device_list_add(device_list *devlist, const device_config *owner,
/* allocate a new device */
device = (device_config *)alloc_array_or_die(UINT8, sizeof(*device) + strlen(tag) + configlen);
-
+
/* add to the map */
tmerr = tagmap_add_unique_hash(devlist->map, tag, device);
if (tmerr == TMERR_DUPLICATE)
@@ -391,7 +391,7 @@ const device_config *device_list_next(const device_config *prevdevice, device_ty
/*-------------------------------------------------
- device_list_find_by_tag_slow - retrieve a
+ device_list_find_by_tag_slow - retrieve a
device configuration based on a tag
-------------------------------------------------*/
diff --git a/src/emu/devintrf.h b/src/emu/devintrf.h
index 5e2e23cb5d5..76cb726f195 100644
--- a/src/emu/devintrf.h
+++ b/src/emu/devintrf.h
@@ -347,10 +347,10 @@ struct _device_list
/* ----- device configuration ----- */
/* initialize a device list structure, optionally allocating a map for it */
-void device_list_init(device_list *devlist, int allocmap);
+void device_list_init(device_list *devlist, int allocmap);
/* free memory attached to a device list and clear out the structure */
-void device_list_deinit(device_list *devlist);
+void device_list_deinit(device_list *devlist);
/* add a new device to the end of a device list */
device_config *device_list_add(device_list *devlist, const device_config *owner, device_type type, const char *tag, UINT32 clock);
diff --git a/src/emu/inptport.c b/src/emu/inptport.c
index c2a9672e7f7..1756a79c7b7 100644
--- a/src/emu/inptport.c
+++ b/src/emu/inptport.c
@@ -250,7 +250,7 @@ struct _input_port_private
{
/* global state */
UINT8 safe_to_read; /* clear at start; set after state is loaded */
-
+
/* types */
input_type_state * typestatelist; /* list of live type states */
input_type_state * type_to_typestate[__ipt_max][MAX_PLAYERS]; /* map from type/player to type state */
@@ -743,7 +743,7 @@ void input_port_list_deinit(input_port_list *portlist)
/* iterate over all ports and free them */
while (portlist->head != NULL)
port_config_free(&portlist->head);
-
+
/* free the map if present */
if (portlist->map != NULL)
tagmap_free(portlist->map);
@@ -752,8 +752,8 @@ void input_port_list_deinit(input_port_list *portlist)
/*-------------------------------------------------
- input_port_by_tag_slow - return a pointer to
- the port_config associated with the given
+ input_port_by_tag_slow - return a pointer to
+ the port_config associated with the given
port tag
-------------------------------------------------*/
@@ -1463,7 +1463,7 @@ static INT32 apply_analog_settings(INT32 value, analog_field_state *analog)
/*-------------------------------------------------
input_port_write_direct - write a value
- to a port
+ to a port
-------------------------------------------------*/
void input_port_write_direct(const input_port_config *port, input_port_value data, input_port_value mem_mask)
@@ -1491,7 +1491,7 @@ void input_port_write_direct(const input_port_config *port, input_port_value dat
/*-------------------------------------------------
input_port_write - write a value to a
- port specified by tag
+ port specified by tag
-------------------------------------------------*/
void input_port_write(running_machine *machine, const char *tag, input_port_value value, input_port_value mask)
@@ -1505,7 +1505,7 @@ void input_port_write(running_machine *machine, const char *tag, input_port_valu
/*-------------------------------------------------
input_port_write_safe - write a value to
- a port, ignore if the port does not exist
+ a port, ignore if the port does not exist
-------------------------------------------------*/
void input_port_write_safe(running_machine *machine, const char *tag, input_port_value value, input_port_value mask)
diff --git a/src/emu/inptport.h b/src/emu/inptport.h
index 8f25a022a20..c6af78b0b32 100644
--- a/src/emu/inptport.h
+++ b/src/emu/inptport.h
@@ -1152,7 +1152,7 @@ const char *input_port_string_from_token(const input_port_token token);
***************************************************************************/
/*-------------------------------------------------
- input_port_by_tag - return the config that
+ input_port_by_tag - return the config that
matches the given tag
-------------------------------------------------*/
@@ -1161,7 +1161,7 @@ INLINE const input_port_config *input_port_by_tag(const input_port_list *portlis
/* use the map if we have it */
if (portlist->map != NULL)
return tagmap_find_hash_only(portlist->map, tag);
-
+
/* otherwise, do it the slow way */
return input_port_by_tag_slow(portlist, tag);
}
diff --git a/src/emu/machine/generic.c b/src/emu/machine/generic.c
index 9dc6bf0a525..71b06b336a5 100644
--- a/src/emu/machine/generic.c
+++ b/src/emu/machine/generic.c
@@ -77,7 +77,7 @@ void generic_machine_init(running_machine *machine)
{
generic_machine_private *state;
int counternum;
-
+
/* allocate our state */
machine->generic_machine_data = auto_alloc_clear(machine, generic_machine_private);
state = machine->generic_machine_data;
@@ -123,7 +123,7 @@ void generic_machine_init(running_machine *machine)
***************************************************************************/
/*-------------------------------------------------
- get_dispensed_tickets - return the number of
+ get_dispensed_tickets - return the number of
tickets dispensed
-------------------------------------------------*/
@@ -135,7 +135,7 @@ int get_dispensed_tickets(running_machine *machine)
/*-------------------------------------------------
- increment_dispensed_tickets - increment the
+ increment_dispensed_tickets - increment the
number of dispensed tickets
-------------------------------------------------*/
@@ -245,7 +245,7 @@ void coin_counter_w(running_machine *machine, int num, int on)
/*-------------------------------------------------
- coin_counter_get_count - return the coin count
+ coin_counter_get_count - return the coin count
for a given coin
-------------------------------------------------*/
@@ -272,7 +272,7 @@ void coin_lockout_w(running_machine *machine, int num,int on)
/*-------------------------------------------------
- coin_lockout_get_state - return current lockout
+ coin_lockout_get_state - return current lockout
state for a particular coin
-------------------------------------------------*/
diff --git a/src/emu/mame.c b/src/emu/mame.c
index 8464a629560..b11ebc79965 100644
--- a/src/emu/mame.c
+++ b/src/emu/mame.c
@@ -1402,7 +1402,7 @@ static running_machine *create_machine(const game_driver *driver)
if (machine->mame_data == NULL)
goto error;
memset(machine->mame_data, 0, sizeof(*machine->mame_data));
-
+
/* allocate memory for the memory region map */
machine->mame_data->regionmap = tagmap_alloc();
if (machine->mame_data->regionmap == NULL)
diff --git a/src/emu/mame.h b/src/emu/mame.h
index aa699fc7885..802d588eb5f 100644
--- a/src/emu/mame.h
+++ b/src/emu/mame.h
@@ -211,7 +211,7 @@ struct _running_machine
/* debugger-related information */
UINT32 debug_flags; /* the current debug flags */
-
+
/* generic pointers */
generic_pointers generic; /* generic pointers */
diff --git a/src/emu/mconfig.c b/src/emu/mconfig.c
index ed0d1704299..4ef8dc8c776 100644
--- a/src/emu/mconfig.c
+++ b/src/emu/mconfig.c
@@ -70,7 +70,7 @@ machine_config *machine_config_alloc(const machine_config_token *tokens)
/* allocate a new configuration object */
config = alloc_clear_or_die(machine_config);
-
+
/* initialize the device list */
device_list_init(&config->devicelist, TRUE);
diff --git a/src/emu/sound/cdp1869.c b/src/emu/sound/cdp1869.c
index 9322b99a2e8..35b9c099b20 100644
--- a/src/emu/sound/cdp1869.c
+++ b/src/emu/sound/cdp1869.c
@@ -8,7 +8,7 @@
TODO:
- - remove CDP1802 dependency
+ - remove CDP1802 dependency
- white noise
- scanline based update
- CMSEL output
diff --git a/src/emu/streams.c b/src/emu/streams.c
index 72f7f2e828b..4445e94c3f3 100644
--- a/src/emu/streams.c
+++ b/src/emu/streams.c
@@ -939,22 +939,22 @@ static stream_sample_t *generate_resampled_data(stream_input *input, UINT32 nums
while (numsamples != 0)
{
int nextfrac, startfrac, endfrac;
-
+
/* fill in with point samples until we hit a boundary */
while ((nextfrac = basefrac + step) < FRAC_ONE && numsamples--)
{
*dest++ = (source[0] * gain) >> 8;
basefrac = nextfrac;
}
-
+
/* if we're done, we're done */
if ((INT32)numsamples-- < 0)
break;
-
+
/* compute starting and ending fractional positions */
startfrac = basefrac >> (FRAC_BITS - 12);
endfrac = nextfrac >> (FRAC_BITS - 12);
-
+
/* blend between the two samples accordingly */
sample = (source[0] * (0x1000 - startfrac) + source[1] * (endfrac - 0x1000)) / (endfrac - startfrac);
*dest++ = (sample * gain) >> 8;
diff --git a/src/emu/uimenu.c b/src/emu/uimenu.c
index 12e84b10997..6923eb5be52 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -2431,7 +2431,7 @@ static void menu_bookkeeping_populate(running_machine *machine, ui_menu *menu, a
for (ctrnum = 0; ctrnum < COIN_COUNTERS; ctrnum++)
{
int count = coin_counter_get_count(machine, ctrnum);
-
+
/* display the coin counter number */
astring_catprintf(tempstring, "Coin %c: ", ctrnum + 'A');
diff --git a/src/emu/validity.c b/src/emu/validity.c
index e33b51d09e1..7bb79ae4b3e 100644
--- a/src/emu/validity.c
+++ b/src/emu/validity.c
@@ -326,7 +326,7 @@ static int validate_driver(int drivnum, const machine_config *config, tagmap *na
mame_printf_error("%s: %s is a duplicate name (%s, %s)\n", driver->source_file, driver->name, match->source_file, match->name);
error = TRUE;
}
-
+
/* check for duplicate descriptions */
if (tagmap_add(descriptions, driver->description, (void *)driver) == TMERR_DUPLICATE)
{
@@ -1058,7 +1058,7 @@ static int validate_inputs(int drivnum, const machine_config *config, tagmap *de
mame_printf_error("%s: %s has input port errors:\n%s\n", driver->source_file, driver->name, errorbuf);
error = TRUE;
}
-
+
/* check for duplicate tags */
for (port = portlist->head; port != NULL; port = port->next)
if (port->tag != NULL)
@@ -1420,7 +1420,7 @@ int mame_validitychecks(const game_driver *curdriver)
int error = FALSE;
UINT16 lsbtest;
UINT8 a, b;
-
+
tagmap *names = tagmap_alloc();
tagmap *descriptions = tagmap_alloc();
tagmap *roms = tagmap_alloc();
@@ -1472,7 +1472,7 @@ int mame_validitychecks(const game_driver *curdriver)
tagmap_add(defstr, string, (void *)(FPTR)strnum);
}
prep += get_profile_ticks();
-
+
/* iterate over all drivers */
for (drivnum = 0; drivers[drivnum]; drivnum++)
{
diff --git a/src/emu/video/generic.c b/src/emu/video/generic.c
index af79d3c6b01..379e0fdf5fc 100644
--- a/src/emu/video/generic.c
+++ b/src/emu/video/generic.c
@@ -231,7 +231,7 @@ INLINE void set_color_888(running_machine *machine, pen_t color, int rshift, int
void generic_video_init(running_machine *machine)
{
generic_video_private *state;
-
+
state = machine->generic_video_data = auto_alloc_clear(machine, generic_video_private);
state_save_register_item(machine, "video", NULL, 0, state->flip_screen_x);
diff --git a/src/lib/util/tagmap.c b/src/lib/util/tagmap.c
index 6cd9ddad601..a7f93f186b1 100644
--- a/src/lib/util/tagmap.c
+++ b/src/lib/util/tagmap.c
@@ -66,7 +66,7 @@ tagmap *tagmap_alloc(void)
/*-------------------------------------------------
- tagmap_free - free a tagmap, and all
+ tagmap_free - free a tagmap, and all
entries within it
-------------------------------------------------*/
@@ -78,14 +78,14 @@ void tagmap_free(tagmap *map)
/*-------------------------------------------------
- tagmap_reset - reset a tagmap by freeing
+ tagmap_reset - reset a tagmap by freeing
all entries
-------------------------------------------------*/
void tagmap_reset(tagmap *map)
{
UINT32 hashindex;
-
+
for (hashindex = 0; hashindex < ARRAY_LENGTH(map->table); hashindex++)
{
tagmap_entry *entry, *next;
@@ -116,7 +116,7 @@ tagmap_error tagmap_add(tagmap *map, const char *tag, void *object)
/*-------------------------------------------------
- tagmap_add_unique_hash - add a new entry to a
+ tagmap_add_unique_hash - add a new entry to a
tagmap, ensuring it has a unique hash value
-------------------------------------------------*/
@@ -135,7 +135,7 @@ void tagmap_remove(tagmap *map, const char *tag)
{
UINT32 fullhash = tagmap_hash(tag);
tagmap_entry **entryptr;
-
+
for (entryptr = &map->table[fullhash % ARRAY_LENGTH(map->table)]; *entryptr != NULL; entryptr = &(*entryptr)->next)
if ((*entryptr)->fullhash == fullhash && strcmp((*entryptr)->tag, tag) == 0)
{
@@ -170,7 +170,7 @@ static tagmap_error tagmap_add_common(tagmap *map, const char *tag, void *object
/* if we require a unique hash, fail here */
if (unique_hash)
return TMERR_DUPLICATE;
-
+
/* validate the string */
if (strcmp(tag, entry->tag) == 0)
return TMERR_DUPLICATE;
@@ -180,7 +180,7 @@ static tagmap_error tagmap_add_common(tagmap *map, const char *tag, void *object
entry = malloc(sizeof(*entry) + strlen(tag));
if (entry == NULL)
return TMERR_OUT_OF_MEMORY;
-
+
/* fill in the entry */
entry->object = object;
entry->fullhash = fullhash;
diff --git a/src/lib/util/tagmap.h b/src/lib/util/tagmap.h
index d1de47de60d..4489be70f4b 100644
--- a/src/lib/util/tagmap.h
+++ b/src/lib/util/tagmap.h
@@ -127,7 +127,7 @@ INLINE UINT32 tagmap_hash(const char *string)
{
UINT32 hash = (string[0] << 5) + string[1];
char c;
-
+
string += 2;
while ((c = *string++) != 0)
hash = ((hash << 5) | (hash >> 27)) + c;
@@ -136,7 +136,7 @@ INLINE UINT32 tagmap_hash(const char *string)
/*-------------------------------------------------
- tagmap_find_prehashed - find an object
+ tagmap_find_prehashed - find an object
associated with a tag, given the tag's
hash
-------------------------------------------------*/
@@ -144,7 +144,7 @@ INLINE UINT32 tagmap_hash(const char *string)
INLINE void *tagmap_find_prehashed(tagmap *map, const char *tag, UINT32 fullhash)
{
tagmap_entry *entry;
-
+
for (entry = map->table[fullhash % ARRAY_LENGTH(map->table)]; entry != NULL; entry = entry->next)
if (entry->fullhash == fullhash && strcmp(entry->tag, tag) == 0)
return entry->object;
@@ -153,7 +153,7 @@ INLINE void *tagmap_find_prehashed(tagmap *map, const char *tag, UINT32 fullhash
/*-------------------------------------------------
- tagmap_find - find an object associated
+ tagmap_find - find an object associated
with a tag
-------------------------------------------------*/
@@ -164,7 +164,7 @@ INLINE void *tagmap_find(tagmap *map, const char *tag)
/*-------------------------------------------------
- tagmap_find_hash_only - find an object
+ tagmap_find_hash_only - find an object
associated with a tag using only the hash;
this generally works well but may occasionally
return a false positive
@@ -174,7 +174,7 @@ INLINE void *tagmap_find_hash_only(tagmap *map, const char *tag)
{
UINT32 fullhash = tagmap_hash(tag);
tagmap_entry *entry;
-
+
for (entry = map->table[fullhash % ARRAY_LENGTH(map->table)]; entry != NULL; entry = entry->next)
if (entry->fullhash == fullhash)
return entry->object;
diff --git a/src/mame/drivers/1945kiii.c b/src/mame/drivers/1945kiii.c
index 010aebc8809..15d319dafec 100644
--- a/src/mame/drivers/1945kiii.c
+++ b/src/mame/drivers/1945kiii.c
@@ -67,7 +67,7 @@ struct _k3_state
UINT16 * spriteram_1;
UINT16 * spriteram_2;
UINT16 * bgram;
-// UINT16 * paletteram16; // currently this uses generic palette handling
+// UINT16 * paletteram16; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap;
diff --git a/src/mame/drivers/2mindril.c b/src/mame/drivers/2mindril.c
index 117366da3f3..55fba698f24 100644
--- a/src/mame/drivers/2mindril.c
+++ b/src/mame/drivers/2mindril.c
@@ -68,7 +68,7 @@ struct __2mindril_state
UINT16 * charram;
UINT16 * textram;
UINT16 * unkram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
UINT16 * iodata;
/* input-related */
@@ -120,7 +120,7 @@ static VIDEO_UPDATE( drill )
}
}
/*printf("%.4X %.4X %.4X %.4X %.4X %.4X\n", state->unkram[0x60000 / 2], state->unkram[0x60000 / 2 + 1], state->unkram[0x60000 / 2 + 2],
- state->unkram[0x60000 / 2 + 3], state->unkram[0x60000 / 2 + 4], state->unkram[0x60000 / 2 + 5]);*/
+ state->unkram[0x60000 / 2 + 3], state->unkram[0x60000 / 2 + 4], state->unkram[0x60000 / 2 + 5]);*/
return 0;
}
@@ -138,7 +138,7 @@ static READ16_HANDLER( drill_io_r )
// if (offset * 2 == 0x4)
/*popmessage("PC=%08x %04x %04x %04x %04x %04x %04x %04x %04x", cpu_get_pc(space->cpu), state->iodata[0/2], state->iodata[2/2], state->iodata[4/2], state->iodata[6/2],
- state->iodata[8/2], state->iodata[0xa/2], state->iodata[0xc/2], state->iodata[0xe/2]);*/
+ state->iodata[8/2], state->iodata[0xa/2], state->iodata[0xc/2], state->iodata[0xe/2]);*/
switch(offset)
{
diff --git a/src/mame/drivers/actfancr.c b/src/mame/drivers/actfancr.c
index 8425d82619e..78cc2e4e06b 100644
--- a/src/mame/drivers/actfancr.c
+++ b/src/mame/drivers/actfancr.c
@@ -582,10 +582,10 @@ static READ8_HANDLER( cycle_r )
int pc = cpu_get_pc(space->cpu);
int ret = state->main_ram[0x26];
- if (offset == 1)
+ if (offset == 1)
return state->main_ram[0x27];
- if (pc == 0xe29a && ret == 0)
+ if (pc == 0xe29a && ret == 0)
{
cpu_spinuntil_int(space->cpu);
return 1;
@@ -600,10 +600,10 @@ static READ8_HANDLER( cyclej_r )
int pc = cpu_get_pc(space->cpu);
int ret = state->main_ram[0x26];
- if (offset == 1)
+ if (offset == 1)
return state->main_ram[0x27];
- if (pc == 0xe2b1 && ret == 0)
+ if (pc == 0xe2b1 && ret == 0)
{
cpu_spinuntil_int(space->cpu);
return 1;
diff --git a/src/mame/drivers/albazg.c b/src/mame/drivers/albazg.c
index 76a8d4d99de..78051c0a2fa 100644
--- a/src/mame/drivers/albazg.c
+++ b/src/mame/drivers/albazg.c
@@ -68,8 +68,8 @@ struct _albazg_state
UINT8 * cus_ram;
UINT8 * videoram;
UINT8 * colorram;
-// UINT8 * paletteram; // currently this uses generic palette handling
-// UINT8 * paletteram_2; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram_2; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap;
@@ -154,7 +154,7 @@ static WRITE8_HANDLER( custom_ram_w )
{
albazg_state *state = (albazg_state *)space->machine->driver_data;
// logerror("Custom RAM write at %02x : %02x PC = %x\n", offset + 0xaf80, data, cpu_get_pc(space->cpu));
- if(state->prot_lock)
+ if(state->prot_lock)
state->cus_ram[offset] = data;
}
@@ -192,7 +192,7 @@ static WRITE8_DEVICE_HANDLER( mux_w )
//0x12000 gameplay
//0x14000 bonus game
//0x16000 ?
- if( state->bank != new_bank)
+ if( state->bank != new_bank)
{
state->bank = new_bank;
memory_set_bank(device->machine, 1, state->bank);
diff --git a/src/mame/drivers/angelkds.c b/src/mame/drivers/angelkds.c
index 195eb396301..c65e2041563 100644
--- a/src/mame/drivers/angelkds.c
+++ b/src/mame/drivers/angelkds.c
@@ -753,16 +753,16 @@ ROM_END
static DRIVER_INIT( angelkds )
-{
+{
UINT8 *RAM = memory_region(machine, "user1");
memory_configure_bank(machine, 1, 0, 8, &RAM[0x0000], 0x4000);
}
static DRIVER_INIT( spcpostn )
-{
+{
UINT8 *RAM = memory_region(machine, "user1");
- spcpostn_decode(machine, "maincpu");
+ spcpostn_decode(machine, "maincpu");
memory_configure_bank(machine, 1, 0, 10, &RAM[0x0000], 0x4000);
}
diff --git a/src/mame/drivers/armedf.c b/src/mame/drivers/armedf.c
index fe06cf95411..4e93fcba89d 100644
--- a/src/mame/drivers/armedf.c
+++ b/src/mame/drivers/armedf.c
@@ -493,12 +493,12 @@ static INPUT_PORTS_START( armedf )
PORT_DIPSETTING( 0x01, "5" )
PORT_DIPSETTING( 0x00, "6" )
/* SW1:3,4 defined in manual/test-mode as:
- PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
- PORT_DIPSETTING( 0x04, "20k" )
- PORT_DIPSETTING( 0x00, "40k" )
- PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
- PORT_DIPSETTING( 0x08, "60k" )
- PORT_DIPSETTING( 0x00, "80k" )*/
+ PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
+ PORT_DIPSETTING( 0x04, "20k" )
+ PORT_DIPSETTING( 0x00, "40k" )
+ PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
+ PORT_DIPSETTING( 0x08, "60k" )
+ PORT_DIPSETTING( 0x00, "80k" )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x0c, "20k then every 60k" )
PORT_DIPSETTING( 0x04, "20k then every 80k" )
@@ -586,12 +586,12 @@ static INPUT_PORTS_START( terraf )
PORT_MODIFY("DSW1")
/* SW1:3,4 defined in manual/test-mode as:
- PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
- PORT_DIPSETTING( 0x04, "20k" )
- PORT_DIPSETTING( 0x00, "50k" )
- PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
- PORT_DIPSETTING( 0x08, "60k" )
- PORT_DIPSETTING( 0x00, "90k" )*/
+ PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
+ PORT_DIPSETTING( 0x04, "20k" )
+ PORT_DIPSETTING( 0x00, "50k" )
+ PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
+ PORT_DIPSETTING( 0x08, "60k" )
+ PORT_DIPSETTING( 0x00, "90k" )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x0c, "20k then every 60k" )
PORT_DIPSETTING( 0x04, "20k then every 90k" )
@@ -619,12 +619,12 @@ static INPUT_PORTS_START( kodure )
PORT_MODIFY("DSW1")
/* SW1:3,4 defined in manual/test-mode as:
- PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
- PORT_DIPSETTING( 0x04, DEF_STR( None ) )
- PORT_DIPSETTING( 0x00, "50k" )
- PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
- PORT_DIPSETTING( 0x08, "60k" )
- PORT_DIPSETTING( 0x00, "90k" )*/
+ PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
+ PORT_DIPSETTING( 0x04, DEF_STR( None ) )
+ PORT_DIPSETTING( 0x00, "50k" )
+ PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
+ PORT_DIPSETTING( 0x08, "60k" )
+ PORT_DIPSETTING( 0x00, "90k" )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x08, "50k then every 60k" )
PORT_DIPSETTING( 0x00, "50k then every 90k" )
@@ -671,12 +671,12 @@ static INPUT_PORTS_START( cclimbr2 )
PORT_MODIFY("DSW1")
/* SW1:3,4 defined in manual/test-mode as:
- PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
- PORT_DIPSETTING( 0x04, "30k" )
- PORT_DIPSETTING( 0x00, "60k" )
- PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
- PORT_DIPSETTING( 0x08, "70k" )
- PORT_DIPSETTING( 0x00, DEF_STR( None ) )*/
+ PORT_DIPNAME( 0x04, 0x04, "1st Bonus Life" ) PORT_DIPLOCATION("SW1:3")
+ PORT_DIPSETTING( 0x04, "30k" )
+ PORT_DIPSETTING( 0x00, "60k" )
+ PORT_DIPNAME( 0x08, 0x08, "2nd Bonus Life" ) PORT_DIPLOCATION("SW1:4")
+ PORT_DIPSETTING( 0x08, "70k" )
+ PORT_DIPSETTING( 0x00, DEF_STR( None ) )*/
PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW1:3,4")
PORT_DIPSETTING( 0x0c, "30K and 100k" )
PORT_DIPSETTING( 0x08, "60k and 130k" )
@@ -769,7 +769,7 @@ static MACHINE_START( armedf )
state_save_register_global(machine, state->scroll_msb);
state_save_register_global(machine, state->waiting_msb);
state_save_register_global(machine, state->vreg);
- state_save_register_global(machine, state->fg_scrollx);
+ state_save_register_global(machine, state->fg_scrollx);
state_save_register_global(machine, state->fg_scrolly);
state_save_register_global(machine, state->bg_scrollx);
state_save_register_global(machine, state->bg_scrolly);
@@ -784,7 +784,7 @@ static MACHINE_RESET( armedf )
state->scroll_msb = 0;
state->waiting_msb = 0;
state->vreg = 0;
- state->fg_scrollx = 0;
+ state->fg_scrollx = 0;
state->fg_scrolly = 0;
state->bg_scrollx = 0;
state->bg_scrolly = 0;
diff --git a/src/mame/drivers/astrocorp.c b/src/mame/drivers/astrocorp.c
index 8365de2e9b3..79446803938 100644
--- a/src/mame/drivers/astrocorp.c
+++ b/src/mame/drivers/astrocorp.c
@@ -112,7 +112,7 @@ static WRITE16_HANDLER( astrocorp_eeprom_w )
{
if (ACCESSING_BITS_0_7)
{
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
}
diff --git a/src/mame/drivers/bigevglf.c b/src/mame/drivers/bigevglf.c
index 14228131041..5e3de8b08db 100644
--- a/src/mame/drivers/bigevglf.c
+++ b/src/mame/drivers/bigevglf.c
@@ -116,9 +116,9 @@ static TIMER_CALLBACK( nmi_callback )
{
bigevglf_state *state = (bigevglf_state *)machine->driver_data;
- if (state->sound_nmi_enable)
+ if (state->sound_nmi_enable)
cpu_set_input_line(state->audiocpu, INPUT_LINE_NMI, PULSE_LINE);
- else
+ else
state->pending_nmi = 1;
state->sound_state &= ~1;
}
diff --git a/src/mame/drivers/bigfghtr.c b/src/mame/drivers/bigfghtr.c
index 050563ad67c..1137827ba3f 100644
--- a/src/mame/drivers/bigfghtr.c
+++ b/src/mame/drivers/bigfghtr.c
@@ -125,8 +125,8 @@ struct _bigfghtr_state
UINT16 * bg_videoram;
UINT16 * fg_videoram;
UINT16 * sharedram;
-// UINT16 * spriteram; // currently this uses generic buffer_spriteram_w
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * spriteram; // currently this uses generic buffer_spriteram_w
+// UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap;
@@ -283,17 +283,17 @@ static VIDEO_UPDATE( bigfghtr )
else
bitmap_fill(bitmap, cliprect, get_black_pen(screen->machine));
- if(sprite_enable)
+ if(sprite_enable)
draw_sprites(screen->machine, bitmap, cliprect, 2);
tilemap_draw(bitmap, cliprect, state->fg_tilemap, 0, 0);
- if(sprite_enable)
+ if(sprite_enable)
draw_sprites(screen->machine, bitmap, cliprect, 1);
tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0);
- if (sprite_enable)
+ if (sprite_enable)
draw_sprites(screen->machine, bitmap, cliprect, 0);
return 0;
diff --git a/src/mame/drivers/bublbobl.c b/src/mame/drivers/bublbobl.c
index aa802a57a6c..b796e9c446c 100644
--- a/src/mame/drivers/bublbobl.c
+++ b/src/mame/drivers/bublbobl.c
@@ -725,10 +725,10 @@ static MACHINE_START( common )
{
bublbobl_state *state = (bublbobl_state *)machine->driver_data;
- state->maincpu = devtag_get_device(machine, "maincpu");
- state->mcu = devtag_get_device(machine, "mcu");
- state->audiocpu = devtag_get_device(machine, "audiocpu");
- state->slave = devtag_get_device(machine, "slave");
+ state->maincpu = devtag_get_device(machine, "maincpu");
+ state->mcu = devtag_get_device(machine, "mcu");
+ state->audiocpu = devtag_get_device(machine, "audiocpu");
+ state->slave = devtag_get_device(machine, "slave");
state_save_register_global(machine, state->sound_nmi_enable);
state_save_register_global(machine, state->pending_nmi);
diff --git a/src/mame/drivers/bwing.c b/src/mame/drivers/bwing.c
index 3c717df874c..2901f83c720 100644
--- a/src/mame/drivers/bwing.c
+++ b/src/mame/drivers/bwing.c
@@ -54,58 +54,58 @@ static INTERRUPT_GEN ( bwp1_interrupt )
case 1:
if (~input_port_read(device->machine, "IN2") & 0x03)
- {
- if (!state->coin)
- {
- state->coin = 1;
- cpu_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
- }
+ {
+ if (!state->coin)
+ {
+ state->coin = 1;
+ cpu_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
+ }
}
else
state->coin = 0;
break;
case 2:
- if (input_port_read(device->machine, "IN3"))
+ if (input_port_read(device->machine, "IN3"))
cpu_set_input_line(device, M6809_FIRQ_LINE, ASSERT_LINE);
break;
}
}
-static INTERRUPT_GEN ( bwp3_interrupt )
-{
+static INTERRUPT_GEN ( bwp3_interrupt )
+{
bwing_state *state = (bwing_state *)device->machine->driver_data;
- if (!state->bwp3_nmimask)
- cpu_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
+ if (!state->bwp3_nmimask)
+ cpu_set_input_line(device, INPUT_LINE_NMI, ASSERT_LINE);
}
//****************************************************************************
// Memory and I/O Handlers
static WRITE8_HANDLER( bwp12_sharedram1_w )
-{
+{
bwing_state *state = (bwing_state *)space->machine->driver_data;
- state->bwp1_sharedram1[offset] = state->bwp2_sharedram1[offset] = data;
+ state->bwp1_sharedram1[offset] = state->bwp2_sharedram1[offset] = data;
}
-static WRITE8_HANDLER( bwp3_u8F_w )
-{
+static WRITE8_HANDLER( bwp3_u8F_w )
+{
bwing_state *state = (bwing_state *)space->machine->driver_data;
state->bwp3_u8F_d = data; // prepares custom chip for various operations
}
-static WRITE8_HANDLER( bwp3_nmimask_w )
-{
+static WRITE8_HANDLER( bwp3_nmimask_w )
+{
bwing_state *state = (bwing_state *)space->machine->driver_data;
- state->bwp3_nmimask = data & 0x80;
+ state->bwp3_nmimask = data & 0x80;
}
-static WRITE8_HANDLER( bwp3_nmiack_w )
-{
+static WRITE8_HANDLER( bwp3_nmiack_w )
+{
bwing_state *state = (bwing_state *)space->machine->driver_data;
- cpu_set_input_line(state->audiocpu, INPUT_LINE_NMI, CLEAR_LINE);
+ cpu_set_input_line(state->audiocpu, INPUT_LINE_NMI, CLEAR_LINE);
}
@@ -402,8 +402,8 @@ static MACHINE_RESET( bwing )
state->coin = 0;
state->palatch = 0;
- state->srbank = 0;
- state->mapmask = 0;
+ state->srbank = 0;
+ state->mapmask = 0;
state->mapflip = 0;
for (i = 0; i < MAX_SOUNDS; i++)
diff --git a/src/mame/drivers/calorie.c b/src/mame/drivers/calorie.c
index 28366c9fc7f..e65bec1fd8c 100644
--- a/src/mame/drivers/calorie.c
+++ b/src/mame/drivers/calorie.c
@@ -89,7 +89,7 @@ struct _calorie_state
/* memory pointers */
UINT8 * fg_ram;
UINT8 * sprites;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap,*fg_tilemap;
diff --git a/src/mame/drivers/cchance.c b/src/mame/drivers/cchance.c
index 74d3c77f4be..9e796159d26 100644
--- a/src/mame/drivers/cchance.c
+++ b/src/mame/drivers/cchance.c
@@ -184,7 +184,7 @@ static const ay8910_interface ay8910_config =
static MACHINE_START( cchance )
{
tnzs_state *state = (tnzs_state *)machine->driver_data;
- state->mcu = NULL;
+ state->mcu = NULL;
state_save_register_global(machine, state->screenflip);
state_save_register_global(machine, state->hop_io);
diff --git a/src/mame/drivers/champbas.c b/src/mame/drivers/champbas.c
index 01d00f91b32..44ce7a9ae3e 100644
--- a/src/mame/drivers/champbas.c
+++ b/src/mame/drivers/champbas.c
@@ -195,11 +195,11 @@ static READ8_HANDLER( champbja_alt_protection_r )
*/
/* bit7 = bit0 */
- if ((offset & 0x01))
+ if ((offset & 0x01))
data |= 0x80;
/* bit4,3,0 = bit6 */
- if ((offset & 0x40))
+ if ((offset & 0x40))
data |= 0x19;
return data;
diff --git a/src/mame/drivers/champbwl.c b/src/mame/drivers/champbwl.c
index d4c7955dcad..3bd9b20a4ee 100644
--- a/src/mame/drivers/champbwl.c
+++ b/src/mame/drivers/champbwl.c
@@ -335,7 +335,7 @@ static MACHINE_START( champbwl )
tnzs_state *state = (tnzs_state *)machine->driver_data;
UINT8 *ROM = memory_region(machine, "maincpu");
- state->mcu = NULL;
+ state->mcu = NULL;
memory_configure_bank(machine, 1, 0, 4, &ROM[0x10000], 0x4000);
diff --git a/src/mame/drivers/chinagat.c b/src/mame/drivers/chinagat.c
index 7b11ecfa8a4..015dd49a377 100644
--- a/src/mame/drivers/chinagat.c
+++ b/src/mame/drivers/chinagat.c
@@ -413,8 +413,8 @@ static INPUT_PORTS_START( chinagat )
PORT_DIPSETTING( 0x20, DEF_STR( 1C_4C ) )
PORT_DIPSETTING( 0x18, DEF_STR( 1C_5C ) )
/*PORT_DIPNAME( 0x40, 0x00, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:7")
- PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
- PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )*/
+ PORT_DIPSETTING( 0x00, DEF_STR( Upright ) )
+ PORT_DIPSETTING( 0x40, DEF_STR( Cocktail ) )*/
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:8")
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
diff --git a/src/mame/drivers/cntsteer.c b/src/mame/drivers/cntsteer.c
index 7b898c0a606..16079f6c9b7 100644
--- a/src/mame/drivers/cntsteer.c
+++ b/src/mame/drivers/cntsteer.c
@@ -165,7 +165,7 @@ static void zerotrgt_draw_sprites( running_machine *machine, bitmap_t *bitmap, c
{
sy = 240 - sy;
sx = 240 - sx;
- if (fx) fx = 0;
+ if (fx) fx = 0;
else fx = 1;
//sy2 = sy - 16;
}
@@ -223,7 +223,7 @@ static void cntsteer_draw_sprites( running_machine *machine, bitmap_t *bitmap, c
{
sy = 240 - sy;
sx = 240 - sx;
- if (fx) fx = 0;
+ if (fx) fx = 0;
else fx = 1;
//sy2 = sy - 16;
}
@@ -371,15 +371,15 @@ static WRITE8_HANDLER(zerotrgt_vregs_w)
{
case 0: state->scrolly = data; break;
case 1: state->scrollx = data; break;
- case 2: state->bg_bank = (data & 0x30) << 4;
- state->bg_color_bank = (data & 7);
- state->disable_roz = (data & 0x40);
- tilemap_mark_all_tiles_dirty(state->bg_tilemap);
+ case 2: state->bg_bank = (data & 0x30) << 4;
+ state->bg_color_bank = (data & 7);
+ state->disable_roz = (data & 0x40);
+ tilemap_mark_all_tiles_dirty(state->bg_tilemap);
break;
- case 3: state->rotation_sign = (data & 1);
- flip_screen_set(space->machine, !(data & 4));
- state->scrolly_hi = (data & 0x30) << 4;
- state->scrollx_hi = (data & 0xc0) << 2;
+ case 3: state->rotation_sign = (data & 1);
+ flip_screen_set(space->machine, !(data & 4));
+ state->scrolly_hi = (data & 0x30) << 4;
+ state->scrollx_hi = (data & 0xc0) << 2;
break;
case 4: state->rotation_x = data; break;
}
@@ -397,14 +397,14 @@ static WRITE8_HANDLER(cntsteer_vregs_w)
{
case 0: state->scrolly = data; break;
case 1: state->scrollx = data; break;
- case 2: state->bg_bank = (data & 0x01) << 8;
- state->bg_color_bank = (data & 6) >> 1;
- tilemap_mark_all_tiles_dirty(state->bg_tilemap);
+ case 2: state->bg_bank = (data & 0x01) << 8;
+ state->bg_color_bank = (data & 6) >> 1;
+ tilemap_mark_all_tiles_dirty(state->bg_tilemap);
break;
- case 3: state->rotation_sign = (data & 7);
- state->disable_roz = (~data & 0x08);
- state->scrolly_hi = (data & 0x30) << 4;
- state->scrollx_hi = (data & 0xc0) << 2;
+ case 3: state->rotation_sign = (data & 7);
+ state->disable_roz = (~data & 0x08);
+ state->scrolly_hi = (data & 0x30) << 4;
+ state->scrollx_hi = (data & 0xc0) << 2;
break;
case 4: state->rotation_x = data; break;
}
@@ -569,17 +569,17 @@ ADDRESS_MAP_END
/***************************************************************************/
-static WRITE8_HANDLER( nmimask_w )
-{
+static WRITE8_HANDLER( nmimask_w )
+{
cntsteer_state *state = (cntsteer_state *)space->machine->driver_data;
- state->nmimask = data & 0x80;
+ state->nmimask = data & 0x80;
}
-static INTERRUPT_GEN ( sound_interrupt )
-{
+static INTERRUPT_GEN ( sound_interrupt )
+{
cntsteer_state *state = (cntsteer_state *)device->machine->driver_data;
- if (!state->nmimask)
- cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
+ if (!state->nmimask)
+ cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
}
static ADDRESS_MAP_START( sound_map, ADDRESS_SPACE_PROGRAM, 8 )
@@ -791,7 +791,7 @@ static MACHINE_START( cntsteer )
state_save_register_global(machine, state->flipscreen);
state_save_register_global(machine, state->bg_bank);
- state_save_register_global(machine, state->scrolly);
+ state_save_register_global(machine, state->scrolly);
state_save_register_global(machine, state->scrollx);
state_save_register_global(machine, state->scrollx_hi);
state_save_register_global(machine, state->scrolly_hi);
@@ -817,7 +817,7 @@ static MACHINE_RESET( cntsteer )
state->flipscreen = 0;
state->bg_bank = 0;
- state->scrolly = 0;
+ state->scrolly = 0;
state->scrollx = 0;
state->scrollx_hi = 0;
state->scrolly_hi = 0;
diff --git a/src/mame/drivers/cop01.c b/src/mame/drivers/cop01.c
index d9018eddd8a..f7ca81b2a1f 100644
--- a/src/mame/drivers/cop01.c
+++ b/src/mame/drivers/cop01.c
@@ -81,12 +81,12 @@ static READ8_HANDLER( cop01_sound_command_r )
/* bit 0 seems to be a timer */
if ((cpu_get_total_cycles(space->cpu) / TIMER_RATE) & 1)
{
- if (state->pulse == 0)
+ if (state->pulse == 0)
res |= 1;
state->pulse = 1;
}
- else
+ else
state->pulse = 0;
return res;
@@ -154,10 +154,10 @@ ADDRESS_MAP_END
/* this just gets some garbage out of the YM3526 */
-static READ8_HANDLER( kludge )
-{
+static READ8_HANDLER( kludge )
+{
cop01_state *state = (cop01_state *)space->machine->driver_data;
- return state->timer++;
+ return state->timer++;
}
static ADDRESS_MAP_START( mightguy_audio_io_map, ADDRESS_SPACE_IO, 8 )
@@ -241,14 +241,14 @@ static INPUT_PORTS_START( cop01 )
PORT_DIPSETTING( 0x08, "5" )
PORT_DIPSETTING( 0x00, "6" )
/* DP2:3,4,5 defined in manual/test-mode as:
- PORT_DIPNAME( 0x10, 0x10, "1st Bonus Life" )
- PORT_DIPSETTING( 0x10, "20000" )
- PORT_DIPSETTING( 0x00, "30000" )
- PORT_DIPNAME( 0x60, 0x60, "2nd Bonus Life" )
- PORT_DIPSETTING( 0x60, "30000" )
- PORT_DIPSETTING( 0x20, "50000" )
- PORT_DIPSETTING( 0x40, "100000" )
- PORT_DIPSETTING( 0x00, "150000" ) */
+ PORT_DIPNAME( 0x10, 0x10, "1st Bonus Life" )
+ PORT_DIPSETTING( 0x10, "20000" )
+ PORT_DIPSETTING( 0x00, "30000" )
+ PORT_DIPNAME( 0x60, 0x60, "2nd Bonus Life" )
+ PORT_DIPSETTING( 0x60, "30000" )
+ PORT_DIPSETTING( 0x20, "50000" )
+ PORT_DIPSETTING( 0x40, "100000" )
+ PORT_DIPSETTING( 0x00, "150000" ) */
PORT_DIPNAME( 0x70, 0x70, DEF_STR( Bonus_Life ) )
PORT_DIPSETTING( 0x70, "20k 50k 30k+" )
PORT_DIPSETTING( 0x30, "20k 70k 50k+" )
diff --git a/src/mame/drivers/cosmic.c b/src/mame/drivers/cosmic.c
index 9053d69066d..e5a5e144266 100644
--- a/src/mame/drivers/cosmic.c
+++ b/src/mame/drivers/cosmic.c
@@ -56,7 +56,7 @@ static WRITE8_HANDLER( panic_sound_output_w )
{
int count;
if (data == 0)
- for (count = 0; count < 9; count++)
+ for (count = 0; count < 9; count++)
sample_stop(state->samples, count);
state->sound_enabled = data;
@@ -134,7 +134,7 @@ static WRITE8_HANDLER( cosmicg_output_w )
state->sound_enabled = data;
if (data == 0)
- for (count = 0; count < 9; count++)
+ for (count = 0; count < 9; count++)
sample_stop(state->samples, count);
}
@@ -196,7 +196,7 @@ static WRITE8_HANDLER( cosmica_sound_output_w )
{
int count;
if (data == 0)
- for (count = 0; count < 12; count++)
+ for (count = 0; count < 12; count++)
sample_stop(state->samples, count);
else
{
diff --git a/src/mame/drivers/cps1.c b/src/mame/drivers/cps1.c
index 32911d1066e..870a29af855 100644
--- a/src/mame/drivers/cps1.c
+++ b/src/mame/drivers/cps1.c
@@ -448,7 +448,7 @@ static WRITE16_HANDLER( cps1_eeprom_port_w )
bit 6 = clock
bit 7 = cs
*/
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
}
@@ -2314,7 +2314,7 @@ static INPUT_PORTS_START( punisher )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
INPUT_PORTS_END
-/* Needs further checking */
+/* Needs further checking */
static INPUT_PORTS_START( slammast )
PORT_INCLUDE( cps1_4players )
diff --git a/src/mame/drivers/cps2.c b/src/mame/drivers/cps2.c
index 8cfaacfdd37..691c3c9cdcd 100644
--- a/src/mame/drivers/cps2.c
+++ b/src/mame/drivers/cps2.c
@@ -722,7 +722,7 @@ static WRITE16_HANDLER( cps2_eeprom_port_w )
/* bit 7 - */
/* EEPROM */
- input_port_write(space->machine, "EEPROMOUT", data, 0xffff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xffff);
}
if (ACCESSING_BITS_0_7)
@@ -768,10 +768,10 @@ static WRITE16_HANDLER( cps2_eeprom_port_w )
}
/*
- set_led_status(space->machine, 0,data & 0x01);
- set_led_status(space->machine, 1,data & 0x10);
- set_led_status(space->machine, 2,data & 0x20);
- */
+ set_led_status(space->machine, 0,data & 0x01);
+ set_led_status(space->machine, 1,data & 0x10);
+ set_led_status(space->machine, 2,data & 0x20);
+ */
}
}
diff --git a/src/mame/drivers/cultures.c b/src/mame/drivers/cultures.c
index a2565c3f3bf..551a6948f39 100644
--- a/src/mame/drivers/cultures.c
+++ b/src/mame/drivers/cultures.c
@@ -22,7 +22,7 @@ struct _cultures_state
UINT8 * paletteram;
UINT8 * bg0_regs_x;
UINT8 * bg1_regs_x;
- UINT8 * bg2_regs_x;
+ UINT8 * bg2_regs_x;
UINT8 * bg0_regs_y;
UINT8 * bg1_regs_y;
UINT8 * bg2_regs_y;
diff --git a/src/mame/drivers/dcheese.c b/src/mame/drivers/dcheese.c
index 74c5535fb80..28fd6b8674c 100644
--- a/src/mame/drivers/dcheese.c
+++ b/src/mame/drivers/dcheese.c
@@ -130,7 +130,7 @@ static WRITE16_HANDLER( eeprom_control_w )
/* bits $0080-$0010 are probably lamps */
if (ACCESSING_BITS_0_7)
{
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
ticket_dispenser_w(space, 0, (data & 1) << 7);
}
}
diff --git a/src/mame/drivers/ddealer.c b/src/mame/drivers/ddealer.c
index f5719f8496d..234161c3795 100644
--- a/src/mame/drivers/ddealer.c
+++ b/src/mame/drivers/ddealer.c
@@ -125,7 +125,7 @@ struct _ddealer_state
UINT16 * left_fg_vram_bottom;
UINT16 * right_fg_vram_bottom;
UINT16 * vregs;
-// UINT16 * paletteram16; // currently this uses generic palette handling
+// UINT16 * paletteram16; // currently this uses generic palette handling
/* video-related */
tilemap *back_tilemap;
diff --git a/src/mame/drivers/ddragon3.c b/src/mame/drivers/ddragon3.c
index e32ad6f879e..a2879ecf203 100644
--- a/src/mame/drivers/ddragon3.c
+++ b/src/mame/drivers/ddragon3.c
@@ -567,7 +567,7 @@ static MACHINE_START( ddragon3 )
state_save_register_global(machine, state->vreg);
state_save_register_global(machine, state->bg_scrollx);
state_save_register_global(machine, state->bg_scrolly);
- state_save_register_global(machine, state->fg_scrollx);
+ state_save_register_global(machine, state->fg_scrollx);
state_save_register_global(machine, state->fg_scrolly);
state_save_register_global(machine, state->bg_tilebase);
state_save_register_global_array(machine, state->io_reg);
@@ -581,7 +581,7 @@ static MACHINE_RESET( ddragon3 )
state->vreg = 0;
state->bg_scrollx = 0;
state->bg_scrolly = 0;
- state->fg_scrollx = 0;
+ state->fg_scrollx = 0;
state->fg_scrolly = 0;
state->bg_tilebase = 0;
diff --git a/src/mame/drivers/deco156.c b/src/mame/drivers/deco156.c
index fdf7d29de6e..613715169b4 100644
--- a/src/mame/drivers/deco156.c
+++ b/src/mame/drivers/deco156.c
@@ -148,10 +148,10 @@ static VIDEO_UPDATE( wcvol95 )
static WRITE32_HANDLER(hvysmsh_eeprom_w)
{
- if (ACCESSING_BITS_0_7)
+ if (ACCESSING_BITS_0_7)
{
okim6295_set_bank_base(devtag_get_device(space->machine, "oki2"), 0x40000 * (data & 0x7) );
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
}
diff --git a/src/mame/drivers/decocass.c b/src/mame/drivers/decocass.c
index ec1d5f7903b..148d3975c76 100644
--- a/src/mame/drivers/decocass.c
+++ b/src/mame/drivers/decocass.c
@@ -29,62 +29,62 @@ INLINE int swap_bits_5_6(int data)
}
static WRITE8_HANDLER( ram_w )
-{
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- state->decrypted[0x0000 + offset] = swap_bits_5_6(data);
- state->rambase[0x0000 + offset] = data;
+ state->decrypted[0x0000 + offset] = swap_bits_5_6(data);
+ state->rambase[0x0000 + offset] = data;
}
-static WRITE8_HANDLER( charram_w )
-{
+static WRITE8_HANDLER( charram_w )
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- state->decrypted[0x6000 + offset] = swap_bits_5_6(data);
- decocass_charram_w(space, offset, data);
+ state->decrypted[0x6000 + offset] = swap_bits_5_6(data);
+ decocass_charram_w(space, offset, data);
}
-static WRITE8_HANDLER( fgvideoram_w )
-{
+static WRITE8_HANDLER( fgvideoram_w )
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- state->decrypted[0xc000 + offset] = swap_bits_5_6(data);
- decocass_fgvideoram_w(space, offset, data);
+ state->decrypted[0xc000 + offset] = swap_bits_5_6(data);
+ decocass_fgvideoram_w(space, offset, data);
}
-static WRITE8_HANDLER( fgcolorram_w )
-{
+static WRITE8_HANDLER( fgcolorram_w )
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- state->decrypted[0xc400 + offset] = swap_bits_5_6(data);
- decocass_colorram_w(space, offset, data);
+ state->decrypted[0xc400 + offset] = swap_bits_5_6(data);
+ decocass_colorram_w(space, offset, data);
}
-static WRITE8_HANDLER( tileram_w )
-{
+static WRITE8_HANDLER( tileram_w )
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- state->decrypted[0xd000 + offset] = swap_bits_5_6(data);
- decocass_tileram_w(space, offset, data);
+ state->decrypted[0xd000 + offset] = swap_bits_5_6(data);
+ decocass_tileram_w(space, offset, data);
}
-static WRITE8_HANDLER( objectram_w )
-{
+static WRITE8_HANDLER( objectram_w )
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- state->decrypted[0xd800 + offset] = swap_bits_5_6(data);
- decocass_objectram_w(space, offset, data);
+ state->decrypted[0xd800 + offset] = swap_bits_5_6(data);
+ decocass_objectram_w(space, offset, data);
}
static WRITE8_HANDLER( mirrorvideoram_w ) { offset = ((offset >> 5) & 0x1f) | ((offset & 0x1f) << 5); fgvideoram_w(space, offset, data); }
static WRITE8_HANDLER( mirrorcolorram_w ) { offset = ((offset >> 5) & 0x1f) | ((offset & 0x1f) << 5); fgcolorram_w(space, offset, data); }
-static READ8_HANDLER( mirrorvideoram_r )
-{
+static READ8_HANDLER( mirrorvideoram_r )
+{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- offset = ((offset >> 5) & 0x1f) | ((offset & 0x1f) << 5);
- return state->fgvideoram[offset];
+ offset = ((offset >> 5) & 0x1f) | ((offset & 0x1f) << 5);
+ return state->fgvideoram[offset];
}
-static READ8_HANDLER( mirrorcolorram_r )
+static READ8_HANDLER( mirrorcolorram_r )
{
decocass_state *state = (decocass_state *)space->machine->driver_data;
- offset = ((offset >> 5) & 0x1f) | ((offset & 0x1f) << 5);
- return state->colorram[offset];
+ offset = ((offset >> 5) & 0x1f) | ((offset & 0x1f) << 5);
+ return state->colorram[offset];
}
diff --git a/src/mame/drivers/diverboy.c b/src/mame/drivers/diverboy.c
index 4699724ca48..d65760616cb 100644
--- a/src/mame/drivers/diverboy.c
+++ b/src/mame/drivers/diverboy.c
@@ -58,7 +58,7 @@ struct _diverboy_state
{
/* memory pointers */
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* devices */
diff --git a/src/mame/drivers/dominob.c b/src/mame/drivers/dominob.c
index 6c6ed03ff7d..b968aa5734b 100644
--- a/src/mame/drivers/dominob.c
+++ b/src/mame/drivers/dominob.c
@@ -41,7 +41,7 @@ struct _dominob_state
UINT8 * spriteram;
UINT8 * videoram;
UINT8 * bgram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* input-related */
diff --git a/src/mame/drivers/drgnmst.c b/src/mame/drivers/drgnmst.c
index 57c9651ee45..caa05934eb3 100644
--- a/src/mame/drivers/drgnmst.c
+++ b/src/mame/drivers/drgnmst.c
@@ -52,7 +52,7 @@ static WRITE16_HANDLER( drgnmst_snd_command_w )
{
drgnmst_state *state = (drgnmst_state *)space->machine->driver_data;
- if (ACCESSING_BITS_0_7)
+ if (ACCESSING_BITS_0_7)
{
state->snd_command = (data & 0xff);
cpu_yield(space->cpu);
@@ -95,7 +95,7 @@ static READ8_HANDLER( drgnmst_snd_command_r )
static READ8_HANDLER( drgnmst_snd_flag_r )
{
drgnmst_state *state = (drgnmst_state *)space->machine->driver_data;
- if (state->snd_flag)
+ if (state->snd_flag)
{
state->snd_flag = 0;
return 0x40;
@@ -152,16 +152,16 @@ static WRITE8_HANDLER( drgnmst_snd_control_w )
oki_new_bank = ((state->pic16c5x_port0 & 0xc) >> 2) | ((state->oki_control & 0x80) >> 5);
- if (oki_new_bank != state->oki0_bank)
+ if (oki_new_bank != state->oki0_bank)
{
state->oki0_bank = oki_new_bank;
- if (state->oki0_bank)
+ if (state->oki0_bank)
oki_new_bank--;
okim6295_set_bank_base(state->oki_1, (oki_new_bank * 0x40000));
}
oki_new_bank = ((state->pic16c5x_port0 & 0x3) >> 0) | ((state->oki_control & 0x20) >> 3);
- if (oki_new_bank != state->oki1_bank)
+ if (oki_new_bank != state->oki1_bank)
{
state->oki1_bank = oki_new_bank;
okim6295_set_bank_base(state->oki_2, (oki_new_bank * 0x40000));
diff --git a/src/mame/drivers/drtomy.c b/src/mame/drivers/drtomy.c
index f8f4f3c8d71..7d622f3e24f 100644
--- a/src/mame/drivers/drtomy.c
+++ b/src/mame/drivers/drtomy.c
@@ -18,7 +18,7 @@ struct _drtomy_state
UINT16 * spriteram;
UINT16 * videoram_bg;
UINT16 * videoram_fg;
-// UINT16 * paletteram16; // currently this uses generic palette handling
+// UINT16 * paletteram16; // currently this uses generic palette handling
/* video-related */
tilemap *tilemap_bg,*tilemap_fg;
diff --git a/src/mame/drivers/drw80pkr.c b/src/mame/drivers/drw80pkr.c
index 152c8e1ec45..7446a586d02 100644
--- a/src/mame/drivers/drw80pkr.c
+++ b/src/mame/drivers/drw80pkr.c
@@ -237,7 +237,7 @@ static READ8_HANDLER( drw80pkr_io_r )
{
ret = pkr_io_ram[offset];
}
-
+
if (p2 == 0xf7)
{
// unknown
@@ -260,10 +260,10 @@ static READ8_HANDLER( drw80pkr_io_r )
// Dip switches tied to sound chip
//
// TODO: Unknown switch positions, but found the following flipping bits:
- // SW.? = Double Up Option
- // SW.? = Coin Denomination
- // SW.4 = Payout Type (0=cash, 1=credit)
- // SW.? = Use Joker in Deck
+ // SW.? = Double Up Option
+ // SW.? = Coin Denomination
+ // SW.4 = Payout Type (0=cash, 1=credit)
+ // SW.? = Use Joker in Deck
//
ret = 0x77; // double-up with credit payout
}
@@ -276,7 +276,7 @@ static READ8_HANDLER( drw80pkr_io_r )
switch (kbdin)
{
- // The following is very incorrect, but does allow you to
+ // The following is very incorrect, but does allow you to
// play slightly with very messed up hold buttons etc.
//
// Open/Close the door with 'O'
diff --git a/src/mame/drivers/dunhuang.c b/src/mame/drivers/dunhuang.c
index 88bb43771ff..14d06157a38 100644
--- a/src/mame/drivers/dunhuang.c
+++ b/src/mame/drivers/dunhuang.c
@@ -167,20 +167,20 @@ if (input_code_pressed(screen->machine, KEYCODE_Z))
// Tilemaps access
-static WRITE8_HANDLER( dunhuang_pos_x_w )
-{
+static WRITE8_HANDLER( dunhuang_pos_x_w )
+{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
state->pos_x = data & 0x3f;
state->written = 0;
state->written2 = 0;
}
-static WRITE8_HANDLER( dunhuang_pos_y_w )
+static WRITE8_HANDLER( dunhuang_pos_y_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
state->pos_y = data;
state->written = 0;
- state->written2 = 0;
+ state->written2 = 0;
}
static WRITE8_HANDLER( dunhuang_tile_w )
@@ -282,46 +282,46 @@ static WRITE8_HANDLER( dunhuang_vert_clear_w )
// The tiles codes are read from the graphics roms too!
//
-static WRITE8_HANDLER( dunhuang_block_dest_w )
+static WRITE8_HANDLER( dunhuang_block_dest_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_dest = data;
+ state->block_dest = data;
}
-static WRITE8_HANDLER( dunhuang_block_x_w )
+static WRITE8_HANDLER( dunhuang_block_x_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_x = data;
+ state->block_x = data;
}
-static WRITE8_HANDLER( dunhuang_block_y_w )
+static WRITE8_HANDLER( dunhuang_block_y_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_y = data;
+ state->block_y = data;
}
-static WRITE8_HANDLER( dunhuang_block_w_w )
+static WRITE8_HANDLER( dunhuang_block_w_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_w = data;
+ state->block_w = data;
}
-static WRITE8_HANDLER( dunhuang_block_c_w )
+static WRITE8_HANDLER( dunhuang_block_c_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_c = data;
+ state->block_c = data;
}
-static WRITE8_HANDLER( dunhuang_block_addr_lo_w )
+static WRITE8_HANDLER( dunhuang_block_addr_lo_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_addr_lo = data;
+ state->block_addr_lo = data;
}
-static WRITE8_HANDLER( dunhuang_block_addr_hi_w )
+static WRITE8_HANDLER( dunhuang_block_addr_hi_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->block_addr_hi = data;
+ state->block_addr_hi = data;
}
@@ -376,10 +376,10 @@ static WRITE8_HANDLER( dunhuang_block_h_w )
// Palette: HMC HM86171 VGA 256 colour RAMDAC
-static WRITE8_HANDLER( dunhuang_paloffs_w )
+static WRITE8_HANDLER( dunhuang_paloffs_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->paloffs = data * 3;
+ state->paloffs = data * 3;
}
static WRITE8_HANDLER( dunhuang_paldata_w )
@@ -417,10 +417,10 @@ ADDRESS_MAP_END
// Inputs
-static WRITE8_HANDLER( dunhuang_input_w )
+static WRITE8_HANDLER( dunhuang_input_w )
{
dunhuang_state *state = (dunhuang_state *)space->machine->driver_data;
- state->input = data;
+ state->input = data;
}
static READ8_HANDLER( dunhuang_service_r )
diff --git a/src/mame/drivers/dynadice.c b/src/mame/drivers/dynadice.c
index 16ad8de21bb..f0c463088c2 100644
--- a/src/mame/drivers/dynadice.c
+++ b/src/mame/drivers/dynadice.c
@@ -42,8 +42,8 @@ struct _dynadice_state
{
/* memory pointers */
UINT8 * videoram;
-// UINT8 * nvram; // currently this uses generic nvram handling
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * nvram; // currently this uses generic nvram handling
+// UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap,*top_tilemap;
@@ -79,10 +79,10 @@ static WRITE8_DEVICE_HANDLER( sound_control_w )
D3 - /Reset
*/
- if ((data & 7) == 7)
+ if ((data & 7) == 7)
ay8910_address_w(device, 0, state->ay_data);
- if ((data & 7) == 6)
+ if ((data & 7) == 6)
ay8910_data_w(device, 0, state->ay_data);
}
diff --git a/src/mame/drivers/egghunt.c b/src/mame/drivers/egghunt.c
index 88ec7cdcdec..3cc08079f1b 100644
--- a/src/mame/drivers/egghunt.c
+++ b/src/mame/drivers/egghunt.c
@@ -52,7 +52,7 @@ struct _egghunt_state
UINT8 * bgram;
UINT8 * atram;
UINT8 * spram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap;
diff --git a/src/mame/drivers/eolith.c b/src/mame/drivers/eolith.c
index 9b09f0f6b2d..e49e2579c75 100644
--- a/src/mame/drivers/eolith.c
+++ b/src/mame/drivers/eolith.c
@@ -102,7 +102,7 @@ static WRITE32_HANDLER( systemcontrol_w )
coin_counter_w(space->machine, 0, data & coin_counter_bit);
set_led_status(space->machine, 0, data & 1);
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
// bit 0x100 and 0x040 ?
}
diff --git a/src/mame/drivers/eolith16.c b/src/mame/drivers/eolith16.c
index 36f5adac3b2..5cd1f496ebd 100644
--- a/src/mame/drivers/eolith16.c
+++ b/src/mame/drivers/eolith16.c
@@ -36,7 +36,7 @@ static WRITE16_HANDLER( eeprom_w )
vbuffer = (data & 0x80) >> 7;
coin_counter_w(space->machine, 0, data & 1);
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
//data & 0x100 and data & 0x004 always set
}
diff --git a/src/mame/drivers/esd16.c b/src/mame/drivers/esd16.c
index 3a26475bfbf..256b13f4caa 100644
--- a/src/mame/drivers/esd16.c
+++ b/src/mame/drivers/esd16.c
@@ -128,7 +128,7 @@ static READ16_HANDLER( esd_eeprom_r )
static WRITE16_HANDLER( esd_eeprom_w )
{
if (ACCESSING_BITS_8_15)
- input_port_write(space->machine, "EEPROMOUT", data, 0xffff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xffff);
// logerror("(0x%06x) Unk EEPROM write: %04x %04x\n", cpu_get_pc(space->cpu), data, mem_mask);
}
diff --git a/src/mame/drivers/exerion.c b/src/mame/drivers/exerion.c
index 5e996624fac..ea63da9d12f 100644
--- a/src/mame/drivers/exerion.c
+++ b/src/mame/drivers/exerion.c
@@ -298,7 +298,7 @@ static MACHINE_RESET( exerion )
state->porta = 0;
state->portb = 0;
state->cocktail_flip = 0;
- state->char_palette = 0;
+ state->char_palette = 0;
state->sprite_palette = 0;
state->char_bank = 0;
diff --git a/src/mame/drivers/f-32.c b/src/mame/drivers/f-32.c
index a950b8acafd..e4d7b2f3f87 100644
--- a/src/mame/drivers/f-32.c
+++ b/src/mame/drivers/f-32.c
@@ -57,7 +57,7 @@ ADDRESS_MAP_END
static READ32_HANDLER( f32_input_port_1_r )
{
/* burn a bunch of cycles because this is polled frequently during busy loops */
- if ((cpu_get_pc(space->cpu) == 0x000379de) || (cpu_get_pc(space->cpu) == 0x000379cc) )
+ if ((cpu_get_pc(space->cpu) == 0x000379de) || (cpu_get_pc(space->cpu) == 0x000379cc) )
cpu_eat_cycles(space->cpu, 100);
//else printf("PC %08x\n", cpu_get_pc(space->cpu) );
return input_port_read(space->machine, "SYSTEM_P2");
diff --git a/src/mame/drivers/fantland.c b/src/mame/drivers/fantland.c
index 4ee4d6ac614..15fdc850b04 100644
--- a/src/mame/drivers/fantland.c
+++ b/src/mame/drivers/fantland.c
@@ -201,14 +201,14 @@ static READ8_HANDLER( borntofi_inputs_r )
x = (x & 0x7f) - (x & 0x80);
y = (y & 0x7f) - (y & 0x80);
- if (state->old_x[offset] > 0)
+ if (state->old_x[offset] > 0)
{
- state->input_ret[offset] = (state->input_ret[offset] ^ 0x04) | ((state->input_ret[offset] & 0x04) << 1);
- state->old_x[offset]--;
+ state->input_ret[offset] = (state->input_ret[offset] ^ 0x04) | ((state->input_ret[offset] & 0x04) << 1);
+ state->old_x[offset]--;
}
else if (state->old_x[offset] < 0)
{
- state->input_ret[offset] = (state->input_ret[offset] ^ 0x04) | (((~state->input_ret[offset]) & 0x04) << 1);
+ state->input_ret[offset] = (state->input_ret[offset] ^ 0x04) | (((~state->input_ret[offset]) & 0x04) << 1);
state->old_x[offset]++;
}
diff --git a/src/mame/drivers/firetrap.c b/src/mame/drivers/firetrap.c
index c46c37a6e4c..9069997394c 100644
--- a/src/mame/drivers/firetrap.c
+++ b/src/mame/drivers/firetrap.c
@@ -81,7 +81,7 @@ static READ8_HANDLER( firetrap_8751_bootleg_r )
/* Check for coin insertion */
/* the following only works in the bootleg version, which doesn't have an */
/* 8751 - the real thing is much more complicated than that. */
- if ((input_port_read(space->machine, "IN2") & 0x70) != 0x70)
+ if ((input_port_read(space->machine, "IN2") & 0x70) != 0x70)
return 0xff;
return 0;
@@ -119,7 +119,7 @@ static WRITE8_HANDLER( firetrap_8751_w )
firetrap_state *state = (firetrap_state *)space->machine->driver_data;
/* End of command - important to note, as coin input is supressed while commands are pending */
- if (data == 0x26)
+ if (data == 0x26)
{
state->i8751_current_command = 0;
state->i8751_return = 0xff; /* This value is XOR'd and must equal 0 */
@@ -128,7 +128,7 @@ static WRITE8_HANDLER( firetrap_8751_w )
}
/* Init sequence command */
- else if (data == 0x13)
+ else if (data == 0x13)
{
if (!state->i8751_current_command)
state->i8751_init_ptr = 0;
@@ -136,14 +136,14 @@ static WRITE8_HANDLER( firetrap_8751_w )
}
/* Used to calculate a jump address when coins are inserted */
- else if (data == 0xbd)
+ else if (data == 0xbd)
{
if (!state->i8751_current_command)
state->i8751_init_ptr = 0;
state->i8751_return = i8751_coin_data[state->i8751_init_ptr++];
}
- else if (data == 0x36)
+ else if (data == 0x36)
{
if (!state->i8751_current_command)
state->i8751_init_ptr = 0;
@@ -167,7 +167,7 @@ static WRITE8_HANDLER( firetrap_8751_w )
state->i8751_return = 2;
else if (data == 0x88)
state->i8751_return = 3;
- else
+ else
{
state->i8751_return = 0xff;
logerror("%04x: Unknown i8751 command %02x!\n",cpu_get_pc(space->cpu),data);
@@ -516,7 +516,7 @@ static INTERRUPT_GEN( firetrap )
/* Make sure coin IRQ's aren't generated when another command is pending, the main cpu
definitely doesn't expect them as it locks out the coin routine */
- if (state->coin_command_pending && !state->i8751_current_command)
+ if (state->coin_command_pending && !state->i8751_current_command)
{
state->i8751_return = state->coin_command_pending;
cpu_set_input_line_and_vector(device, 0, HOLD_LINE, 0xff);
diff --git a/src/mame/drivers/flstory.c b/src/mame/drivers/flstory.c
index 91dfef756ce..7e25893c5a5 100644
--- a/src/mame/drivers/flstory.c
+++ b/src/mame/drivers/flstory.c
@@ -43,7 +43,7 @@ static TIMER_CALLBACK( nmi_callback )
flstory_state *state = (flstory_state *)machine->driver_data;
if (state->sound_nmi_enable)
cpu_set_input_line(state->audiocpu, INPUT_LINE_NMI, PULSE_LINE);
- else
+ else
state->pending_nmi = 1;
}
diff --git a/src/mame/drivers/freekick.c b/src/mame/drivers/freekick.c
index a6b0f040c57..99ea2069ece 100644
--- a/src/mame/drivers/freekick.c
+++ b/src/mame/drivers/freekick.c
@@ -82,7 +82,7 @@ static WRITE8_HANDLER( nmi_enable_w )
static INTERRUPT_GEN( freekick_irqgen )
{
freekick_state *state = (freekick_state *)device->machine->driver_data;
- if (state->nmi_en)
+ if (state->nmi_en)
cpu_set_input_line(device, INPUT_LINE_NMI, PULSE_LINE);
}
@@ -106,7 +106,7 @@ static READ8_HANDLER( oigas_3_r )
{
case 2: return ~(state->inval >> 8);
case 3: return ~(state->inval & 0xff);
- case 4:
+ case 4:
switch (state->inval)
{
case 0xc500: state->outval = 0x17ef; break;
diff --git a/src/mame/drivers/gaiden.c b/src/mame/drivers/gaiden.c
index ca38b5f939c..dabe9d1c47b 100644
--- a/src/mame/drivers/gaiden.c
+++ b/src/mame/drivers/gaiden.c
@@ -135,9 +135,9 @@ static WRITE16_HANDLER( gaiden_sound_command_w )
{
gaiden_state *state = (gaiden_state *)space->machine->driver_data;
- if (ACCESSING_BITS_0_7)
+ if (ACCESSING_BITS_0_7)
soundlatch_w(space, 0, data & 0xff); /* Ninja Gaiden */
- if (ACCESSING_BITS_8_15)
+ if (ACCESSING_BITS_8_15)
soundlatch_w(space, 0, data >> 8); /* Tecmo Knight */
cpu_set_input_line(state->audiocpu, INPUT_LINE_NMI, PULSE_LINE);
}
diff --git a/src/mame/drivers/gal3.c b/src/mame/drivers/gal3.c
index d45e0dca74e..665af4dd08c 100644
--- a/src/mame/drivers/gal3.c
+++ b/src/mame/drivers/gal3.c
@@ -5,24 +5,24 @@
System Overview:
-
- This is a Scaleable, Multi-CPU and Multi-User System.
- The largest scale configuration known so far was capable of 28(!) players and 16 screens wraped around. (retaired in the early 2000's)
-
+
+ This is a Scaleable, Multi-CPU and Multi-User System.
+ The largest scale configuration known so far was capable of 28(!) players and 16 screens wraped around. (retaired in the early 2000's)
+
System has one Master 68020 CPU Board for game play, and one or more Slave 68020 CPU Boards for graphics.
The Master CPU communicates with (one or more)Slave CPUs via multi-port shared RAM, the "C-RAM board".
Each C-RAM board is configured as 2 banks of Triple-Port Static RAM Units. The 2 Master-CPU-Port of the 2 RAM banks
are joined together, leaving 4 Slave-CPU-Ports. More than one C-RAM boards can be chained together.
- The Master CPU controls a Sound Board and a RSO board. RSO board contains Namco 139 serial communication ICs (x9 pieces),
- connecting to several "Personal Boards" (Player-Terminals), which handle players' input and vibration/lamp feedback.
+ The Master CPU controls a Sound Board and a RSO board. RSO board contains Namco 139 serial communication ICs (x9 pieces),
+ connecting to several "Personal Boards" (Player-Terminals), which handle players' input and vibration/lamp feedback.
Each the Sound board, the RSO board, and the Personal board has their own 68000 CPU.
Slave CPU connects to a cluster of namcos21-type video board sets: DSP-PGN-OBJ. A DSP board has 5x TMS320C25 running at 40MHz.
- Every 68020 CPU board has 512KB of local Hi-Speed SRAM. Most code/data required by the Slave CPU sub-system are
- uploaded from the Master CPU's ROM. Among them are:
+ Every 68020 CPU board has 512KB of local Hi-Speed SRAM. Most code/data required by the Slave CPU sub-system are
+ uploaded from the Master CPU's ROM. Among them are:
Slave CPU program, DSP program, Calculation Tables, Vertex Array Index, Palette, 2D Sprite Data, etc.
The current dumped system supports 6 players. It has 2x 68020, 5x 68000 and 10x TMS320C25.
@@ -30,27 +30,27 @@
System Diagram:
---------------
- Serial Comm Cable
- Master 68020 -------- RSO 68000, 9x Namco 139 SCI ICs <==============================> Personal Board 68000
- | | ........ more personal boards.........
- | | ........ more personal boards.........
- | |
- | |-------- Sound 68000, 4x Namco 140 ICs
- |---------|
- | C-RAM |
- | #-# #-# |
- |---------|
- | | | |
- | | | |------- Slave 68020
- | | | |-------- 1x master DSP, 4x slave DSPs, Polygon, 2D Sprite ------> V-MIX board -----> SCREEN
- | | | |-------- ........ more video boards ......... |
- | | | |-------- ........ more video boards ......... LD Player
- | | |
- | | |------- ........ more slave 68020s .........
- | |
- | |------- ........ more slave 68020s .........
- |
- |------- ........ more slave 68020s .........
+ Serial Comm Cable
+ Master 68020 -------- RSO 68000, 9x Namco 139 SCI ICs <==============================> Personal Board 68000
+ | | ........ more personal boards.........
+ | | ........ more personal boards.........
+ | |
+ | |-------- Sound 68000, 4x Namco 140 ICs
+ |---------|
+ | C-RAM |
+ | #-# #-# |
+ |---------|
+ | | | |
+ | | | |------- Slave 68020
+ | | | |-------- 1x master DSP, 4x slave DSPs, Polygon, 2D Sprite ------> V-MIX board -----> SCREEN
+ | | | |-------- ........ more video boards ......... |
+ | | | |-------- ........ more video boards ......... LD Player
+ | | |
+ | | |------- ........ more slave 68020s .........
+ | |
+ | |------- ........ more slave 68020s .........
+ |
+ |------- ........ more slave 68020s .........
@@ -194,16 +194,16 @@ static VIDEO_UPDATE(gal3)
namco_obj_draw(screen->machine, bitmap, cliprect, pri );
}
-/* CopyVisiblePolyFrameBuffer( bitmap, cliprect,0,0x7fbf );
+/* CopyVisiblePolyFrameBuffer( bitmap, cliprect,0,0x7fbf );
- for( pri=pivot; pri<15; pri++ )
- {
- namco_obj_draw(screen->machine, bitmap, cliprect, pri );
- }*/
+ for( pri=pivot; pri<15; pri++ )
+ {
+ namco_obj_draw(screen->machine, bitmap, cliprect, pri );
+ }*/
// CPU Diag LEDs
mst[17]='\0', slv[17]='\0';
-/// printf("mst=0x%x\tslv=0x%x\n", led_mst, led_slv);
+/// printf("mst=0x%x\tslv=0x%x\n", led_mst, led_slv);
for(i=16;i<32;i++)
{
int t;
@@ -211,7 +211,7 @@ static VIDEO_UPDATE(gal3)
t=i;
else
t=i+1;
- mst[8]=' '; slv[8]=' ';
+ mst[8]=' '; slv[8]=' ';
if(led_mst&(1<<i))
mst[t-16]='*';
@@ -278,12 +278,12 @@ static WRITE32_HANDLER( shareram0_w )
/*
static READ32_HANDLER( shareram1_r )
{
- return mpSharedRAM1[offset];
+ return mpSharedRAM1[offset];
}
static WRITE32_HANDLER( shareram1_w )
{
- COMBINE_DATA( &mpSharedRAM1[offset] );
+ COMBINE_DATA( &mpSharedRAM1[offset] );
}*/
/***************************************************************************************/
@@ -342,9 +342,9 @@ static WRITE32_HANDLER(namcos21_video_enable_w)
static READ32_HANDLER(rso_r)
{
/*store $5555 @$0046, and readback @$0000
- read @$0144 and store at A6_21e & A4_5c
- Check @$009a==1 to start DEMO
- HACK*/
+ read @$0144 and store at A6_21e & A4_5c
+ Check @$009a==1 to start DEMO
+ HACK*/
offset *= 2;
return (rsoSharedRAM[offset]<<16)|rsoSharedRAM[offset+1];
}
@@ -362,7 +362,7 @@ static WRITE32_HANDLER(rso_w)
static ADDRESS_MAP_START( cpu_mst_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0x00000000, 0x001fffff) AM_ROM
AM_RANGE(0x20000000, 0x20001fff) AM_RAM AM_BASE(&gal3_nvmem) AM_SIZE(&gal3_nvmem_size) //NVRAM
-/// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() //
+/// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() //
AM_RANGE(0x44000000, 0x44000003) AM_READ_PORT("DSW_CPU_mst" )
AM_RANGE(0x44800000, 0x44800003) AM_READ(led_mst_r) AM_WRITE(led_mst_w) //LEDs
AM_RANGE(0x48000000, 0x48000003) AM_READ(SMH_NOP) //irq1 v-blank ack
@@ -370,46 +370,46 @@ static ADDRESS_MAP_START( cpu_mst_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0x60000000, 0x60007fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) AM_BASE(&mpSharedRAM0) //CRAM
AM_RANGE(0x60010000, 0x60017fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w) //Mirror
AM_RANGE(0x80000000, 0x8007ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //512K Local RAM
-/// AM_RANGE(0xc0000000, 0xc000000b) AM_WRITENOP //upload?
+/// AM_RANGE(0xc0000000, 0xc000000b) AM_WRITENOP //upload?
AM_RANGE(0xc000000c, 0xc000000f) AM_READNOP //irq2 ack
-/// AM_RANGE(0xd8000000, 0xd800000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) // protection or 68681?
+/// AM_RANGE(0xd8000000, 0xd800000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) // protection or 68681?
AM_RANGE(0xf2800000, 0xf2800fff) AM_READWRITE(rso_r, rso_w) //RSO PCB
ADDRESS_MAP_END
static ADDRESS_MAP_START( cpu_slv_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0x00000000, 0x0007ffff) AM_ROM
-/// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() //
+/// AM_RANGE(0x40000000, 0x4000ffff) AM_WRITE() //
AM_RANGE(0x44000000, 0x44000003) AM_READ_PORT("DSW_CPU_slv" )
AM_RANGE(0x44800000, 0x44800003) AM_READ(led_slv_r) AM_WRITE(led_slv_w) //LEDs
AM_RANGE(0x48000000, 0x48000003) AM_READ(SMH_NOP) //irq1 ack
-/// AM_RANGE(0x50000000, 0x50000003) AM_READ() AM_WRITE()
-/// AM_RANGE(0x54000000, 0x54000003) AM_READ() AM_WRITE()
+/// AM_RANGE(0x50000000, 0x50000003) AM_READ() AM_WRITE()
+/// AM_RANGE(0x54000000, 0x54000003) AM_READ() AM_WRITE()
AM_RANGE(0x60000000, 0x60007fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w)
AM_RANGE(0x60010000, 0x60017fff) AM_READ(shareram0_r) AM_WRITE(shareram0_w)
AM_RANGE(0x80000000, 0x8007ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //512K Local RAM
- AM_RANGE(0xf1200000, 0xf120ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //DSP RAM
-/// AM_RANGE(0xf1400000, 0xf1400003) AM_WRITE(pointram_control_w)
-/// AM_RANGE(0xf1440000, 0xf1440003) AM_READWRITE(pointram_data_r,pointram_data_w)
-/// AM_RANGE(0x440002, 0x47ffff) AM_WRITENOP /* (frame buffer?) */
-/// AM_RANGE(0xf1480000, 0xf14807ff) AM_READWRITE(namcos21_depthcue_r,namcos21_depthcue_w)
- AM_RANGE(0xf1700000, 0xf170ffff) AM_READWRITE(namco_obj32_r,namco_obj32_w)
- AM_RANGE(0xf1720000, 0xf1720007) AM_READWRITE(namco_spritepos32_r,namco_spritepos32_w)
- AM_RANGE(0xf1740000, 0xf175ffff) AM_READWRITE(paletteram32_r,paletteram32_w) AM_BASE_GENERIC(paletteram)
- AM_RANGE(0xf1760000, 0xf1760003) AM_READWRITE(namcos21_video_enable_r,namcos21_video_enable_w)
+ AM_RANGE(0xf1200000, 0xf120ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //DSP RAM
+/// AM_RANGE(0xf1400000, 0xf1400003) AM_WRITE(pointram_control_w)
+/// AM_RANGE(0xf1440000, 0xf1440003) AM_READWRITE(pointram_data_r,pointram_data_w)
+/// AM_RANGE(0x440002, 0x47ffff) AM_WRITENOP /* (frame buffer?) */
+/// AM_RANGE(0xf1480000, 0xf14807ff) AM_READWRITE(namcos21_depthcue_r,namcos21_depthcue_w)
+ AM_RANGE(0xf1700000, 0xf170ffff) AM_READWRITE(namco_obj32_r,namco_obj32_w)
+ AM_RANGE(0xf1720000, 0xf1720007) AM_READWRITE(namco_spritepos32_r,namco_spritepos32_w)
+ AM_RANGE(0xf1740000, 0xf175ffff) AM_READWRITE(paletteram32_r,paletteram32_w) AM_BASE_GENERIC(paletteram)
+ AM_RANGE(0xf1760000, 0xf1760003) AM_READWRITE(namcos21_video_enable_r,namcos21_video_enable_w)
AM_RANGE(0xf2200000, 0xf220ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
- AM_RANGE(0xf2700000, 0xf270ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(namco_obj16_r,namco_obj16_w)
- AM_RANGE(0xf2720000, 0xf2720007) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(namco_spritepos16_r,namco_spritepos16_w)
- AM_RANGE(0xf2740000, 0xf275ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(paletteram16_r,paletteram16_w) AM_BASE_GENERIC(paletteram)
- AM_RANGE(0xf2760000, 0xf2760003) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(namcos21_video_enable_r,namcos21_video_enable_w)
+ AM_RANGE(0xf2700000, 0xf270ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(namco_obj16_r,namco_obj16_w)
+ AM_RANGE(0xf2720000, 0xf2720007) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(namco_spritepos16_r,namco_spritepos16_w)
+ AM_RANGE(0xf2740000, 0xf275ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(paletteram16_r,paletteram16_w) AM_BASE_GENERIC(paletteram)
+ AM_RANGE(0xf2760000, 0xf2760003) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //AM_READWRITE(namcos21_video_enable_r,namcos21_video_enable_w)
ADDRESS_MAP_END
static ADDRESS_MAP_START( rs_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x000000, 0x03ffff) AM_ROM
AM_RANGE(0x100000, 0x10ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //64K working RAM
-/// AM_RANGE(0x180000, 0x183fff) AM_RAM //Nvram
+/// AM_RANGE(0x180000, 0x183fff) AM_RAM //Nvram
AM_RANGE(0x1c0000, 0x1c0001) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //148?
AM_RANGE(0x1c2000, 0x1c2001) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //?
@@ -466,23 +466,23 @@ static ADDRESS_MAP_START( rs_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0xc00000, 0xc0000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //?
AM_RANGE(0xc40000, 0xc43fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //8 bit
-/// AM_RANGE(0xc44000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /////////////
+/// AM_RANGE(0xc44000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) /////////////
ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x000000, 0x07ffff) AM_ROM
AM_RANGE(0x080000, 0x08ffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
-/// AM_RANGE(0x0c0000, 0x0cffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //00, 20, 30, 40, 50
-/// AM_RANGE(0x100000, 0x10000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
+/// AM_RANGE(0x0c0000, 0x0cffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //00, 20, 30, 40, 50
+/// AM_RANGE(0x100000, 0x10000f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
AM_RANGE(0x110000, 0x113fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
-/// AM_RANGE(0x120000, 0x120003) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //2ieme byte
-/// AM_RANGE(0x200000, 0x20017f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
+/// AM_RANGE(0x120000, 0x120003) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //2ieme byte
+/// AM_RANGE(0x200000, 0x20017f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
AM_RANGE(0x200000, 0x2037ff) AM_DEVREADWRITE8("c140_16a", c140_r, c140_w, 0x00ff) //C140///////////
-/// AM_RANGE(0x201000, 0x20117f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
-/// AM_RANGE(0x202000, 0x20217f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
-/// AM_RANGE(0x203000, 0x20317f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
+/// AM_RANGE(0x201000, 0x20117f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
+/// AM_RANGE(0x202000, 0x20217f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
+/// AM_RANGE(0x203000, 0x20317f) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) //C140
AM_RANGE(0x204000, 0x2047ff) AM_DEVREADWRITE8("c140_16g", c140_r, c140_w, 0x00ff) //C140
-/// AM_RANGE(0x090000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
+/// AM_RANGE(0x090000, 0xffffff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM)
ADDRESS_MAP_END
static ADDRESS_MAP_START( psn_b1_cpu_map, ADDRESS_SPACE_PROGRAM, 16 )
@@ -650,11 +650,11 @@ static MACHINE_DRIVER_START( gal3 )
MDRV_CPU_ADD("psn_b1_cpu", M68000, 12000000) // ??
MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map)
/*
- MDRV_CPU_ADD("psn_b2_cpu", M68000, 12000000) // ??
- MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0)
+ MDRV_CPU_ADD("psn_b2_cpu", M68000, 12000000) // ??
+ MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0)
- MDRV_CPU_ADD("psn_b3_cpu", M68000, 12000000) // ??
- MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0)
+ MDRV_CPU_ADD("psn_b3_cpu", M68000, 12000000) // ??
+ MDRV_CPU_PROGRAM_MAP(psn_b1_cpu_map,0)
*/
MDRV_QUANTUM_TIME(HZ(60*8000)) /* 8000 CPU slices per frame */
@@ -905,6 +905,6 @@ ROM_START( gal3 )
DISK_IMAGE_READONLY( "gal3_ld2", 0, NO_DUMP )
ROM_END
-/* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */
+/* YEAR, NAME, PARENT, MACHINE, INPUT, INIT, MONITOR, COMPANY, FULLNAME, FLAGS */
GAMEL( 199?, gal3, 0, gal3, gal3, 0, ROT0, "Namco", "Galaxian 3 - Theater 6 : Project Dragoon", GAME_NOT_WORKING | GAME_NO_SOUND, layout_dualhsxs )
//GAMEL( 199?, gal3zlgr, 0, gal3, gal3, 0, ROT0, "Namco", "Galaxian 3 - Theater 6 J2 : Attack of The Zolgear", GAME_NOT_WORKING | GAME_NO_SOUND, layout_dualhsxs )
diff --git a/src/mame/drivers/galaxi.c b/src/mame/drivers/galaxi.c
index bc08904c270..8fc63fb8308 100644
--- a/src/mame/drivers/galaxi.c
+++ b/src/mame/drivers/galaxi.c
@@ -53,8 +53,8 @@ struct _galaxi_state
UINT16 * bg3_ram;
UINT16 * bg4_ram;
UINT16 * fg_ram;
-// UINT16 * paletteram; // currently this uses generic palette handling
-// UINT16 * nvram; // currently this uses generic nvram handling
+// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * nvram; // currently this uses generic nvram handling
/* video-related */
tilemap *bg1_tmap, *bg2_tmap, *bg3_tmap, *bg4_tmap, *fg_tmap;
@@ -195,7 +195,7 @@ static VIDEO_UPDATE(galaxi)
static void show_out( running_machine *machine )
{
-// galaxi_state *state = (galaxi_state *)machine->driver_data;
+// galaxi_state *state = (galaxi_state *)machine->driver_data;
// popmessage("%04x %04x %04x", state->out[0], state->out[1], state->out[2]);
}
diff --git a/src/mame/drivers/groundfx.c b/src/mame/drivers/groundfx.c
index 8ba9519e9bc..ac817bf9d7e 100644
--- a/src/mame/drivers/groundfx.c
+++ b/src/mame/drivers/groundfx.c
@@ -165,7 +165,7 @@ static WRITE32_HANDLER( groundfx_input_w )
if (ACCESSING_BITS_0_7)
{
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
break;
@@ -375,7 +375,7 @@ static MACHINE_DRIVER_START( groundfx )
TAITO_F3_SOUND_SYSTEM_CPU(16000000)
MDRV_MACHINE_RESET(groundfx)
-// MDRV_NVRAM_HANDLER(groundfx)
+// MDRV_NVRAM_HANDLER(groundfx)
MDRV_EEPROM_ADD("eeprom", groundfx_eeprom_interface, 128, default_eeprom)
/* video hardware */
diff --git a/src/mame/drivers/hng64.c b/src/mame/drivers/hng64.c
index 6241ed74914..5745ad7296c 100644
--- a/src/mame/drivers/hng64.c
+++ b/src/mame/drivers/hng64.c
@@ -580,8 +580,8 @@ static READ32_HANDLER( hng64_sysregs_r )
mame_system_time systime;
mame_get_base_datetime(space->machine, &systime);
-// if((offset*4) != 0x1084)
-// printf("HNG64 port read (PC=%08x) 0x%08x\n", cpu_get_pc(space->cpu),offset*4);
+// if((offset*4) != 0x1084)
+// printf("HNG64 port read (PC=%08x) 0x%08x\n", cpu_get_pc(space->cpu),offset*4);
switch(offset*4)
{
@@ -612,7 +612,7 @@ static READ32_HANDLER( hng64_sysregs_r )
case 0x217c: return 0; //RTC status?
}
-// printf("%08x\n",offset*4);
+// printf("%08x\n",offset*4);
//return mame_rand(space->machine)&0xffffffff;
return hng64_sysregs[offset];
@@ -654,8 +654,8 @@ static WRITE32_HANDLER( hng64_sysregs_w )
{
COMBINE_DATA (&hng64_sysregs[offset]);
-// if(((offset*4) & 0x1200) == 0x1200)
-// printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, hng64_sysregs[offset], cpu_get_pc(space->cpu));
+// if(((offset*4) & 0x1200) == 0x1200)
+// printf("HNG64 writing to SYSTEM Registers 0x%08x == 0x%08x. (PC=%08x)\n", offset*4, hng64_sysregs[offset], cpu_get_pc(space->cpu));
switch(offset*4)
{
@@ -796,17 +796,17 @@ static READ32_HANDLER( racing_io_r )
static READ32_HANDLER( hng64_dualport_r )
{
-// printf("dualport R %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu));
+// printf("dualport R %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu));
/*
- command table:
- 0x0b = ? mode input polling (sams64, bbust2, sams64_2 & roadedge) (*)
- 0x0c = cut down connections, treats the dualport to be normal RAM
- 0x11 = ? mode input polling (fatfurwa, xrally, buriki) (*)
- 0x20 = asks for MCU machine code
+ command table:
+ 0x0b = ? mode input polling (sams64, bbust2, sams64_2 & roadedge) (*)
+ 0x0c = cut down connections, treats the dualport to be normal RAM
+ 0x11 = ? mode input polling (fatfurwa, xrally, buriki) (*)
+ 0x20 = asks for MCU machine code
- (*) 0x11 is followed by 0x0b if the latter is used, JVS-esque indirect/direct mode?
- */
+ (*) 0x11 is followed by 0x0b if the latter is used, JVS-esque indirect/direct mode?
+ */
if(hng_mcu_en == 0x0c)
return hng64_dualport[offset];
@@ -834,7 +834,7 @@ Beast Busters 2 outputs (all at offset == 0x1c):
static WRITE32_HANDLER( hng64_dualport_w )
{
-// printf("dualport WRITE %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu));
+// printf("dualport WRITE %08x %08x (PC=%08x)\n", offset*4, hng64_dualport[offset], cpu_get_pc(space->cpu));
COMBINE_DATA (&hng64_dualport[offset]);
}
@@ -945,7 +945,7 @@ static WRITE32_HANDLER( tcram_w )
static READ32_HANDLER( tcram_r )
{
-// printf("Q1 R : %.8x %.8x\n", offset, hng64_tcram[offset]) ;
+// printf("Q1 R : %.8x %.8x\n", offset, hng64_tcram[offset]) ;
if(offset == 0x12)
return input_port_read(space->machine, "VBLANK");
@@ -1691,11 +1691,11 @@ static DRIVER_INIT( hng64 )
// region hacking, english error messages are more useful to us, but no english bios is dumped...
#ifdef HACK_REGION
// versions according to fatal fury test mode
-// hng64_patch_bios_region(machine, 0); // 'Others Ver' (invalid?)
+// hng64_patch_bios_region(machine, 0); // 'Others Ver' (invalid?)
hng64_patch_bios_region(machine, 1); // Japan
-// hng64_patch_bios_region(machine, 2); // USA
-// hng64_patch_bios_region(machine, 3); // Korea
-// hng64_patch_bios_region(machine, 4); // 'Others'
+// hng64_patch_bios_region(machine, 2); // USA
+// hng64_patch_bios_region(machine, 3); // Korea
+// hng64_patch_bios_region(machine, 4); // 'Others'
#endif
hng64_soundram=auto_alloc_array(machine, UINT16, 0x200000/2);
diff --git a/src/mame/drivers/igs017.c b/src/mame/drivers/igs017.c
index f2f3096bdcd..c622e013381 100644
--- a/src/mame/drivers/igs017.c
+++ b/src/mame/drivers/igs017.c
@@ -1926,13 +1926,13 @@ static INPUT_PORTS_START( mgdh )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("BUTTONS")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON3 )
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON2 )
INPUT_PORTS_END
diff --git a/src/mame/drivers/jokrwild.c b/src/mame/drivers/jokrwild.c
index dcec28f57a1..c1265a84962 100644
--- a/src/mame/drivers/jokrwild.c
+++ b/src/mame/drivers/jokrwild.c
@@ -240,14 +240,14 @@ static INPUT_PORTS_START( jokrwild )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-/* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-1") PORT_CODE(KEYCODE_1)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-2") PORT_CODE(KEYCODE_2)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-3") PORT_CODE(KEYCODE_3)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-4") PORT_CODE(KEYCODE_4)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-5") PORT_CODE(KEYCODE_5)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-6") PORT_CODE(KEYCODE_6)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-7") PORT_CODE(KEYCODE_7)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-8") PORT_CODE(KEYCODE_8)
+/* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-1") PORT_CODE(KEYCODE_1)
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-2") PORT_CODE(KEYCODE_2)
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-3") PORT_CODE(KEYCODE_3)
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-4") PORT_CODE(KEYCODE_4)
+ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-5") PORT_CODE(KEYCODE_5)
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-6") PORT_CODE(KEYCODE_6)
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-7") PORT_CODE(KEYCODE_7)
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("0-8") PORT_CODE(KEYCODE_8)
*/
PORT_START("IN1")
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) )
@@ -274,14 +274,14 @@ static INPUT_PORTS_START( jokrwild )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-/* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-1") PORT_CODE(KEYCODE_Q)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-2") PORT_CODE(KEYCODE_W)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-3") PORT_CODE(KEYCODE_E)
- PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-4") PORT_CODE(KEYCODE_R)
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-5") PORT_CODE(KEYCODE_T)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-6") PORT_CODE(KEYCODE_Y)
- PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-7") PORT_CODE(KEYCODE_U)
- PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-8") PORT_CODE(KEYCODE_I)
+/* PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-1") PORT_CODE(KEYCODE_Q)
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-2") PORT_CODE(KEYCODE_W)
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-3") PORT_CODE(KEYCODE_E)
+ PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-4") PORT_CODE(KEYCODE_R)
+ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-5") PORT_CODE(KEYCODE_T)
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-6") PORT_CODE(KEYCODE_Y)
+ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-7") PORT_CODE(KEYCODE_U)
+ PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("1-8") PORT_CODE(KEYCODE_I)
*/
PORT_START("IN2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_NAME("2-1") PORT_CODE(KEYCODE_A)
@@ -388,12 +388,12 @@ GFXDECODE_END
static WRITE8_DEVICE_HANDLER( testa_w )
{
-// printf("%02x A\n",data);
+// printf("%02x A\n",data);
}
static WRITE8_DEVICE_HANDLER( testb_w )
{
-// printf("%02x B\n",data);
+// printf("%02x B\n",data);
}
static const pia6821_interface pia0_intf =
diff --git a/src/mame/drivers/kaneko16.c b/src/mame/drivers/kaneko16.c
index 24867386bf3..a35d99c85e0 100644
--- a/src/mame/drivers/kaneko16.c
+++ b/src/mame/drivers/kaneko16.c
@@ -335,7 +335,7 @@ static WRITE16_HANDLER( kaneko16_eeprom_w )
{
if (ACCESSING_BITS_0_7)
{
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
if (ACCESSING_BITS_8_15)
diff --git a/src/mame/drivers/konamigq.c b/src/mame/drivers/konamigq.c
index 2230e348ccd..a86800a78b5 100644
--- a/src/mame/drivers/konamigq.c
+++ b/src/mame/drivers/konamigq.c
@@ -118,7 +118,7 @@ static const UINT8 konamigq_def_eeprom[128] =
static WRITE32_HANDLER( eeprom_w )
{
- input_port_write(space->machine, "EEPROMOUT", data & 0x07, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data & 0x07, 0xff);
cputag_set_input_line(space->machine, "soundcpu", INPUT_LINE_RESET, ( data & 0x40 ) ? CLEAR_LINE : ASSERT_LINE );
}
diff --git a/src/mame/drivers/limenko.c b/src/mame/drivers/limenko.c
index ef43f42b9f9..fe0387e0bf6 100644
--- a/src/mame/drivers/limenko.c
+++ b/src/mame/drivers/limenko.c
@@ -522,7 +522,7 @@ static INPUT_PORTS_START( legendoh )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line)
PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit)
-// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
+// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
INPUT_PORTS_END
static INPUT_PORTS_START( sb2003 )
@@ -567,7 +567,7 @@ static INPUT_PORTS_START( sb2003 )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line)
PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit)
-// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
+// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
INPUT_PORTS_END
static INPUT_PORTS_START( spotty )
@@ -611,7 +611,7 @@ static INPUT_PORTS_START( spotty )
PORT_BIT( 0x00010000, IP_ACTIVE_LOW, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_cs_line)
PORT_BIT( 0x00020000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_set_clock_line)
PORT_BIT( 0x00040000, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE("eeprom", eepromdev_write_bit)
-// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
+// PORT_BIT( 0x00080000, IP_ACTIVE_HIGH, IPT_UNKNOWN ) // 0x80000 -> video disabled?
INPUT_PORTS_END
/*****************************************************************************************************
diff --git a/src/mame/drivers/metro.c b/src/mame/drivers/metro.c
index 317763c6d0c..a014b5ead90 100644
--- a/src/mame/drivers/metro.c
+++ b/src/mame/drivers/metro.c
@@ -1785,7 +1785,7 @@ static ADDRESS_MAP_START( puzzlet_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE( 0x720000, 0x73ffff ) AM_READWRITE( SMH_RAM, metro_vram_1_w ) AM_BASE( &metro_vram_1 ) // Layer 1
AM_RANGE( 0x740000, 0x75ffff ) AM_READWRITE( SMH_RAM, metro_vram_2_w ) AM_BASE( &metro_vram_2 ) // Layer 2
AM_RANGE( 0x774000, 0x774fff ) AM_RAM AM_BASE_SIZE_GENERIC( spriteram )
-
+
AM_RANGE( 0x760000, 0x76ffff ) AM_READ( metro_bankedrom_r ) // Banked ROM
// AM_RANGE( 0x772000, 0x773fff ) AM_RAM
diff --git a/src/mame/drivers/missb2.c b/src/mame/drivers/missb2.c
index dbec508bd5d..78bc5ec8729 100644
--- a/src/mame/drivers/missb2.c
+++ b/src/mame/drivers/missb2.c
@@ -38,7 +38,7 @@ static VIDEO_UPDATE( missb2 )
bitmap_fill(bitmap, cliprect, 255);
- if (!state->video_enable)
+ if (!state->video_enable)
return 0;
/* background map register */
@@ -359,7 +359,7 @@ static MACHINE_START( missb2 )
{
bublbobl_state *state = (bublbobl_state *)machine->driver_data;
- state->mcu = NULL;
+ state->mcu = NULL;
state_save_register_global(machine, state->sound_nmi_enable);
state_save_register_global(machine, state->pending_nmi);
diff --git a/src/mame/drivers/namcops2.c b/src/mame/drivers/namcops2.c
index e156ad4e583..14ab86f2549 100644
--- a/src/mame/drivers/namcops2.c
+++ b/src/mame/drivers/namcops2.c
@@ -4,7 +4,7 @@
Namco System 246 / System 256 games (Sony PS2 based)
- PS2 baseboard includes:
+ PS2 baseboard includes:
* R5900 "Emotion Engine" - MIPS III with 128-bit integer regs & SIMD
* R3000 IOP - Stock R3000 with cache, not like the PSXCPU
* VU0 - can operate either as in-line R5900 coprocessor or run independently
@@ -191,12 +191,12 @@ ROM_START( taiko9 )
DISK_REGION("dvd")
ROM_END
-ROM_START( tekken4 )
+ROM_START( tekken4 )
ROM_REGION(0x200000, "bios", 0)
SYSTEM246_BIOS
ROM_REGION(0x840000, "key", ROMREGION_ERASE00)
- ROM_LOAD( "tef3verc.ic002", 0x000000, 0x800000, CRC(8a41290c) SHA1(2c674e3203c7b5302430b1c1115fcf591a0dcbf2) )
+ ROM_LOAD( "tef3verc.ic002", 0x000000, 0x800000, CRC(8a41290c) SHA1(2c674e3203c7b5302430b1c1115fcf591a0dcbf2) )
ROM_LOAD( "tef3verc_spr.ic002", 0x800000, 0x040000, CRC(af248bf7) SHA1(b99193fcdad683c0bbd684f37dfea5c5412b398e) )
DISK_REGION("dvd")
diff --git a/src/mame/drivers/norautp.c b/src/mame/drivers/norautp.c
index d00dab3c58d..0ad1ce845e7 100644
--- a/src/mame/drivers/norautp.c
+++ b/src/mame/drivers/norautp.c
@@ -22,7 +22,7 @@
* Noraut Joker Poker (V3.011a), 2003, Noraut Ltd.
* Noraut unknown set 1 (console), 198?, Noraut Ltd.
* Noraut unknown set 2 (console), 198?, Noraut Ltd.
- * Mainline Double Joker Poker, 198?, Mainline London.
+ * Mainline Double Joker Poker, 198?, Mainline London.
* Double Joker Poker (45%-75% payout), 199?, DellFern Ltd.
* Royal on Ten (Noraut Deluxe hack), 2005, Unknown.
* Credit Poker (ver.30c, standard), 1999, CGI.
@@ -1408,7 +1408,7 @@ static ADDRESS_MAP_START( nortest1_map, ADDRESS_SPACE_PROGRAM, 8 )
ADDRESS_MAP_END
static ADDRESS_MAP_START( norautxp_map, ADDRESS_SPACE_PROGRAM, 8 )
-// ADDRESS_MAP_GLOBAL_MASK(~0x4000)
+// ADDRESS_MAP_GLOBAL_MASK(~0x4000)
ADDRESS_MAP_GLOBAL_MASK(0x7fff)
AM_RANGE(0x0000, 0x3fff) AM_ROM /* need to be checked */
AM_RANGE(0x6000, 0x67ff) AM_RAM AM_BASE_SIZE_GENERIC(nvram) /* HM6116 */
@@ -2104,8 +2104,8 @@ ROM_END
Noraut Red Hot 1-bet Joker Poker.
- Last release of Noraut's Joker Poker. Always have joker with multi change card
- and hint card in gamble. Quite popular in Norther Ireland but some operators
+ Last release of Noraut's Joker Poker. Always have joker with multi change card
+ and hint card in gamble. Quite popular in Norther Ireland but some operators
have the percentage to payout at less than 10%
*/
@@ -2227,7 +2227,7 @@ ROM_END
/*
- V3011a
+ V3011a
cpu :Z84C0006PEC
Prog eprom marked
@@ -2604,7 +2604,7 @@ ROM_END
ROM text showed poker text and
COPYRIGHT 1986 DREWS INC.
COPYRIGHT 1986 DREW'S DISTRIBUTING INC.
-
+
*/
ROM_START( drhl )
@@ -2676,90 +2676,90 @@ ROM_END
*/
//static DRIVER_INIT( norautrh )
//{
-// UINT8 *ROM = memory_region(machine, "maincpu");
-// ROM[0x1110] = 0x00;
-// ROM[0x1111] = 0x00;
+// UINT8 *ROM = memory_region(machine, "maincpu");
+// ROM[0x1110] = 0x00;
+// ROM[0x1111] = 0x00;
//}
//static DRIVER_INIT( norautpn )
//{
-// UINT8 *ROM = memory_region(machine, "maincpu");
-// ROM[0x0827] = 0x00;
-// ROM[0x0828] = 0x00;
+// UINT8 *ROM = memory_region(machine, "maincpu");
+// ROM[0x0827] = 0x00;
+// ROM[0x0828] = 0x00;
//}
//static DRIVER_INIT( norautu )
//{
-// UINT8 *ROM = memory_region(machine, "maincpu");
-// ROM[0x083c] = 0x00;
-// ROM[0x083d] = 0x00;
-// ROM[0x083e] = 0x00;
+// UINT8 *ROM = memory_region(machine, "maincpu");
+// ROM[0x083c] = 0x00;
+// ROM[0x083d] = 0x00;
+// ROM[0x083e] = 0x00;
//}
//static DRIVER_INIT( gtipoker )
//{
-// UINT8 *ROM = memory_region(machine, "maincpu");
-// ROM[0x0cc6] = 0x00;
-// ROM[0x0cc7] = 0x00;
-// ROM[0x0cc8] = 0x00;
-// ROM[0x10a5] = 0x00;
-// ROM[0x10a6] = 0x00;
-// ROM[0x10a7] = 0x00;
+// UINT8 *ROM = memory_region(machine, "maincpu");
+// ROM[0x0cc6] = 0x00;
+// ROM[0x0cc7] = 0x00;
+// ROM[0x0cc8] = 0x00;
+// ROM[0x10a5] = 0x00;
+// ROM[0x10a6] = 0x00;
+// ROM[0x10a7] = 0x00;
//}
//static DRIVER_INIT( dphl )
//{
-// UINT8 *ROM = memory_region(machine, "maincpu");
-// ROM[0x1510] = 0x00;
-// ROM[0x1511] = 0x00;
-// ROM[0x1512] = 0x00;
+// UINT8 *ROM = memory_region(machine, "maincpu");
+// ROM[0x1510] = 0x00;
+// ROM[0x1511] = 0x00;
+// ROM[0x1512] = 0x00;
//}
//static DRIVER_INIT( dphla )
//{
-// UINT8 *ROM = memory_region(machine, "maincpu");
-// ROM[0x0b09] = 0x00;
-// ROM[0x0b0a] = 0x00;
-// ROM[0x0b0b] = 0x00;
+// UINT8 *ROM = memory_region(machine, "maincpu");
+// ROM[0x0b09] = 0x00;
+// ROM[0x0b0a] = 0x00;
+// ROM[0x0b0b] = 0x00;
//}
static DRIVER_INIT( enc )
{
/* Attempt to decrypt the program ROM */
-// UINT8 *rom = memory_region(machine, "maincpu");
-// UINT8 *buffer;
-// int size = 0x2000; //memory_region_length(machine, "maincpu");
-// int start = 0;
-// int i;
-
-
-// for (i = start; i < size; i++)
-// {
-// rom[i] = rom[i] ^ 0x09 ^ 0xff;
-// rom[i+1] = rom[i+1] ^ 0xfb ^ 0xff;
-// rom[i+2] = rom[i+2] ^ 0xb2 ^ 0xff;
-// rom[i+3] = rom[i+3] ^ 0x60 ^ 0xff;
-// rom[i+4] = rom[i+4] ^ 0xce ^ 0xff;
-// rom[i+5] = rom[i+5] ^ 0x44 ^ 0xff;
-// rom[i+6] = rom[i+6] ^ 0x6e ^ 0xff;
-// rom[i+7] = rom[i+7] ^ 0x61 ^ 0xff;
-// rom[i+8] = rom[i+8] ^ 0x37 ^ 0xff;
-// rom[i+9] = rom[i+9] ^ 0x5e ^ 0xff;
-// rom[i+10] = rom[i+10] ^ 0xfb ^ 0xff;
-// rom[i+11] = rom[i+11] ^ 0xc6 ^ 0xff;
-// rom[i+12] = rom[i+12] ^ 0x1d ^ 0xff;
-// rom[i+13] = rom[i+13] ^ 0x33 ^ 0xff;
-// rom[i+14] = rom[i+14] ^ 0x00 ^ 0xff;
-// rom[i+15] = rom[i+15] ^ 0xff ^ 0xff;
-
-// i = i + 16;
-// }
-
-// buffer = alloc_array_or_die(UINT8, size);
-// memcpy(buffer, rom, size);
-
-// free(buffer);
+// UINT8 *rom = memory_region(machine, "maincpu");
+// UINT8 *buffer;
+// int size = 0x2000; //memory_region_length(machine, "maincpu");
+// int start = 0;
+// int i;
+
+
+// for (i = start; i < size; i++)
+// {
+// rom[i] = rom[i] ^ 0x09 ^ 0xff;
+// rom[i+1] = rom[i+1] ^ 0xfb ^ 0xff;
+// rom[i+2] = rom[i+2] ^ 0xb2 ^ 0xff;
+// rom[i+3] = rom[i+3] ^ 0x60 ^ 0xff;
+// rom[i+4] = rom[i+4] ^ 0xce ^ 0xff;
+// rom[i+5] = rom[i+5] ^ 0x44 ^ 0xff;
+// rom[i+6] = rom[i+6] ^ 0x6e ^ 0xff;
+// rom[i+7] = rom[i+7] ^ 0x61 ^ 0xff;
+// rom[i+8] = rom[i+8] ^ 0x37 ^ 0xff;
+// rom[i+9] = rom[i+9] ^ 0x5e ^ 0xff;
+// rom[i+10] = rom[i+10] ^ 0xfb ^ 0xff;
+// rom[i+11] = rom[i+11] ^ 0xc6 ^ 0xff;
+// rom[i+12] = rom[i+12] ^ 0x1d ^ 0xff;
+// rom[i+13] = rom[i+13] ^ 0x33 ^ 0xff;
+// rom[i+14] = rom[i+14] ^ 0x00 ^ 0xff;
+// rom[i+15] = rom[i+15] ^ 0xff ^ 0xff;
+
+// i = i + 16;
+// }
+
+// buffer = alloc_array_or_die(UINT8, size);
+// memcpy(buffer, rom, size);
+
+// free(buffer);
}
static DRIVER_INIT( deb )
diff --git a/src/mame/drivers/portrait.c b/src/mame/drivers/portrait.c
index 7ac25e7cb88..401b817c67d 100644
--- a/src/mame/drivers/portrait.c
+++ b/src/mame/drivers/portrait.c
@@ -297,19 +297,19 @@ ROM_START( portrait )
ROM_REGION( 0x20000, "gfx1", 0 )
ROM_LOAD( "port_00.a1", 0x00000, 0x2000, CRC(eb3e1c12) SHA1(2d38b66f52546b40553244c8a5c961279559f5b6) ) /*bit plane 1*/
ROM_LOAD( "port_10.b1", 0x02000, 0x2000, CRC(0f44e377) SHA1(1955f9f4deab2166f637f43c1f326bd65fc90f6a) ) /*bit plane 1*/
-
+
ROM_LOAD( "port_02.d1", 0x04000, 0x2000, CRC(bd93a3f9) SHA1(9cb479b8840cafd6043ff0cb9d5ca031dcd332ba) ) /*bit plane 2*/
ROM_LOAD( "port_12.e1", 0x06000, 0x2000, CRC(656b9f20) SHA1(c1907aba3d19be79d92cd73784b8e7ae94910da6) ) /*bit plane 2*/
-
+
ROM_LOAD( "port_04.g1", 0x08000, 0x2000, CRC(2a99feb5) SHA1(b373d2a2bd28aad6dd7a15a2166e03a8b7a34d9b) ) /*bit plane 3*/
ROM_LOAD( "port_14.g1", 0x0a000, 0x2000, CRC(224b7a58) SHA1(b84e70d22d1cab41e5773fc9daa2e4e55ec9d96e) ) /*bit plane 3*/
ROM_LOAD( "port_01.a2", 0x10000, 0x2000, CRC(70d27508) SHA1(d011f85b31bb3aa6f386e8e0edb91df10f4c4eb6) ) /*bit plane 1*/
ROM_LOAD( "port_11.b2", 0x12000, 0x2000, CRC(f498e395) SHA1(beb1d12433a350e5b773126de3f2803a9f5620c1) ) /*bit plane 1*/
-
+
ROM_LOAD( "port_03.d2", 0x14000, 0x2000, CRC(03d4153a) SHA1(7ce69ce6a101870dbfca1a9787fb1e660024bc02) ) /*bit plane 2*/
ROM_LOAD( "port_13.e2", 0x16000, 0x2000, CRC(10fa22b8) SHA1(e8f4c24fcdda0ce5e33bc600acd574a232a9bb21) ) /*bit plane 2*/
-
+
ROM_LOAD( "port_05.g2", 0x18000, 0x2000, CRC(43ea7951) SHA1(df0ae7fa802365979514063e1d67cdd45ecada90) ) /*bit plane 3*/
ROM_LOAD( "port_15.h2", 0x1a000, 0x2000, CRC(ab20b438) SHA1(ea5d60f6a9f06397bd0c6ee028b463c684090c01) ) /*bit plane 3*/
@@ -361,33 +361,33 @@ ROM_END
/* tileattr rom
this appears to be divided into 2 0x400 banks
-
+
0x000 - 0x3ff relates to tiles 0x000-0x0ff
-
+
0x400 - 0x7ff relates to tiles 0x100-0x1ff, 0x200-0x2ff, and 0x300-0x3ff
-
+
every 2 tiles are somehow related to 8 bytes in the data
-
+
so tiles 0x00 and 0x01 use bytes 0x000-0x007
0x02 0x008
- 0x04 0x010
- 0x06 0x018
- 0x08 0x020
- 0x0a 0x028
- 0x0c 0x030
- 0x0e 0x038
+ 0x04 0x010
+ 0x06 0x018
+ 0x08 0x020
+ 0x0a 0x028
+ 0x0c 0x030
+ 0x0e 0x038
0x10 0x040
.......
0xfe and 0xff use bytes 0x3f8-0x3ff
- etc.
-
- it's probably some kind of lookup table for the colours (6bpp = 8 colours, maybe every 2 tiles share the same 8 colours)
- I guess either the bank (0/1) can be selected, or bank 0 is hardcoded to tiles 0x000-0x0ff (because tilemaps can use
- these tiles too, so it's not a case of it being a sprite/tilemap lookup split)
-
- anyway.. this is why the portraits logo is broken across 3 areas (0x1f2, 0x2f2, 0x3f2) so that they can share the same
- attributes from this rom
-
+ etc.
+
+ it's probably some kind of lookup table for the colours (6bpp = 8 colours, maybe every 2 tiles share the same 8 colours)
+ I guess either the bank (0/1) can be selected, or bank 0 is hardcoded to tiles 0x000-0x0ff (because tilemaps can use
+ these tiles too, so it's not a case of it being a sprite/tilemap lookup split)
+
+ anyway.. this is why the portraits logo is broken across 3 areas (0x1f2, 0x2f2, 0x3f2) so that they can share the same
+ attributes from this rom
+
*/
diff --git a/src/mame/drivers/snesb.c b/src/mame/drivers/snesb.c
index e676c48b852..9bbdf40443f 100644
--- a/src/mame/drivers/snesb.c
+++ b/src/mame/drivers/snesb.c
@@ -723,7 +723,7 @@ static INPUT_PORTS_START( iron )
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW1:6" )
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "SW1:7" )
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW1:8" )
-
+
PORT_START("DSW2") /* IN 13 : dip-switches */
PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW2:1" )
PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW2:2" )
diff --git a/src/mame/drivers/sub.c b/src/mame/drivers/sub.c
index e00346f4ce8..476724415d3 100644
--- a/src/mame/drivers/sub.c
+++ b/src/mame/drivers/sub.c
@@ -144,15 +144,15 @@ VIDEO_UPDATE(sub)
/*
- sprite bank 1
- 0 xxxx xxxx X offset
- 1 tttt tttt tile offset
- sprite bank 2
- 0 yyyy yyyy Y offset
- 1 f--- ---- flips the X offset
- 1 -f-- ---- flip y, inverted
- 1 --cc cccc color
- */
+ sprite bank 1
+ 0 xxxx xxxx X offset
+ 1 tttt tttt tile offset
+ sprite bank 2
+ 0 yyyy yyyy Y offset
+ 1 f--- ---- flips the X offset
+ 1 -f-- ---- flip y, inverted
+ 1 --cc cccc color
+ */
{
UINT8 *spriteram = screen->machine->generic.spriteram.u8;
UINT8 *spriteram_2 = screen->machine->generic.spriteram2.u8;
@@ -300,11 +300,11 @@ static INPUT_PORTS_START( sub )
PORT_DIPSETTING( 0x90, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x00, DEF_STR( Free_Play ) )
// Duplicates
-// PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) )
-// PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
-// PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) )
-// PORT_DIPSETTING( 0xd0, DEF_STR( 1C_1C ) )
-// PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
+// PORT_DIPSETTING( 0xa0, DEF_STR( 1C_3C ) )
+// PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
+// PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) )
+// PORT_DIPSETTING( 0xd0, DEF_STR( 1C_1C ) )
+// PORT_DIPSETTING( 0xe0, DEF_STR( 1C_2C ) )
PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x00, DEF_STR( Lives ) )
diff --git a/src/mame/drivers/taito_b.c b/src/mame/drivers/taito_b.c
index 863e046cf1c..47e0e2284b4 100644
--- a/src/mame/drivers/taito_b.c
+++ b/src/mame/drivers/taito_b.c
@@ -394,7 +394,7 @@ static WRITE16_HANDLER( eeprom_w )
/* bit 7 - set all the time (Chip Select?) */
/* EEPROM */
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
}
diff --git a/src/mame/drivers/taito_f3.c b/src/mame/drivers/taito_f3.c
index ff9567c4281..974b7124498 100644
--- a/src/mame/drivers/taito_f3.c
+++ b/src/mame/drivers/taito_f3.c
@@ -99,7 +99,7 @@ static WRITE32_HANDLER( f3_control_w )
case 0x04: /* Eeprom */
if (ACCESSING_BITS_0_7)
{
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
}
return;
diff --git a/src/mame/drivers/taito_z.c b/src/mame/drivers/taito_z.c
index 52b8a0cd9d3..d33da744543 100644
--- a/src/mame/drivers/taito_z.c
+++ b/src/mame/drivers/taito_z.c
@@ -1060,7 +1060,7 @@ static WRITE16_HANDLER( spacegun_output_bypass_w )
x0000000 (unused) */
COMBINE_DATA(&eep_latch);
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
break;
default:
diff --git a/src/mame/drivers/taitojc.c b/src/mame/drivers/taitojc.c
index 8d61fce2133..da319225aef 100644
--- a/src/mame/drivers/taitojc.c
+++ b/src/mame/drivers/taitojc.c
@@ -484,7 +484,7 @@ static WRITE32_HANDLER ( jc_control_w )
{
if (ACCESSING_BITS_24_31)
{
- input_port_write(space->machine, "EEPROMOUT", data >> 24, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data >> 24, 0xff);
}
return;
}
diff --git a/src/mame/drivers/tnzs.c b/src/mame/drivers/tnzs.c
index e4b417128e9..59f5e1c7418 100644
--- a/src/mame/drivers/tnzs.c
+++ b/src/mame/drivers/tnzs.c
@@ -650,7 +650,7 @@ static SAMPLES_START( kageki_init_samples )
{
if (*scan++ == 0x00)
break;
- else
+ else
size++;
}
@@ -659,7 +659,7 @@ static SAMPLES_START( kageki_init_samples )
state->samplesize[i] = size;
- if (start < 0x100)
+ if (start < 0x100)
start = size = 0;
// signed 8-bit sample to unsigned 8-bit sample convert
@@ -713,8 +713,8 @@ static WRITE8_DEVICE_HANDLER( kageki_csport_w )
{
// read dipsw port
state->kageki_csport_sel = (data & 0x03);
- }
- else
+ }
+ else
{
if (data > MAX_SAMPLES)
{
diff --git a/src/mame/drivers/toaplan2.c b/src/mame/drivers/toaplan2.c
index 59d6af25f18..e25e911798e 100644
--- a/src/mame/drivers/toaplan2.c
+++ b/src/mame/drivers/toaplan2.c
@@ -1290,7 +1290,7 @@ static WRITE16_HANDLER( bbakraid_nvram_w )
logerror("CPU #0 PC:%06X - Unknown EEPROM data being written %04X\n",cpu_get_pc(space->cpu),data);
if ( ACCESSING_BITS_0_7 )
- input_port_write(space->machine, "EEPROMOUT", data, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data, 0xff);
raizing_Z80_busreq = data & 0x10; /* see bbakraid_nvram_r above */
}
diff --git a/src/mame/drivers/zr107.c b/src/mame/drivers/zr107.c
index af1840032c8..b886ad3d34e 100644
--- a/src/mame/drivers/zr107.c
+++ b/src/mame/drivers/zr107.c
@@ -328,7 +328,7 @@ static WRITE8_HANDLER( sysreg_w )
0x02 = EEPCLK
0x01 = EEPDI
*/
- input_port_write(space->machine, "EEPROMOUT", data & 0x07, 0xff);
+ input_port_write(space->machine, "EEPROMOUT", data & 0x07, 0xff);
cputag_set_input_line(space->machine, "audiocpu", INPUT_LINE_RESET, (data & 0x10) ? CLEAR_LINE : ASSERT_LINE);
mame_printf_debug("System register 0 = %02X\n", data);
break;
diff --git a/src/mame/includes/actfancr.h b/src/mame/includes/actfancr.h
index 3acd0c3286a..3392f7e2514 100644
--- a/src/mame/includes/actfancr.h
+++ b/src/mame/includes/actfancr.h
@@ -1,6 +1,6 @@
/*************************************************************************
- Act Fancer
+ Act Fancer
*************************************************************************/
@@ -12,8 +12,8 @@ struct _actfancr_state
UINT8 * pf2_data;
UINT8 * pf1_rowscroll_data;
UINT8 * main_ram;
-// UINT8 * spriteram; // currently this uses buffered_spriteram
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * spriteram; // currently this uses buffered_spriteram
+// UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *pf1_tilemap, *pf1_alt_tilemap, *pf2_tilemap;
diff --git a/src/mame/includes/aquarium.h b/src/mame/includes/aquarium.h
index 481523577b0..fe14385db05 100644
--- a/src/mame/includes/aquarium.h
+++ b/src/mame/includes/aquarium.h
@@ -10,7 +10,7 @@ struct _aquarium_state
UINT16 * mid_videoram;
UINT16 * bak_videoram;
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/armedf.h b/src/mame/includes/armedf.h
index feae0031c34..e72a62a1db0 100644
--- a/src/mame/includes/armedf.h
+++ b/src/mame/includes/armedf.h
@@ -10,8 +10,8 @@ struct _armedf_state
UINT16 * bg_videoram;
UINT16 * fg_videoram;
UINT16 * legion_cmd; // legion only!
-// UINT16 * spriteram; // currently this uses generic buffered_spriteram
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * spriteram; // currently this uses generic buffered_spriteram
+// UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *bg_tilemap,*fg_tilemap, *tx_tilemap;
diff --git a/src/mame/includes/ashnojoe.h b/src/mame/includes/ashnojoe.h
index 397d6336c1a..f8ceb1e71e2 100644
--- a/src/mame/includes/ashnojoe.h
+++ b/src/mame/includes/ashnojoe.h
@@ -17,7 +17,7 @@ struct _ashnojoe_state
UINT16 * tileram_6;
UINT16 * tileram_7;
UINT16 * tilemap_reg;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *joetilemap, *joetilemap2, *joetilemap3, *joetilemap4, *joetilemap5, *joetilemap6, *joetilemap7;
diff --git a/src/mame/includes/blktiger.h b/src/mame/includes/blktiger.h
index 3918660ea06..d8170c0dda6 100644
--- a/src/mame/includes/blktiger.h
+++ b/src/mame/includes/blktiger.h
@@ -9,9 +9,9 @@ struct _blktiger_state
{
/* memory pointers */
UINT8 * txvideoram;
-// UINT8 * spriteram; // currently this uses generic buffer_spriteram_w
-// UINT8 * paletteram; // currently this uses generic palette handling
-// UINT8 * paletteram2; // currently this uses generic palette handling
+// UINT8 * spriteram; // currently this uses generic buffer_spriteram_w
+// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram2; // currently this uses generic palette handling
/* video-related */
tilemap *tx_tilemap, *bg_tilemap8x4, *bg_tilemap4x8;
diff --git a/src/mame/includes/bogeyman.h b/src/mame/includes/bogeyman.h
index 1bc0deb284f..fb59897d219 100644
--- a/src/mame/includes/bogeyman.h
+++ b/src/mame/includes/bogeyman.h
@@ -1,6 +1,6 @@
/*************************************************************************
- Bogey Manor
+ Bogey Manor
*************************************************************************/
@@ -13,7 +13,7 @@ struct _bogeyman_state
UINT8 * colorram;
UINT8 * colorram2;
UINT8 * spriteram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/bombjack.h b/src/mame/includes/bombjack.h
index 0310f728857..04c001e7849 100644
--- a/src/mame/includes/bombjack.h
+++ b/src/mame/includes/bombjack.h
@@ -11,7 +11,7 @@ struct _bombjack_state
UINT8 * videoram;
UINT8 * colorram;
UINT8 * spriteram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/btime.h b/src/mame/includes/btime.h
index 91cc4a7864b..d7cd863f361 100644
--- a/src/mame/includes/btime.h
+++ b/src/mame/includes/btime.h
@@ -5,13 +5,13 @@ struct _btime_state
/* memory pointers */
UINT8 * videoram;
UINT8 * colorram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
UINT8 * lnc_charbank;
UINT8 * bnj_backgroundram;
UINT8 * zoar_scrollram;
UINT8 * deco_charram;
UINT8 * spriteram; // used by disco
-// UINT8 * decrypted;
+// UINT8 * decrypted;
UINT8 * rambase;
UINT8 * audio_rambase;
size_t videoram_size;
diff --git a/src/mame/includes/bublbobl.h b/src/mame/includes/bublbobl.h
index d48e5ffcbc8..026818df2e2 100644
--- a/src/mame/includes/bublbobl.h
+++ b/src/mame/includes/bublbobl.h
@@ -6,7 +6,7 @@ struct _bublbobl_state
UINT8 * mcu_sharedram;
UINT8 * videoram;
UINT8 * objectram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
size_t videoram_size;
size_t objectram_size;
diff --git a/src/mame/includes/capbowl.h b/src/mame/includes/capbowl.h
index 1d21ee88b3b..c285350b7ae 100644
--- a/src/mame/includes/capbowl.h
+++ b/src/mame/includes/capbowl.h
@@ -9,7 +9,7 @@ struct _capbowl_state
{
/* memory pointers */
UINT8 * rowaddress;
-// UINT8 * nvram; // currently this uses generic_nvram
+// UINT8 * nvram; // currently this uses generic_nvram
/* video-related */
offs_t blitter_addr;
diff --git a/src/mame/includes/ccastles.h b/src/mame/includes/ccastles.h
index 8bb4d834f7d..b0f1b89a0bc 100644
--- a/src/mame/includes/ccastles.h
+++ b/src/mame/includes/ccastles.h
@@ -10,8 +10,8 @@ struct _ccastles_state
/* memory pointers */
UINT8 * videoram;
UINT8 * spriteram;
-// UINT8 * nvram_stage; // currently this uses generic nvram handlers
-// UINT8 * nvram; // currently this uses generic nvram handlers
+// UINT8 * nvram_stage; // currently this uses generic nvram handlers
+// UINT8 * nvram; // currently this uses generic nvram handlers
/* video-related */
const UINT8 *syncprom;
diff --git a/src/mame/includes/citycon.h b/src/mame/includes/citycon.h
index b1c76312db0..139dabe3177 100644
--- a/src/mame/includes/citycon.h
+++ b/src/mame/includes/citycon.h
@@ -12,7 +12,7 @@ struct _citycon_state
UINT8 * linecolor;
UINT8 * scroll;
UINT8 * spriteram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/cloud9.h b/src/mame/includes/cloud9.h
index 33179ca36e5..63b95064912 100644
--- a/src/mame/includes/cloud9.h
+++ b/src/mame/includes/cloud9.h
@@ -11,8 +11,8 @@ struct _cloud9_state
UINT8 * videoram;
UINT8 * spriteram;
UINT8 * paletteram;
-// UINT8 * nvram_stage; // currently this uses generic nvram handlers
-// UINT8 * nvram; // currently this uses generic nvram handlers
+// UINT8 * nvram_stage; // currently this uses generic nvram handlers
+// UINT8 * nvram; // currently this uses generic nvram handlers
/* video-related */
const UINT8 *syncprom;
diff --git a/src/mame/includes/commando.h b/src/mame/includes/commando.h
index fcf7eeda7c3..69daf0df6ce 100644
--- a/src/mame/includes/commando.h
+++ b/src/mame/includes/commando.h
@@ -12,7 +12,7 @@ struct _commando_state
UINT8 * colorram;
UINT8 * videoram2;
UINT8 * colorram2;
-// UINT8 * spriteram; // currently this uses generic buffered_spriteram
+// UINT8 * spriteram; // currently this uses generic buffered_spriteram
/* video-related */
tilemap *bg_tilemap, *fg_tilemap;
diff --git a/src/mame/includes/compgolf.h b/src/mame/includes/compgolf.h
index 81f9eeec1f1..a66b147a77b 100644
--- a/src/mame/includes/compgolf.h
+++ b/src/mame/includes/compgolf.h
@@ -1,6 +1,6 @@
/*************************************************************************
- Competition Golf Final Round
+ Competition Golf Final Round
*************************************************************************/
diff --git a/src/mame/includes/cosmic.h b/src/mame/includes/cosmic.h
index 05dbc270b41..af95032636a 100644
--- a/src/mame/includes/cosmic.h
+++ b/src/mame/includes/cosmic.h
@@ -1,6 +1,6 @@
/*************************************************************************
- Cosmic Guerilla & other Universal boards (in cosmic.c)
+ Cosmic Guerilla & other Universal boards (in cosmic.c)
*************************************************************************/
diff --git a/src/mame/includes/crospang.h b/src/mame/includes/crospang.h
index a55f17a6023..ff16937793b 100644
--- a/src/mame/includes/crospang.h
+++ b/src/mame/includes/crospang.h
@@ -11,7 +11,7 @@ struct _crospang_state
UINT16 * bg_videoram;
UINT16 * fg_videoram;
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/ddragon.h b/src/mame/includes/ddragon.h
index 8530e061f18..d5d9237a03a 100644
--- a/src/mame/includes/ddragon.h
+++ b/src/mame/includes/ddragon.h
@@ -16,8 +16,8 @@ struct _ddragon_state
UINT8 * scrollx_lo;
UINT8 * scrolly_lo;
UINT8 * darktowr_mcu_ports;
-// UINT8 * paletteram; // currently this uses generic palette handling
-// UINT8 * paletteram_2; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram_2; // currently this uses generic palette handling
size_t spriteram_size; // FIXME: this appears in chinagat.c, but is it really used?
/* video-related */
diff --git a/src/mame/includes/ddragon3.h b/src/mame/includes/ddragon3.h
index 9ec9d165cd5..d98a4d1f7d2 100644
--- a/src/mame/includes/ddragon3.h
+++ b/src/mame/includes/ddragon3.h
@@ -12,7 +12,7 @@ struct _ddragon3_state
UINT16 * bg_videoram;
UINT16 * fg_videoram;
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *fg_tilemap, *bg_tilemap;
diff --git a/src/mame/includes/dec8.h b/src/mame/includes/dec8.h
index 675f2af6857..8149383ace7 100644
--- a/src/mame/includes/dec8.h
+++ b/src/mame/includes/dec8.h
@@ -7,9 +7,9 @@ struct _dec8_state
UINT8 * pf0_data;
UINT8 * pf1_data;
UINT8 * row;
-// UINT8 * paletteram; // currently this uses generic palette handling
-// UINT8 * paletteram_2; // currently this uses generic palette handling
-// UINT8 * spriteram; // currently this uses buffered_spriteram in some games
+// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram_2; // currently this uses generic palette handling
+// UINT8 * spriteram; // currently this uses buffered_spriteram in some games
size_t videoram_size;
/* video-related */
diff --git a/src/mame/includes/deniam.h b/src/mame/includes/deniam.h
index dc4162d4fc4..58c6b6ab233 100644
--- a/src/mame/includes/deniam.h
+++ b/src/mame/includes/deniam.h
@@ -18,7 +18,7 @@ struct _deniam_state
/* video-related */
tilemap *fg_tilemap, *bg_tilemap, *tx_tilemap;
int display_enable;
- int bg_scrollx_offs, bg_scrolly_offs;
+ int bg_scrollx_offs, bg_scrolly_offs;
int fg_scrollx_offs, fg_scrolly_offs;
int bg_scrollx_reg, bg_scrolly_reg, bg_page_reg;
int fg_scrollx_reg, fg_scrolly_reg, fg_page_reg;
diff --git a/src/mame/includes/dogfgt.h b/src/mame/includes/dogfgt.h
index 0f823fab6a2..bd5a349127f 100644
--- a/src/mame/includes/dogfgt.h
+++ b/src/mame/includes/dogfgt.h
@@ -10,7 +10,7 @@ struct _dogfgt_state
UINT8 * bgvideoram;
UINT8 * spriteram;
UINT8 * sharedram;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/drgnmst.h b/src/mame/includes/drgnmst.h
index 29667d9c69c..d1ceaa47acf 100644
--- a/src/mame/includes/drgnmst.h
+++ b/src/mame/includes/drgnmst.h
@@ -10,7 +10,7 @@ struct _drgnmst_state
UINT16 * rowscrollram;
UINT16 * vidregs2;
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/equites.h b/src/mame/includes/equites.h
index 008a70068f1..057819ac9ec 100644
--- a/src/mame/includes/equites.h
+++ b/src/mame/includes/equites.h
@@ -12,7 +12,7 @@ struct _equites_state
UINT16 * spriteram_2;
UINT16 * workram;
UINT8 * mcu_ram; // 8bits
-// UINT16 * nvram; // currently this uses generic nvram handling
+// UINT16 * nvram; // currently this uses generic nvram handling
/* video-related */
tilemap *fg_tilemap, *bg_tilemap;
diff --git a/src/mame/includes/esd16.h b/src/mame/includes/esd16.h
index 46c1e5d2d18..9676d067660 100644
--- a/src/mame/includes/esd16.h
+++ b/src/mame/includes/esd16.h
@@ -16,7 +16,7 @@ struct _esd16_state
UINT16 * head_layersize;
UINT16 * headpanic_platform_x;
UINT16 * headpanic_platform_y;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/exedexes.h b/src/mame/includes/exedexes.h
index 4be783adb73..75dad062a33 100644
--- a/src/mame/includes/exedexes.h
+++ b/src/mame/includes/exedexes.h
@@ -14,7 +14,7 @@ struct _exedexes_state
UINT8 * bg_scroll;
UINT8 * nbg_yscroll;
UINT8 * nbg_xscroll;
-// UINT8 * spriteram; // currently this uses generic buffered_spriteram
+// UINT8 * spriteram; // currently this uses generic buffered_spriteram
/* video-related */
tilemap *bg_tilemap, *fg_tilemap, *tx_tilemap;
diff --git a/src/mame/includes/exprraid.h b/src/mame/includes/exprraid.h
index 0b0c8b0c815..81068896839 100644
--- a/src/mame/includes/exprraid.h
+++ b/src/mame/includes/exprraid.h
@@ -20,7 +20,7 @@ struct _exprraid_state
int bg_index[4];
/* misc */
- //int coin; // used in the commented out INTERRUPT_GEN - can this be removed?
+ //int coin; // used in the commented out INTERRUPT_GEN - can this be removed?
/* devices */
const device_config *maincpu;
diff --git a/src/mame/includes/fantland.h b/src/mame/includes/fantland.h
index 6a93b65a00b..efb5c1ff443 100644
--- a/src/mame/includes/fantland.h
+++ b/src/mame/includes/fantland.h
@@ -4,9 +4,9 @@ typedef struct _fantland_state fantland_state;
struct _fantland_state
{
/* memory pointers */
-// UINT8 * spriteram; // currently directly used in a 16bit map...
-// UINT8 * spriteram_2; // currently directly used in a 16bit map...
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * spriteram; // currently directly used in a 16bit map...
+// UINT8 * spriteram_2; // currently directly used in a 16bit map...
+// UINT8 * paletteram; // currently this uses generic palette handling
/* misc */
UINT8 nmi_enable;
diff --git a/src/mame/includes/fitfight.h b/src/mame/includes/fitfight.h
index f50ee702225..0814ba5ea7d 100644
--- a/src/mame/includes/fitfight.h
+++ b/src/mame/includes/fitfight.h
@@ -13,7 +13,7 @@ struct _fitfight_state
UINT16 * fof_mid_tileram;
UINT16 * fof_txt_tileram;
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
/* video-related */
tilemap *fof_bak_tilemap, *fof_mid_tilemap, *fof_txt_tilemap;
diff --git a/src/mame/includes/flstory.h b/src/mame/includes/flstory.h
index 2c24dd21319..9bf61e51d7e 100644
--- a/src/mame/includes/flstory.h
+++ b/src/mame/includes/flstory.h
@@ -7,8 +7,8 @@ struct _flstory_state
UINT8 * workram;
UINT8 * scrlram;
UINT8 * spriteram;
-// UINT8 * paletteram; // currently this uses generic palette handling
-// UINT8 * paletteram_2; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram_2; // currently this uses generic palette handling
size_t videoram_size;
size_t spriteram_size;
diff --git a/src/mame/includes/fuukifg2.h b/src/mame/includes/fuukifg2.h
index 0ef3a204038..f4a76dbd839 100644
--- a/src/mame/includes/fuukifg2.h
+++ b/src/mame/includes/fuukifg2.h
@@ -12,7 +12,7 @@ struct _fuuki16_state
UINT16 * priority;
UINT16 * unknown;
UINT16 * spriteram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t spriteram_size;
/* video-related */
diff --git a/src/mame/includes/tnzs.h b/src/mame/includes/tnzs.h
index b8f6f251fb6..89f5eafb4ef 100644
--- a/src/mame/includes/tnzs.h
+++ b/src/mame/includes/tnzs.h
@@ -24,7 +24,7 @@ struct _tnzs_state
UINT8 * scrollram;
UINT8 * objctrl;
UINT8 * bg_flag;
-// UINT8 * paletteram; // currently this uses generic palette handling
+// UINT8 * paletteram; // currently this uses generic palette handling
/* video-related */
int screenflip;
@@ -46,7 +46,7 @@ struct _tnzs_state
/* game-specific */
// champbwl
UINT8 last_trackball_val[2];
-// UINT8 * nvram; // currently this uses generic_nvram
+// UINT8 * nvram; // currently this uses generic_nvram
// cchance
UINT8 hop_io, bell_io;
diff --git a/src/mame/includes/yunsun16.h b/src/mame/includes/yunsun16.h
index a71b764a374..3b4f4ab4b02 100644
--- a/src/mame/includes/yunsun16.h
+++ b/src/mame/includes/yunsun16.h
@@ -1,6 +1,6 @@
/*************************************************************************
- Yun Sung 16 Bit Games
+ Yun Sung 16 Bit Games
*************************************************************************/
@@ -13,7 +13,7 @@ struct _yunsun16_state
UINT16 * scrollram_0;
UINT16 * scrollram_1;
UINT16 * priorityram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
UINT16 * spriteram;
size_t spriteram_size;
diff --git a/src/mame/includes/zerozone.h b/src/mame/includes/zerozone.h
index d922873bc58..ce78a54ecce 100644
--- a/src/mame/includes/zerozone.h
+++ b/src/mame/includes/zerozone.h
@@ -1,6 +1,6 @@
/*************************************************************************
- Zero Zone
+ Zero Zone
*************************************************************************/
@@ -9,7 +9,7 @@ struct _zerozone_state
{
/* memory pointers */
UINT16 * videoram;
-// UINT16 * paletteram; // currently this uses generic palette handling
+// UINT16 * paletteram; // currently this uses generic palette handling
size_t videoram_size;
/* video-related */
diff --git a/src/mame/machine/bigevglf.c b/src/mame/machine/bigevglf.c
index 01f58e39fc6..b4841b14c53 100644
--- a/src/mame/machine/bigevglf.c
+++ b/src/mame/machine/bigevglf.c
@@ -65,7 +65,7 @@ READ8_HANDLER( bigevglf_68705_port_c_r )
bigevglf_state *state = (bigevglf_state *)space->machine->driver_data;
state->port_c_in = 0;
- if (state->main_sent)
+ if (state->main_sent)
state->port_c_in |= 0x01;
if (state->mcu_sent)
state->port_c_in |= 0x02;
@@ -108,9 +108,9 @@ READ8_HANDLER( bigevglf_mcu_status_r )
bigevglf_state *state = (bigevglf_state *)space->machine->driver_data;
int res = 0;
- if (!state->main_sent)
+ if (!state->main_sent)
res |= 0x08;
- if (!state->mcu_sent)
+ if (!state->mcu_sent)
res |= 0x10;
return res;
diff --git a/src/mame/machine/btime.c b/src/mame/machine/btime.c
index 241679322a6..5f2b47d4fc0 100644
--- a/src/mame/machine/btime.c
+++ b/src/mame/machine/btime.c
@@ -12,11 +12,11 @@ READ8_HANDLER( mmonkey_protection_r )
if (offset == 0x0000)
ret = state->protection_status;
- else if (offset == 0x0e00)
+ else if (offset == 0x0e00)
ret = state->protection_ret;
else if (offset >= 0x0d00 && offset <= 0x0d02)
ret = RAM[BASE + offset]; /* addition result */
- else
+ else
logerror("Unknown protection read. PC=%04X Offset=%04X\n", cpu_get_pc(space->cpu), offset);
return ret;
@@ -88,7 +88,7 @@ WRITE8_HANDLER( mmonkey_protection_w )
RAM[BASE + offset] = data; /* decrypt table */
else if (offset >= 0x0d00 && offset <= 0x0d05)
RAM[BASE + offset] = data; /* source table */
- else
+ else
logerror("Unknown protection write=%02X. PC=%04X Offset=%04X\n", data, cpu_get_pc(space->cpu), offset);
}
diff --git a/src/mame/machine/bublbobl.c b/src/mame/machine/bublbobl.c
index 3439bb61fd4..3b4b2872e7a 100644
--- a/src/mame/machine/bublbobl.c
+++ b/src/mame/machine/bublbobl.c
@@ -94,9 +94,9 @@ static TIMER_CALLBACK( nmi_callback )
{
bublbobl_state *state = (bublbobl_state *)machine->driver_data;
- if (state->sound_nmi_enable)
+ if (state->sound_nmi_enable)
cpu_set_input_line(state->audiocpu, INPUT_LINE_NMI, PULSE_LINE);
- else
+ else
state->pending_nmi = 1;
}
diff --git a/src/mame/machine/docastle.c b/src/mame/machine/docastle.c
index 71e52dcd0db..e0eea5a4dfe 100644
--- a/src/mame/machine/docastle.c
+++ b/src/mame/machine/docastle.c
@@ -47,7 +47,7 @@ WRITE8_HANDLER( docastle_shared0_w )
{
docastle_state *state = (docastle_state *)space->machine->driver_data;
if (offset == 8) logerror("CPU #1 shared0w %02x %02x %02x %02x %02x %02x %02x %02x %02x clock = %d\n",
- state->buffer0[0], state->buffer0[1], state->buffer0[2], state->buffer0[3],
+ state->buffer0[0], state->buffer0[1], state->buffer0[2], state->buffer0[3],
state->buffer0[4], state->buffer0[5], state->buffer0[6], state->buffer0[7],
data, (UINT32)cpu_get_total_cycles(space->cpu));
@@ -67,7 +67,7 @@ WRITE8_HANDLER( docastle_shared1_w )
if (offset == 8)
{
logerror("CPU #0 shared1w %02x %02x %02x %02x %02x %02x %02x %02x %02x clock = %d\n",
- state->buffer1[0], state->buffer1[1], state->buffer1[2], state->buffer1[3],
+ state->buffer1[0], state->buffer1[1], state->buffer1[2], state->buffer1[3],
state->buffer1[4], state->buffer1[5], state->buffer1[6], state->buffer1[7],
data, (UINT32)cpu_get_total_cycles(space->cpu));
diff --git a/src/mame/machine/flstory.c b/src/mame/machine/flstory.c
index ba4f3b2e297..a80e0aaa490 100644
--- a/src/mame/machine/flstory.c
+++ b/src/mame/machine/flstory.c
@@ -94,10 +94,10 @@ READ8_HANDLER( flstory_68705_port_c_r )
flstory_state *state = (flstory_state *)space->machine->driver_data;
state->port_c_in = 0;
- if (state->main_sent)
+ if (state->main_sent)
state->port_c_in |= 0x01;
- if (!state->mcu_sent)
+ if (!state->mcu_sent)
state->port_c_in |= 0x02;
//logerror("%04x: 68705 port C read %02x\n", cpu_get_pc(space->cpu), port_c_in);
@@ -144,9 +144,9 @@ READ8_HANDLER( flstory_mcu_status_r )
/* bit 0 = when 1, mcu is ready to receive data from main cpu */
/* bit 1 = when 1, mcu has sent data to the main cpu */
//logerror("%04x: mcu_status_r\n", cpu_get_pc(space->cpu));
- if (!state->main_sent)
+ if (!state->main_sent)
res |= 0x01;
- if (state->mcu_sent)
+ if (state->mcu_sent)
res |= 0x02;
return res;
diff --git a/src/mame/machine/tnzs.c b/src/mame/machine/tnzs.c
index ab91d00431b..0ddefe86a15 100644
--- a/src/mame/machine/tnzs.c
+++ b/src/mame/machine/tnzs.c
@@ -276,7 +276,7 @@ static WRITE8_HANDLER( mcu_arknoid2_w )
{
/* set up coin/credit settings */
state->mcu_coinage[state->mcu_coinage_init++] = data;
- if (state->mcu_coinage_init == 4)
+ if (state->mcu_coinage_init == 4)
state->mcu_coinage_init = 0; /* must not happen */
}
@@ -286,7 +286,7 @@ static WRITE8_HANDLER( mcu_arknoid2_w )
if (data == 0x15)
{
state->mcu_credits = (state->mcu_credits - 1) & 0xff;
- if (state->mcu_credits == 0xff)
+ if (state->mcu_credits == 0xff)
state->mcu_credits = 0;
}
state->mcu_command = data;
@@ -412,7 +412,7 @@ static WRITE8_HANDLER( mcu_extrmatn_w )
{
/* set up coin/credit settings */
state->mcu_coinage[state->mcu_coinage_init++] = data;
- if (state->mcu_coinage_init == 4)
+ if (state->mcu_coinage_init == 4)
state->mcu_coinage_init = 0; /* must not happen */
}
@@ -676,8 +676,8 @@ MACHINE_START( tnzs )
memory_set_bank(machine, 1, 2);
memory_set_bank(machine, 2, 0);
- state->audiocpu = devtag_get_device(machine, "audiocpu");
- state->mcu = devtag_get_device(machine, "mcu");
+ state->audiocpu = devtag_get_device(machine, "audiocpu");
+ state->mcu = devtag_get_device(machine, "mcu");
state_save_register_global(machine, state->screenflip);
state_save_register_global(machine, state->kageki_csport_sel);
@@ -703,7 +703,7 @@ MACHINE_START( jpopnics )
memory_configure_bank(machine, 1, 0, 8, &ROM[0x10000], 0x4000);
memory_configure_bank(machine, 2, 0, 4, &SUB[0x10000], 0x2000);
- state->mcu = NULL;
+ state->mcu = NULL;
state_save_register_global(machine, state->screenflip);
}
diff --git a/src/mame/video/actfancr.c b/src/mame/video/actfancr.c
index d73f1db7668..af94b2af1cf 100644
--- a/src/mame/video/actfancr.c
+++ b/src/mame/video/actfancr.c
@@ -125,7 +125,7 @@ WRITE8_HANDLER( actfancr_pf1_data_w )
actfancr_state *state = (actfancr_state *)space->machine->driver_data;
state->pf1_data[offset] = data;
tilemap_mark_tile_dirty(state->pf1_tilemap, offset / 2);
- if (state->pf1_alt_tilemap)
+ if (state->pf1_alt_tilemap)
tilemap_mark_tile_dirty(state->pf1_alt_tilemap, offset / 2);
}
@@ -178,13 +178,13 @@ VIDEO_UPDATE( actfancr )
int x, y, sprite, colour, multi, fx, fy, inc, flash;
y = buffered_spriteram[offs] + (buffered_spriteram[offs + 1] << 8);
- if ((y & 0x8000) == 0)
+ if ((y & 0x8000) == 0)
continue;
x = buffered_spriteram[offs + 4] + (buffered_spriteram[offs + 5] << 8);
colour = ((x & 0xf000) >> 12);
flash = x & 0x800;
- if (flash && (video_screen_get_frame_number(screen) & 1))
+ if (flash && (video_screen_get_frame_number(screen) & 1))
continue;
fx = y & 0x2000;
@@ -211,7 +211,7 @@ VIDEO_UPDATE( actfancr )
inc = 1;
}
- if (state->flipscreen)
+ if (state->flipscreen)
{
y = 240 - y;
x = 240 - x;
@@ -248,14 +248,14 @@ VIDEO_UPDATE( triothep )
state->flipscreen = state->control_2[0] & 0x80;
tilemap_set_flip_all(screen->machine, state->flipscreen ? (TILEMAP_FLIPY | TILEMAP_FLIPX) : 0);
- if (state->control_2[0] & 0x4)
+ if (state->control_2[0] & 0x4)
{
tilemap_set_scroll_rows(state->pf1_tilemap, 32);
tilemap_set_scrolly(state->pf1_tilemap, 0, scrolly);
for (i = 0; i < 32; i++)
tilemap_set_scrollx(state->pf1_tilemap, i, scrollx + (state->pf1_rowscroll_data[i * 2] | state->pf1_rowscroll_data[i * 2 + 1] << 8) );
}
- else
+ else
{
tilemap_set_scroll_rows(state->pf1_tilemap, 1);
tilemap_set_scrollx(state->pf1_tilemap, 0, scrollx);
@@ -270,13 +270,13 @@ VIDEO_UPDATE( triothep )
int x, y, sprite, colour, multi, fx, fy, inc, flash;
y = buffered_spriteram[offs] + (buffered_spriteram[offs + 1] << 8);
- if ((y & 0x8000) == 0)
+ if ((y & 0x8000) == 0)
continue;
x = buffered_spriteram[offs + 4] + (buffered_spriteram[offs + 5] << 8);
colour = ((x & 0xf000) >> 12);
flash = x & 0x800;
- if (flash && (video_screen_get_frame_number(screen) & 1))
+ if (flash && (video_screen_get_frame_number(screen) & 1))
continue;
fx = y & 0x2000;
@@ -303,7 +303,7 @@ VIDEO_UPDATE( triothep )
inc = 1;
}
- if (state->flipscreen)
+ if (state->flipscreen)
{
y = 240 - y;
x = 240 - x;
diff --git a/src/mame/video/aquarium.c b/src/mame/video/aquarium.c
index c5052ce64d5..0288ffbec79 100644
--- a/src/mame/video/aquarium.c
+++ b/src/mame/video/aquarium.c
@@ -62,14 +62,14 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
{
if (flipy)
cury -= 16;
- else
+ else
cury += 16;
}
else /* X chain */
{
- if (flipx)
+ if (flipx)
curx -= 16;
- else
+ else
curx += 16;
}
}
diff --git a/src/mame/video/armedf.c b/src/mame/video/armedf.c
index 49f83eba310..5bd86e5c7e0 100644
--- a/src/mame/video/armedf.c
+++ b/src/mame/video/armedf.c
@@ -237,7 +237,7 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
int sx = buffered_spriteram[offs + 3];
int sy = state->sprite_offy + 240 - (buffered_spriteram[offs + 0] & 0x1ff);
- if (flip_screen_get(machine))
+ if (flip_screen_get(machine))
{
sx = 320 - sx + 176; /* don't ask where 176 comes from, just tried it out */
sy = 240 - sy + 1; /* don't ask where 1 comes from, just tried it out */
@@ -267,17 +267,17 @@ VIDEO_UPDATE( armedf )
tilemap_set_enable(state->fg_tilemap, state->vreg & 0x400);
tilemap_set_enable(state->tx_tilemap, state->vreg & 0x100);
- if ((state->scroll_type == 0)||(state->scroll_type == 5 ))
+ if ((state->scroll_type == 0)||(state->scroll_type == 5 ))
{
- if (state->old_mcu_mode != state->mcu_mode)
+ if (state->old_mcu_mode != state->mcu_mode)
{
- if ((state->mcu_mode & 0x000f) == 0x0004)
+ if ((state->mcu_mode & 0x000f) == 0x0004)
{ // transparent tx
tilemap_set_transparent_pen(state->tx_tilemap, 0x0f);
tilemap_mark_all_tiles_dirty(state->tx_tilemap);
//logerror("? Transparent TX 0x0f\n");
}
- if ((state->mcu_mode & 0x000f) == 0x000f)
+ if ((state->mcu_mode & 0x000f) == 0x000f)
{ // opaque tx
tilemap_set_transparent_pen(state->tx_tilemap, 0x10);
tilemap_mark_all_tiles_dirty(state->tx_tilemap);
@@ -328,7 +328,7 @@ VIDEO_UPDATE( armedf )
bitmap_fill(bitmap, cliprect , 0xff);
- if (state->vreg & 0x0800)
+ if (state->vreg & 0x0800)
tilemap_draw(bitmap, cliprect, state->bg_tilemap, 0, 0);
/*
if(state->vreg & 0x0800)
@@ -340,27 +340,27 @@ VIDEO_UPDATE( armedf )
bitmap_fill(bitmap, cliprect , get_black_pen(screen->machine) & 0x0f);
}*/
- if ((state->mcu_mode & 0x0030) == 0x0030)
+ if ((state->mcu_mode & 0x0030) == 0x0030)
tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0);
- if (sprite_enable)
+ if (sprite_enable)
draw_sprites(screen->machine, bitmap, cliprect, 2);
- if ((state->mcu_mode & 0x0030) == 0x0020)
+ if ((state->mcu_mode & 0x0030) == 0x0020)
tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0);
tilemap_draw(bitmap, cliprect, state->fg_tilemap, 0, 0);
- if ((state->mcu_mode & 0x0030) == 0x0010)
+ if ((state->mcu_mode & 0x0030) == 0x0010)
tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0);
- if (sprite_enable)
+ if (sprite_enable)
draw_sprites(screen->machine, bitmap, cliprect, 1);
- if ((state->mcu_mode & 0x0030) == 0x0000)
+ if ((state->mcu_mode & 0x0030) == 0x0000)
tilemap_draw(bitmap, cliprect, state->tx_tilemap, 0, 0);
- if (sprite_enable)
+ if (sprite_enable)
draw_sprites(screen->machine, bitmap, cliprect, 0);
return 0;
diff --git a/src/mame/video/blktiger.c b/src/mame/video/blktiger.c
index 201a52c06b6..48f62839b53 100644
--- a/src/mame/video/blktiger.c
+++ b/src/mame/video/blktiger.c
@@ -196,7 +196,7 @@ WRITE8_HANDLER( blktiger_screen_layout_w )
static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect )
{
-// blktiger_state *state = (blktiger_state *)machine->driver_data;
+// blktiger_state *state = (blktiger_state *)machine->driver_data;
UINT8 *buffered_spriteram = machine->generic.buffered_spriteram.u8;
int offs;
diff --git a/src/mame/video/blockout.c b/src/mame/video/blockout.c
index 2642ebd1fb7..14b0c5c0588 100644
--- a/src/mame/video/blockout.c
+++ b/src/mame/video/blockout.c
@@ -83,16 +83,16 @@ static void update_pixels( running_machine *machine, int x, int y )
front = state->videoram[y * 256 + x / 2];
back = state->videoram[0x10000 + y * 256 + x / 2];
- if (front >> 8)
+ if (front >> 8)
color = front >> 8;
- else
+ else
color = (back >> 8) + 256;
*BITMAP_ADDR16(state->tmpbitmap, y, x) = color;
- if (front & 0xff)
+ if (front & 0xff)
color = front & 0xff;
- else
+ else
color = (back & 0xff) + 256;
*BITMAP_ADDR16(state->tmpbitmap, y, x + 1) = color;
diff --git a/src/mame/video/btime.c b/src/mame/video/btime.c
index ffd2b9926a4..18717f3039a 100644
--- a/src/mame/video/btime.c
+++ b/src/mame/video/btime.c
@@ -218,7 +218,7 @@ WRITE8_HANDLER( btime_mirrorcolorram_w )
WRITE8_HANDLER( deco_charram_w )
{
btime_state *state = (btime_state *)space->machine->driver_data;
- if (state->deco_charram[offset] == data)
+ if (state->deco_charram[offset] == data)
return;
state->deco_charram[offset] = data;
@@ -312,7 +312,7 @@ static void draw_chars( running_machine *machine, bitmap_t *bitmap, const rectan
UINT16 code = state->videoram[offs] + 256 * (state->colorram[offs] & 3);
/* check priority */
- if ((priority != -1) && (priority != ((code >> 7) & 0x01)))
+ if ((priority != -1) && (priority != ((code >> 7) & 0x01)))
continue;
if (flip_screen_get(machine))
@@ -394,9 +394,9 @@ static void draw_background( running_machine *machine, bitmap_t *bitmap, const r
offs_t tileoffset = tmap[i & 3] * 0x100;
// Skip if this tile is completely off the screen
- if (scroll > 256)
+ if (scroll > 256)
break;
- if (scroll < -256)
+ if (scroll < -256)
continue;
for (offs = 0; offs < 0x100; offs++)
@@ -525,7 +525,7 @@ VIDEO_UPDATE( bnj )
copyscrollbitmap(bitmap, state->background_bitmap, 1, &scroll, 0, 0, cliprect);
/* copy the low priority characters followed by the sprites
- then the high priority characters */
+ then the high priority characters */
draw_chars(screen->machine, bitmap, cliprect, TRUE, 0, 1);
draw_sprites(screen->machine, bitmap, cliprect, 0, 0, 0, state->videoram, 0x20);
draw_chars(screen->machine, bitmap, cliprect, TRUE, 0, 0);
diff --git a/src/mame/video/bublbobl.c b/src/mame/video/bublbobl.c
index cd8c33a04f8..77afe40c5e7 100644
--- a/src/mame/video/bublbobl.c
+++ b/src/mame/video/bublbobl.c
@@ -27,7 +27,7 @@ VIDEO_UPDATE( bublbobl )
/* This clears & redraws the entire screen each pass */
bitmap_fill(bitmap, cliprect, 255);
- if (!state->video_enable)
+ if (!state->video_enable)
return 0;
sx = 0;
diff --git a/src/mame/video/bwing.c b/src/mame/video/bwing.c
index 9addfd814bc..7221b68c2b9 100644
--- a/src/mame/video/bwing.c
+++ b/src/mame/video/bwing.c
@@ -55,16 +55,16 @@ const gfx_layout bwing_tilelayout =
};
-WRITE8_HANDLER( bwing_spriteram_w )
-{
- space->machine->generic.buffered_spriteram.u8[offset] = data;
+WRITE8_HANDLER( bwing_spriteram_w )
+{
+ space->machine->generic.buffered_spriteram.u8[offset] = data;
}
-WRITE8_HANDLER( bwing_videoram_w )
-{
+WRITE8_HANDLER( bwing_videoram_w )
+{
bwing_state *state = (bwing_state *)space->machine->driver_data;
- state->videoram[offset] = data;
- tilemap_mark_tile_dirty(state->charmap, offset);
+ state->videoram[offset] = data;
+ tilemap_mark_tile_dirty(state->charmap, offset);
}
@@ -73,7 +73,7 @@ READ8_HANDLER ( bwing_scrollram_r )
bwing_state *state = (bwing_state *)space->machine->driver_data;
int offs;
- if (!state->srbank)
+ if (!state->srbank)
offs = state->srxlat[offset];
else
offs = offset;
@@ -137,9 +137,9 @@ WRITE8_HANDLER( bwing_scrollreg_w )
WRITE8_HANDLER( bwing_paletteram_w )
{
bwing_state *state = (bwing_state *)space->machine->driver_data;
- static const float rgb[4][3] = {{0.85f, 0.95f, 1.00f},
- {0.90f, 1.00f, 1.00f},
- {0.80f, 1.00f, 1.00f},
+ static const float rgb[4][3] = {{0.85f, 0.95f, 1.00f},
+ {0.90f, 1.00f, 1.00f},
+ {0.80f, 1.00f, 1.00f},
{0.75f, 0.90f, 1.10f}};
int r, g, b, i;
@@ -220,23 +220,23 @@ VIDEO_START( bwing )
state->fgdata = memory_region(machine, "gpu");
state->bgdata = state->fgdata + 0x1000;
- for (i = 0; i < 4; i++)
+ for (i = 0; i < 4; i++)
state->srbase[i] = state->fgdata + i * 0x2000;
- for (i = 0; i < 8; i++)
+ for (i = 0; i < 8; i++)
state->sreg[i] = 0;
-// state->fgfx = machine->gfx[2];
+// state->fgfx = machine->gfx[2];
gfx_element_set_source(machine->gfx[2], state->srbase[1]);
-// state->bgfx = machine->gfx[3];
+// state->bgfx = machine->gfx[3];
gfx_element_set_source(machine->gfx[3], state->srbase[1] + 0x1000);
dwptr = machine->gfx[2]->pen_usage;
if (dwptr)
{
dwptr[0] = 0;
- for(i = 1; i < BW_NTILES; i++)
+ for(i = 1; i < BW_NTILES; i++)
dwptr[i] = -1;
}
}
@@ -258,7 +258,7 @@ static void draw_sprites( running_machine *machine, bitmap_t *bmp, const rectang
x = ram[i + 3];
color = (attrib >> 3) & 1;
- if (!(attrib & 1) || color != pri)
+ if (!(attrib & 1) || color != pri)
continue;
code += (attrib << 3) & 0x100;
@@ -269,12 +269,12 @@ static void draw_sprites( running_machine *machine, bitmap_t *bmp, const rectang
fy = ~attrib & 0x02;
// normal/cocktail
- if (state->mapmask & 0x20)
- {
- fx = !fx;
- fy = !fy;
- x = 240 - x;
- y = 240 - y;
+ if (state->mapmask & 0x20)
+ {
+ fx = !fx;
+ fy = !fy;
+ x = 240 - x;
+ y = 240 - y;
}
// single/double
@@ -292,14 +292,14 @@ VIDEO_UPDATE( bwing )
unsigned x, y, shiftx;
if (state->mapmask & 0x20)
- {
- state->mapflip = TILEMAP_FLIPX;
- shiftx = -8;
+ {
+ state->mapflip = TILEMAP_FLIPX;
+ shiftx = -8;
}
else
- {
- state->mapflip = TILEMAP_FLIPY;
- shiftx = 8;
+ {
+ state->mapflip = TILEMAP_FLIPY;
+ shiftx = 8;
}
// draw background
diff --git a/src/mame/video/cop01.c b/src/mame/video/cop01.c
index f3bcc9c111b..b042409ede4 100644
--- a/src/mame/video/cop01.c
+++ b/src/mame/video/cop01.c
@@ -77,7 +77,7 @@ static TILE_GET_INFO( get_bg_tile_info )
* the screen right at the beginning of mightguy. cop01 doesn't seem to
* use priority at all.
*/
- if (attr & 0x10)
+ if (attr & 0x10)
pri = 0;
SET_TILE_INFO(1, tile + ((attr & 0x03) << 8), (attr & 0x1c) >> 2, 0);
diff --git a/src/mame/video/copsnrob.c b/src/mame/video/copsnrob.c
index 8356f3069b0..afb05d073c9 100644
--- a/src/mame/video/copsnrob.c
+++ b/src/mame/video/copsnrob.c
@@ -110,7 +110,7 @@ VIDEO_UPDATE( copsnrob )
val = state->bulletsram[x];
// Check for the most common case
- if (!(val & 0x0f))
+ if (!(val & 0x0f))
continue;
mask1 = 0x01;
diff --git a/src/mame/video/crospang.c b/src/mame/video/crospang.c
index 0fd50f20721..edb60d81050 100644
--- a/src/mame/video/crospang.c
+++ b/src/mame/video/crospang.c
@@ -151,12 +151,12 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
int x, y, sprite, colour, multi, fx, fy, inc, flash, mult;
sprite = state->spriteram[offs + 1] & 0x7fff;
- if (!sprite)
+ if (!sprite)
continue;
y = state->spriteram[offs];
flash = y & 0x1000;
- if (flash && (video_screen_get_frame_number(machine->primary_screen) & 1))
+ if (flash && (video_screen_get_frame_number(machine->primary_screen) & 1))
continue;
x = state->spriteram[offs + 2];
@@ -190,7 +190,7 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
if (fy) fy = 0; else fy = 1;
mult = 16;
}
- else
+ else
mult = -16;
while (multi >= 0)
diff --git a/src/mame/video/ddragon.c b/src/mame/video/ddragon.c
index c5713566dfb..3c1ee07155a 100644
--- a/src/mame/video/ddragon.c
+++ b/src/mame/video/ddragon.c
@@ -164,10 +164,10 @@ static void draw_sprites( running_machine* machine, bitmap_t *bitmap,const recta
if (state->technos_video_hw == 1) /* China Gate Sprite RAM */
src = (UINT8 *) (state->spriteram);
- else
+ else
src = (UINT8 *) (&(state->spriteram[0x800]));
- for (i = 0; i < (64 * 5); i += 5)
+ for (i = 0; i < (64 * 5); i += 5)
{
int attr = src[i + 1];
if (attr & 0x80) /* visible */
@@ -210,7 +210,7 @@ static void draw_sprites( running_machine* machine, bitmap_t *bitmap,const recta
which &= ~size;
- switch (size)
+ switch (size)
{
case 0: /* normal */
DRAW_SPRITE(0, sx, sy);
diff --git a/src/mame/video/deniam.c b/src/mame/video/deniam.c
index 0662c637a87..e115c94eb11 100644
--- a/src/mame/video/deniam.c
+++ b/src/mame/video/deniam.c
@@ -383,7 +383,7 @@ VIDEO_UPDATE( deniam )
int bg_scrollx, bg_scrolly, fg_scrollx, fg_scrolly;
int page;
- if (!state->display_enable)
+ if (!state->display_enable)
return 0; /* don't update (freeze display) */
bg_scrollx = state->textram[state->bg_scrollx_reg] - state->bg_scrollx_offs;
diff --git a/src/mame/video/dooyong.c b/src/mame/video/dooyong.c
index 817fff371c3..d42a1b6cc65 100644
--- a/src/mame/video/dooyong.c
+++ b/src/mame/video/dooyong.c
@@ -439,7 +439,7 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
static void rshark_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
{
UINT16 *buffered_spriteram16 = machine->generic.buffered_spriteram.u16;
-
+
/* Sprites take 8 16-bit words each in memory:
MSB LSB
[offs + 0] ???? ???? ???? ???E
diff --git a/src/mame/video/drgnmst.c b/src/mame/video/drgnmst.c
index d2b7a7ab7f1..07930c87640 100644
--- a/src/mame/video/drgnmst.c
+++ b/src/mame/video/drgnmst.c
@@ -90,9 +90,9 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap,const recta
if (!flipy) { incy = 16;} else { incy = -16; ypos += 16 * high; }
- for (y = 0; y <= high; y++)
+ for (y = 0; y <= high; y++)
{
- for (x = 0; x <= wide; x++)
+ for (x = 0; x <= wide; x++)
{
int realx, realy, realnumber;
diff --git a/src/mame/video/esd16.c b/src/mame/video/esd16.c
index 845b123b369..8cd3afd56b5 100644
--- a/src/mame/video/esd16.c
+++ b/src/mame/video/esd16.c
@@ -210,7 +210,7 @@ static void esd16_draw_sprites( running_machine *machine, bitmap_t *bitmap, cons
int pri_mask;
- if (flash && (video_screen_get_frame_number(machine->primary_screen) & 1))
+ if (flash && (video_screen_get_frame_number(machine->primary_screen) & 1))
continue;
if (sx & 0x8000)
@@ -283,7 +283,7 @@ static void hedpanic_draw_sprites( running_machine *machine, bitmap_t *bitmap, c
pri_mask = 0; // above everything
sx = sx & 0x1ff;
- if (sx >= 0x180)
+ if (sx >= 0x180)
sx -= 0x200;
sy &= 0x1ff;
@@ -343,7 +343,7 @@ if (input_code_pressed(screen->machine, KEYCODE_Z))
if (input_code_pressed(screen->machine, KEYCODE_Q)) msk |= 1;
if (input_code_pressed(screen->machine, KEYCODE_W)) msk |= 2;
if (input_code_pressed(screen->machine, KEYCODE_A)) msk |= 4;
- if (msk != 0) layers_ctrl &= msk;
+ if (msk != 0) layers_ctrl &= msk;
}
#endif
@@ -434,7 +434,7 @@ if ( input_code_pressed(screen->machine, KEYCODE_Z) )
if (input_code_pressed(screen->machine, KEYCODE_Q)) msk |= 1;
if (input_code_pressed(screen->machine, KEYCODE_W)) msk |= 2;
if (input_code_pressed(screen->machine, KEYCODE_A)) msk |= 4;
- if (msk != 0) layers_ctrl &= msk;
+ if (msk != 0) layers_ctrl &= msk;
}
#endif
diff --git a/src/mame/video/exedexes.c b/src/mame/video/exedexes.c
index ec7c21d7112..a083db95aed 100644
--- a/src/mame/video/exedexes.c
+++ b/src/mame/video/exedexes.c
@@ -190,7 +190,7 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
UINT8 *buffered_spriteram = machine->generic.buffered_spriteram.u8;
int offs;
- if (!state->objon)
+ if (!state->objon)
return;
priority = priority ? 0x40 : 0x00;
diff --git a/src/mame/video/fitfight.c b/src/mame/video/fitfight.c
index f6b77dcd1d4..712bdebb38a 100644
--- a/src/mame/video/fitfight.c
+++ b/src/mame/video/fitfight.c
@@ -23,7 +23,7 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
prio = (source[1] & 0x0400) >> 10;
colr = (source[1] & 0x00fc) >> 2;
- if (state->bbprot_kludge == 1)
+ if (state->bbprot_kludge == 1)
colr = (source[1] & 0x00f8) >> 3;
end = source[0] & 0x8000;
diff --git a/src/mame/video/funybubl.c b/src/mame/video/funybubl.c
index 2805ac913d6..788e28f66b9 100644
--- a/src/mame/video/funybubl.c
+++ b/src/mame/video/funybubl.c
@@ -17,7 +17,7 @@ WRITE8_HANDLER ( funybubl_paldatawrite )
state->paletteram[offset] = data;
colchanged = offset >> 2;
- coldat = state->paletteram[colchanged * 4] | (state->paletteram[colchanged * 4 + 1] << 8) |
+ coldat = state->paletteram[colchanged * 4] | (state->paletteram[colchanged * 4 + 1] << 8) |
(state->paletteram[colchanged * 4 + 2] << 16) | (state->paletteram[colchanged * 4 + 3] << 24);
palette_set_color_rgb(space->machine, colchanged, pal6bit(coldat >> 12), pal6bit(coldat >> 0), pal6bit(coldat >> 6));
@@ -59,9 +59,9 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
xpos = source[3];
tile = source[0] | ( (source[1] & 0x0f) << 8);
if (source[1] & 0x80) tile += 0x1000;
- if (source[1] & 0x20)
+ if (source[1] & 0x20)
{
- if (xpos < 0xe0)
+ if (xpos < 0xe0)
xpos += 0x100;
}
diff --git a/src/mame/video/fuukifg2.c b/src/mame/video/fuukifg2.c
index c2bff3e32be..492166a1b1f 100644
--- a/src/mame/video/fuukifg2.c
+++ b/src/mame/video/fuukifg2.c
@@ -182,7 +182,7 @@ static void draw_sprites( const device_config *screen, bitmap_t *bitmap, const r
if (flip_screen_get(screen->machine))
{
flipx = !flipx; sx = max_x - sx - xnum * 16;
- flipy = !flipy; sy = max_y - sy - ynum * 16;
+ flipy = !flipy; sy = max_y - sy - ynum * 16;
}
if (flipx) { xstart = xnum-1; xend = -1; xinc = -1; }
diff --git a/src/mame/video/hng64.c b/src/mame/video/hng64.c
index 92369150898..f291299e91d 100644
--- a/src/mame/video/hng64.c
+++ b/src/mame/video/hng64.c
@@ -1459,8 +1459,8 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
if ((tileregs & 0x1800)==0x1000) // floor mode
{
/* Floor mode - per pixel simple / complex modes? -- every other line?
- (there doesn't seem to be enough data in Buriki for every line at least)
- */
+ (there doesn't seem to be enough data in Buriki for every line at least)
+ */
if ((tileregs&0xf000) == 0x1000)
{
popmessage("Floor is Active");
@@ -1480,17 +1480,17 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
{
/* complex zoom mode? */
/* with this scroll register layout rotation effects are possible
- the most obvious use of rotation is the Buriki One logo after
- attract mode; the text around the outside of the logo is rotated
- onto the screen
+ the most obvious use of rotation is the Buriki One logo after
+ attract mode; the text around the outside of the logo is rotated
+ onto the screen
- see 1:32 in http://www.youtube.com/watch?v=PoYaHOILuGs
+ see 1:32 in http://www.youtube.com/watch?v=PoYaHOILuGs
- Xtreme Rally seems to have an issue with this mode on the communication check
- screen at startup, but according to videos that should scroll, and no scroll
- values are updated, so it might be an unrelated bug.
+ Xtreme Rally seems to have an issue with this mode on the communication check
+ screen at startup, but according to videos that should scroll, and no scroll
+ values are updated, so it might be an unrelated bug.
- */
+ */
INT32 xtopleft,xmiddle, xalt;
INT32 ytopleft,ymiddle, yalt;
@@ -1584,8 +1584,8 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
{
/* simple zoom mode? - only 4 regs? */
/* in this mode they can only specify the top left and middle screen points for each tilemap,
- this allows simple zooming, but not rotation
- */
+ this allows simple zooming, but not rotation
+ */
INT32 xtopleft,xmiddle;
@@ -1603,9 +1603,9 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
if (hng64_videoregs[0x00]&0x00010000) // disable all scrolling / zoom (test screen) (maybe)
{
/* If this bit is active the scroll registers don't seem valid at all?
- It either disables zooming, or disables use of the scroll registers completely
- - used at startup
- */
+ It either disables zooming, or disables use of the scroll registers completely
+ - used at startup
+ */
xtopleft = 0;
xmiddle = 256<<16;
@@ -1689,7 +1689,7 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
* -------+-1098-7654-3210-9876-5432-1098-7654-3210-+----------------
* 0 | ---- -C-- ---- -??Z ---- ---- ---- ---- | unknown (scroll control?) C = Global Complex zoom, ? = Always Set?, Z = Global Zoom Disable?
0000 0011 - road edge alt 1
- 0000 0111 - road edge alt 2
+ 0000 0111 - road edge alt 2
* 1 | xxxx xxxx xxxx xxxx ---- ---- ---- ---- | looks like it's 0001 most (all) of the time - turns off in buriki intro
* 1 | ---- ---- ---- ---- oooo oooo oooo oooo | unknown - always seems to be 0000 (fatfurwa)
* 2 | xxxx xxxx xxxx xxxx ---- ---- ---- ---- | tilemap0 per layer flags
@@ -1710,26 +1710,26 @@ static void hng64_drawtilemap(running_machine* machine, bitmap_t *bitmap, const
* d | oooo oooo oooo oooo oooo oooo oooo oooo | not used ??
* e | oooo oooo oooo oooo oooo oooo oooo oooo | not used ??
- per tile regs (0x2/0x3)
-
- // tilemap0 per layer flags
- // 0840 - startup tests, 8x8x4 layer
- // 0cc0 - beast busters 2, 8x8x8 layer
- // 0860 - fatal fury wa
- // 08e0 - fatal fury wa during transitions
- // 0940 - samurai shodown 64
- // 0880 - buriki
-
- // mmml dbr? ???? ????
- // m = mosaic related? (xrally, l maybe too)
- // l = floor effects / linescroll enable (buriki on tilemap1, fatal fury on tilemap3) - also enables for rotating logo on buriki ?!
- // r = tile size (seems correct)
- // b = 4bpp/8bpp (seems correct) (beast busters, samsh64, sasm64 2, xrally switch it for some screens)
- // d = floor / mosaic toggle
- // when d = 0 then l = floor enable
- // when d = 1 then l = lower part of mosaic?
- // (buriki one floor vs. 2nd game logo sequence seems a good example)
- // could have other meanings too?
+ per tile regs (0x2/0x3)
+
+ // tilemap0 per layer flags
+ // 0840 - startup tests, 8x8x4 layer
+ // 0cc0 - beast busters 2, 8x8x8 layer
+ // 0860 - fatal fury wa
+ // 08e0 - fatal fury wa during transitions
+ // 0940 - samurai shodown 64
+ // 0880 - buriki
+
+ // mmml dbr? ???? ????
+ // m = mosaic related? (xrally, l maybe too)
+ // l = floor effects / linescroll enable (buriki on tilemap1, fatal fury on tilemap3) - also enables for rotating logo on buriki ?!
+ // r = tile size (seems correct)
+ // b = 4bpp/8bpp (seems correct) (beast busters, samsh64, sasm64 2, xrally switch it for some screens)
+ // d = floor / mosaic toggle
+ // when d = 0 then l = floor enable
+ // when d = 1 then l = lower part of mosaic?
+ // (buriki one floor vs. 2nd game logo sequence seems a good example)
+ // could have other meanings too?
*/
diff --git a/src/mame/video/model1.c b/src/mame/video/model1.c
index 30b68d79949..11bc5c02ff5 100644
--- a/src/mame/video/model1.c
+++ b/src/mame/video/model1.c
@@ -1438,7 +1438,7 @@ static void tgp_scan(void)
VIDEO_START(model1)
{
paletteram16 = machine->generic.paletteram.u16;
-
+
vxx=vyy=vzz=0;
ayy = 0;
diff --git a/src/mame/video/n64.c b/src/mame/video/n64.c
index 89853da720b..5403a072be7 100644
--- a/src/mame/video/n64.c
+++ b/src/mame/video/n64.c
@@ -5159,16 +5159,16 @@ static RDP_COMMAND( rdp_load_tlut )
break;
}
/*
- case PIXEL_SIZE_16BIT:
- {
- UINT16 *src = (UINT16*)&rdram[(ti_address + (tl >> 2) * (ti_width << 1) + (sl >> 1)) >> 2];
+ case PIXEL_SIZE_16BIT:
+ {
+ UINT16 *src = (UINT16*)&rdram[(ti_address + (tl >> 2) * (ti_width << 1) + (sl >> 1)) >> 2];
- for (i = (sl >> 2); i <= (sh >> 2); i++)
- {
- tlut[i] = src[i];
- }
- break;
- }*/
+ for (i = (sl >> 2); i <= (sh >> 2); i++)
+ {
+ tlut[i] = src[i];
+ }
+ break;
+ }*/
default: stricterror("RDP: load_tlut: size = %d\n", ti_size);
}
diff --git a/src/mame/video/portrait.c b/src/mame/video/portrait.c
index 8b8f69b8ea5..a641c6453e9 100644
--- a/src/mame/video/portrait.c
+++ b/src/mame/video/portrait.c
@@ -83,27 +83,27 @@ PALETTE_INIT( portrait )
machine->colortable = colortable_alloc(machine, 0x40);
/*
- for (i = 0;i < 0x40;i++)
- {
- int r,g,b,data;
- data = color_prom[0];
-
-
- r = (data >> 0) & 0x7;
- g = (data >> 3) & 0x3;
- b = (data >> 5) & 0x7;
+ for (i = 0;i < 0x40;i++)
+ {
+ int r,g,b,data;
+ data = color_prom[0];
- colortable_palette_set_color(machine->colortable, i, MAKE_RGB(pal3bit(r), pal2bit(g), pal3bit(b)));
- color_prom++;
- }
+ r = (data >> 0) & 0x7;
+ g = (data >> 3) & 0x3;
+ b = (data >> 5) & 0x7;
+
+ colortable_palette_set_color(machine->colortable, i, MAKE_RGB(pal3bit(r), pal2bit(g), pal3bit(b)));
+
+ color_prom++;
+ }
*/
for (i=0;i<0x20;i++)
{
int r,g,b,data;
data = (color_prom[0]<<0) | (color_prom[0x20]<<8);
-
+
r = (data >> 0) & 0x1f;
g = (data >> 5) & 0x1f;
b = (data >> 10) & 0x1f;
@@ -113,7 +113,7 @@ PALETTE_INIT( portrait )
// ?? the lookup seems to reference 0x3f colours, unless 1 bit is priority or similar?
colortable_palette_set_color(machine->colortable, i+0x20, MAKE_RGB(pal5bit(r>>1), pal5bit(g>>1), pal5bit(b>>1)));
- color_prom++;
+ color_prom++;
}
@@ -142,9 +142,9 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
* -----x-- msb source[1]
*/
int tilenum = source[3];
-
+
int color = ((tilenum&0xff)>>1)+0x00;
-
+
int fy = attr & 0x20;
if(attr & 0x04) sx |= 0x100;
diff --git a/src/mame/video/tnzs.c b/src/mame/video/tnzs.c
index 102a1b49917..439d60864a3 100644
--- a/src/mame/video/tnzs.c
+++ b/src/mame/video/tnzs.c
@@ -71,7 +71,7 @@ static void draw_background( running_machine *machine, bitmap_t *bitmap, const r
/* f301 controls how many columns are drawn. */
tot = state->objctrl[1] & 0x1f;
- if (tot == 1)
+ if (tot == 1)
tot = 16;
upperbits = state->objctrl[2] + state->objctrl[3] * 256;
diff --git a/src/mame/video/yunsun16.c b/src/mame/video/yunsun16.c
index c94774e44bd..b4052554b00 100644
--- a/src/mame/video/yunsun16.c
+++ b/src/mame/video/yunsun16.c
@@ -157,7 +157,7 @@ static void draw_sprites( running_machine *machine, bitmap_t *bitmap, const rect
pri_mask = (1 << 2) | (1 << 3);
break;
case 3:
- default:
+ default:
pri_mask = 0;
break;
}
diff --git a/src/mame/video/zerozone.c b/src/mame/video/zerozone.c
index 1648322b282..ea4c6d40c0c 100644
--- a/src/mame/video/zerozone.c
+++ b/src/mame/video/zerozone.c
@@ -31,7 +31,7 @@ static TILE_GET_INFO( get_zerozone_tile_info )
int tileno = state->videoram[tile_index] & 0x07ff;
int colour = state->videoram[tile_index] & 0xf000;
- if (state->videoram[tile_index] & 0x0800)
+ if (state->videoram[tile_index] & 0x0800)
tileno += state->tilebank * 0x800;
SET_TILE_INFO(0, tileno, colour >> 12, 0);
diff --git a/src/version.c b/src/version.c
index c8deec44d4e..9578c883224 100644
--- a/src/version.c
+++ b/src/version.c
@@ -10,4 +10,4 @@
***************************************************************************/
extern const char build_version[];
-const char build_version[] = "0.135u1 ("__DATE__")";
+const char build_version[] = "0.135u2 ("__DATE__")";