summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-08-07 16:02:05 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-08-07 16:02:05 +0000
commitb40a4f5531d840be9d9838702cce658fcb11f194 (patch)
tree03affa9799c5f25b176f97edde011df913bb59c4
parent9df01a28965b68eededf472e609bb2615ab11dcb (diff)
Cleanups and version bump.mame0126u4
-rw-r--r--src/emu/cheat.c152
-rw-r--r--src/emu/cpu/dsp56k/dsp56k.c2
-rw-r--r--src/emu/cpu/dsp56k/dsp56pcu.c8
-rw-r--r--src/emu/debug/debugcpu.c2
-rw-r--r--src/emu/debug/express.c8
-rw-r--r--src/emu/inptport.c2
-rw-r--r--src/emu/machine/laserdsc.c42
-rw-r--r--src/emu/machine/laserdsc.h2
-rw-r--r--src/emu/romload.c2
-rw-r--r--src/emu/sound/disc_mth.c16
-rw-r--r--src/emu/sound/disc_wav.c2
-rw-r--r--src/emu/sound/discrete.c4
-rw-r--r--src/emu/sound/fm.c8
-rw-r--r--src/emu/ui.c2
-rw-r--r--src/emu/uimenu.c16
-rw-r--r--src/lib/util/chd.c4
-rw-r--r--src/lib/util/vbiparse.c58
-rw-r--r--src/mame/audio/gottlieb.c14
-rw-r--r--src/mame/drivers/adp.c56
-rw-r--r--src/mame/drivers/ccastles.c2
-rw-r--r--src/mame/drivers/circus.c8
-rw-r--r--src/mame/drivers/cischeat.c6
-rw-r--r--src/mame/drivers/citycon.c6
-rw-r--r--src/mame/drivers/cloak.c8
-rw-r--r--src/mame/drivers/cntsteer.c24
-rw-r--r--src/mame/drivers/cojag.c2
-rw-r--r--src/mame/drivers/copsnrob.c4
-rw-r--r--src/mame/drivers/cosmic.c32
-rw-r--r--src/mame/drivers/couple.c8
-rw-r--r--src/mame/drivers/cps1.c2
-rw-r--r--src/mame/drivers/crimfght.c16
-rw-r--r--src/mame/drivers/darkseal.c6
-rw-r--r--src/mame/drivers/dblewing.c6
-rw-r--r--src/mame/drivers/dday.c2
-rw-r--r--src/mame/drivers/ddenlovr.c2
-rw-r--r--src/mame/drivers/deco_mlc.c4
-rw-r--r--src/mame/drivers/dynduke.c2
-rw-r--r--src/mame/drivers/fcrash.c4
-rw-r--r--src/mame/drivers/flstory.c52
-rw-r--r--src/mame/drivers/galaga.c108
-rw-r--r--src/mame/drivers/galivan.c2
-rw-r--r--src/mame/drivers/gottlieb.c108
-rw-r--r--src/mame/drivers/igs009.c6
-rw-r--r--src/mame/drivers/missile.c20
-rw-r--r--src/mame/drivers/namcos1.c6
-rw-r--r--src/mame/drivers/namcos2.c4
-rw-r--r--src/mame/drivers/nbmj8891.c2
-rw-r--r--src/mame/drivers/quizpun2.c12
-rw-r--r--src/mame/drivers/segas32.c4
-rw-r--r--src/mame/drivers/shanghai.c60
-rw-r--r--src/mame/drivers/shisen.c4
-rw-r--r--src/mame/drivers/slapfght.c2
-rw-r--r--src/mame/drivers/snk.c38
-rw-r--r--src/mame/drivers/taito_z.c44
-rw-r--r--src/mame/drivers/taitosj.c32
-rw-r--r--src/mame/drivers/tnzs.c4
-rw-r--r--src/mame/drivers/turbo.c16
-rw-r--r--src/mame/drivers/twincobr.c4
-rw-r--r--src/mame/drivers/vball.c2
-rw-r--r--src/mame/drivers/vulgus.c2
-rw-r--r--src/mame/drivers/wwfsstar.c4
-rw-r--r--src/mame/video/dkong.c90
-rw-r--r--src/mame/video/gottlieb.c18
-rw-r--r--src/mame/video/mario.c6
-rw-r--r--src/tools/chdman.c16
-rw-r--r--src/tools/ldverify.c86
-rw-r--r--src/version.c2
67 files changed, 649 insertions, 649 deletions
diff --git a/src/emu/cheat.c b/src/emu/cheat.c
index 2f43fcb8814..7bb295a45f6 100644
--- a/src/emu/cheat.c
+++ b/src/emu/cheat.c
@@ -34,21 +34,21 @@
</mamecheat>
**********************************************************************
-
+
Expressions are standard debugger expressions. Note that & and
< must be escaped per XML rules. Within attributes you must use
&amp; and &lt;. For tags, you can also use <![CDATA[ ... ]]>.
-
+
Each cheat has its own context-specific variables:
-
+
temp0-temp9 -- 10 temporary variables for any use
param -- the current value of the cheat parameter
frame -- the current frame index
argindex -- for arguments with multiple iterations, this is the index
-
+
By default, each cheat has 10 temporary variables that are
persistent while executing its scripts. Additional temporary
- variables may be requested via the 'tempvariables' attribute
+ variables may be requested via the 'tempvariables' attribute
on the cheat.
*********************************************************************/
@@ -285,13 +285,13 @@ void cheat_render_text(running_machine *machine)
if (cheatinfo != NULL)
{
int linenum;
-
+
/* render any text and free it along the way */
for (linenum = 0; linenum < ARRAY_LENGTH(cheatinfo->output); linenum++)
if (cheatinfo->output[linenum] != NULL)
{
/* output the text */
- ui_draw_text_full(astring_c(cheatinfo->output[linenum]),
+ ui_draw_text_full(astring_c(cheatinfo->output[linenum]),
0.0f, (float)linenum * ui_get_line_height(), 1.0f,
cheatinfo->justify[linenum], WRAP_NEVER, DRAW_OPAQUE,
ARGB_WHITE, ARGB_BLACK, NULL, NULL);
@@ -320,7 +320,7 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const
/* description is standard */
if (description != NULL)
*description = astring_c(cheat->description);
-
+
/* if we have no parameter and no run or off script, it's a oneshot cheat */
if (cheat->parameter == NULL && cheat->script[SCRIPT_STATE_RUN] == NULL && cheat->script[SCRIPT_STATE_OFF] == NULL)
{
@@ -329,7 +329,7 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const
if (flags != NULL)
*flags = 0;
}
-
+
/* if we have no parameter, it's just on/off */
else if (cheat->parameter == NULL)
{
@@ -338,7 +338,7 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const
if (flags != NULL)
*flags = cheat->state ? MENU_FLAG_LEFT_ARROW : MENU_FLAG_RIGHT_ARROW;
}
-
+
/* if we have a value parameter, compute it */
else if (cheat->parameter->itemlist == NULL)
{
@@ -356,12 +356,12 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const
*flags |= MENU_FLAG_RIGHT_ARROW;
}
}
-
+
/* if we have an item list, pick the index */
else
{
parameter_item *item, *prev = NULL;
-
+
for (item = cheat->parameter->itemlist; item != NULL; prev = item, item = item->next)
if (item->value == cheat->parameter->value)
break;
@@ -376,14 +376,14 @@ void *cheat_get_next_menu_entry(running_machine *machine, void *previous, const
*flags |= MENU_FLAG_RIGHT_ARROW;
}
}
-
+
/* return a pointer to this item */
return cheat;
}
/*-------------------------------------------------
- cheat_activate - activate a oneshot cheat
+ cheat_activate - activate a oneshot cheat
-------------------------------------------------*/
int cheat_activate(running_machine *machine, void *entry)
@@ -391,7 +391,7 @@ int cheat_activate(running_machine *machine, void *entry)
cheat_private *cheatinfo = machine->cheat_data;
cheat_entry *cheat = entry;
int changed = FALSE;
-
+
/* if we have no parameter and no run or off script, it's a oneshot cheat */
if (cheat->parameter == NULL && cheat->script[SCRIPT_STATE_RUN] == NULL && cheat->script[SCRIPT_STATE_OFF] == NULL)
{
@@ -404,9 +404,9 @@ int cheat_activate(running_machine *machine, void *entry)
/*-------------------------------------------------
- cheat_select_default_state - select the
- default state for a cheat, or activate a
- oneshot cheat
+ cheat_select_default_state - select the
+ default state for a cheat, or activate a
+ oneshot cheat
-------------------------------------------------*/
int cheat_select_default_state(running_machine *machine, void *entry)
@@ -414,11 +414,11 @@ int cheat_select_default_state(running_machine *machine, void *entry)
cheat_private *cheatinfo = machine->cheat_data;
cheat_entry *cheat = entry;
int changed = FALSE;
-
+
/* if we have no parameter and no run or off script, it's a oneshot cheat */
if (cheat->parameter == NULL && cheat->script[SCRIPT_STATE_RUN] == NULL && cheat->script[SCRIPT_STATE_OFF] == NULL)
;
-
+
/* if we have no parameter, it's just on/off; default to off */
else if (cheat->parameter == NULL)
{
@@ -429,7 +429,7 @@ int cheat_select_default_state(running_machine *machine, void *entry)
changed = TRUE;
}
}
-
+
/* if we have a value parameter, fall back to the default */
else
{
@@ -444,8 +444,8 @@ int cheat_select_default_state(running_machine *machine, void *entry)
/*-------------------------------------------------
- cheat_select_previous_state - select the
- previous state for a cheat
+ cheat_select_previous_state - select the
+ previous state for a cheat
-------------------------------------------------*/
int cheat_select_previous_state(running_machine *machine, void *entry)
@@ -453,11 +453,11 @@ int cheat_select_previous_state(running_machine *machine, void *entry)
cheat_private *cheatinfo = machine->cheat_data;
cheat_entry *cheat = entry;
int changed = FALSE;
-
+
/* if we have no parameter and no run or off script, it's a oneshot cheat */
if (cheat->parameter == NULL && cheat->script[SCRIPT_STATE_RUN] == NULL && cheat->script[SCRIPT_STATE_OFF] == NULL)
;
-
+
/* if we have no parameter, it's just on/off */
else if (cheat->parameter == NULL)
{
@@ -468,7 +468,7 @@ int cheat_select_previous_state(running_machine *machine, void *entry)
changed = TRUE;
}
}
-
+
/* if we have a value parameter, compute it */
else if (cheat->parameter->itemlist == NULL)
{
@@ -482,12 +482,12 @@ int cheat_select_previous_state(running_machine *machine, void *entry)
changed = TRUE;
}
}
-
+
/* if we have an item list, pick the index */
else
{
parameter_item *item, *prev = NULL;
-
+
for (item = cheat->parameter->itemlist; item != NULL; prev = item, item = item->next)
if (item->value == cheat->parameter->value)
break;
@@ -503,8 +503,8 @@ int cheat_select_previous_state(running_machine *machine, void *entry)
/*-------------------------------------------------
- cheat_select_next_state - select the
- next state for a cheat
+ cheat_select_next_state - select the
+ next state for a cheat
-------------------------------------------------*/
int cheat_select_next_state(running_machine *machine, void *entry)
@@ -512,11 +512,11 @@ int cheat_select_next_state(running_machine *machine, void *entry)
cheat_private *cheatinfo = machine->cheat_data;
cheat_entry *cheat = entry;
int changed = FALSE;
-
+
/* if we have no parameter and no run or off script, it's a oneshot cheat */
if (cheat->parameter == NULL && cheat->script[SCRIPT_STATE_RUN] == NULL && cheat->script[SCRIPT_STATE_OFF] == NULL)
;
-
+
/* if we have no parameter, it's just on/off */
else if (cheat->parameter == NULL)
{
@@ -527,7 +527,7 @@ int cheat_select_next_state(running_machine *machine, void *entry)
changed = TRUE;
}
}
-
+
/* if we have a value parameter, compute it */
else if (cheat->parameter->itemlist == NULL)
{
@@ -541,12 +541,12 @@ int cheat_select_next_state(running_machine *machine, void *entry)
changed = TRUE;
}
}
-
+
/* if we have an item list, pick the index */
else
{
parameter_item *item;
-
+
for (item = cheat->parameter->itemlist; item != NULL; item = item->next)
if (item->value == cheat->parameter->value)
break;
@@ -575,7 +575,7 @@ static void cheat_frame(running_machine *machine)
cheat_private *cheatinfo = machine->cheat_data;
cheat_entry *cheat;
int linenum;
-
+
/* set up for accumulating output */
cheatinfo->lastline = 0;
cheatinfo->numlines = floor(1.0f / ui_get_line_height());
@@ -586,36 +586,36 @@ static void cheat_frame(running_machine *machine)
astring_free(cheatinfo->output[linenum]);
cheatinfo->output[linenum] = NULL;
}
-
+
/* iterate over running cheats and execute them */
for (cheat = cheatinfo->cheatlist; cheat != NULL; cheat = cheat->next)
if (cheat->state == SCRIPT_STATE_RUN)
cheat_execute_script(cheatinfo, cheat, SCRIPT_STATE_RUN);
-
+
/* increment the frame counter */
cheatinfo->framecount++;
}
/*-------------------------------------------------
- cheat_execute_script - execute the
+ cheat_execute_script - execute the
appropriate script
-------------------------------------------------*/
static void cheat_execute_script(cheat_private *cheatinfo, cheat_entry *cheat, script_state state)
{
script_entry *entry;
-
+
/* if no script, bail */
if (cheat->script[state] == NULL)
return;
-
+
/* iterate over entries */
for (entry = cheat->script[state]->entrylist; entry != NULL; entry = entry->next)
{
EXPRERR error;
UINT64 result;
-
+
/* evaluate the condition */
if (entry->condition != NULL)
{
@@ -627,7 +627,7 @@ static void cheat_execute_script(cheat_private *cheatinfo, cheat_entry *cheat, s
if (error != EXPRERR_NONE || result == 0)
continue;
}
-
+
/* if there is an action, execute it */
if (entry->expression != NULL)
{
@@ -635,7 +635,7 @@ static void cheat_execute_script(cheat_private *cheatinfo, cheat_entry *cheat, s
if (error != EXPRERR_NONE)
mame_printf_warning("Error executing expression \"%s\": %s\n", expression_original_string(entry->expression), exprerr_to_string(error));
}
-
+
/* if there is a string to display, compute it */
if (entry->format != NULL)
{
@@ -644,7 +644,7 @@ static void cheat_execute_script(cheat_private *cheatinfo, cheat_entry *cheat, s
astring *string;
int curarg = 0;
int row;
-
+
/* iterate over arguments and evaluate them */
for (arg = entry->arglist; arg != NULL; arg = arg->next)
for (cheat->argindex = 0; cheat->argindex < arg->count; cheat->argindex++)
@@ -653,7 +653,7 @@ static void cheat_execute_script(cheat_private *cheatinfo, cheat_entry *cheat, s
if (error != EXPRERR_NONE)
mame_printf_warning("Error executing argument expression \"%s\": %s\n", expression_original_string(arg->expression), exprerr_to_string(error));
}
-
+
/* determine which row we belong to */
row = entry->line;
if (row == 0)
@@ -662,22 +662,22 @@ static void cheat_execute_script(cheat_private *cheatinfo, cheat_entry *cheat, s
row = (row < 0) ? cheatinfo->numlines + row : row - 1;
row = MAX(row, 0);
row = MIN(row, cheatinfo->numlines - 1);
-
+
/* either re-use or allocate a string */
string = cheatinfo->output[row];
if (string == NULL)
string = cheatinfo->output[row] = astring_alloc();
cheatinfo->justify[row] = entry->justify;
-
+
/* generate the astring */
astring_printf(string, astring_c(entry->format),
- (UINT32)params[0], (UINT32)params[1], (UINT32)params[2], (UINT32)params[3],
- (UINT32)params[4], (UINT32)params[5], (UINT32)params[6], (UINT32)params[7],
- (UINT32)params[8], (UINT32)params[9], (UINT32)params[10], (UINT32)params[11],
- (UINT32)params[12], (UINT32)params[13], (UINT32)params[14], (UINT32)params[15],
- (UINT32)params[16], (UINT32)params[17], (UINT32)params[18], (UINT32)params[19],
- (UINT32)params[20], (UINT32)params[21], (UINT32)params[22], (UINT32)params[23],
- (UINT32)params[24], (UINT32)params[25], (UINT32)params[26], (UINT32)params[27],
+ (UINT32)params[0], (UINT32)params[1], (UINT32)params[2], (UINT32)params[3],
+ (UINT32)params[4], (UINT32)params[5], (UINT32)params[6], (UINT32)params[7],
+ (UINT32)params[8], (UINT32)params[9], (UINT32)params[10], (UINT32)params[11],
+ (UINT32)params[12], (UINT32)params[13], (UINT32)params[14], (UINT32)params[15],
+ (UINT32)params[16], (UINT32)params[17], (UINT32)params[18], (UINT32)params[19],
+ (UINT32)params[20], (UINT32)params[21], (UINT32)params[22], (UINT32)params[23],
+ (UINT32)params[24], (UINT32)params[25], (UINT32)params[26], (UINT32)params[27],
(UINT32)params[28], (UINT32)params[29], (UINT32)params[30], (UINT32)params[31]);
}
}
@@ -916,7 +916,7 @@ static cheat_entry *cheat_entry_load(running_machine *machine, const char *filen
else
cheat->script[curscript->state] = curscript;
}
-
+
/* set the initial state */
cheat->state = (cheat->parameter != NULL) ? SCRIPT_STATE_RUN : SCRIPT_STATE_OFF;
return cheat;
@@ -928,8 +928,8 @@ error:
/*-------------------------------------------------
- cheat_entry_save - save a single cheat
- entry
+ cheat_entry_save - save a single cheat
+ entry
-------------------------------------------------*/
static void cheat_entry_save(mame_file *cheatfile, const cheat_entry *cheat)
@@ -941,7 +941,7 @@ static void cheat_entry_save(mame_file *cheatfile, const cheat_entry *cheat)
if (cheat->numtemp != DEFAULT_TEMP_VARIABLES)
mame_fprintf(cheatfile, " tempvariables=\"%d\"", cheat->numtemp);
mame_fprintf(cheatfile, ">\n");
-
+
/* save the comment */
if (cheat->comment != NULL)
mame_fprintf(cheatfile, "\t\t<comment><![CDATA[\n%s\n\t\t]]></comment>\n", astring_c(cheat->comment));
@@ -961,7 +961,7 @@ static void cheat_entry_save(mame_file *cheatfile, const cheat_entry *cheat)
/*-------------------------------------------------
- cheat_entry_free - free a single cheat entry
+ cheat_entry_free - free a single cheat entry
-------------------------------------------------*/
static void cheat_entry_free(cheat_entry *cheat)
@@ -989,9 +989,9 @@ static void cheat_entry_free(cheat_entry *cheat)
/*-------------------------------------------------
- cheat_parameter_load - load a single cheat
- parameter and create the underlying data
- structures
+ cheat_parameter_load - load a single cheat
+ parameter and create the underlying data
+ structures
-------------------------------------------------*/
static cheat_parameter *cheat_parameter_load(const char *filename, xml_data_node *paramnode)
@@ -1035,7 +1035,7 @@ static cheat_parameter *cheat_parameter_load(const char *filename, xml_data_node
goto error;
}
curitem->value = xml_get_attribute_int(itemnode, "value", 0);
-
+
/* ensure the maximum expands to suit */
param->maxval = MAX(param->maxval, curitem->value);
@@ -1043,12 +1043,12 @@ static cheat_parameter *cheat_parameter_load(const char *filename, xml_data_node
*itemtailptr = curitem;
itemtailptr = &curitem->next;
}
-
+
/* if no default, pick the minimum */
if (xml_get_attribute_string(paramnode, "default", NULL) == NULL)
param->defval = (param->itemlist != NULL) ? param->itemlist->value : param->minval;
param->value = param->defval;
-
+
return param;
error:
@@ -1338,7 +1338,7 @@ static script_entry *script_entry_load(const char *filename, xml_data_node *entr
*argtailptr = curarg;
argtailptr = &curarg->next;
}
-
+
/* max out on arguments */
if (totalargs > MAX_ARGUMENTS)
{
@@ -1359,8 +1359,8 @@ error:
/*-------------------------------------------------
- script_entry_save - save a single action
- or output
+ script_entry_save - save a single action
+ or output
-------------------------------------------------*/
static void script_entry_save(mame_file *cheatfile, const script_entry *entry)
@@ -1421,8 +1421,8 @@ static void script_entry_save(mame_file *cheatfile, const script_entry *entry)
/*-------------------------------------------------
- script_entry_free - free a single script
- entry
+ script_entry_free - free a single script
+ entry
-------------------------------------------------*/
static void script_entry_free(script_entry *entry)
@@ -1454,9 +1454,9 @@ static void script_entry_free(script_entry *entry)
***************************************************************************/
/*-------------------------------------------------
- quote_astring_expression - quote an expression
- string so that it is valid to embed in an XML
- document
+ quote_astring_expression - quote an expression
+ string so that it is valid to embed in an XML
+ document
-------------------------------------------------*/
static astring *quote_astring_expression(astring *string, int isattribute)
@@ -1486,8 +1486,8 @@ static astring *quote_astring_expression(astring *string, int isattribute)
/*-------------------------------------------------
- validate_format - check that a format string
- has the correct number and type of arguments
+ validate_format - check that a format string
+ has the correct number and type of arguments
-------------------------------------------------*/
static int validate_format(const char *filename, int line, const script_entry *entry)
diff --git a/src/emu/cpu/dsp56k/dsp56k.c b/src/emu/cpu/dsp56k/dsp56k.c
index d4a2befab0a..15bfa4e8bb1 100644
--- a/src/emu/cpu/dsp56k/dsp56k.c
+++ b/src/emu/cpu/dsp56k/dsp56k.c
@@ -345,7 +345,7 @@ static void set_irq_line(int irqline, int state)
// If the reset line isn't asserted, service interrupts
// TODO: Is it right to immediately service interrupts?
//if (core.reset_state != TRUE)
- // pcu_service_interrupts();
+ // pcu_service_interrupts();
}
diff --git a/src/emu/cpu/dsp56k/dsp56pcu.c b/src/emu/cpu/dsp56k/dsp56pcu.c
index 81e84020321..85f1e3cd173 100644
--- a/src/emu/cpu/dsp56k/dsp56pcu.c
+++ b/src/emu/cpu/dsp56k/dsp56pcu.c
@@ -188,7 +188,7 @@ static void pcu_service_interrupts(void)
// Count list of pending interrupts
int num_servicable = dsp56k_count_pending_interrupts();
- if (num_servicable == 0)
+ if (num_servicable == 0)
return;
// Sort list according to priority
@@ -199,7 +199,7 @@ static void pcu_service_interrupts(void)
for (i = 0; i < num_servicable; i++)
{
const int interrupt_index = core.PCU.pending_interrupts[i];
-
+
// Get the priority of the interrupt - a return value of -1 means disabled!
INT8 priority = dsp56k_get_irq_priority(interrupt_index);
@@ -217,13 +217,13 @@ static void pcu_service_interrupts(void)
// The host command input has a floating vector.
const UINT16 irq_vector = HV_bits() << 1;
PC = irq_vector;
-
+
// TODO: 5-9 5-11 Gotta' Clear HC (HCP gets it too) when taking this exception!
HC_bit_set(0);
}
}
}
-
+
dsp56k_clear_pending_interrupts();
}
diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c
index c1b3ec97b4f..6454d73fe7f 100644
--- a/src/emu/debug/debugcpu.c
+++ b/src/emu/debug/debugcpu.c
@@ -2576,7 +2576,7 @@ static void expression_write_eeprom(offs_t address, int size, UINT64 data)
/*-------------------------------------------------
expression_validate - validate that the
- provided expression references an
+ provided expression references an
appropriate name
-------------------------------------------------*/
diff --git a/src/emu/debug/express.c b/src/emu/debug/express.c
index e2d69b2093a..f9a71152d7e 100644
--- a/src/emu/debug/express.c
+++ b/src/emu/debug/express.c
@@ -533,7 +533,7 @@ static EXPRERR parse_memory_operator(parsed_expression *expr, int offset, const
if (dot != NULL)
{
UINT16 index;
-
+
namestring = add_expression_string(expr, buffer, dot - buffer, &index);
if (namestring == NULL)
return MAKE_EXPRERR_OUT_OF_MEMORY(offset);
@@ -579,7 +579,7 @@ static EXPRERR parse_memory_operator(parsed_expression *expr, int offset, const
case 'q': *flags |= TIN_MEMORY_QWORD; break;
default: return MAKE_EXPRERR_INVALID_MEMORY_SIZE(offset + (buffer - startbuffer) + length - 1);
}
-
+
/* validate the name */
if (expr->callbacks.valid != NULL)
{
@@ -589,7 +589,7 @@ static EXPRERR parse_memory_operator(parsed_expression *expr, int offset, const
else if (err != EXPRERR_NONE)
return MAKE_EXPRERR(err, offset);
}
-
+
return EXPRERR_NONE;
}
@@ -843,7 +843,7 @@ static EXPRERR parse_string_into_tokens(const char *stringstart, parsed_expressi
SET_TOKEN_INFO(1, TOK_OPERATOR, TVL_MEMORYAT, TIN_PRECEDENCE_2 | info);
break;
}
-
+
/* empty string is automatically invalid */
if (buffer[0] == 0)
return MAKE_EXPRERR_INVALID_TOKEN(token->offset);
diff --git a/src/emu/inptport.c b/src/emu/inptport.c
index 858d0e97f1c..caa2799b151 100644
--- a/src/emu/inptport.c
+++ b/src/emu/inptport.c
@@ -2869,7 +2869,7 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co
temptoken.i = INPUT_STRING_On;
cursetting = setting_config_alloc(curfield, ~defval & mask, input_port_string_from_token(temptoken));
-
+
/* reset cursetting to NULL to allow subsequent conditions to apply to the field */
cursetting = NULL;
break;
diff --git a/src/emu/machine/laserdsc.c b/src/emu/machine/laserdsc.c
index 300cbc7213c..6c186e4fc4f 100644
--- a/src/emu/machine/laserdsc.c
+++ b/src/emu/machine/laserdsc.c
@@ -652,7 +652,7 @@ INLINE void set_hold_state(laserdisc_state *ld, attotime holdtime, playstate sta
/*-------------------------------------------------
reset_tracknum - reset the current track
- number to 1 and clear out other state
+ number to 1 and clear out other state
-------------------------------------------------*/
INLINE void reset_tracknum(laserdisc_state *ld)
@@ -790,7 +790,7 @@ void laserdisc_vsync(const device_config *device)
UINT8 origstate = ld->state;
UINT8 hittarget;
int backslash;
-
+
/* allow the backslash key to toggle the frame display */
backslash = input_code_pressed(KEYCODE_BACKSLASH);
if (!ld->lastbackslash && backslash)
@@ -1140,7 +1140,7 @@ static int update_position(laserdisc_state *ld)
/* if we have no target, don't do anything */
if (ld->targetframe == 0)
return TRUE;
-
+
LOG_POSITION(("%d:track=%5d frame=%5d target=%5d ... ", fieldnum, tracknum, frame, ld->targetframe));
/* if we hit the first field of our frame, we're done */
@@ -1265,18 +1265,18 @@ static void read_track_data(laserdisc_state *ld)
ld->avconfig.decode_mask = AVCOMP_DECODE_VIDEO;
ld->avconfig.video_xor = BYTE_XOR_LE(0);
ld->avconfig.audio_xor = BYTE_XOR_BE(0);
-
+
/* if the previous field had the white flag, force the new field to pair with it */
if (ld->metadata[fieldnum ^ 1].white)
ld->videofields[ld->videoindex] = 1;
-
+
/* if we already have both fields on the current videoindex, advance */
if (ld->videofields[ld->videoindex] >= 2)
{
ld->videoindex = (ld->videoindex + 1) % ARRAY_LENGTH(ld->videofields);
ld->videofields[ld->videoindex] = 0;
}
-
+
/* set the video buffer information */
ld->avconfig.video_buffer = (UINT8 *)BITMAP_ADDR16(ld->videoframe[ld->videoindex], fieldnum, 0);
ld->avconfig.video_stride = 4 * ld->videoframe[ld->videoindex]->rowpixels;
@@ -1331,7 +1331,7 @@ static void process_track_data(const device_config *device)
vbi_parse_all((const UINT16 *)ld->avconfig.video_buffer, ld->avconfig.video_stride / 2, ld->videoframe[0]->width, 8, &ld->metadata[fieldnum]);
else
fake_metadata(tracknum, fieldnum, &ld->metadata[fieldnum]);
-// printf("Track %5d: Metadata = %d %08X %08X %08X %08X\n", tracknum, ld->metadata[fieldnum].white, ld->metadata[fieldnum].line16, ld->metadata[fieldnum].line17, ld->metadata[fieldnum].line18, ld->metadata[fieldnum].line1718);
+// printf("Track %5d: Metadata = %d %08X %08X %08X %08X\n", tracknum, ld->metadata[fieldnum].white, ld->metadata[fieldnum].line16, ld->metadata[fieldnum].line17, ld->metadata[fieldnum].line18, ld->metadata[fieldnum].line1718);
/* update the last seen frame and chapter */
frame = frame_from_metadata(&ld->metadata[fieldnum]);
@@ -1358,7 +1358,7 @@ static void process_track_data(const device_config *device)
samples = (rawdata[6] << 8) + rawdata[7];
sampsource[0] = (const INT16 *)(rawdata + 12 + rawdata[4]) + 0 * samples;
sampsource[1] = sampsource[0] + samples;
-
+
/* let the audio callback at it first */
if (ld->audiocallback != NULL)
(*ld->audiocallback)(device, ld->samplerate, samples, sampsource[0], sampsource[1]);
@@ -1401,7 +1401,7 @@ static void process_track_data(const device_config *device)
/*-------------------------------------------------
fake_metadata - fake metadata when there's
- no disc present
+ no disc present
-------------------------------------------------*/
static void fake_metadata(UINT32 track, UINT8 which, vbi_metadata *metadata)
@@ -1410,7 +1410,7 @@ static void fake_metadata(UINT32 track, UINT8 which, vbi_metadata *metadata)
{
metadata->white = 1;
metadata->line16 = 0;
- metadata->line17 = metadata->line18 = 0xf80000 |
+ metadata->line17 = metadata->line18 = 0xf80000 |
(((track / 10000) % 10) << 16) |
(((track / 1000) % 10) << 12) |
(((track / 100) % 10) << 8) |
@@ -1434,14 +1434,14 @@ static void render_display(UINT16 *videodata, UINT32 rowpixels, UINT32 width, in
int y = 50;
int ch;
int delta;
-
+
/* do nothing if no data */
if (videodata == NULL)
return;
/* convert to a character string and render */
sprintf(buffer, "%5d", frame);
-
+
/* iterate over 5 positions: (-1,-1), (-1,1), (1,-1), (1,1) and (0,0) */
/* render all in black except the last one */
for (delta = 0; delta < 5; delta++)
@@ -1449,25 +1449,25 @@ static void render_display(UINT16 *videodata, UINT32 rowpixels, UINT32 width, in
int color = (delta < 4) ? 0x0080 : 0xff80;
int dx = (delta < 4) ? ((delta & 1) ? -1 : 1) : 0;
int dy = (delta < 4) ? ((delta & 2) ? -1 : 1) : 0;
-
+
/* iterate over 5 characters */
for (ch = 0; ch < 5; ch++)
if (buffer[ch] >= '0' && buffer[ch] <= '9')
{
const UINT8 *fontdata = &numberfont[buffer[ch] - '0'][0];
int cy, cx;
-
+
/* iterate over the rows of the character */
for (cy = 0; cy < 8; cy++)
{
UINT8 bits = *fontdata++;
-
+
/* and over the columns */
for (cx = 0; cx < 8; cx++)
if (bits & (0x80 >> cx))
{
int ix, iy;
-
+
/* fill in an xscale x yscale pixel */
for (iy = 0; iy < yscale; iy++)
for (ix = 0; ix < xscale; ix++)
@@ -2393,16 +2393,16 @@ static void pr8210_control_w(laserdisc_state *ld, UINT8 data)
attotime curtime = timer_get_time();
attotime delta;
int longpulse;
-
+
/* if we timed out, reset the accumulator */
delta = attotime_sub(curtime, pr8210->firstbittime);
if (delta.attoseconds > ATTOTIME_IN_USEC(25320).attoseconds)
{
pr8210->firstbittime = curtime;
pr8210->accumulator = 0x5555;
-// printf("Reset accumulator\n");
+// printf("Reset accumulator\n");
}
-
+
/* get the time difference from the last assert */
/* and update our internal command time */
delta = attotime_sub(curtime, pr8210->lastbittime);
@@ -2411,7 +2411,7 @@ static void pr8210_control_w(laserdisc_state *ld, UINT8 data)
/* 0 bit delta is 1.05 msec, 1 bit delta is 2.11 msec */
longpulse = (delta.attoseconds < ATTOTIME_IN_USEC(1500).attoseconds) ? 0 : 1;
pr8210->accumulator = (pr8210->accumulator << 1) | longpulse;
-
+
#if 0
{
int usecdiff = (int)(delta.attoseconds / ATTOSECONDS_IN_USEC(1));
@@ -2426,7 +2426,7 @@ static void pr8210_control_w(laserdisc_state *ld, UINT8 data)
UINT8 newcommand = (pr8210->accumulator >> 2) & 0x1f;
//printf("New command = %02X (last=%02X)\n", newcommand, pr8210->lastcommand);
-
+
/* if we got a double command, act on it */
if (newcommand == pr8210->lastcommand)
{
diff --git a/src/emu/machine/laserdsc.h b/src/emu/machine/laserdsc.h
index 31bf2fa1a69..211bc022fef 100644
--- a/src/emu/machine/laserdsc.h
+++ b/src/emu/machine/laserdsc.h
@@ -82,7 +82,7 @@ struct _laserdisc_config
#define MDRV_LASERDISC_AUDIO(_func) \
MDRV_DEVICE_CONFIG_DATAPTR(laserdisc_config, audio, _func)
-
+
#define MDRV_LASERDISC_REMOVE(_tag, _type) \
MDRV_DEVICE_REMOVE(_tag, _type)
diff --git a/src/emu/romload.c b/src/emu/romload.c
index 0dea5f9ce4a..b53918c3866 100644
--- a/src/emu/romload.c
+++ b/src/emu/romload.c
@@ -977,7 +977,7 @@ static void process_disk_entries(rom_load_data *romdata, const char *regiontag,
open_chd chd = { 0 };
chd_header header;
chd_error err;
-
+
/* note the region we are in */
chd.region = regiontag;
diff --git a/src/emu/sound/disc_mth.c b/src/emu/sound/disc_mth.c
index 9e3769b8981..0c039f5008f 100644
--- a/src/emu/sound/disc_mth.c
+++ b/src/emu/sound/disc_mth.c
@@ -986,7 +986,7 @@ static void dst_mixer_step(node_description *node)
rTemp = info->r[bit];
connected = 1;
vTemp = DST_MIXER__IN(bit);
-
+
if (info->rNode[bit])
{
/* a node has the posibility of being disconnected from the circuit. */
@@ -1021,7 +1021,7 @@ static void dst_mixer_step(node_description *node)
}
}
}
-
+
if (connected)
{
if (info->c[bit] != 0)
@@ -1040,7 +1040,7 @@ static void dst_mixer_step(node_description *node)
{
rTemp = info->r[bit];
vTemp = DST_MIXER__IN(bit);
-
+
if (info->c[bit] != 0)
{
/* do input high pass filtering if needed. */
@@ -1050,10 +1050,10 @@ static void dst_mixer_step(node_description *node)
i += (((context->type & DISC_MIXER_TYPE_MASK) == DISC_MIXER_IS_OP_AMP) ? info->vRef - vTemp : vTemp) / rTemp;
}
}
-
- if ((context->type & DISC_MIXER_TYPE_MASK) == DISC_MIXER_IS_OP_AMP_WITH_RI)
+
+ if ((context->type & DISC_MIXER_TYPE_MASK) == DISC_MIXER_IS_OP_AMP_WITH_RI)
i += info->vRef / info->rI;
-
+
rTotal = 1.0 / rTotal;
/* If resistor network or has rI then Millman is used.
@@ -1540,7 +1540,7 @@ INLINE double dst_transform_pop(double *stack,int *pointer)
INLINE void dst_transform_push(double *stack,int *pointer,double value)
{
//Store THEN increment
- assert(*pointer < MAX_TRANS_STACK);
+ assert(*pointer < MAX_TRANS_STACK);
stack[(*pointer)++]=value;
}
@@ -1556,7 +1556,7 @@ static void dst_transform_step(node_description *node)
node->output[0]=0;
top = HUGE_VAL;
-
+
while(*fPTR!=0)
{
switch (*fPTR++)
diff --git a/src/emu/sound/disc_wav.c b/src/emu/sound/disc_wav.c
index d29f887ff90..0dcac6fb81a 100644
--- a/src/emu/sound/disc_wav.c
+++ b/src/emu/sound/disc_wav.c
@@ -1501,7 +1501,7 @@ INLINE double dss_inverter_tf(node_description *node, double x)
return info->vB;
else if (x <= info->vB)
return context->tf_tab[(int)((double)(DSS_INV_TAB_SIZE-1) * x / info->vB)];
- else
+ else
return context->tf_tab[DSS_INV_TAB_SIZE-1];
}
diff --git a/src/emu/sound/discrete.c b/src/emu/sound/discrete.c
index 94c70c1387d..1c026f7ab63 100644
--- a/src/emu/sound/discrete.c
+++ b/src/emu/sound/discrete.c
@@ -378,7 +378,7 @@ static void discrete_stop(void *chip)
int nodenum;
osd_ticks_t total = 0;
osd_ticks_t tresh;
-
+
/* calculate total time */
for (nodenum = 0; nodenum < info->node_count; nodenum++)
{
@@ -400,7 +400,7 @@ static void discrete_stop(void *chip)
}
}
#endif
-
+
/* close any csv files */
for (log_num = 0; log_num < info->num_csvlogs; log_num++)
if (info->disc_csv_file[log_num])
diff --git a/src/emu/sound/fm.c b/src/emu/sound/fm.c
index fa5641024b2..486d4651509 100644
--- a/src/emu/sound/fm.c
+++ b/src/emu/sound/fm.c
@@ -684,7 +684,7 @@ static INT32 out_delta[4]; /* channel output NONE,LEFT,RIGHT or CENTER for YM260
static UINT32 LFO_AM; /* runtime LFO calculations helper */
static INT32 LFO_PM; /* runtime LFO calculations helper */
-static int fn_max; /* maximal phase increment (used for phase overflow) */
+static int fn_max; /* maximal phase increment (used for phase overflow) */
/* log output level */
#define LOG_ERR 3 /* ERROR */
@@ -1297,7 +1297,7 @@ INLINE void update_phase_lfo_slot(FM_OPN *OPN, FM_SLOT *SLOT, INT32 pms, UINT32
/* phase increment counter */
fc = (OPN->fn_table[fn]>>(7-blk)) + SLOT->DT[kc];
-
+
/* detects frequency overflow (credits to Nemesis) */
if (fc < 0) fc += fn_max;
@@ -1327,7 +1327,7 @@ INLINE void update_phase_lfo_channel(FM_OPN *OPN, FM_CH *CH)
blk = (block_fnum&0x7000) >> 12;
fn = block_fnum & 0xfff;
-
+
/* keyscale code */
kc = (blk<<2) | opn_fktable[fn >> 8];
@@ -1771,7 +1771,7 @@ static void OPNSetPres(FM_OPN *OPN, int pres, int timer_prescaler, int SSGpres)
}
/* maximal frequency, used for overflow, best setting with BLOCK=5 (notaz) */
- fn_max = ((UINT32)((double)OPN->fn_table[0x7ff*2] / OPN->ST.freqbase) >> 2);
+ fn_max = ((UINT32)((double)OPN->fn_table[0x7ff*2] / OPN->ST.freqbase) >> 2);
/* LFO freq. table */
for(i = 0; i < 8; i++)
diff --git a/src/emu/ui.c b/src/emu/ui.c
index e10b854d3d2..975c7818426 100644
--- a/src/emu/ui.c
+++ b/src/emu/ui.c
@@ -429,7 +429,7 @@ void ui_update_and_render(running_machine *machine)
if (alpha >= 0)
render_ui_add_rect(0.0f, 0.0f, 1.0f, 1.0f, MAKE_ARGB(alpha,0x00,0x00,0x00), PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA));
}
-
+
/* render any cheat stuff at the bottom */
cheat_render_text(machine);
diff --git a/src/emu/uimenu.c b/src/emu/uimenu.c
index f70b50cff44..55b4184f932 100644
--- a/src/emu/uimenu.c
+++ b/src/emu/uimenu.c
@@ -2436,19 +2436,19 @@ static void menu_cheat(running_machine *machine, ui_menu *menu, void *parameter,
if (event != NULL && event->itemref != NULL)
{
int changed = FALSE;
-
+
/* handle reset all */
if ((FPTR)event->itemref == 1 && event->iptkey == IPT_UI_SELECT)
{
void *curcheat;
- for (curcheat = cheat_get_next_menu_entry(machine, NULL, NULL, NULL, NULL);
- curcheat != NULL;
+ for (curcheat = cheat_get_next_menu_entry(machine, NULL, NULL, NULL, NULL);
+ curcheat != NULL;
curcheat = cheat_get_next_menu_entry(machine, curcheat, NULL, NULL, NULL))
{
changed |= cheat_select_default_state(machine, curcheat);
}
}
-
+
/* handle individual cheats */
else if ((FPTR)event->itemref > 1)
{
@@ -2488,15 +2488,15 @@ static void menu_cheat_populate(running_machine *machine, ui_menu *menu)
const char *text, *subtext;
void *curcheat;
UINT32 flags;
-
+
/* iterate over cheats */
- for (curcheat = cheat_get_next_menu_entry(machine, NULL, &text, &subtext, &flags);
- curcheat != NULL;
+ for (curcheat = cheat_get_next_menu_entry(machine, NULL, &text, &subtext, &flags);
+ curcheat != NULL;
curcheat = cheat_get_next_menu_entry(machine, curcheat, &text, &subtext, &flags))
{
ui_menu_item_append(menu, text, subtext, flags, curcheat);
}
-
+
/* add a reset all option */
ui_menu_item_append(menu, "Reset All", NULL, 0, (void *)1);
}
diff --git a/src/lib/util/chd.c b/src/lib/util/chd.c
index 3c0fb3454e8..8f3aca2f66c 100644
--- a/src/lib/util/chd.c
+++ b/src/lib/util/chd.c
@@ -831,8 +831,8 @@ core_file *chd_core_file(chd_file *chd)
/*-------------------------------------------------
- chd_error_string - return an error string for
- the given CHD error
+ chd_error_string - return an error string for
+ the given CHD error
-------------------------------------------------*/
const char *chd_error_string(chd_error err)
diff --git a/src/lib/util/vbiparse.c b/src/lib/util/vbiparse.c
index dd520ab67a7..65f1061cf91 100644
--- a/src/lib/util/vbiparse.c
+++ b/src/lib/util/vbiparse.c
@@ -109,7 +109,7 @@ int vbi_parse_manchester_code(const UINT16 *source, int sourcewidth, int sources
for (offby = 0; offby <= MAX_CLOCK_DIFF; offby++)
if (srcabs[curbit + offby + 0] != srcabs[curbit + offby + 1] || srcabs[curbit - offby + 0] != srcabs[curbit - offby + 1])
break;
-
+
/* if we never found the edge, fail immediately */
if (offby > MAX_CLOCK_DIFF)
break;
@@ -136,10 +136,10 @@ int vbi_parse_manchester_code(const UINT16 *source, int sourcewidth, int sources
for (x = 0; x < expectedbits; x++)
{
int leftstart = firstedge + ceil(((double)x - 0.5) * bestclock);
-// int leftmid = firstedge + ((double)x - 0.25) * bestclock;
+// int leftmid = firstedge + ((double)x - 0.25) * bestclock;
int leftend = firstedge + floor(((double)x - 0.0) * bestclock);
int rightstart = firstedge + ceil(((double)x + 0.0) * bestclock);
-// int rightmid = firstedge + ((double)x + 0.25) * bestclock;
+// int rightmid = firstedge + ((double)x + 0.25) * bestclock;
int rightend = firstedge + floor(((double)x + 0.5) * bestclock);
int leftavg, rightavg, leftabs, rightabs;
int confidence = 0;
@@ -157,11 +157,11 @@ int vbi_parse_manchester_code(const UINT16 *source, int sourcewidth, int sources
rightavg += (UINT8)(source[tx] >> sourceshift) - mid;
rightabs = (rightavg >= 0);
rightavg = (rightavg < 0) ? -rightavg : rightavg;
-
+
/* all bits should be marked by transitions; fail if we don't get one */
if (leftabs == rightabs)
return 0;
-
+
/* store the bit and its confidence level */
confidence = leftavg + rightavg;
result[x] = (leftabs < rightabs) | (confidence << 1);
@@ -184,14 +184,14 @@ int vbi_parse_white_flag(const UINT16 *source, int sourcewidth, int sourceshift)
int peakval;
int result;
int x;
-
+
/* compute a histogram of values */
for (x = 0; x < sourcewidth; x++)
{
UINT8 yval = source[x] >> sourceshift;
histo[yval]++;
}
-
+
/* remove the lowest 1% of the values to account for noise and determine the minimum */
subtract = sourcewidth / 100;
for (minval = 0; minval < 255; minval++)
@@ -211,7 +211,7 @@ int vbi_parse_white_flag(const UINT16 *source, int sourcewidth, int sourceshift)
for (x = 0; x < 256; x++)
if (histo[x] != 0) printf("%dx%02X\n", histo[x], x);
}
-
+
/* ignore if we have no dynamic range */
if (maxval - minval < 10)
{
@@ -219,28 +219,28 @@ int vbi_parse_white_flag(const UINT16 *source, int sourcewidth, int sourceshift)
printf("White flag NOT detected; threshold too low\n");
return FALSE;
}
-
+
/*
- At this point, there are two approaches that have been tried:
-
- 1. Find the peak value and call it white if the peak is above
- the 90% line
-
- 2. Ignore the first and last 20% of the line and count how
- many pixels are above some threshold (75% line was used).
- Call it white if at least 80% of the pixels are above
- the threshold.
-
- Both approaches agree 99% of the time, but the first tends to
- be more correct when there is a discrepancy.
- */
+ At this point, there are two approaches that have been tried:
+
+ 1. Find the peak value and call it white if the peak is above
+ the 90% line
+
+ 2. Ignore the first and last 20% of the line and count how
+ many pixels are above some threshold (75% line was used).
+ Call it white if at least 80% of the pixels are above
+ the threshold.
+
+ Both approaches agree 99% of the time, but the first tends to
+ be more correct when there is a discrepancy.
+ */
/* determine where the peak is */
peakval = 0;
for (x = 1; x < 256; x++)
if (histo[x] > histo[peakval])
peakval = x;
-
+
/* return TRUE if it is above the 90% mark */
result = (peakval > minval + 9 * (maxval - minval) / 10);
if (PRINTF_WHITE_FLAG)
@@ -253,7 +253,7 @@ int vbi_parse_white_flag(const UINT16 *source, int sourcewidth, int sourceshift)
int thresh;
/* alternate approach: */
-
+
/* ignore the first 1/5 and last 1/5 of the line for the remaining computations */
source += sourcewidth / 5;
sourcewidth -= 2 * (sourcewidth / 5);
@@ -273,7 +273,7 @@ int vbi_parse_white_flag(const UINT16 *source, int sourcewidth, int sourceshift)
/*-------------------------------------------------
- vbi_parse_all - parse everything from a video
+ vbi_parse_all - parse everything from a video
frame
-------------------------------------------------*/
@@ -284,10 +284,10 @@ void vbi_parse_all(const UINT16 *source, int sourcerowpixels, int sourcewidth, i
/* first reset it all */
memset(vbi, 0, sizeof(*vbi));
-
+
/* get the white flag */
vbi->white = vbi_parse_white_flag(source + 11 * sourcerowpixels, sourcewidth, sourceshift);
-
+
/* parse line 16 */
if (vbi_parse_manchester_code(source + 16 * sourcerowpixels, sourcewidth, sourceshift, 24, bits[0]) == 24)
for (bitnum = 0; bitnum < 24; bitnum++)
@@ -309,11 +309,11 @@ void vbi_parse_all(const UINT16 *source, int sourcerowpixels, int sourcewidth, i
vbi->line1718 = vbi->line18;
else if (vbi->line18 == 0)
vbi->line1718 = vbi->line17;
-
+
/* if they agree, we're golden */
else if (vbi->line17 == vbi->line18)
vbi->line1718 = vbi->line17;
-
+
/* if they don't agree, we have to pick one */
else
{
diff --git a/src/mame/audio/gottlieb.c b/src/mame/audio/gottlieb.c
index 089727b614e..95aa96fa767 100644
--- a/src/mame/audio/gottlieb.c
+++ b/src/mame/audio/gottlieb.c
@@ -361,7 +361,7 @@ INPUT_PORTS_START( gottlieb1_sound )
PORT_BIT( 0x80, 0x80, IPT_UNKNOWN ) /* To U3-6 on QBert */
INPUT_PORTS_END
-
+
/*************************************
*
@@ -444,10 +444,10 @@ static TIMER_CALLBACK( nmi_callback )
/* assert the NMI if it is not disabled */
nmi_state = 1;
nmi_state_update(machine);
-
+
/* set a timer to turn it off again on hte next SOUND_CLOCK/16 */
timer_set(ATTOTIME_IN_HZ(SOUND2_CLOCK/16), NULL, 0, nmi_clear);
-
+
/* adjust the NMI timer for the next time */
nmi_timer_adjust();
}
@@ -483,7 +483,7 @@ static CUSTOM_INPUT( speech_drq_custom_r )
static WRITE8_HANDLER( dac_w )
{
/* dual DAC; the first DAC serves as the reference voltage for the
- second, effectively scaling the output */
+ second, effectively scaling the output */
dac_data[offset] = data;
DAC_data_16_w(0, dac_data[0] * dac_data[1]);
}
@@ -546,7 +546,7 @@ static SOUND_START( gottlieb2 )
nmi_timer = timer_alloc(nmi_callback, NULL);
nmi_rate = 0;
nmi_timer_adjust();
-
+
/* register for save states */
state_save_register_global(nmi_rate);
state_save_register_global(nmi_state);
@@ -565,7 +565,7 @@ static SOUND_START( gottlieb2 )
static ADDRESS_MAP_START( gottlieb_speech2_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x0000, 0x03ff) AM_MIRROR(0x1c00) AM_RAM
- AM_RANGE(0x2000, 0x2000) AM_MIRROR(0x1fff) AM_WRITEONLY AM_BASE(&sp0250_latch)
+ AM_RANGE(0x2000, 0x2000) AM_MIRROR(0x1fff) AM_WRITEONLY AM_BASE(&sp0250_latch)
AM_RANGE(0x4000, 0x4000) AM_MIRROR(0x1fff) AM_WRITE(speech_control_w)
AM_RANGE(0x6000, 0x6000) AM_MIRROR(0x1fff) AM_READ_PORT("GOTTLIEB2")
AM_RANGE(0x8000, 0x8000) AM_MIRROR(0x1fff) AM_WRITEONLY AM_BASE(&psg_latch)
@@ -633,7 +633,7 @@ MACHINE_DRIVER_START( gottlieb_soundrev2 )
MACHINE_DRIVER_END
-
+
/*************************************
*
* Rev. 2 input ports
diff --git a/src/mame/drivers/adp.c b/src/mame/drivers/adp.c
index 8104962f9c6..af027218e25 100644
--- a/src/mame/drivers/adp.c
+++ b/src/mame/drivers/adp.c
@@ -477,13 +477,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if ((fifo[0] & 0xfffc) == 0x5c00) /* SCLR */
{
@@ -498,13 +498,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if ((fifo[0] & 0xf0ff) == 0x6000) /* CPY */
{
@@ -521,13 +521,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if ((fifo[0] & 0xf0fc) == 0x7000) /* SCPY */
{
@@ -544,13 +544,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if (fifo[0] == 0x8000) /* AMOVE */
{
diff --git a/src/mame/drivers/ccastles.c b/src/mame/drivers/ccastles.c
index 29c48341075..9a6b64d922b 100644
--- a/src/mame/drivers/ccastles.c
+++ b/src/mame/drivers/ccastles.c
@@ -418,7 +418,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( ccastlej )
PORT_INCLUDE(ccastles)
-
+
PORT_MODIFY("LETA0")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
diff --git a/src/mame/drivers/circus.c b/src/mame/drivers/circus.c
index aae0460554f..9c9ffee1191 100644
--- a/src/mame/drivers/circus.c
+++ b/src/mame/drivers/circus.c
@@ -27,9 +27,9 @@ D000 Paddle Position and Interrupt Reset
Notes:
* Circus: Taito licensed and releasd the game as "Acrobat TV"
-
- 2008-07
- Dip locations verified with the manuals.
+
+ 2008-07
+ Dip locations verified with the manuals.
***************************************************************************/
@@ -62,7 +62,7 @@ static ADDRESS_MAP_START( readmem, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0xa000, 0xa000) AM_READ_PORT("INPUTS")
AM_RANGE(0xc000, 0xc000) AM_READ_PORT("DSW")
AM_RANGE(0xd000, 0xd000) AM_READ_PORT("PADDLE")
-// AM_RANGE(0xd000, 0xd000) AM_READ(ripcord_IN2_r)
+// AM_RANGE(0xd000, 0xd000) AM_READ(ripcord_IN2_r)
AM_RANGE(0xf000, 0xffff) AM_READ(SMH_ROM)
ADDRESS_MAP_END
diff --git a/src/mame/drivers/cischeat.c b/src/mame/drivers/cischeat.c
index 6139c6692f6..41f92623794 100644
--- a/src/mame/drivers/cischeat.c
+++ b/src/mame/drivers/cischeat.c
@@ -1044,7 +1044,7 @@ static INPUT_PORTS_START( bigrun )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
-
+
PORT_START("IN4") // DSW 2 & 3 - $80006.w
// DSW 3
PORT_DIPNAME( 0x0003, 0x0003, "Extra Setting For Coin B" ) PORT_DIPLOCATION("SW302:8,7") /* 'Not used' (and must be OFF) according to the manual */
@@ -1103,8 +1103,8 @@ static INPUT_PORTS_START( bigrun )
PORT_DIPSETTING( 0x0000, DEF_STR( Free_Play ) )
PORT_START("IN5") // DSW 3 (4 bits, Cabinet Linking) - $82200.w
- /* According to Manual: "When Machines are linked for simultaneous racing throught the
- Com-Link System, SW1 should be set as shown", i.e. ON for Master Machine, OFF for others */
+ /* According to Manual: "When Machines are linked for simultaneous racing throught the
+ Com-Link System, SW1 should be set as shown", i.e. ON for Master Machine, OFF for others */
PORT_DIPNAME( 0x01, 0x00, "Link ID" ) PORT_DIPLOCATION("SW1:1")
PORT_DIPSETTING( 0x00, "Master Unit" )
PORT_DIPSETTING( 0x01, "Other Units" )
diff --git a/src/mame/drivers/citycon.c b/src/mame/drivers/citycon.c
index 1ac70962f6b..50d1b43feb7 100644
--- a/src/mame/drivers/citycon.c
+++ b/src/mame/drivers/citycon.c
@@ -125,9 +125,9 @@ static INPUT_PORTS_START( citycon )
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x00, "SW2:6" )
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x00, "SW2:7" )
/* According to manual this is Flip Screen setting */
-// PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip Screen ) ) PORT_DIPLOCATION("SW2:8")
-// PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
-// PORT_DIPSETTING( 0x00, DEF_STR( On ) )
+// PORT_DIPNAME( 0x80, 0x80, DEF_STR( Flip Screen ) ) PORT_DIPLOCATION("SW2:8")
+// PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
+// PORT_DIPSETTING( 0x00, DEF_STR( On ) )
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW2:8" )
INPUT_PORTS_END
diff --git a/src/mame/drivers/cloak.c b/src/mame/drivers/cloak.c
index 6aeafbbe629..38628d0543d 100644
--- a/src/mame/drivers/cloak.c
+++ b/src/mame/drivers/cloak.c
@@ -93,10 +93,10 @@
Motion object ROM: 136023.307,136023.308
Playfield ROM: 136023.306,136023.305
-
-
- 2008-07
- Dip locations and suggested settings verified with manual.
+
+
+ 2008-07
+ Dip locations and suggested settings verified with manual.
****************************************************************************/
diff --git a/src/mame/drivers/cntsteer.c b/src/mame/drivers/cntsteer.c
index 0d245e4eb7f..f82a45df125 100644
--- a/src/mame/drivers/cntsteer.c
+++ b/src/mame/drivers/cntsteer.c
@@ -343,13 +343,13 @@ static ADDRESS_MAP_START( cntsteer_cpu1_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x2000, 0x27ff) AM_RAM_WRITE(cntsteer_foreground_w) AM_BASE(&videoram)
AM_RANGE(0x2800, 0x2fff) AM_RAM
-// AM_RANGE(0x1b00, 0x1b00) AM_READ_PORT("DSW0")
-// AM_RANGE(0x1b01, 0x1b01) AM_READ_PORT("DSW0")
-// AM_RANGE(0x3000, 0x3003) AM_WRITE(zerotrgt_ctrl_w)
-// AM_RANGE(0x3000, 0x3000) AM_WRITE(cntsteer_halt_cpu0_w)
-// AM_RANGE(0x3001, 0x3001) AM_WRITE(gekitsui_int2_w)
+// AM_RANGE(0x1b00, 0x1b00) AM_READ_PORT("DSW0")
+// AM_RANGE(0x1b01, 0x1b01) AM_READ_PORT("DSW0")
+// AM_RANGE(0x3000, 0x3003) AM_WRITE(zerotrgt_ctrl_w)
+// AM_RANGE(0x3000, 0x3000) AM_WRITE(cntsteer_halt_cpu0_w)
+// AM_RANGE(0x3001, 0x3001) AM_WRITE(gekitsui_int2_w)
-// AM_RANGE(0x3003, 0x3003) AM_READ_PORT("DSW1")
+// AM_RANGE(0x3003, 0x3003) AM_READ_PORT("DSW1")
AM_RANGE(0x8000, 0xffff) AM_ROM
ADDRESS_MAP_END
@@ -361,15 +361,15 @@ static ADDRESS_MAP_START( cntsteer_cpu2_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE(0x3001, 0x3001) AM_READ_PORT("DSW1")
AM_RANGE(0x3002, 0x3002) AM_READ_PORT("P1")
AM_RANGE(0x3003, 0x3003) AM_READ_PORT("P2")
-// AM_RANGE(0x3002, 0x3002) AM_WRITE(gekitsui_int_w)
-// AM_RANGE(0x3000, 0x3003) AM_WRITE(zerotrgt_ctrl_w)
+// AM_RANGE(0x3002, 0x3002) AM_WRITE(gekitsui_int_w)
+// AM_RANGE(0x3000, 0x3003) AM_WRITE(zerotrgt_ctrl_w)
// wrong 0 1 2 3 are scroll/rotate
-// AM_RANGE(0x3002, 0x3002) AM_WRITE(cntsteer_restart_cpu0_w)
-// AM_RANGE(0x3000, 0x3003) AM_WRITENOP
+// AM_RANGE(0x3002, 0x3002) AM_WRITE(cntsteer_restart_cpu0_w)
+// AM_RANGE(0x3000, 0x3003) AM_WRITENOP
// 3007 and 3003 have values..
AM_RANGE(0x3007, 0x3007) AM_WRITE(cntsteer_sound_w)
-// AM_RANGE(0x300a, 0x300a) AM_WRITE(cntsteer_int_w)
-// AM_RANGE(0x3004, 0x3004) AM_WRITE(cntsteer_int_w)
+// AM_RANGE(0x300a, 0x300a) AM_WRITE(cntsteer_int_w)
+// AM_RANGE(0x3004, 0x3004) AM_WRITE(cntsteer_int_w)
AM_RANGE(0x4000, 0xffff) AM_ROM
ADDRESS_MAP_END
#endif
diff --git a/src/mame/drivers/cojag.c b/src/mame/drivers/cojag.c
index 52f8b4bb19c..e97c6a98575 100644
--- a/src/mame/drivers/cojag.c
+++ b/src/mame/drivers/cojag.c
@@ -848,7 +848,7 @@ static ADDRESS_MAP_START( m68020_map, ADDRESS_SPACE_PROGRAM, 32 )
AM_RANGE(0xf10000, 0xf103ff) AM_READWRITE(jaguar_jerry_regs32_r, jaguar_jerry_regs32_w)
AM_RANGE(0xf16000, 0xf1600b) AM_READ(cojag_gun_input_r) // GPI02
AM_RANGE(0xf17000, 0xf17003) AM_READ(status_r) // GPI03
-// AM_RANGE(0xf17800, 0xf17803) AM_WRITE(latch_w) // GPI04
+// AM_RANGE(0xf17800, 0xf17803) AM_WRITE(latch_w) // GPI04
AM_RANGE(0xf17c00, 0xf17c03) AM_READ_PORT("P1_P2") // GPI05
AM_RANGE(0xf1a100, 0xf1a13f) AM_READWRITE(dspctrl_r, dspctrl_w)
AM_RANGE(0xf1a140, 0xf1a17f) AM_READWRITE(jaguar_serial_r, jaguar_serial_w)
diff --git a/src/mame/drivers/copsnrob.c b/src/mame/drivers/copsnrob.c
index 272d753a087..fe8ed3c426a 100644
--- a/src/mame/drivers/copsnrob.c
+++ b/src/mame/drivers/copsnrob.c
@@ -6,7 +6,7 @@
Games supported:
* Cops'n Robbers
-
+
Known issues:
* none at this time
@@ -48,7 +48,7 @@
0b00-0bff Car Sync Area
1000 Sound effect and start led triggers must be here - 1000: LED 2
1001-1003 ???
-
+
2008-08
Added Dip locations according to manual.
diff --git a/src/mame/drivers/cosmic.c b/src/mame/drivers/cosmic.c
index eb87ce68465..455e8551cb2 100644
--- a/src/mame/drivers/cosmic.c
+++ b/src/mame/drivers/cosmic.c
@@ -10,18 +10,18 @@ Devil Zone - 8022
2008-08
-Dip locations verified with manuals for all the games.
+Dip locations verified with manuals for all the games.
Note on Coinage DSW (devzone and magspot only):
-According to manuals, coinage settings (see "DSW" port) should be set by
-a physical DSW B but only read when SWA:3,4 are both set to OFF. Currently,
+According to manuals, coinage settings (see "DSW" port) should be set by
+a physical DSW B but only read when SWA:3,4 are both set to OFF. Currently,
* In magspot, SWA:3 affects the number of lives & SWA:4 seems to have no
- effect
+ effect
* In devzone, setting SWA:3,4 on anything but OFF,OFF results in no coins
- accepted at all
+ accepted at all
***************************************************************************/
@@ -478,7 +478,7 @@ static INPUT_PORTS_START( cosmica )
PORT_DIPSETTING( 0x08, DEF_STR( 2C_1C ) )
PORT_DIPSETTING( 0x0c, DEF_STR( 1C_1C ) )
PORT_DIPSETTING( 0x04, DEF_STR( 1C_2C ) )
-// PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
+// PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
PORT_DIPNAME( 0x30, 0x30, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW:2,1")
PORT_DIPSETTING( 0x30, "5000" )
PORT_DIPSETTING( 0x20, "10000" )
@@ -575,15 +575,15 @@ static INPUT_PORTS_START( magspot )
PORT_DIPSETTING( 0x03, "5000" )
PORT_DIPSETTING( 0x00, DEF_STR( None ) )
/* According to the manual, bits 2-3 should control coinage like in devzone
- and only bit 4 should control lives setting. */
-// PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:3,4")
-// PORT_DIPSETTING( 0x0c, "Use Coin A & B" )
-// PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) )
-// PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
-// PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) )
-// PORT_DIPNAME( 0x10, 0x10, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2")
-// PORT_DIPSETTING( 0x00, "2" )
-// PORT_DIPSETTING( 0x10, "3" )
+ and only bit 4 should control lives setting. */
+// PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SWA:3,4")
+// PORT_DIPSETTING( 0x0c, "Use Coin A & B" )
+// PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) )
+// PORT_DIPSETTING( 0x00, DEF_STR( 1C_1C ) )
+// PORT_DIPSETTING( 0x08, DEF_STR( 1C_2C ) )
+// PORT_DIPNAME( 0x10, 0x10, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2")
+// PORT_DIPSETTING( 0x00, "2" )
+// PORT_DIPSETTING( 0x10, "3" )
PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x00, "SWA:4" )
PORT_DIPNAME( 0x18, 0x08, DEF_STR( Lives ) ) PORT_DIPLOCATION("SWA:2,3")
PORT_DIPSETTING( 0x00, "2" )
@@ -792,7 +792,7 @@ INPUT_PORTS_END
static INPUT_PORTS_START( nomnlndg )
PORT_INCLUDE( nomnlnd )
-
+
PORT_MODIFY("IN2")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Bonus_Life ) ) PORT_DIPLOCATION("SW:5,6")
PORT_DIPSETTING( 0x01, "3000" )
diff --git a/src/mame/drivers/couple.c b/src/mame/drivers/couple.c
index 6f1305f6ef1..1558931e305 100644
--- a/src/mame/drivers/couple.c
+++ b/src/mame/drivers/couple.c
@@ -152,9 +152,9 @@ static ADDRESS_MAP_START( merit_mem, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE( 0xc004, 0xc007 ) AM_DEVREADWRITE(PPI8255, "ppi8255_0", ppi8255_r, ppi8255_w)
AM_RANGE( 0xc008, 0xc00a ) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w)
AM_RANGE( 0xc00b, 0xc00b ) AM_WRITE(merit_prot_w)
-// AM_RANGE( 0xc000, 0xc00f ) AM_READ(dummy_inputs_r)
-// AM_RANGE( 0xc008, 0xc008 ) AM_READ_PORT("P1")
-// AM_RANGE( 0xc00a, 0xc00a ) AM_READ_PORT("DSW")
+// AM_RANGE( 0xc000, 0xc00f ) AM_READ(dummy_inputs_r)
+// AM_RANGE( 0xc008, 0xc008 ) AM_READ_PORT("P1")
+// AM_RANGE( 0xc00a, 0xc00a ) AM_READ_PORT("DSW")
AM_RANGE( 0xe000, 0xe000 ) AM_DEVWRITE(MC6845, "crtc", mc6845_address_w)
AM_RANGE( 0xe001, 0xe001 ) AM_DEVWRITE(MC6845, "crtc", mc6845_register_w)
AM_RANGE( 0xe800, 0xefff ) AM_RAM_WRITE(couple_vram_hi_w) AM_BASE(&vram_hi)
@@ -163,7 +163,7 @@ static ADDRESS_MAP_START( merit_mem, ADDRESS_SPACE_PROGRAM, 8 )
ADDRESS_MAP_END
static ADDRESS_MAP_START( merit_io, ADDRESS_SPACE_IO, 8 )
-// ADDRESS_MAP_GLOBAL_MASK(0xff)
+// ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0xc00c, 0xc00c) AM_WRITE(AY8910_control_port_0_w)
AM_RANGE(0xc10c, 0xc10c) AM_WRITE(AY8910_write_port_0_w)
ADDRESS_MAP_END
diff --git a/src/mame/drivers/cps1.c b/src/mame/drivers/cps1.c
index 92298842812..d7d9052762c 100644
--- a/src/mame/drivers/cps1.c
+++ b/src/mame/drivers/cps1.c
@@ -152,7 +152,7 @@ Stephh's log (2006.09.20) :
* 'forgottu' and 'lostwrld'
* 'ghouls' and 'daimakai'
* 'dynwar' and 'dynwarj'
-
+
2008-07:
- replaced input read handler with direct AM_READ_PORT where suitable
diff --git a/src/mame/drivers/crimfght.c b/src/mame/drivers/crimfght.c
index 2fd51388922..f209ad32da6 100644
--- a/src/mame/drivers/crimfght.c
+++ b/src/mame/drivers/crimfght.c
@@ -140,11 +140,11 @@ static INPUT_PORTS_START( crimfght )
PORT_DIPSETTING( 0x00, "Invalid" ) */
PORT_START("DSW2")
- PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Manual says these are unused */
- PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW2:2" ) /* Manual says these are unused */
- PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "SW2:3" ) /* Manual says these are unused */
- PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW2:4" ) /* Manual says these are unused */
- PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW2:5" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x01, 0x01, "SW2:1" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW2:2" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x04, 0x04, "SW2:3" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW2:4" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x10, 0x10, "SW2:5" ) /* Manual says these are unused */
PORT_DIPNAME( 0x60, 0x40, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("SW2:6,7")
PORT_DIPSETTING( 0x60, DEF_STR( Easy ) )
PORT_DIPSETTING( 0x40, DEF_STR( Normal ) )
@@ -158,9 +158,9 @@ static INPUT_PORTS_START( crimfght )
PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW3:1")
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
- PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW3:2" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x02, 0x02, "SW3:2" ) /* Manual says these are unused */
PORT_SERVICE_DIPLOC( 0x04, IP_ACTIVE_HIGH, "SW3:3" )
- PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW3:4" ) /* Manual says these are unused */
+ PORT_DIPUNKNOWN_DIPLOC( 0x08, 0x08, "SW3:4" ) /* Manual says these are unused */
PORT_BIT( 0xf0, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("P1")
@@ -234,7 +234,7 @@ static INPUT_PORTS_START( crimfgtj )
PORT_DIPSETTING( 0xb0, DEF_STR( 1C_5C ) )
PORT_DIPSETTING( 0xa0, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x90, DEF_STR( 1C_7C ) )
-// PORT_DIPSETTING( 0x00, "Invalid" )
+// PORT_DIPSETTING( 0x00, "Invalid" )
PORT_MODIFY("DSW2")
PORT_DIPNAME( 0x03, 0x02, DEF_STR( Lives ) ) PORT_DIPLOCATION("SW2:1,2")
diff --git a/src/mame/drivers/darkseal.c b/src/mame/drivers/darkseal.c
index 9aed5c485e1..b6422257d8b 100644
--- a/src/mame/drivers/darkseal.c
+++ b/src/mame/drivers/darkseal.c
@@ -8,9 +8,9 @@
Emulation by Bryan McPhail, mish@tendril.co.uk
- 2008-08
- Dip locations verified with the manual.
-
+ 2008-08
+ Dip locations verified with the manual.
+
***************************************************************************/
#include "driver.h"
diff --git a/src/mame/drivers/dblewing.c b/src/mame/drivers/dblewing.c
index ff3aa51118e..ba4675970a9 100644
--- a/src/mame/drivers/dblewing.c
+++ b/src/mame/drivers/dblewing.c
@@ -307,13 +307,13 @@ static ADDRESS_MAP_START( dblewing_map, ADDRESS_SPACE_PROGRAM, 16 )
AM_RANGE(0x106000, 0x106fff) AM_READ(SMH_RAM) AM_WRITE(SMH_RAM) AM_BASE(&deco16_pf2_rowscroll)
/* protection */
-// AM_RANGE(0x280104, 0x280105) AM_WRITE(SMH_NOP) // ??
+// AM_RANGE(0x280104, 0x280105) AM_WRITE(SMH_NOP) // ??
AM_RANGE(0x2800ac, 0x2800ad) AM_READ_PORT("DSW") // dips
AM_RANGE(0x280298, 0x280299) AM_READ_PORT("SYSTEM") // vbl
AM_RANGE(0x280506, 0x280507) AM_READ_PORT("UNK")
AM_RANGE(0x2802B4, 0x2802B5) AM_READ_PORT("P1_P2") // inverted?
-// AM_RANGE(0x280330, 0x280331) AM_READ(SMH_NOP) // sound?
-// AM_RANGE(0x280380, 0x280381) AM_WRITE(SMH_NOP) // sound
+// AM_RANGE(0x280330, 0x280331) AM_READ(SMH_NOP) // sound?
+// AM_RANGE(0x280380, 0x280381) AM_WRITE(SMH_NOP) // sound
AM_RANGE(0x280000, 0x2807ff) AM_READWRITE(dlbewing_prot_r,dblewing_prot_w)
diff --git a/src/mame/drivers/dday.c b/src/mame/drivers/dday.c
index de3241e7383..5d0d105c7ef 100644
--- a/src/mame/drivers/dday.c
+++ b/src/mame/drivers/dday.c
@@ -203,7 +203,7 @@ static INPUT_PORTS_START( ddayc )
PORT_DIPSETTING( 0x30, DEF_STR( Easy ) ) // Easy - No Bombs, No Troop Carriers
PORT_DIPSETTING( 0x20, DEF_STR( Normal ) ) // Normal - No Bombs, Troop Carriers
PORT_DIPSETTING( 0x10, DEF_STR( Hard ) ) // Hard - Bombs, Troop Carriers
-// PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) // Same as 0x10
+// PORT_DIPSETTING( 0x00, DEF_STR( Hard ) ) // Same as 0x10
PORT_DIPNAME( 0x40, 0x00, DEF_STR( Unknown ) ) // Doesn't seem to be used
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
diff --git a/src/mame/drivers/ddenlovr.c b/src/mame/drivers/ddenlovr.c
index eb4c9217fbc..fee865afdc7 100644
--- a/src/mame/drivers/ddenlovr.c
+++ b/src/mame/drivers/ddenlovr.c
@@ -7195,7 +7195,7 @@ Notes:
YM2413 clock - 3.579545MHz [14.31818/4]
VSync - \
HSync - / No reading, dead PCB
-
+
Z80 x2
OSC 24MHz, 14.31818MHz, 16MHz
Oki M6295 + YM2413 + AY-3-8910
diff --git a/src/mame/drivers/deco_mlc.c b/src/mame/drivers/deco_mlc.c
index de2878db8fd..8867b2aff41 100644
--- a/src/mame/drivers/deco_mlc.c
+++ b/src/mame/drivers/deco_mlc.c
@@ -501,13 +501,13 @@ MACHINE_DRIVER_END
Marvel Comics Avengers In Galactic Storm (Japan)
Data East, 1996
-This game is special because it uses a standard Hitachi SH2 CPU instead of the
+This game is special because it uses a standard Hitachi SH2 CPU instead of the
custom DE156 encrypted CPU.
Notes:
- SH2 (QFP144) clock: 21.000MHz (42 / 2)
- All ROMs SD* are 4M x 16bit EPROMS (27C4096)
- - All MCG* ROMs are surface mounted 16M MASK ROMs
+ - All MCG* ROMs are surface mounted 16M MASK ROMs
- (mcg-01.1d read in 8 bit mode because this ROM had fixed bits when read in 16 bit
mode, reading as 8 bit gave a good read. Others read in 16 bit mode)
*/
diff --git a/src/mame/drivers/dynduke.c b/src/mame/drivers/dynduke.c
index 64664a200b4..847255425c5 100644
--- a/src/mame/drivers/dynduke.c
+++ b/src/mame/drivers/dynduke.c
@@ -57,7 +57,7 @@
2008-07
-Dip locations and factory settings verified with dip listing
+Dip locations and factory settings verified with dip listing
Also, implemented conditional port for Coin Mode (SW1:1)
***************************************************************************/
diff --git a/src/mame/drivers/fcrash.c b/src/mame/drivers/fcrash.c
index e255fd67ef6..7284abfd96c 100644
--- a/src/mame/drivers/fcrash.c
+++ b/src/mame/drivers/fcrash.c
@@ -384,8 +384,8 @@ static ADDRESS_MAP_START( kodb_map, ADDRESS_SPACE_PROGRAM, 16 )
/* Forgotten Worlds has dial controls on B-board mapped at 800040-80005f. See DRIVER_INIT */
AM_RANGE(0x800100, 0x80013f) AM_WRITE(cps1_cps_a_w) AM_BASE(&cps1_cps_a_regs) /* CPS-A custom */
AM_RANGE(0x800140, 0x80017f) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) AM_BASE(&cps1_cps_b_regs) /* CPS-B custom */
-// AM_RANGE(0x800180, 0x800187) AM_WRITE(cps1_soundlatch_w) /* Sound command */
-// AM_RANGE(0x800188, 0x80018f) AM_WRITE(cps1_soundlatch2_w) /* Sound timer fade */
+// AM_RANGE(0x800180, 0x800187) AM_WRITE(cps1_soundlatch_w) /* Sound command */
+// AM_RANGE(0x800188, 0x80018f) AM_WRITE(cps1_soundlatch2_w) /* Sound timer fade */
AM_RANGE(0x8001c0, 0x8001ff) AM_READWRITE(cps1_cps_b_r, cps1_cps_b_w) /* mirror (SF2 revision "E" US 910228) */
AM_RANGE(0x900000, 0x92ffff) AM_RAM_WRITE(cps1_gfxram_w) AM_BASE(&cps1_gfxram) AM_SIZE(&cps1_gfxram_size) /* SF2CE executes code from here */
AM_RANGE(0xff0000, 0xffffff) AM_RAM
diff --git a/src/mame/drivers/flstory.c b/src/mame/drivers/flstory.c
index 6819abe2ab9..ec1c826edf1 100644
--- a/src/mame/drivers/flstory.c
+++ b/src/mame/drivers/flstory.c
@@ -949,15 +949,15 @@ PALs : None
PROMs : None
DIPSW : None
- Byte
-ROMs : (All type 2764) C'sum
+ Byte
+ROMs : (All type 2764) C'sum
------------------------------
-A16_12.8 059Bh
-A16_13.9 3F12h
-A16_14.10 CC99h
-A16_15.37 9D55h
-A16_16.38 B04Dh
-A16_17.39 90B1h
+A16_12.8 059Bh
+A16_13.9 3F12h
+A16_14.10 CC99h
+A16_15.37 9D55h
+A16_16.38 B04Dh
+A16_17.39 90B1h
*************
@@ -966,15 +966,15 @@ A16_17.39 90B1h
---------
PCB No: J9100006A K9100009A
- Byte
-ROMs : (All type 2764) C'sum
+ Byte
+ROMs : (All type 2764) C'sum
------------------------------
-A16_19.1 22E3h
-A16_20.2 D3AEh
-A16_21.3 DB99h
-A16_22.4 B4CDh
-A16_23.5 92C8h
-A16_24.6 1641h
+A16_19.1 22E3h
+A16_20.2 D3AEh
+A16_21.3 DB99h
+A16_22.4 B4CDh
+A16_23.5 92C8h
+A16_24.6 1641h
*************
@@ -1000,17 +1000,17 @@ PCB No: J1100006A K1100012A
XTAL : 18.432MHz
RAM : 2148 (x9), M5M5517 (x1)
- Byte
-ROMs : (All type 2764) C'sum
+ Byte
+ROMs : (All type 2764) C'sum
------------------------------
-A16_04.5 64A6h
-A16_05-1.6 5DB1h
-A16_06-1.7 25E2h
-A16_07-2.8 E61Eh
-A16_08.88 2718h
-A16_09-1.89 57AAh
-A16_10.90 7A95h
-A16_11-1.91 4DD6h
+A16_04.5 64A6h
+A16_05-1.6 5DB1h
+A16_06-1.7 25E2h
+A16_07-2.8 E61Eh
+A16_08.88 2718h
+A16_09-1.89 57AAh
+A16_10.90 7A95h
+A16_11-1.91 4DD6h
*/
diff --git a/src/mame/drivers/galaga.c b/src/mame/drivers/galaga.c
index a763f76d778..d471e1b29c3 100644
--- a/src/mame/drivers/galaga.c
+++ b/src/mame/drivers/galaga.c
@@ -2186,7 +2186,7 @@ Notes:
GG1-1.1D & GG1-2.5C are PROMs, type MB7052 (equivalent to TBP24S10 and 82S129).
All other ROMs are 2732 EPROMs (i.e. 04*.*).
*: Unpopulated sockets
-
+
VSync : 60.606060Hz
Z80 clocks (all): 1.536MHz
5400 clock : 1.536MHz
@@ -2196,7 +2196,7 @@ Notes:
MB3730 : Sound AMP
TD62064: Darlington transistor for driving coin counters.
4066 : Quad Bilateral Switch logic IC, used to mix several sound sources to one output.
-
+
NAMCO customs:
0600 (DIP28): Bus Interface IC
0801 (DIP28): Multi CPU Bus Controller IC
@@ -2205,37 +2205,37 @@ Notes:
5400 (DIP28): MUX 4-channel Audio Generator IC. Generates 'death bang'.
This is not a Z80 with swapped pins as many sites have reported.
- Pinouts:
- Galaga PCB edge connector pinouts
+ Pinouts:
+ Galaga PCB edge connector pinouts
- Parts Side Pin Pin Solder Side
+ Parts Side Pin Pin Solder Side
----------------------------------
- Logic Ground A 1 Logic Ground
- Speaker + B 2 Speaker -
- C 3 Coin Counter 1
- P1 Start Lamp D 4 P2 Start Lamp
- +12 E 5 +12
- +5 F 6 +5
- Ground H 7 Ground
- Service Credit J 8 Test
- Coin 1 K 9 Coin 2
- Player 1 Start L 10 Player 2 Start
- P1 Fire M 11 P2 Fire
- P1 Left N 12 P2 Left
- P 13
- P1 Right R 14 P2 Right
- S 15
- T 16
- U 17
- V 18
- W 19
- X 20
- Coin Counter 2 Y 21 Cocktail Mode
- Ground Z 22 Ground
-
- Pin21: Ground this pin for cocktail mode
-
-
+ Logic Ground A 1 Logic Ground
+ Speaker + B 2 Speaker -
+ C 3 Coin Counter 1
+ P1 Start Lamp D 4 P2 Start Lamp
+ +12 E 5 +12
+ +5 F 6 +5
+ Ground H 7 Ground
+ Service Credit J 8 Test
+ Coin 1 K 9 Coin 2
+ Player 1 Start L 10 Player 2 Start
+ P1 Fire M 11 P2 Fire
+ P1 Left N 12 P2 Left
+ P 13
+ P1 Right R 14 P2 Right
+ S 15
+ T 16
+ U 17
+ V 18
+ W 19
+ X 20
+ Coin Counter 2 Y 21 Cocktail Mode
+ Ground Z 22 Ground
+
+ Pin21: Ground this pin for cocktail mode
+
+
Bottom board
23149612 (23149632
@@ -2271,34 +2271,34 @@ Notes:
GG1* are PROMs, type MB7052 (equivalent to TBP24S10 and 82S129).
All other ROMs are 2732 EPROMs.
*: Unpopulated socket
-
+
2114 : 1K x4 SRAM
6116 : 2K x8 SRAM
8147 : 4K x1 SRAM (Note - you can remove the eight 8147 RAMs and install two 2148s (1K x 4) in their place at positions 6H and 6B.
Bootup RAM Errors
- Error Code Meaning
- RAM OK All RAMs are good
- RAM 0L RAM located on Video PC board at position 1K is bad
- RAM 0H RAM located on Video PC board at position 1K is bad
- RAM 1L RAM located on Video PC board at position 1K is bad
- RAM 1H RAM located on Video PC board at position 1K is bad
- RAM 2L RAM located on Video PC board at position 3E is bad
- RAM 2H RAM located on Video PC board at position 3F is bad
- RAM 3L RAM located on Video PC board at position 3K is bad
- RAM 3H RAM located on Video PC board at position 3L is bad
- RAM 4L RAM located on Video PC board at position 3H is bad
- RAM 4H RAM located on Video PC board at position 3J is bad
-
- Bootup ROM Errors
- Error Code Meaning
- ROM OK All ROMs are good
- ROM 01 ROM located on CPU PC board at position 3N is bad
- ROM 02 ROM located on CPU PC board at position 3M is bad
- ROM 03 ROM located on CPU PC board at position 3L is bad
- ROM 04 ROM located on CPU PC board at position 3K is bad
- ROM 11 ROM located on CPU PC board at position 3J is bad
- ROM 21 ROM located on CPU PC board at position 3E is bad
+ Error Code Meaning
+ RAM OK All RAMs are good
+ RAM 0L RAM located on Video PC board at position 1K is bad
+ RAM 0H RAM located on Video PC board at position 1K is bad
+ RAM 1L RAM located on Video PC board at position 1K is bad
+ RAM 1H RAM located on Video PC board at position 1K is bad
+ RAM 2L RAM located on Video PC board at position 3E is bad
+ RAM 2H RAM located on Video PC board at position 3F is bad
+ RAM 3L RAM located on Video PC board at position 3K is bad
+ RAM 3H RAM located on Video PC board at position 3L is bad
+ RAM 4L RAM located on Video PC board at position 3H is bad
+ RAM 4H RAM located on Video PC board at position 3J is bad
+
+ Bootup ROM Errors
+ Error Code Meaning
+ ROM OK All ROMs are good
+ ROM 01 ROM located on CPU PC board at position 3N is bad
+ ROM 02 ROM located on CPU PC board at position 3M is bad
+ ROM 03 ROM located on CPU PC board at position 3L is bad
+ ROM 04 ROM located on CPU PC board at position 3K is bad
+ ROM 11 ROM located on CPU PC board at position 3J is bad
+ ROM 21 ROM located on CPU PC board at position 3E is bad
NAMCO customs:
0015 (DIP28): Video RAM addresser IC
diff --git a/src/mame/drivers/galivan.c b/src/mame/drivers/galivan.c
index 71459c75541..74f8d7d861e 100644
--- a/src/mame/drivers/galivan.c
+++ b/src/mame/drivers/galivan.c
@@ -990,7 +990,7 @@ ROMs :
PROMs: pr.7h \
pr.2e / type 82s129, near ROMs 13 - 16
-
+
ROMIDENT Reference:
-------------------
1.1D [692ae497] NOT FOUND!
diff --git a/src/mame/drivers/gottlieb.c b/src/mame/drivers/gottlieb.c
index d0f43a77bc9..a9852d80d9d 100644
--- a/src/mame/drivers/gottlieb.c
+++ b/src/mame/drivers/gottlieb.c
@@ -264,11 +264,11 @@ static MACHINE_START( gottlieb )
/* allocate a timer for serial transmission, and one for philips code processing */
laserdisc_bit_timer = timer_alloc(laserdisc_bit_callback, NULL);
laserdisc_philips_timer = timer_alloc(laserdisc_philips_callback, NULL);
-
+
/* create some audio RAM */
laserdisc_audio_buffer = auto_malloc(AUDIORAM_SIZE);
laserdisc_status = 0x38;
-
+
/* more save state registration */
state_save_register_global(laserdisc_select);
state_save_register_global(laserdisc_status);
@@ -341,15 +341,15 @@ static WRITE8_HANDLER( general_output_w )
gottlieb_video_control_w(machine, offset, data);
else
gottlieb_laserdisc_video_control_w(machine, offset, data);
-
+
/* bit 4 controls the coin meter */
coin_counter_w(0, data & 0x10);
/* bit 5 controls the knocker */
output_set_value("knocker0", (data >> 5) & 1);
-
+
/* bit 6 controls "COIN1"; it appears that no games used this */
-
+
/* bit 7 controls the optional coin lockout; it appears that no games used this */
}
@@ -418,7 +418,7 @@ static WRITE8_HANDLER( laserdisc_select_w )
static WRITE8_HANDLER( laserdisc_command_w )
{
/* a write here latches data into a 8-bit register and starts
- a sequence of events that sends serial data to the player */
+ a sequence of events that sends serial data to the player */
/* set a timer to clock the bits through; a total of 12 bits are clocked */
timer_adjust_oneshot(laserdisc_bit_timer, attotime_mul(LASERDISC_CLOCK, 10), (12 << 16) | data);
@@ -440,15 +440,15 @@ static TIMER_CALLBACK( laserdisc_philips_callback )
int newcode = laserdisc_get_field_code(laserdisc, (param == 17) ? LASERDISC_CODE_LINE17 : LASERDISC_CODE_LINE18);
/* the PR8210 sends line 17/18 data on each frame; the laserdisc interface
- board receives notification and latches the most recent frame number */
-
+ board receives notification and latches the most recent frame number */
+
/* the logic detects a valid code when the top 4 bits are all 1s */
if ((newcode & 0xf00000) == 0xf00000)
{
laserdisc_philips_code = newcode;
laserdisc_status = (laserdisc_status & ~0x07) | ((newcode >> 16) & 7);
}
-
+
/* toggle to the next one */
param = (param == 17) ? 18 : 17;
timer_adjust_oneshot(laserdisc_philips_timer, video_screen_get_time_until_pos(machine->primary_screen, param, 0), param);
@@ -467,19 +467,19 @@ static TIMER_CALLBACK( laserdisc_bit_callback )
UINT8 bitsleft = param >> 16;
UINT8 data = param;
attotime duration;
-
+
/* assert the line and set a timer for deassertion */
laserdisc_line_w(laserdisc, LASERDISC_LINE_CONTROL, ASSERT_LINE);
timer_set(attotime_mul(LASERDISC_CLOCK, 10), NULL, 0, laserdisc_bit_off_callback);
-
- /* determine how long for the next command; there is a 555 timer with a
- variable resistor controlling the timing of the pulses. Nominally, the
- 555 runs at 40083Hz, is divided by 10, and then is divided by 4 for a
- 0 bit or 8 for a 1 bit. This gives 998usec per 0 pulse or 1996usec
- per 1 pulse. */
+
+ /* determine how long for the next command; there is a 555 timer with a
+ variable resistor controlling the timing of the pulses. Nominally, the
+ 555 runs at 40083Hz, is divided by 10, and then is divided by 4 for a
+ 0 bit or 8 for a 1 bit. This gives 998usec per 0 pulse or 1996usec
+ per 1 pulse. */
duration = attotime_mul(LASERDISC_CLOCK, 10 * ((data & 0x80) ? 8 : 4));
data <<= 1;
-
+
/* if we're not out of bits, set a timer for the next one; else set the ready bit */
if (bitsleft-- != 0)
timer_adjust_oneshot(laserdisc_bit_timer, duration, (bitsleft << 16) | data);
@@ -498,7 +498,7 @@ static TIMER_CALLBACK( laserdisc_bit_callback )
INLINE void audio_end_state(void)
{
/* this occurs either when the "break in transmission" condition is hit (no zero crossings
- for 400usec) or when the entire audio buffer is full */
+ for 400usec) or when the entire audio buffer is full */
laserdisc_status |= 0x08;
laserdisc_audio_bit_count = 0;
laserdisc_audio_address = 0;
@@ -520,26 +520,26 @@ static void audio_process_clock(int logit)
{
if (laserdisc_audio_bits == 0x67)
{
- if (logit)
+ if (logit)
logerror(" -- got 0x67");
laserdisc_status &= ~0x08;
laserdisc_audio_address = 0;
}
}
-
+
/* otherwise, we keep clocking bytes into the audio buffer */
else
{
laserdisc_audio_bit_count++;
-
+
/* if we collect 8 bits, add to the buffer */
if (laserdisc_audio_bit_count == 8)
{
- if (logit)
+ if (logit)
logerror(" -- got new byte %02X", laserdisc_audio_bits);
laserdisc_audio_bit_count = 0;
laserdisc_audio_buffer[laserdisc_audio_address++] = laserdisc_audio_bits;
-
+
/* if we collect a full buffer, signal */
if (laserdisc_audio_address >= AUDIORAM_SIZE)
audio_end_state();
@@ -547,41 +547,41 @@ static void audio_process_clock(int logit)
}
}
-
+
static void audio_handle_zero_crossing(attotime zerotime, int logit)
{
/* compute time from last clock */
attotime deltaclock = attotime_sub(zerotime, laserdisc_last_clock);
- if (logit)
+ if (logit)
logerror(" -- zero @ %s (delta=%s)", attotime_string(zerotime, 6), attotime_string(deltaclock, 6));
-
+
/* if we are within 150usec, we count as a bit */
if (attotime_compare(deltaclock, ATTOTIME_IN_USEC(150)) < 0)
{
- if (logit)
+ if (logit)
logerror(" -- count as bit");
laserdisc_zero_seen++;
return;
}
-
+
/* if we are within 215usec, we count as a clock */
else if (attotime_compare(deltaclock, ATTOTIME_IN_USEC(215)) < 0)
{
- if (logit)
+ if (logit)
logerror(" -- clock, bit=%d", laserdisc_zero_seen);
laserdisc_last_clock = zerotime;
}
-
+
/* if we are outside of 215usec, we are technically a missing clock
- however, due to sampling errors, it is best to assume this is just
- an out-of-skew clock, so we correct it if we are within 75usec */
+ however, due to sampling errors, it is best to assume this is just
+ an out-of-skew clock, so we correct it if we are within 75usec */
else if (attotime_compare(deltaclock, ATTOTIME_IN_USEC(275)) < 0)
{
if (logit)
logerror(" -- skewed clock, correcting");
laserdisc_last_clock = attotime_add(laserdisc_last_clock, ATTOTIME_IN_USEC(200));
}
-
+
/* we'll count anything more than 275us as an actual missing clock */
else
{
@@ -589,7 +589,7 @@ static void audio_handle_zero_crossing(attotime zerotime, int logit)
logerror(" -- missing clock");
laserdisc_last_clock = zerotime;
}
-
+
/* we have a clock, process it */
audio_process_clock(logit);
}
@@ -601,7 +601,7 @@ static void laserdisc_audio_process(const device_config *device, int samplerate,
attotime time_per_sample = ATTOTIME_IN_HZ(samplerate);
attotime curtime = laserdisc_last_time;
int cursamp;
-
+
if (logit)
logerror("--------------\n");
@@ -617,7 +617,7 @@ static void laserdisc_audio_process(const device_config *device, int samplerate,
/* if we are past the "break in transmission" time, reset everything */
if (attotime_compare(attotime_sub(curtime, laserdisc_last_clock), ATTOTIME_IN_USEC(400)) > 0)
audio_end_state();
-
+
/* if this sample reinforces that the previous one ended a zero crossing, count it */
if ((sample >= 256 && laserdisc_last_samples[1] >= 0 && laserdisc_last_samples[0] < 0) ||
(sample <= -256 && laserdisc_last_samples[1] <= 0 && laserdisc_last_samples[0] > 0))
@@ -627,14 +627,14 @@ static void laserdisc_audio_process(const device_config *device, int samplerate,
/* compute the fractional position of the 0-crossing, between the two samples involved */
fractime = (-laserdisc_last_samples[0] * 1000) / (laserdisc_last_samples[1] - laserdisc_last_samples[0]);
-
+
/* use this fraction to compute the approximate actual zero crossing time */
zerotime = attotime_add(curtime, attotime_div(attotime_mul(time_per_sample, fractime), 1000));
/* determine if this is a clock; if it is, process */
audio_handle_zero_crossing(zerotime, logit);
}
- if (logit)
+ if (logit)
logerror(" \n");
/* update our sample tracking and advance time */
@@ -647,8 +647,8 @@ static void laserdisc_audio_process(const device_config *device, int samplerate,
laserdisc_last_time = curtime;
}
-
-
+
+
/*************************************
*
* Interrupt generation
@@ -671,9 +671,9 @@ static INTERRUPT_GEN( gottlieb_interrupt )
if (laserdisc != NULL)
{
bitmap_t *dummy;
-
+
laserdisc_vsync(laserdisc);
-
+
/* set the "disc ready" bit, which basically indicates whether or not we have a proper video frame */
if (laserdisc_get_video(laserdisc, &dummy) == 0)
laserdisc_status &= ~0x20;
@@ -786,7 +786,7 @@ static INPUT_PORTS_START( reactor )
PORT_BIT ( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT ( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT ( 0xc0, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -844,7 +844,7 @@ static INPUT_PORTS_START( qbert )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_4WAY PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_4WAY PORT_COCKTAIL
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_4WAY PORT_COCKTAIL
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -900,7 +900,7 @@ static INPUT_PORTS_START( insector )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -965,7 +965,7 @@ static INPUT_PORTS_START( tylz )
PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) )
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1024,7 +1024,7 @@ static INPUT_PORTS_START( argusg )
PORT_START("TRACKY")
PORT_BIT( 0xff, 0, IPT_TRACKBALL_Y ) PORT_SENSITIVITY(15) PORT_KEYDELTA(20)
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1079,7 +1079,7 @@ static INPUT_PORTS_START( mplanets )
PORT_START("TRACKY")
PORT_BIT( 0xff, 0x00, IPT_DIAL ) PORT_SENSITIVITY(5) PORT_KEYDELTA(10) PORT_CODE_DEC(KEYCODE_Z) PORT_CODE_INC(KEYCODE_X)
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1134,7 +1134,7 @@ static INPUT_PORTS_START( krull )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_RIGHT ) PORT_8WAY
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_DOWN ) PORT_8WAY
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_JOYSTICKLEFT_LEFT ) PORT_8WAY
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1190,7 +1190,7 @@ static INPUT_PORTS_START( kngtmare )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_BUTTON2 )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_START2 )
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1252,7 +1252,7 @@ static INPUT_PORTS_START( qbertqub )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1318,7 +1318,7 @@ PORT_DIPSETTING( 0xc2, DEF_STR( Free_Play ) ) */
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_UNKNOWN )
PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Bunt") PORT_PLAYER(1)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNKNOWN )
-
+
PORT_INCLUDE(gottlieb1_sound)
INPUT_PORTS_END
@@ -1558,7 +1558,7 @@ static INPUT_PORTS_START( 3stooges )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_PLAYER(3)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_PLAYER(3)
-
+
PORT_INCLUDE(gottlieb2_sound)
INPUT_PORTS_END
@@ -1875,7 +1875,7 @@ MACHINE_DRIVER_END
static MACHINE_DRIVER_START( g2laser )
MDRV_IMPORT_FROM(gottlieb_core)
MDRV_IMPORT_FROM(gottlieb_soundrev2)
-
+
MDRV_LASERDISC_ADD("laserdisc", PIONEER_PR8210)
MDRV_LASERDISC_AUDIO(laserdisc_audio_process)
diff --git a/src/mame/drivers/igs009.c b/src/mame/drivers/igs009.c
index bf31f275725..ca38dc330bf 100644
--- a/src/mame/drivers/igs009.c
+++ b/src/mame/drivers/igs009.c
@@ -126,7 +126,7 @@ static VIDEO_UPDATE(jingbell)
code + ((x+1) % 4) * 0x100, (code & 0x80) ? 0xc : 0,
0, 0,
x * 8, ystart + (y * 32 - ((bg_scroll[x + tmap * 0x80] + tmap*0x100/4) & 0xff)) + z * 0x8 * 0x20,
- // &myclip, TRANSPARENCY_PEN, 0);
+ // &myclip, TRANSPARENCY_PEN, 0);
&myclip, TRANSPARENCY_NONE, 0);
}
}
@@ -170,7 +170,7 @@ static WRITE8_HANDLER( jingbell_nmi_and_coins_w )
if ((nmi_enable ^ data) & (~0xdd))
{
logerror("PC %06X: nmi_and_coins = %02x\n",activecpu_get_pc(),data);
-// popmessage("%02x",data);
+// popmessage("%02x",data);
}
coin_counter_w(0, data & 0x01); // coin_a
@@ -180,7 +180,7 @@ static WRITE8_HANDLER( jingbell_nmi_and_coins_w )
set_led_status(6, data & 0x40); // led for coin out / hopper active
- nmi_enable = data; // data & 0x80 // nmi enable?
+ nmi_enable = data; // data & 0x80 // nmi enable?
out[0] = data;
show_out();
diff --git a/src/mame/drivers/missile.c b/src/mame/drivers/missile.c
index 74ab7d2173c..9dd2555cb52 100644
--- a/src/mame/drivers/missile.c
+++ b/src/mame/drivers/missile.c
@@ -40,7 +40,7 @@ ATARI (C)79
Notes:
UM6502A - 6502 CPU, clock input is on pin 37. This is a little strange because it
measures 1.17240MHz. It was assumed to be 1.25MHz [10/8]. This might be
- caused by old components that are out of spec now, but the PCB does run
+ caused by old components that are out of spec now, but the PCB does run
flawlessly, and the other clocks measure correctly so I'm not sure what's going on.
C012294B-01 - 'Pokey' sound chip, clock 1.25MHz on pin 7 [10/8]
035826-01 - MMI 6331 bipolar PROM
@@ -60,8 +60,8 @@ Notes:
-------------------------
GND A | 1 GND
+ 5V B | 2 + 5V
- + 12V C | 3
- - 5V D | 4
+ + 12V C | 3
+ - 5V D | 4
Audio 1 Out E | 5 Audio 2 Out
HSync F | 6 VSync
Start2 LED H | 7 Left Fire
@@ -84,14 +84,14 @@ Notes:
Edge Connector J19 Pinout (Only used in cocktail version)
-------------------------
- A | 1
- B | 2
- C | 3
- Right Fire Button 2 D | 4
+ A | 1
+ B | 2
+ C | 3
+ Right Fire Button 2 D | 4
Center Fire Button 2 E | 5 Left Fire Button 2
- F | 6
- Cocktail H | 7
- J | 8
+ F | 6
+ Cocktail H | 7
+ J | 8
Horiz. Trkball Dir. 2 K | 9 Vert. Trackball Dir. 2
Horiz. Trkball Clock 2 L | 10 Vert. Trackball Clock 2
M | 11
diff --git a/src/mame/drivers/namcos1.c b/src/mame/drivers/namcos1.c
index 44970e54c4d..8c9959a0c0c 100644
--- a/src/mame/drivers/namcos1.c
+++ b/src/mame/drivers/namcos1.c
@@ -1850,14 +1850,14 @@ Notes:
BAS - Bass Adjustment Pot
BAL - Balance Adjustment Pot
VOL - Master Volume Pot
-
+
Namco Custom ICs -
123 (QFP80)
181 (DIP28, KEYCUS, Splatter House)
64A1 (DIP40, 63701 MCU)
-Bottom Board
+Bottom Board
8617961101
(8617963101)
@@ -1903,7 +1903,7 @@ Notes:
2064 - 8K x8 SRAM (DIP28)
62256 - 32K x8 SRAM (DIP28)
* Note, a -8 part must be used at this location or the PCB will not boot
-
+
Namco Custom ICs -
30 (SDIP64)
39 (DIP42)
diff --git a/src/mame/drivers/namcos2.c b/src/mame/drivers/namcos2.c
index 9ade501eb94..78715637a87 100644
--- a/src/mame/drivers/namcos2.c
+++ b/src/mame/drivers/namcos2.c
@@ -4449,7 +4449,7 @@ Top Board
| DSW(8) C68 |
| 3.579545MHz CY7C132 |
| 149 SYS87B-3(PAL) 62256 62256 |
-| 139 |
+| 139 |
| HN58C65 LW2MP0.11D LW2MP1.13D|
| M5M5179 68000 148 |
|--------------------------------------------------------------------|
@@ -4513,7 +4513,7 @@ SYSTEM2 VIDEO(E)
|--------------------------------------------------------------------|
Notes:
KEYCUS : socket not populated
- LW1_LD8.10W : PROM type MB7118
+ LW1_LD8.10W : PROM type MB7118
* : Unpopulated socket
Namco customs:
diff --git a/src/mame/drivers/nbmj8891.c b/src/mame/drivers/nbmj8891.c
index 62dad1f13e4..c8f675dc883 100644
--- a/src/mame/drivers/nbmj8891.c
+++ b/src/mame/drivers/nbmj8891.c
@@ -3505,7 +3505,7 @@ ROM_END
Pairs
System Ten Co. Ltd., 1989
-Hardware is by Nichibutsu with official seal, All ROMs
+Hardware is by Nichibutsu with official seal, All ROMs
have official Nichibutsu stickers on them.
PCB No: GH1701
diff --git a/src/mame/drivers/quizpun2.c b/src/mame/drivers/quizpun2.c
index 977050cc281..3f5289c57a9 100644
--- a/src/mame/drivers/quizpun2.c
+++ b/src/mame/drivers/quizpun2.c
@@ -111,10 +111,10 @@ fillbitmap(bitmap,get_black_pen(screen->machine),cliprect);
/***************************************************************************
Protection
- ROM checksum: write 0x80 | (0x00-0x7f), write 0, read 2 bytes
- Read address: write 0x80 | param1 & 0x07f (0x00), write param2 & 0x7f, read 2 bytes
- Read EEPROM: write 0x20 | (0x00-0x0f), write 0, read 8 bytes
- Write EEPROM: write 0x00 | (0x00-0x0f), write 0, write 8 bytes
+ ROM checksum: write 0x80 | (0x00-0x7f), write 0, read 2 bytes
+ Read address: write 0x80 | param1 & 0x07f (0x00), write param2 & 0x7f, read 2 bytes
+ Read EEPROM: write 0x20 | (0x00-0x0f), write 0, read 8 bytes
+ Write EEPROM: write 0x00 | (0x00-0x0f), write 0, write 8 bytes
***************************************************************************/
@@ -216,7 +216,7 @@ static WRITE8_HANDLER( quizpun2_protection_w )
default:
if (prot.wait_param)
- {
+ {
prot.param = data;
prot.wait_param = 0;
@@ -294,7 +294,7 @@ static ADDRESS_MAP_START( quizpun2_map, ADDRESS_SPACE_PROGRAM, 8 )
AM_RANGE( 0xa000, 0xbfff ) AM_RAM_WRITE( fg_ram_w ) AM_BASE( &fg_ram ) // 4 * 800
AM_RANGE( 0xc000, 0xc7ff ) AM_RAM_WRITE( bg_ram_w ) AM_BASE( &bg_ram ) // 4 * 400
- AM_RANGE( 0xc800, 0xcfff ) AM_RAM //
+ AM_RANGE( 0xc800, 0xcfff ) AM_RAM //
AM_RANGE( 0xd000, 0xd3ff ) AM_RAM_WRITE( paletteram_xRRRRRGGGGGBBBBB_le_w ) AM_BASE( &paletteram )
AM_RANGE( 0xe000, 0xffff ) AM_RAM
diff --git a/src/mame/drivers/segas32.c b/src/mame/drivers/segas32.c
index 1d3ea0e1bbb..07245c64678 100644
--- a/src/mame/drivers/segas32.c
+++ b/src/mame/drivers/segas32.c
@@ -2367,8 +2367,8 @@ ROM_END
**************************************************************************************************************************
Alien 3: The Gun
not protected
- Rom PCB No: 837-9878-02
- Main PCB: 837-7428-03
+ Rom PCB No: 837-9878-02
+ Main PCB: 837-7428-03
*/
ROM_START( alien3 )
ROM_REGION( 0x200000, "main", 0 ) /* v60 code + data */
diff --git a/src/mame/drivers/shanghai.c b/src/mame/drivers/shanghai.c
index b6e6cd87ba4..35a9d6a3854 100644
--- a/src/mame/drivers/shanghai.c
+++ b/src/mame/drivers/shanghai.c
@@ -16,7 +16,7 @@ settings, but music runs too fast.
* kothello
-Notes: If you use the key labeled as 'Service Coin' you can start the game
+Notes: If you use the key labeled as 'Service Coin' you can start the game
with a single 'coin' no matter the Coingae Setting, but the credit is not
displayed.
@@ -368,13 +368,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if ((fifo[0] & 0xfffc) == 0x5c00) /* SCLR */
{
@@ -389,13 +389,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if ((fifo[0] & 0xf0ff) == 0x6000) /* CPY */
{
@@ -412,13 +412,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if ((fifo[0] & 0xf0fc) == 0x7000) /* SCPY */
{
@@ -435,13 +435,13 @@ logerror("unsupported register\n");
rwp /= 2;
/*
- {
- int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
- if (fifo2<0) fifo2 *= -1;
- if (fifo3<0) fifo3 *= -1;
- rwp += ((fifo2+1)*(fifo3+1));
- }
- */
+ {
+ int fifo2 = (int)fifo[2],fifo3 = (int)fifo[3];
+ if (fifo2<0) fifo2 *= -1;
+ if (fifo3<0) fifo3 *= -1;
+ rwp += ((fifo2+1)*(fifo3+1));
+ }
+ */
}
else if (fifo[0] == 0x8000) /* AMOVE */
{
@@ -827,7 +827,7 @@ static ADDRESS_MAP_START( shanghai_portmap, ADDRESS_SPACE_IO, 16 )
AM_RANGE(0x02, 0x03) AM_READWRITE(HD63484_data_r, HD63484_data_w)
AM_RANGE(0x20, 0x21) AM_READWRITE(YM2203_status_port_0_lsb_r, YM2203_control_port_0_lsb_w)
AM_RANGE(0x22, 0x23) AM_READWRITE(YM2203_read_port_0_lsb_r, YM2203_write_port_0_lsb_w)
- AM_RANGE(0x40, 0x41) AM_READ_PORT("P1")
+ AM_RANGE(0x40, 0x41) AM_READ_PORT("P1")
AM_RANGE(0x44, 0x45) AM_READ_PORT("P2")
AM_RANGE(0x48, 0x49) AM_READ_PORT("SYSTEM")
AM_RANGE(0x4c, 0x4d) AM_WRITE(shanghai_coin_w)
diff --git a/src/mame/drivers/shisen.c b/src/mame/drivers/shisen.c
index 3df3f8309d1..a66f5941815 100644
--- a/src/mame/drivers/shisen.c
+++ b/src/mame/drivers/shisen.c
@@ -408,8 +408,8 @@ ROMs : (All ROMs type 27C512)
1.2C Sound Program
-2.11D \
-3.11C / Main Program
+2.11D \
+3.11C / Main Program
4.3J \
5.4J |
diff --git a/src/mame/drivers/slapfght.c b/src/mame/drivers/slapfght.c
index 93595e3f9fa..3b76f373b72 100644
--- a/src/mame/drivers/slapfght.c
+++ b/src/mame/drivers/slapfght.c
@@ -1184,7 +1184,7 @@ Tiger Heli
1985 Taito Corporation
The Tiger Heli PCB is almost exactly the same PCB as Slap Fight/Alcon but a few chips
-have different placings and there's more EPROM locations on one of the boards
+have different placings and there's more EPROM locations on one of the boards
(although they're not populated).
Also, Tiger Heli has a 22-way edge connector, while Alcon/Slap Fight is JAMMA.
diff --git a/src/mame/drivers/snk.c b/src/mame/drivers/snk.c
index 4b1b0bc18f2..80c1aa36906 100644
--- a/src/mame/drivers/snk.c
+++ b/src/mame/drivers/snk.c
@@ -1510,8 +1510,8 @@ SOUND : YM3812, Y3014B
XTAL : 4.000MHz
RAM : 6116 (x1)
DIPSW : 8 position (x2)
-ROMs :
- cc1.1f 27c512 sound program
+ROMs :
+ cc1.1f 27c512 sound program
2nd PCB (CPU board)
@@ -1520,19 +1520,19 @@ PCB No: A5001UP02-01
CPU : Z80 (x2)
RAM : 6116 (x4), 2148 (x4)
OTHER : PALs (x2), TC4584 (used for trackball/spinner control)
-ROMs :
- cc2.2e 27c128 \
- cc3.2g '' | for Z80 #1
- cc4.2h '' /
- cc5.4e '' \
- cc6.4g '' | for Z80 #2
- cc7.4h '' /
- cc8.7e 27c256 \
- cc9.7g '' | gfx
- cc10.7h '' /
- cc1pr.5f 63s441 \
- cc2pr.5g '' | proms
- cc3pr.5h '' /
+ROMs :
+ cc2.2e 27c128 \
+ cc3.2g '' | for Z80 #1
+ cc4.2h '' /
+ cc5.4e '' \
+ cc6.4g '' | for Z80 #2
+ cc7.4h '' /
+ cc8.7e 27c256 \
+ cc9.7g '' | gfx
+ cc10.7h '' /
+ cc1pr.5f 63s441 \
+ cc2pr.5g '' | proms
+ cc3pr.5h '' /
3rd PCB (Video board)
@@ -1541,10 +1541,10 @@ PCB No: A5001UP01-01
XTAL : 13.400MHz
RAM : 6116 (x1), 6264 (x2)
OTHER : PAL (x1)
-ROMs :
- cc11.1e 27c128 \
- cc13.2d '' | gfx
- cc12.2c '' /
+ROMs :
+ cc11.1e 27c128 \
+ cc13.2d '' | gfx
+ cc12.2c '' /
*/
ROM_START( countryc )
diff --git a/src/mame/drivers/taito_z.c b/src/mame/drivers/taito_z.c
index ec6c6fcdc49..ced43c22518 100644
--- a/src/mame/drivers/taito_z.c
+++ b/src/mame/drivers/taito_z.c
@@ -186,15 +186,15 @@ Notes:
(G) - 28-Way Connector (Not JAMMA)
(M) - 50-pin Flat Cable Connector Joining Main PCB To Analog Control PCB
- OSC: 26.686, 24.000, 16.000
+ OSC: 26.686, 24.000, 16.000
Taito custom ICs -
TC0070RGB - RGB/Video Mixer (Ceramic Flat Pack SIP25)
TC0060DCA - Digital to Analog Conversion for Audio (Ceramic Flat Pack SIP20)
TC0100SYT - Sound Communication
TC0220IOC - Input/Output. This chip also provides the master reset via the MB3771. It probably does more things too,
- including video output. For example, if the harness is connected backwards, this chip blows and kills
- the PCB. Even manually resetting the 68000's cannot restart the PCB, and it just shows a wavey pattern
+ including video output. For example, if the harness is connected backwards, this chip blows and kills
+ the PCB. Even manually resetting the 68000's cannot restart the PCB, and it just shows a wavey pattern
on screen.
TC0110PCR - Pallete Generator
TC0100SCN - Tilemap Generator
@@ -205,8 +205,8 @@ Notes:
TC0320OBR - Road Object Generator? (tied to TC0150ROD)
ROMs -
-
-
+
+
Analog Control PCB
------------------
J9100175A
@@ -3981,10 +3981,10 @@ Taito Chips:
CPU board - TCO100SCN, TCO140SYT, TCO170ABT, TCO110PCR
Video Board - TCO150ROD, TCO050VDZ (x3), TCO020VAR
-Ram: CPU BOARD - 6264 (x9), 43256 (x2),
+Ram: CPU BOARD - 6264 (x9), 43256 (x2),
VIDEO BOARD - 2018 (x10), 6264 (x2)
-PALs/PROMs:
+PALs/PROMs:
CPU BOARD - All located near/around the 68000's
b58-15 (PAL20L8)
b58-16 (PAL20L8)
@@ -3993,7 +3993,7 @@ b58-13 (PAL16L8)
b58-11 (PAL16L8)
b58-12 (PAL16L8)
-VIDEO BOARD -
+VIDEO BOARD -
b58-22 (PAL16L8) \
b58-23 (63s141) | near TCO150ROD
b58-24 (63s141) /
@@ -4008,26 +4008,26 @@ b58-19 (PAL16R4) near b58-04/03/02/01
ROMs:
CPU BOARD - b58-18 , 27C010 \
- b58-19 , 27C010 | 68k Program
- b58-26 , 27C010 |
- b58-27 , 27C010 /
+ b58-19 , 27C010 | 68k Program
+ b58-26 , 27C010 |
+ b58-27 , 27C010 /
- b58-07 , 27C4096 \
- b58-08 , 27C4096 |
- b58-09 , 27C4100 | near TCO100SCN & TCO140SYT
- b58-10 , 27C4096 /
+ b58-07 , 27C4096 \
+ b58-08 , 27C4096 |
+ b58-09 , 27C4100 | near TCO100SCN & TCO140SYT
+ b58-10 , 27C4096 /
- b58-32 , 27C512 z80 program
+ b58-32 , 27C512 z80 program
VIDEO PCB - b58-06 , 27C4100 near TCO150ROD
- b58-26a, 27C512 ?
- b58-27 , LH5763 ?
+ b58-26a, 27C512 ?
+ b58-27 , LH5763 ?
- b58-01 , 27C4100 \
- b58-02 , 27C4100 |
- b58-03 , 27C4100 | near TCO050VDZ's
- b58-04 , 27C4100 /
+ b58-01 , 27C4100 \
+ b58-02 , 27C4100 |
+ b58-03 , 27C4100 | near TCO050VDZ's
+ b58-04 , 27C4100 /
*/
ROM_START( enforce )
diff --git a/src/mame/drivers/taitosj.c b/src/mame/drivers/taitosj.c
index 04cb87f8bfe..460aa8cadab 100644
--- a/src/mame/drivers/taitosj.c
+++ b/src/mame/drivers/taitosj.c
@@ -2290,7 +2290,7 @@ ROM_END
Elevator Action (4 Board Version, typical Taito SJ hardware)
Taito, 1983
-Manual shows two versions, 4-board without protection, and
+Manual shows two versions, 4-board without protection, and
5-board, using an additional 68705 MCU.
PCB Layout
@@ -2300,25 +2300,25 @@ Bottom Board (Main CPU)
WWO70003A
KNN00013 (sticker)
-|---------------------------------------------|
-| IC64 IC52 Z80 2016 |
+|---------------------------------------------|
+| IC64 IC52 Z80 2016 |
| IC65 * |-|
| IC66 IC54 | |
| IC67 IC55 P | |
| IC68 2016 | |
| IC69 2016 | |
|1 |-|
-|8 |
-|W T |
-|A |
+|8 |
+|W T |
+|A |
|Y |-|
| | |
| 2114 Q | |
| 2114 | |
| | |
| 8MHz |-|
-| 12MHz |
-|---------------------------------------------|
+| 12MHz |
+|---------------------------------------------|
Notes:
T - 18 way connector for power
IC* - 2732 EPROMs
@@ -2333,25 +2333,25 @@ Middle Board (Video)
WWO70002A
EBN00002 (sticker)
- |---------------------------------------------|
- | AM93422 AM93422 |
+ |---------------------------------------------|
+ | AM93422 AM93422 |
|-| |-|
| | | |
| | P R | |
| | 2114 | |
| | 2114 | |
|-| |-|
- | |
- | |
- | |
+ | |
+ | |
+ | |
|-| |-|
| | 2016 | |
| | Q 2016 IC22 S | |
| | 2016 | |
| | 2016 | |
|-| 2016 |-|
- | 2016 |
- |---------------------------------------------|
+ | 2016 |
+ |---------------------------------------------|
Notes:
Lots of logic chips, not much else....
2016 - 2kx8 SRAM
@@ -2359,7 +2359,7 @@ Notes:
2114 - 1kx4 SRAM
IC22 - MMI 6301 256x4 Bi-polar PROM
R,S,P,Q - Flat cable connectors joining to top and bottom PCB
-
+
Top Board (Sound)
diff --git a/src/mame/drivers/tnzs.c b/src/mame/drivers/tnzs.c
index 372a2123f77..091ef91d1c8 100644
--- a/src/mame/drivers/tnzs.c
+++ b/src/mame/drivers/tnzs.c
@@ -2169,7 +2169,7 @@ PO-043A (Seta number; on PCB)
|M |
|M B06-101 |
|A (PAL) |
-|---------------------------------------------------| <- ROM Board above
+|---------------------------------------------------| <- ROM Board above
| DIP40| main PCB
| X1-001A |
| |
@@ -2191,7 +2191,7 @@ Notes:
X1-004
X1-006
X1-007
-
+
ROM Board
---------
diff --git a/src/mame/drivers/turbo.c b/src/mame/drivers/turbo.c
index 6776b7a6acc..a40505ef40f 100644
--- a/src/mame/drivers/turbo.c
+++ b/src/mame/drivers/turbo.c
@@ -1494,11 +1494,11 @@ Top
| 5837N |
| 53323 53323 53323 IR3702 |
| LA4460 VOL |
-|------------------------------------------------------|
+|------------------------------------------------------|
Notes:
All IC's shown.
-
+
Middle
------
834-5120 171-5011 CPU BOARD (sticker 834-5142)
@@ -1535,8 +1535,8 @@ Notes:
Z80 clock : 5.000MHz
315-5014 clock: measured 3.766MHz to 3.815MHz on pin6; moving slowly!? (NOTE! This is an encrypted Z80)
VSync : 60Hz
- VCO voltage : 1.43 Volts
- Note! This is guessed to make the sprites a reasonable size. A shot of the title screen
+ VCO voltage : 1.43 Volts
+ Note! This is guessed to make the sprites a reasonable size. A shot of the title screen
after coinup from a real machine would help to fix the real voltage and give the correct
sprite sizes. Note in MAME the Buck Rogers title isn't centered because of the guessed
voltage, though I'm sure it's very close.
@@ -1556,11 +1556,11 @@ Notes:
PR-5198.93 TBP28S46N (compatible with 82S141)
PR-5199.95 82S181
* Empty socket
-
-
+
+
Bottom
------
-(sticker 834-5151) 171-5012 ROM BOARD
+(sticker 834-5151) 171-5012 ROM BOARD
|------------------------------------------------------|
| |
| |
@@ -1602,7 +1602,7 @@ Notes:
EPR-5231.68 27128
* Empty socket
- Note! On my PCB, ROMs 58 and 74 match. It could be
+ Note! On my PCB, ROMs 58 and 74 match. It could be
wrong, but the PCB appears to work perfectly.
*/
diff --git a/src/mame/drivers/twincobr.c b/src/mame/drivers/twincobr.c
index cc50765db16..7ce009ecdf4 100644
--- a/src/mame/drivers/twincobr.c
+++ b/src/mame/drivers/twincobr.c
@@ -417,7 +417,7 @@ static INPUT_PORTS_START( twincobr )
PORT_DIPSETTING( 0xc0, DEF_STR( 1C_6C ) )
TWINCOBR_DSW_B
-
+
TWINCOBR_SYSTEM_INPUTS
INPUT_PORTS_END
@@ -455,7 +455,7 @@ static INPUT_PORTS_START( twincobu )
PORT_DIPSETTING( 0x40, DEF_STR( 1C_2C ) )
TWINCOBR_DSW_B
-
+
TWINCOBR_SYSTEM_INPUTS
INPUT_PORTS_END
diff --git a/src/mame/drivers/vball.c b/src/mame/drivers/vball.c
index ca14bdf4048..c8b541d6d58 100644
--- a/src/mame/drivers/vball.c
+++ b/src/mame/drivers/vball.c
@@ -342,7 +342,7 @@ static INPUT_PORTS_START (vball2pj)
COMMON_PORTS_BEFORE
/* The 2-player roms have the game-time in the difficulty spot, and
- I've assumed vice-versa. (VS the instructions scanned in Naz's dump) */
+ I've assumed vice-versa. (VS the instructions scanned in Naz's dump) */
PORT_START("DSW1")
PORT_DIPNAME( 0x03, 0x00, "Single Player Game Time")
diff --git a/src/mame/drivers/vulgus.c b/src/mame/drivers/vulgus.c
index 250200d831d..702027774d9 100644
--- a/src/mame/drivers/vulgus.c
+++ b/src/mame/drivers/vulgus.c
@@ -157,7 +157,7 @@ static INPUT_PORTS_START( vulgus )
PORT_START("DSW2") /* DSW1 */
/* Not sure about difficulty
- Code perform a read and (& 0x03). NDMix */
+ Code perform a read and (& 0x03). NDMix */
PORT_DIPNAME( 0x03, 0x03, "Difficulty?" )
PORT_DIPSETTING( 0x02, "Easy?" )
PORT_DIPSETTING( 0x03, "Normal?" )
diff --git a/src/mame/drivers/wwfsstar.c b/src/mame/drivers/wwfsstar.c
index 88df0f1be43..414e925ea13 100644
--- a/src/mame/drivers/wwfsstar.c
+++ b/src/mame/drivers/wwfsstar.c
@@ -55,7 +55,7 @@ Notes:
M6295 - 1.056MHz (resonator)
YM2151 - 3.579545MHz
VSync - 57.4447Hz
-
+
Bottom Board
@@ -95,7 +95,7 @@ TA-0024-P2-23
Notes:
IC11x - TC534000 MaskROMs
TJ-001 - Probably a microcontroller badged as a Technos Custom IC (QFP80).
- Clocks: pin 1 - 24MHz, pin 3 - 24/2, pin 4 - 24/4, pin 5 - 24/8,
+ Clocks: pin 1 - 24MHz, pin 3 - 24/2, pin 4 - 24/4, pin 5 - 24/8,
pin 6 - 24/16, pin 7 - 24/32, pin 8 - 24/64, pin 64,65 - 1.5MHz
Hardware:
diff --git a/src/mame/video/dkong.c b/src/mame/video/dkong.c
index cb22020c806..8e6d8b474f1 100644
--- a/src/mame/video/dkong.c
+++ b/src/mame/video/dkong.c
@@ -580,44 +580,44 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
int add_y;
int add_x;
int num_sprt;
-
+
/* Draw the sprites. There are two pecularities which have been mentioned by
- * a Donkey Kong II author at CAX 2008:
- * 1) On real hardware, sprites wrap around from the right to the left instead
- * of clipping.
- * 2) On real hardware, there is a limit of 16 sprites per scanline.
- * Sprites after the 16th (starting from the left) simply don't show.
- *
- * 2) is in line with the real hardware which buffers the sprite data
- * for one scanline. The ram is 64x9 and a sprite takes 4 bytes.
- * ==> 16 sprites per scanline.
- *
- * TODO: 9th bit is not understood right now.
- *
- * 1) is due to limitation of signals to 8 bit.
- *
- * This is quite different from galaxian. The dkong hardware updates sprites
- * only once every frame by dma. The number of sprites can not be processed
- * directly, Thus the preselection. The buffering takes place during the
- * active phase of the video signal. The scanline is than rendered into the linebuffer
- * during HBLANK.
- *
- * A sprite will be drawn:
- * a) FlipQ = 1 : (sprite_y + 0xF9 + scanline) & 0xF0 == 0xF0
- * b) FlipQ = 0 : (sprite_y + 0xF7 + (scanline ^ 0xFF)) & 0xF0 == 0xF0
- *
- * FlipQ = 1 ("Normal Play"):
- *
- * sprite_y = 0x20
- *
- * scanline
- * 0x10, 0xEF, 0x208, 0x00
- * 0x18, 0xE7, 0x200, 0x00
- * 0x19, 0xE6, 0x1FF, 0xF0
- * 0x20, 0xDF, 0x1F8, 0xF0
- *
- */
-
+ * a Donkey Kong II author at CAX 2008:
+ * 1) On real hardware, sprites wrap around from the right to the left instead
+ * of clipping.
+ * 2) On real hardware, there is a limit of 16 sprites per scanline.
+ * Sprites after the 16th (starting from the left) simply don't show.
+ *
+ * 2) is in line with the real hardware which buffers the sprite data
+ * for one scanline. The ram is 64x9 and a sprite takes 4 bytes.
+ * ==> 16 sprites per scanline.
+ *
+ * TODO: 9th bit is not understood right now.
+ *
+ * 1) is due to limitation of signals to 8 bit.
+ *
+ * This is quite different from galaxian. The dkong hardware updates sprites
+ * only once every frame by dma. The number of sprites can not be processed
+ * directly, Thus the preselection. The buffering takes place during the
+ * active phase of the video signal. The scanline is than rendered into the linebuffer
+ * during HBLANK.
+ *
+ * A sprite will be drawn:
+ * a) FlipQ = 1 : (sprite_y + 0xF9 + scanline) & 0xF0 == 0xF0
+ * b) FlipQ = 0 : (sprite_y + 0xF7 + (scanline ^ 0xFF)) & 0xF0 == 0xF0
+ *
+ * FlipQ = 1 ("Normal Play"):
+ *
+ * sprite_y = 0x20
+ *
+ * scanline
+ * 0x10, 0xEF, 0x208, 0x00
+ * 0x18, 0xE7, 0x200, 0x00
+ * 0x19, 0xE6, 0x1FF, 0xF0
+ * 0x20, 0xDF, 0x1F8, 0xF0
+ *
+ */
+
scanline_vf = (cliprect->max_y - 1) & 0xFF;
scanline_vfc = (cliprect->max_y - 1) & 0xFF;
scanline = cliprect->max_y & 0xFF;
@@ -634,12 +634,12 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
add_y = 0xF9;
add_x = 0xF7;
}
-
+
for (offs = state->sprite_bank<<9, num_sprt=0; (num_sprt < 16) && (offs < (state->sprite_bank<<9) + 0x200) /* sprite_ram_size */; offs += 4)
{
int y = state->sprite_ram[offs];
int do_draw = (((y + add_y + 1 + scanline_vf) & 0xF0) == 0xF0) ? 1 : 0;
-
+
if (do_draw)
{
/* sprite_ram[offs + 2] & 0x40 is used by Donkey Kong 3 only */
@@ -651,15 +651,15 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
int x = state->sprite_ram[offs + 3];
/* On the real board, the x and y are read inverted after the first
- * buffer stage. This due to the fact that the 82S09 delivers complements
- * of stored data on read!
- */
-
+ * buffer stage. This due to the fact that the 82S09 delivers complements
+ * of stored data on read!
+ */
+
x = (x + add_x + 1) & 0xFF;
if (state->flip)
x ^= 0xFF;
y = (y + add_y + 1 + scanline_vfc) & 0x0F;
-
+
if (state->flip)
{
drawgfx(bitmap,machine->gfx[1],
@@ -678,7 +678,7 @@ static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const recta
x, scanline-y,
cliprect,TRANSPARENCY_PEN,0);
}
-
+
num_sprt++;
}
}
diff --git a/src/mame/video/gottlieb.c b/src/mame/video/gottlieb.c
index f5083f69afb..55c67304654 100644
--- a/src/mame/video/gottlieb.c
+++ b/src/mame/video/gottlieb.c
@@ -78,7 +78,7 @@ WRITE8_HANDLER( gottlieb_video_control_w )
flip_screen_y_set(data & 0x04);
tilemap_mark_all_tiles_dirty(ALL_TILEMAPS);
}
-
+
/* in Q*Bert Qubes only, bit 4 controls the sprite bank */
spritebank = (data & 0x10) >> 4;
}
@@ -88,7 +88,7 @@ WRITE8_HANDLER( gottlieb_laserdisc_video_control_w )
{
/* bit 0 works like the other games */
gottlieb_video_control_w(machine, offset, data & 0x01);
-
+
/* bit 1 controls the sprite bank. */
spritebank = (data & 0x02) >> 1;
@@ -157,7 +157,7 @@ VIDEO_START( gottlieb )
bg_tilemap = tilemap_create(get_bg_tile_info, tilemap_scan_rows, 8, 8, 32, 32);
tilemap_set_transparent_pen(bg_tilemap, 0);
tilemap_set_scrolldx(bg_tilemap, 0, 318 - 256);
-
+
/* save some state */
state_save_register_global(background_priority);
state_save_register_global(spritebank);
@@ -168,7 +168,7 @@ VIDEO_START( gottlieb_laserdisc )
{
/* handle normal video */
VIDEO_START_CALL(gottlieb);
-
+
/* allocate an overlay texture */
overlay_texture = render_texture_alloc(NULL, NULL);
if (overlay_texture == NULL)
@@ -244,30 +244,30 @@ VIDEO_UPDATE( gottlieb_laserdisc )
const device_config *laserdisc = device_list_first(screen->machine->config->devicelist, LASERDISC);
rectangle clip = *cliprect;
bitmap_t *video_bitmap;
-
+
/* scale the cliprect to the screen and render it */
clip.min_x = 0;
clip.max_x = GOTTLIEB_VIDEO_HBLANK - 1;
clip.min_y = cliprect->min_y * GOTTLIEB_VIDEO_VCOUNT / bitmap->height;
clip.max_y = (cliprect->max_y + 1) * GOTTLIEB_VIDEO_VCOUNT / bitmap->height - 1;
video_update_gottlieb(screen, bitmap, &clip);
-
+
/* if this is the last update, handle it */
if (cliprect->max_y == video_screen_get_visible_area(screen)->max_y)
{
/* update the texture with the overlay contents */
render_texture_set_bitmap(overlay_texture, bitmap, &overlay_clip, 0, TEXFORMAT_PALETTEA16);
-
+
/* now talk to the laserdisc */
laserdisc_get_video(laserdisc, &video_bitmap);
if (video_bitmap != NULL)
render_texture_set_bitmap(video_texture, video_bitmap, NULL, 0, TEXFORMAT_YUY16);
-
+
/* add both quads to the screen */
render_container_empty(render_container_get_screen(screen));
render_screen_add_quad(screen, 0.0f, 0.0f, 1.0f, 1.0f, MAKE_ARGB(0xff,0xff,0xff,0xff), video_texture, PRIMFLAG_BLENDMODE(BLENDMODE_NONE) | PRIMFLAG_SCREENTEX(1));
render_screen_add_quad(screen, 0.0f, 0.0f, 1.0f, 1.0f, MAKE_ARGB(0xff,0xff,0xff,0xff), overlay_texture, PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA) | PRIMFLAG_SCREENTEX(1));
}
-
+
return 0;
}
diff --git a/src/mame/video/mario.c b/src/mame/video/mario.c
index 72cd57c67e4..5a164c71bfa 100644
--- a/src/mame/video/mario.c
+++ b/src/mame/video/mario.c
@@ -163,9 +163,9 @@ VIDEO_START( mario )
static void draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
{
- /* TODO: draw_sprites should adopt the scanline logic from dkong.c
- * The schematics have the same logic for sprite buffering.
- */
+ /* TODO: draw_sprites should adopt the scanline logic from dkong.c
+ * The schematics have the same logic for sprite buffering.
+ */
mario_state *state = machine->driver_data;
int offs;
diff --git a/src/tools/chdman.c b/src/tools/chdman.c
index 5c70b9823df..b8dc7c9d5cb 100644
--- a/src/tools/chdman.c
+++ b/src/tools/chdman.c
@@ -698,7 +698,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
int whiteflag, line1718;
UINT8 *dest = cache;
INT16 *temp;
-
+
/* reset framecounter to 1 on frame 0 */
if (framenum == 0)
framecounter = 1;
@@ -732,7 +732,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
{
int modcheck = AVI_FAKE_SAMPLERATE / ((chnum == 0) ? 110 : 220);
int samp = (chnum == 0) ? leftsamp : rightsamp;
-
+
/* store them big endian at the destination */
for (sampnum = 0; sampnum < num_samples; sampnum++)
{
@@ -741,7 +741,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
*dest++ = sample;
}
}
-
+
/* determine what metadata we should generate */
whiteflag = line1718 = 0;
if (framenum < 2)
@@ -773,7 +773,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
for (y = framenum % interlace_factor; y < AVI_FAKE_HEIGHT; y += interlace_factor)
{
int effy = y / interlace_factor;
-
+
/* white flag? */
if (effy == 11 && whiteflag)
{
@@ -784,7 +784,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
*dest++ = pixel >> 8;
}
}
-
+
/* line 17/18 */
else if ((effy == 17 || effy == 18) && line1718 != 0)
{
@@ -805,7 +805,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
*dest++ = pixel >> 8;
}
}
-
+
/* anything else in VBI-land */
else if (effy < 22)
{
@@ -816,7 +816,7 @@ static avi_error fake_avi_frame(avi_file *avi, UINT32 framenum, UINT8 *cache, bi
*dest++ = pixel >> 8;
}
}
-
+
/* everything else */
else
{
@@ -873,7 +873,7 @@ static int do_createav(int argc, char *argv[], int param)
/* print some info */
printf("Input file: %s\n", inputfile);
printf("Output file: %s\n", outputfile);
-
+
/* special AVI files */
if (strcmp(inputfile, "2:2") == 0 || strcmp(inputfile, "3:2") == 0)
{
diff --git a/src/tools/ldverify.c b/src/tools/ldverify.c
index 38430a7e1c2..9f66dd61dd5 100644
--- a/src/tools/ldverify.c
+++ b/src/tools/ldverify.c
@@ -100,7 +100,7 @@ static void *open_avi(const char *filename, movie_info *info)
info->height = aviinfo->video_height;
info->samplerate = aviinfo->audio_samplerate;
info->channels = aviinfo->audio_channels;
-
+
return avi;
}
@@ -115,7 +115,7 @@ static int read_avi(void *file, int frame, bitmap_t *bitmap, INT16 *lsound, INT1
UINT32 firstsample = ((UINT64)aviinfo->audio_samplerate * (UINT64)frame * (UINT64)aviinfo->video_sampletime + aviinfo->video_timescale - 1) / (UINT64)aviinfo->video_timescale;
UINT32 lastsample = ((UINT64)aviinfo->audio_samplerate * (UINT64)(frame + 1) * (UINT64)aviinfo->video_sampletime + aviinfo->video_timescale - 1) / (UINT64)aviinfo->video_timescale;
avi_error avierr;
-
+
/* read the frame */
avierr = avi_read_video_frame_yuy16(file, frame, bitmap);
if (avierr != AVIERR_NONE)
@@ -199,7 +199,7 @@ static void *open_chd(const char *filename, movie_info *info)
info->numframes = (info->numframes + 1) / 2;
info->height *= 2;
}
-
+
/* allocate a buffer */
chdbuffer = malloc(chd_get_header(chd)->hunkbytes);
if (chdbuffer == NULL)
@@ -208,7 +208,7 @@ static void *open_chd(const char *filename, movie_info *info)
chd_close(chd);
return NULL;
}
-
+
return chd;
}
@@ -242,7 +242,7 @@ static int read_chd(void *file, int frame, bitmap_t *bitmap, INT16 *lsound, INT1
width = (chdbuffer[8] << 8) | chdbuffer[9];
height = ((chdbuffer[10] << 8) | chdbuffer[11]) & 0x7fff;
source = chdbuffer + 12 + chdbuffer[4];
-
+
/* make sure the data makes sense */
if (width != bitmap->width || height != bitmap->height / interlace_factor)
{
@@ -260,7 +260,7 @@ static int read_chd(void *file, int frame, bitmap_t *bitmap, INT16 *lsound, INT1
dest[sampnum] = sample | *source++;
}
}
-
+
/* copy in the bitmap data */
for (y = fieldnum; y < height * interlace_factor; y += interlace_factor)
{
@@ -301,27 +301,27 @@ static void verify_video(int frame, bitmap_t *bitmap)
{
const int fields_per_frame = 2;
int fieldnum;
-
+
/* loop over fields */
for (fieldnum = 0; fieldnum < fields_per_frame; fieldnum++)
{
int field = frame * fields_per_frame + fieldnum;
vbi_metadata metadata;
-
+
/* output status */
if (frame % 10 == 0 && fieldnum == 0)
fprintf(stderr, "%6d.%d...\r", frame, fieldnum);
-
+
/* parse the VBI data */
vbi_parse_all(BITMAP_ADDR16(bitmap, fieldnum, 0), bitmap->rowpixels * 2, bitmap->width, 8, &metadata);
-
+
/* if we have data in both 17 and 18, it should match */
if (metadata.line17 != 0 && metadata.line18 != 0 && metadata.line17 != metadata.line18)
{
printf("%6d.%d: line 17 and 18 data does not match (17=%06X 18=%06X) (WARNING)\n", frame, fieldnum, metadata.line17, metadata.line18);
printf("%6d.%d: selected %06X based on bit confidence\n", frame, fieldnum, metadata.line1718);
}
-
+
/* is this a lead-in code? */
if (metadata.line1718 == 0x88ffff)
{
@@ -331,12 +331,12 @@ static void verify_video(int frame, bitmap_t *bitmap)
video_saw_leadin = TRUE;
printf("%6d.%d: lead-in code detected\n", frame, fieldnum);
}
-
+
/* if we've previously seen chapters/frames, that's weird */
if (video_last_frame != -1 || video_last_chapter != -1)
printf("%6d.%d: lead-in code detected after frame/chapter data (WARNING)\n", frame, fieldnum);
}
-
+
/* is this a lead-out code? */
if (metadata.line1718 == 0x80eeee)
{
@@ -350,24 +350,24 @@ static void verify_video(int frame, bitmap_t *bitmap)
else
printf("%6d.%d: never detected any frame numbers (ERROR)\n", frame, fieldnum);
}
-
+
/* if we've previously seen chapters/frames, that's weird */
if (video_last_frame == -1)
printf("%6d.%d: lead-out code detected with no frames detected beforehand (WARNING)\n", frame, fieldnum);
}
-
+
/* is this a frame code? */
if ((metadata.line1718 & 0xf80000) == 0xf80000)
{
int framenum = ((metadata.line1718 >> 0) & 15) * 1 + ((metadata.line1718 >> 4) & 15) * 10 + ((metadata.line1718 >> 8) & 15) * 100 + ((metadata.line1718 >> 12) & 15) * 1000 + ((metadata.line1718 >> 16) & 7) * 10000;
-
+
/* did we see any leadin? */
if (!video_saw_leadin)
{
printf("%6d.%d: detected frame number but never saw any lead-in (WARNING)\n", frame, fieldnum);
video_saw_leadin = TRUE;
}
-
+
/* if this is the first frame, make sure it's 1 */
if (video_last_frame == -1)
{
@@ -382,15 +382,15 @@ static void verify_video(int frame, bitmap_t *bitmap)
/* print an update every 10000 frames */
if (framenum != 0 && framenum % 10000 == 0)
printf("%6d.%d: detected frame %d\n", frame, fieldnum, framenum);
-
+
/* if this frame is not consecutive, it's an error */
if (video_last_frame != -1 && framenum != video_last_frame + 1)
printf("%6d.%d: gap in frame number sequence (%d->%d) (ERROR)\n", frame, fieldnum, video_last_frame, framenum);
-
+
/* remember the frame number */
video_last_frame = framenum;
}
-
+
/* is the whiteflag set? */
if (metadata.white)
{
@@ -400,7 +400,7 @@ static void verify_video(int frame, bitmap_t *bitmap)
video_first_whitefield = field;
printf("%6d.%d: first white flag seen\n", frame, fieldnum);
}
-
+
/* if we've seen frames, but we're not yet to the lead-out, check the cadence */
if (video_last_frame != -1 && !video_saw_leadout)
{
@@ -408,7 +408,7 @@ static void verify_video(int frame, bitmap_t *bitmap)
if (video_prev_whitefield != -1)
video_cadence_history = (video_cadence_history << 4) | ((field - video_prev_whitefield) & 0x0f);
video_prev_whitefield = field;
-
+
/* if we don't know our cadence yet, determine it */
if (video_cadence == -1 && (video_cadence_history & 0xf00) != 0)
{
@@ -429,24 +429,24 @@ static void verify_video(int frame, bitmap_t *bitmap)
}
else
{
- printf("%6d.%d: unknown cadence (history %d:%d:%d) (WARNING)\n", frame, fieldnum,
+ printf("%6d.%d: unknown cadence (history %d:%d:%d) (WARNING)\n", frame, fieldnum,
(video_cadence_history >> 8) & 15, (video_cadence_history >> 4) & 15, video_cadence_history & 15);
}
}
-
+
/* if we know our cadence, make sure we stick to it */
if (video_cadence != -1)
{
if (video_cadence == 4 && (video_cadence_history & 0xfff) != 0x222)
{
- printf("%6d.%d: missed cadence (history %d:%d:%d) (WARNING)\n", frame, fieldnum,
+ printf("%6d.%d: missed cadence (history %d:%d:%d) (WARNING)\n", frame, fieldnum,
(video_cadence_history >> 8) & 15, (video_cadence_history >> 4) & 15, video_cadence_history & 15);
video_cadence = -1;
video_cadence_history = 0;
}
else if (video_cadence == 5 && (video_cadence_history & 0xfff) != 0x323 && (video_cadence_history & 0xfff) != 0x232)
{
- printf("%6d.%d: missed cadence (history %d:%d:%d) (WARNING)\n", frame, fieldnum,
+ printf("%6d.%d: missed cadence (history %d:%d:%d) (WARNING)\n", frame, fieldnum,
(video_cadence_history >> 8) & 15, (video_cadence_history >> 4) & 15, video_cadence_history & 15);
video_cadence = -1;
video_cadence_history = 0;
@@ -466,7 +466,7 @@ static void verify_video_final(int frame, bitmap_t *bitmap)
{
int fields_per_frame = (bitmap->height >= 288) ? 2 : 1;
int field = frame * fields_per_frame;
-
+
/* did we ever see any white flags? */
if (video_first_whitefield == -1)
printf("Track %6d.%d: never saw any white flags; no cadence detection done (WARNING)\n", field / fields_per_frame, 0);
@@ -475,7 +475,7 @@ static void verify_video_final(int frame, bitmap_t *bitmap)
if (video_saw_leadin && !video_saw_leadout)
printf("Track %6d.%d: detected lead-in but never saw any lead-out (WARNING)\n", field / fields_per_frame, 0);
}
-
+
/*-------------------------------------------------
verify_audio - verify audio data
@@ -484,10 +484,10 @@ static void verify_video_final(int frame, bitmap_t *bitmap)
static void verify_audio(const INT16 *lsound, const INT16 *rsound, int samples)
{
int sampnum;
-
+
/* count the overall samples */
audio_sample_count += samples;
-
+
/* iterate over samples, tracking min/max */
for (sampnum = 0; sampnum < samples; sampnum++)
{
@@ -499,7 +499,7 @@ static void verify_audio(const INT16 *lsound, const INT16 *rsound, int samples)
}
else if (lsound[sampnum] == audio_min_lsample)
audio_min_lsample_count++;
-
+
/* did we hit a maximum on the left? */
if (lsound[sampnum] > audio_max_lsample)
{
@@ -517,7 +517,7 @@ static void verify_audio(const INT16 *lsound, const INT16 *rsound, int samples)
}
else if (rsound[sampnum] == audio_min_rsample)
audio_min_rsample_count++;
-
+
/* did we hit a maximum on the right? */
if (rsound[sampnum] > audio_max_rsample)
{
@@ -542,7 +542,7 @@ static void verify_audio_final(void)
printf(" Channel 1 minimum: %6d (with %9d/%9d samples at minimum)\n", audio_min_rsample, audio_min_rsample_count, audio_sample_count);
printf(" Channel 1 maximum: %6d (with %9d/%9d samples at maximum)\n", audio_max_rsample, audio_max_rsample_count, audio_sample_count);
}
-
+
/*-------------------------------------------------
usage - display program usage
@@ -571,12 +571,12 @@ int main(int argc, char *argv[])
void *file;
int isavi;
int frame;
-
+
/* verify arguments */
if (argc < 2)
return usage();
srcfile = argv[1];
-
+
/* check extension of file */
srcfilelen = strlen(srcfile);
if (srcfilelen < 4)
@@ -587,7 +587,7 @@ int main(int argc, char *argv[])
isavi = FALSE;
else
return usage();
-
+
/* open the file */
printf("Processing file: %s\n", srcfile);
file = isavi ? open_avi(srcfile, &info) : open_chd(srcfile, &info);
@@ -596,7 +596,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Unable to open file '%s'\n", srcfile);
return 1;
}
-
+
/* comment on the video dimensions */
printf("Video dimensions: %dx%d\n", info.width, info.height);
if (info.width != 720)
@@ -613,7 +613,7 @@ int main(int argc, char *argv[])
printf("Sample rate: %dHz\n", info.samplerate);
if (info.samplerate != 48000)
printf("WARNING: Unexpected sampele rate (should be 48000Hz)\n");
-
+
/* allocate a bitmap */
bitmap = bitmap_alloc(info.width, info.height, BITMAP_FORMAT_YUY16);
if (bitmap == NULL)
@@ -621,7 +621,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Out of memory creating %dx%d bitmap\n", info.width, info.height);
return 1;
}
-
+
/* allocate sound buffers */
lsound = malloc(info.samplerate * sizeof(*lsound));
rsound = malloc(info.samplerate * sizeof(*rsound));
@@ -630,7 +630,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "Out of memory allocating sound buffers of %d bytes\n", (INT32)(info.samplerate * sizeof(*rsound)));
return 1;
}
-
+
/* loop over frames */
frame = 0;
while (isavi ? read_avi(file, frame, bitmap, lsound, rsound, &samples) : read_chd(file, frame, bitmap, lsound, rsound, &samples))
@@ -639,14 +639,14 @@ int main(int argc, char *argv[])
verify_audio(lsound, rsound, samples);
frame++;
}
-
+
/* close the files */
isavi ? close_avi(file) : close_chd(file);
-
+
/* final output */
verify_video_final(frame, bitmap);
verify_audio_final();
-
+
/* free memory */
bitmap_free(bitmap);
free(lsound);
diff --git a/src/version.c b/src/version.c
index 7073a1ba537..809809b0e76 100644
--- a/src/version.c
+++ b/src/version.c
@@ -9,4 +9,4 @@
***************************************************************************/
-const char build_version[] = "0.126u3 ("__DATE__")";
+const char build_version[] = "0.126u4 ("__DATE__")";