summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-10-02 05:34:21 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-10-02 05:34:21 +0000
commit5123b0711567fef3a844c0817aa5631ba13c1f5c (patch)
tree3b012ce71c4c4b4e7ab58b42fc186cff2329af12 /src/emu
parentcf63e2baa806398d22df4171e0f683c047a64204 (diff)
Cleanups and version bump.mame0127u6
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/cpu/dsp56k/dsp56ops.c10
-rw-r--r--src/emu/cpu/dsp56k/dsp56pcu.c2
-rw-r--r--src/emu/cpu/m68000/m68kcpu.c2
-rw-r--r--src/emu/cpu/z80/z80daisy.c4
-rw-r--r--src/emu/cpuint.c2
-rw-r--r--src/emu/machine/ldcore.c2
-rw-r--r--src/emu/machine/ldv1000.c12
-rw-r--r--src/emu/render.c30
8 files changed, 32 insertions, 32 deletions
diff --git a/src/emu/cpu/dsp56k/dsp56ops.c b/src/emu/cpu/dsp56k/dsp56ops.c
index 8ee035e69d1..cb0fd76c13a 100644
--- a/src/emu/cpu/dsp56k/dsp56ops.c
+++ b/src/emu/cpu/dsp56k/dsp56ops.c
@@ -8,11 +8,11 @@
// NOTES For register setting:
// FM.3-4 : When A2 or B2 is read, the register contents occupy the low-order portion
-// (bits 7-0) of the word; the high-order portion (bits 16-8) is sign-extended. When A2 or B2
-// is written, the register receives the low-order portion of the word; the high-order portion is not used
-// : ...much more!
-// : ...shifter/limiter/overflow notes too.
-//
+// (bits 7-0) of the word; the high-order portion (bits 16-8) is sign-extended. When A2 or B2
+// is written, the register receives the low-order portion of the word; the high-order portion is not used
+// : ...much more!
+// : ...shifter/limiter/overflow notes too.
+//
//
// Helper functions and macros
diff --git a/src/emu/cpu/dsp56k/dsp56pcu.c b/src/emu/cpu/dsp56k/dsp56pcu.c
index 2e2ee206908..8b2ff303173 100644
--- a/src/emu/cpu/dsp56k/dsp56pcu.c
+++ b/src/emu/cpu/dsp56k/dsp56pcu.c
@@ -211,7 +211,7 @@ static void pcu_reset(void)
IPR = 0x0000;
// FM.5-4
-// I_bits_set(0x03); This is what the manual says, but i'm dubious! Polygonet's HI interrupt wouldn't happen with the I bits set.
+// I_bits_set(0x03); This is what the manual says, but i'm dubious! Polygonet's HI interrupt wouldn't happen with the I bits set.
I_bits_set(0x00);
S_bits_set(0);
L_bit_set(0);
diff --git a/src/emu/cpu/m68000/m68kcpu.c b/src/emu/cpu/m68000/m68kcpu.c
index 190f19a4065..5da86fce774 100644
--- a/src/emu/cpu/m68000/m68kcpu.c
+++ b/src/emu/cpu/m68000/m68kcpu.c
@@ -789,7 +789,7 @@ int m68k_execute(int num_cycles)
/* See if interrupts came in */
m68ki_check_interrupts();
-
+
/* Make sure we're not stopped */
if(!CPU_STOPPED)
{
diff --git a/src/emu/cpu/z80/z80daisy.c b/src/emu/cpu/z80/z80daisy.c
index c45f54ec277..a675ecd75ed 100644
--- a/src/emu/cpu/z80/z80daisy.c
+++ b/src/emu/cpu/z80/z80daisy.c
@@ -25,7 +25,7 @@ z80_daisy_state *z80daisy_init(running_machine *machine, const z80_daisy_chain *
z80_daisy_state *head = NULL;
z80_daisy_state **tailptr = &head;
- /* create a linked list of devices */
+ /* create a linked list of devices */
for ( ; daisy->devtype != NULL; daisy++)
{
*tailptr = auto_malloc(sizeof(**tailptr));
@@ -36,7 +36,7 @@ z80_daisy_state *z80daisy_init(running_machine *machine, const z80_daisy_chain *
(*tailptr)->irq_reti = (z80_daisy_irq_reti)device_get_info_fct((*tailptr)->device, DEVINFO_FCT_IRQ_RETI);
tailptr = &(*tailptr)->next;
}
-
+
return head;
}
diff --git a/src/emu/cpuint.c b/src/emu/cpuint.c
index c3182d427e4..10bfeab20c3 100644
--- a/src/emu/cpuint.c
+++ b/src/emu/cpuint.c
@@ -331,7 +331,7 @@ void cpunum_set_input_line_and_vector(running_machine *machine, int cpunum, int
case CPU_TMS32026:
fatalerror("CPU %s: PULSE_LINE used with level-detected IRQ %d\n", machine->config->cpu[cpunum].tag, line);
break;
-
+
default:
break;
}
diff --git a/src/emu/machine/ldcore.c b/src/emu/machine/ldcore.c
index 1e0d0ec6b1a..5578dd4bbf0 100644
--- a/src/emu/machine/ldcore.c
+++ b/src/emu/machine/ldcore.c
@@ -1520,7 +1520,7 @@ static void init_video(const device_config *device)
ldcore->videotex = render_texture_alloc(NULL, NULL);
if (ldcore->videotex == NULL)
fatalerror("Out of memory allocating video texture");
-
+
/* allocate palette for applying brightness/contrast/gamma */
ldcore->videopalette = palette_alloc(256, 1);
if (ldcore->videopalette == NULL)
diff --git a/src/emu/machine/ldv1000.c b/src/emu/machine/ldv1000.c
index 217d5f4c94b..5a620dce8de 100644
--- a/src/emu/machine/ldv1000.c
+++ b/src/emu/machine/ldv1000.c
@@ -104,15 +104,15 @@ static WRITE8_HANDLER( ld_controls )
case 0:
// write $00 at startup/reject
break;
-
+
case 2:
// write $06 at startup/reject
break;
-
+
case 3:
// write $8A at startup
break;
-
+
case 5:
// write $9F at startup/reject
break;
@@ -120,7 +120,7 @@ static WRITE8_HANDLER( ld_controls )
case 6:
// write $C3 at startup/reject
break;
-
+
case 7:
// write $90 at startup
break;
@@ -133,7 +133,7 @@ static READ8_HANDLER( ld_controls )
switch (offset)
{
case 4:
-
+
}
}
@@ -142,7 +142,7 @@ static WRITE8_HANDLER( unknown_port_w )
{
// Writes to $00/$02/$00
// Values:
- // $04/$09/$0F
+ // $04/$09/$0F
// $04/$0E/$0F
// $04/ /$0F
}
diff --git a/src/emu/render.c b/src/emu/render.c
index 911ffea4524..9f3f69604aa 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -2478,7 +2478,7 @@ void render_texture_free(render_texture *texture)
/* release palette references */
if (texture->palette != NULL)
palette_deref(texture->palette);
-
+
/* free any B/C/G lookup tables */
if (texture->bcglookup != NULL)
free(texture->bcglookup);
@@ -2500,7 +2500,7 @@ void render_texture_free(render_texture *texture)
void render_texture_set_bitmap(render_texture *texture, bitmap_t *bitmap, const rectangle *sbounds, int format, palette_t *palette)
{
int scalenum;
-
+
/* ensure we have a valid palette for palettized modes */
if (format == TEXFORMAT_PALETTE16 || format == TEXFORMAT_PALETTEA16)
assert(palette != NULL);
@@ -2508,7 +2508,7 @@ void render_texture_set_bitmap(render_texture *texture, bitmap_t *bitmap, const
/* invalidate references to the old bitmap */
if (bitmap != texture->bitmap && texture->bitmap != NULL)
invalidate_all_render_ref(texture->bitmap);
-
+
/* if the palette is different, adjust references */
if (palette != texture->palette)
{
@@ -2647,23 +2647,23 @@ static const rgb_t *texture_get_adjusted_palette(render_texture *texture, render
const rgb_t *adjusted;
int numentries;
int index;
-
+
/* override the palette with our adjusted palette */
switch (texture->format)
{
case TEXFORMAT_PALETTE16:
case TEXFORMAT_PALETTEA16:
-
+
/* if no adjustment necessary, return the raw palette */
assert(texture->palette != NULL);
adjusted = palette_entry_list_adjusted(texture->palette);
if (container->brightness == 1.0f && container->contrast == 1.0f && container->gamma == 1.0f)
return adjusted;
-
+
/* if this is the machine palette, return our precomputed adjusted palette */
if (container->palclient != NULL && palette_client_get_palette(container->palclient) == texture->palette)
return container->bcglookup;
-
+
/* otherwise, ensure we have memory allocated and compute the adjusted result ourself */
numentries = palette_get_num_colors(texture->palette) * palette_get_num_groups(texture->palette);
if (texture->bcglookup == NULL || texture->bcglookup_entries < numentries)
@@ -2681,15 +2681,15 @@ static const rgb_t *texture_get_adjusted_palette(render_texture *texture, render
return texture->bcglookup;
case TEXFORMAT_RGB15:
-
+
/* if no adjustment necessary, return NULL */
if (container->brightness == 1.0f && container->contrast == 1.0f && container->gamma == 1.0f && texture->palette == NULL)
return NULL;
-
+
/* if no palette, return the standard lookups */
if (texture->palette == NULL)
return container->bcglookup32;
-
+
/* otherwise, ensure we have memory allocated and compute the adjusted result ourself */
assert(palette_get_num_colors(texture->palette) == 32);
adjusted = palette_entry_list_adjusted(texture->palette);
@@ -2709,19 +2709,19 @@ static const rgb_t *texture_get_adjusted_palette(render_texture *texture, render
texture->bcglookup[0x60 + index] = val << 24;
}
return texture->bcglookup;
-
+
case TEXFORMAT_RGB32:
case TEXFORMAT_ARGB32:
case TEXFORMAT_YUY16:
-
+
/* if no adjustment necessary, return NULL */
if (container->brightness == 1.0f && container->contrast == 1.0f && container->gamma == 1.0f && texture->palette == NULL)
return NULL;
-
+
/* if no palette, return the standard lookups */
if (texture->palette == NULL)
return container->bcglookup256;
-
+
/* otherwise, ensure we have memory allocated and compute the adjusted result ourself */
assert(palette_get_num_colors(texture->palette) == 256);
adjusted = palette_entry_list_adjusted(texture->palette);
@@ -2745,7 +2745,7 @@ static const rgb_t *texture_get_adjusted_palette(render_texture *texture, render
default:
assert(FALSE);
}
-
+
return NULL;
}