summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine')
-rw-r--r--src/mame/machine/amiga.c2
-rw-r--r--src/mame/machine/chaknpop.c1
-rw-r--r--src/mame/machine/megadriv.c2
-rw-r--r--src/mame/machine/scudsp.c20
-rw-r--r--src/mame/machine/smpc.c6
-rw-r--r--src/mame/machine/snes7110.c8
-rw-r--r--src/mame/machine/snessdd1.c2
-rw-r--r--src/mame/machine/stvcd.c26
-rw-r--r--src/mame/machine/tecmosys.c2
9 files changed, 34 insertions, 35 deletions
diff --git a/src/mame/machine/amiga.c b/src/mame/machine/amiga.c
index 0a27656f4d2..45fcf71df66 100644
--- a/src/mame/machine/amiga.c
+++ b/src/mame/machine/amiga.c
@@ -1192,7 +1192,7 @@ READ16_HANDLER( amiga_custom_r )
case REG_JOY1DAT:
if (state->m_intf->joy1dat_r != NULL)
return (*state->m_intf->joy1dat_r)(space.machine());
-
+
if (state->m_joy1dat_port) return state->m_joy1dat_port->read();
else return 0xffff;
diff --git a/src/mame/machine/chaknpop.c b/src/mame/machine/chaknpop.c
index fc7f1771ae6..9e448061eee 100644
--- a/src/mame/machine/chaknpop.c
+++ b/src/mame/machine/chaknpop.c
@@ -47,7 +47,6 @@ static const UINT8 mcu_data[256] = {
void chaknpop_state::mcu_update_seed( UINT8 data )
{
-
if (!(data & 0x80))
{
m_mcu_seed += 0x83;
diff --git a/src/mame/machine/megadriv.c b/src/mame/machine/megadriv.c
index 90998e1252d..4ceeba6e41e 100644
--- a/src/mame/machine/megadriv.c
+++ b/src/mame/machine/megadriv.c
@@ -306,7 +306,7 @@ UINT8 megadrive_io_read_data_port_3button(running_machine &machine, int portnum)
{
UINT8 retdata, helper = (megadrive_io_ctrl_regs[portnum] & 0x7f) | 0x80; // bit 7 always comes from megadrive_io_data_regs
static const char *const pad3names[] = { "PAD1", "PAD2", "IN0", "UNK" };
-
+
if (megadrive_io_data_regs[portnum] & 0x40)
{
/* here we read B, C & the directional buttons */
diff --git a/src/mame/machine/scudsp.c b/src/mame/machine/scudsp.c
index 5aa197567ed..4a9c59097ac 100644
--- a/src/mame/machine/scudsp.c
+++ b/src/mame/machine/scudsp.c
@@ -66,17 +66,17 @@ Changelog:
- Add control flags
- Croc: has a bug somewhere that never allows it to trip the ENDI opcode.
Snippet of interest is:
- 08 00823500 CLR A MOV M0,PL
- 09 08040000 OR MOV ALU,A
- 0A D208000D JMP NZ,$D
- 0B 00000000 NOP
- 0C F8000000 ENDI
+ 08 00823500 CLR A MOV M0,PL
+ 09 08040000 OR MOV ALU,A
+ 0A D208000D JMP NZ,$D
+ 0B 00000000 NOP
+ 0C F8000000 ENDI
...
- 40 00863502 MOV M0,A MOV M2,PL
- 41 10003009 ADD MOV ALL,MC0
- 42 D3400042 JMP T0,$42
- 43 00000000 NOP
- 44 D0000007 JMP $7
+ 40 00863502 MOV M0,A MOV M2,PL
+ 41 10003009 ADD MOV ALL,MC0
+ 42 D3400042 JMP T0,$42
+ 43 00000000 NOP
+ 44 D0000007 JMP $7
******************************************************************************************/
#include "emu.h"
diff --git a/src/mame/machine/smpc.c b/src/mame/machine/smpc.c
index c470aea7dda..5754bc72be8 100644
--- a/src/mame/machine/smpc.c
+++ b/src/mame/machine/smpc.c
@@ -226,7 +226,7 @@ static TIMER_CALLBACK( smpc_slave_enable )
state->m_smpc.OREG[31] = param + 0x02; //read-back for last command issued
state->m_smpc.SF = 0x00; //clear hand-shake flag
state->m_smpc.slave_on = param;
-// printf("%d %d\n",machine.primary_screen->hpos(),machine.primary_screen->vpos());
+// printf("%d %d\n",machine.primary_screen->hpos(),machine.primary_screen->vpos());
}
static TIMER_CALLBACK( smpc_sound_enable )
@@ -618,7 +618,7 @@ static TIMER_CALLBACK( smpc_nmi_set )
{
saturn_state *state = machine.driver_data<saturn_state>();
-// printf("%d %d\n",machine.primary_screen->hpos(),machine.primary_screen->vpos());
+// printf("%d %d\n",machine.primary_screen->hpos(),machine.primary_screen->vpos());
state->m_NMI_reset = param;
/* put issued command in OREG31 */
state->m_smpc.OREG[31] = 0x19 + param;
@@ -878,7 +878,7 @@ UINT8 saturn_state::smpc_th_control_mode(UINT8 pad_n)
break;
case 2:
res = th<<6;
- // 1 C B Right Left Down Up
+ // 1 C B Right Left Down Up
res|= (((machine().root_device().ioport(padnames[pad_n])->read()>>4)) & 0x30); // C & B
res|= (((machine().root_device().ioport(padnames[pad_n])->read()>>12)) & 0xf);
break;
diff --git a/src/mame/machine/snes7110.c b/src/mame/machine/snes7110.c
index ad27cd0ac65..0aa5299f591 100644
--- a/src/mame/machine/snes7110.c
+++ b/src/mame/machine/snes7110.c
@@ -127,7 +127,7 @@ public:
void init(running_machine &machine, UINT8 *ROM, UINT32 mode, UINT32 offset, UINT32 index);
void reset();
-
+
UINT8 read(UINT8 *ROM);
void write(UINT8 data);
void mode0(UINT8 init, UINT8 *ROM);
@@ -159,7 +159,7 @@ public:
UINT32 m_morton16[2][256];
UINT32 m_morton32[4][256];
-
+
private:
running_machine& m_machine;
UINT32 m_rom_size;
@@ -238,10 +238,10 @@ UINT8 SPC7110Decomp::read(UINT8 *ROM)
{
UINT8 data;
- if (m_decomp_buffer_length == 0)
+ if (m_decomp_buffer_length == 0)
{
//decompress at least (SPC7110_DECOMP_BUFFER_SIZE / 2) bytes to the buffer
- switch (m_decomp_mode)
+ switch (m_decomp_mode)
{
case 0:
mode0(0, ROM);
diff --git a/src/mame/machine/snessdd1.c b/src/mame/machine/snessdd1.c
index 943c9c02e02..91608a857b8 100644
--- a/src/mame/machine/snessdd1.c
+++ b/src/mame/machine/snessdd1.c
@@ -485,7 +485,7 @@ SDD1emu::SDD1emu(running_machine &machine)
m_BG6 = auto_alloc(machine, SDD1_BG(m_GCD, 6));
m_BG7 = auto_alloc(machine, SDD1_BG(m_GCD, 7));
m_PEM = auto_alloc(machine, SDD1_PEM(m_BG0, m_BG1, m_BG2, m_BG3,
- m_BG4, m_BG5, m_BG6, m_BG7));
+ m_BG4, m_BG5, m_BG6, m_BG7));
m_CM = auto_alloc(machine, SDD1_CM(m_PEM));
m_OL = auto_alloc(machine, SDD1_OL(m_CM));
}
diff --git a/src/mame/machine/stvcd.c b/src/mame/machine/stvcd.c
index f7f15be6bae..6ec36582670 100644
--- a/src/mame/machine/stvcd.c
+++ b/src/mame/machine/stvcd.c
@@ -103,10 +103,10 @@ void saturn_state::cd_exec_command( void )
UINT32 temp;
if(cr1 != 0 &&
- ((cr1 & 0xff00) != 0x5100) &&
- ((cr1 & 0xff00) != 0x5200) &&
- ((cr1 & 0xff00) != 0x5300) &&
- 1)
+ ((cr1 & 0xff00) != 0x5100) &&
+ ((cr1 & 0xff00) != 0x5200) &&
+ ((cr1 & 0xff00) != 0x5300) &&
+ 1)
printf("CD: command exec %04x %04x %04x %04x %04x (stat %04x)\n", hirqreg, cr1, cr2, cr3, cr4, cd_stat);
switch (cr1 & 0xff00)
@@ -1222,8 +1222,8 @@ void saturn_state::cd_exec_command( void )
CDROM_LOG(("%s:CD: Verify copy protection\n", machine.describe_context()))
if(((cd_stat & 0x0f00) != CD_STAT_NODISC) && ((cd_stat & 0x0f00) != CD_STAT_OPEN))
cd_stat = CD_STAT_PAUSE;
-// cr1 = cd_stat; // necessary to pass
-// cr2 = 0x4;
+// cr1 = cd_stat; // necessary to pass
+// cr2 = 0x4;
// hirqreg |= (CMOK|EFLS|CSCT);
sectorstore = 1;
hirqreg = 0xfc5;
@@ -1239,7 +1239,7 @@ void saturn_state::cd_exec_command( void )
cr3 = 0;
cr4 = 0;
hirqreg |= (CMOK);
-// cr_standard_return(cd_stat);
+// cr_standard_return(cd_stat);
break;
default:
@@ -1489,7 +1489,7 @@ UINT16 saturn_state::cd_readWord(UINT32 addr)
case 0x000c:
case 0x000e:
-// CDROM_LOG(("RW HIRM: %04x\n", hirqmask))
+// CDROM_LOG(("RW HIRM: %04x\n", hirqmask))
printf("RW HIRM: %04x\n", hirqmask);
return hirqmask;
@@ -1636,9 +1636,9 @@ UINT32 saturn_state::cd_readLong(UINT32 addr)
{
// get next longword
rv = (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 0]<<24) |
- (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 1]<<16) |
- (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 2]<<8) |
- (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 3]<<0);
+ (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 1]<<16) |
+ (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 2]<<8) |
+ (transpart->blocks[xfersectpos+xfersect]->data[xferoffs + 3]<<0);
xferdnum += 4;
xferoffs += 4;
@@ -1699,7 +1699,7 @@ void saturn_state::cd_writeWord(UINT32 addr, UINT16 data)
{
case 0x0008:
case 0x000a:
-// CDROM_LOG(("%s:WW HIRQ: %04x & %04x => %04x\n", machine().describe_context(), hirqreg, data, hirqreg & data))
+// CDROM_LOG(("%s:WW HIRQ: %04x & %04x => %04x\n", machine().describe_context(), hirqreg, data, hirqreg & data))
hirqreg &= data;
if(!(hirqreg & CMOK))
{
@@ -1709,7 +1709,7 @@ void saturn_state::cd_writeWord(UINT32 addr, UINT16 data)
return;
case 0x000c:
case 0x000e:
-// CDROM_LOG(("WW HIRM: %04x => %04x\n", hirqmask, data))
+// CDROM_LOG(("WW HIRM: %04x => %04x\n", hirqmask, data))
printf("WW HIRM: %04x => %04x\n", hirqmask, data);
hirqmask = data;
return;
diff --git a/src/mame/machine/tecmosys.c b/src/mame/machine/tecmosys.c
index c38f3bace4a..bd1678d9dc1 100644
--- a/src/mame/machine/tecmosys.c
+++ b/src/mame/machine/tecmosys.c
@@ -104,7 +104,7 @@ static const struct prot_data tkdensha_data =
void tecmosys_state::tecmosys_prot_reset()
-{
+{
m_device_read_ptr = 0;
m_device_status = DS_IDLE;
m_device_value = 0xff;