summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-08-26 08:10:34 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-08-26 08:10:34 +0200
commitefa3a679a331ea91002a0bc72e49a230ff2a2f67 (patch)
tree9de472bbb6862733d1982607326783d65be9c414 /src/emu/cpu
parentbc5ffe493777e55f081d3ba29b8b298da90ae776 (diff)
Cleanups and version bumpmame0165
Diffstat (limited to 'src/emu/cpu')
-rw-r--r--src/emu/cpu/pdp8/pdp8.c62
-rw-r--r--src/emu/cpu/tms32082/mp_ops.c10
-rw-r--r--src/emu/cpu/tms32082/tms32082.c32
-rw-r--r--src/emu/cpu/ucom4/ucom4.c4
4 files changed, 54 insertions, 54 deletions
diff --git a/src/emu/cpu/pdp8/pdp8.c b/src/emu/cpu/pdp8/pdp8.c
index dd2fd6fc6b3..d533380b87f 100644
--- a/src/emu/cpu/pdp8/pdp8.c
+++ b/src/emu/cpu/pdp8/pdp8.c
@@ -12,37 +12,37 @@
CPU_DISASSEMBLE( pdp8 );
-#define OP ((op >> 011) & 07)
-
-#define MR_IND ((op >> 010) & 01)
-#define MR_PAGE ((op >> 07) & 01)
-#define MR_ADDR (op & 0177)
-
-#define IOT_DEVICE ((op >> 03) & 077)
-#define IOT_IOP1 (op & 01)
-#define IOT_IOP2 ((op >> 01) & 01)
-#define IOT_IOP4 ((op >> 02) & 01)
-
-#define OPR_GROUP ((op >> 010) & 01)
-#define OPR_CLA ((op >> 07) & 01)
-#define OPR_CLL ((op >> 06) & 01)
-#define OPR_CMA ((op >> 05) & 01)
-#define OPR_CML ((op >> 04) & 01)
-#define OPR_ROR ((op >> 03) & 01)
-#define OPR_ROL ((op >> 02) & 01)
-#define OPR_ROT2 ((op >> 01) & 01)
-#define OPR_IAC (op & 01)
-
-#define OPR_SMA OPR_CLL
-#define OPR_SZA OPR_CMA
-#define OPR_SNL OPR_CML
-#define OPR_REVSKIP OPR_ROR
-#define OPR_OSR OPR_ROL
-#define OPR_HLT OPR_ROT2
-
-#define OPR_GROUP_MASK 0401
-#define OPR_GROUP1_VAL 0000
-#define OPR_GROUP2_VAL 0400
+#define OP ((op >> 011) & 07)
+
+#define MR_IND ((op >> 010) & 01)
+#define MR_PAGE ((op >> 07) & 01)
+#define MR_ADDR (op & 0177)
+
+#define IOT_DEVICE ((op >> 03) & 077)
+#define IOT_IOP1 (op & 01)
+#define IOT_IOP2 ((op >> 01) & 01)
+#define IOT_IOP4 ((op >> 02) & 01)
+
+#define OPR_GROUP ((op >> 010) & 01)
+#define OPR_CLA ((op >> 07) & 01)
+#define OPR_CLL ((op >> 06) & 01)
+#define OPR_CMA ((op >> 05) & 01)
+#define OPR_CML ((op >> 04) & 01)
+#define OPR_ROR ((op >> 03) & 01)
+#define OPR_ROL ((op >> 02) & 01)
+#define OPR_ROT2 ((op >> 01) & 01)
+#define OPR_IAC (op & 01)
+
+#define OPR_SMA OPR_CLL
+#define OPR_SZA OPR_CMA
+#define OPR_SNL OPR_CML
+#define OPR_REVSKIP OPR_ROR
+#define OPR_OSR OPR_ROL
+#define OPR_HLT OPR_ROT2
+
+#define OPR_GROUP_MASK 0401
+#define OPR_GROUP1_VAL 0000
+#define OPR_GROUP2_VAL 0400
const device_type PDP8CPU = &device_creator<pdp8_device>;
diff --git a/src/emu/cpu/tms32082/mp_ops.c b/src/emu/cpu/tms32082/mp_ops.c
index c6e9321ce24..79c0b401392 100644
--- a/src/emu/cpu/tms32082/mp_ops.c
+++ b/src/emu/cpu/tms32082/mp_ops.c
@@ -465,7 +465,7 @@ void tms32082_mp_device::execute_short_imm()
break;
}
- case 0x12: // and.tf
+ case 0x12: // and.tf
{
int rd = OP_RD();
int rs = OP_RS();
@@ -692,7 +692,7 @@ void tms32082_mp_device::execute_short_imm()
break;
}
- case 0x45: // jsr.a
+ case 0x45: // jsr.a
{
int link = OP_LINK();
int base = OP_BASE();
@@ -929,12 +929,12 @@ void tms32082_mp_device::execute_reg_long_imm()
UINT32 compmask = endmask & shiftmask;
UINT32 res = 0;
- if (r) // right
+ if (r) // right
{
res = ROTATE_R(source, rot) & compmask;
res = SIGN_EXTEND(res, rot);
}
- else // left
+ else // left
{
res = ROTATE_L(source, rot) & compmask;
}
@@ -1022,7 +1022,7 @@ void tms32082_mp_device::execute_reg_long_imm()
}
case 0x3a:
- case 0x3b: // or.ft
+ case 0x3b: // or.ft
{
int rd = OP_RD();
int rs = OP_RS();
diff --git a/src/emu/cpu/tms32082/tms32082.c b/src/emu/cpu/tms32082/tms32082.c
index 8b3d041ba4f..6ce5a2e2c80 100644
--- a/src/emu/cpu/tms32082/tms32082.c
+++ b/src/emu/cpu/tms32082/tms32082.c
@@ -298,24 +298,24 @@ void tms32082_mp_device::processor_command(UINT32 command)
for (int i=0; i < num; i++)
{
- printf("Entry %d:\n", i);
- for (int k=0; k < 6; k++)
- {
- for (int l=0; l < 4; l++)
- {
- UINT32 dd = m_program->read_dword(ra);
- ra += 4;
-
- printf("%08X(%f) ", dd, u2f(dd));
- }
- printf("\n");
- }
- printf("\n");
+ printf("Entry %d:\n", i);
+ for (int k=0; k < 6; k++)
+ {
+ for (int l=0; l < 4; l++)
+ {
+ UINT32 dd = m_program->read_dword(ra);
+ ra += 4;
+
+ printf("%08X(%f) ", dd, u2f(dd));
+ }
+ printf("\n");
+ }
+ printf("\n");
}
*/
UINT32 ra = 0x1000280;
-
+
int oldnum = m_program->read_dword(0x600ffffc);
UINT32 rb = 0x60000000 + (oldnum * 0x60);
@@ -367,7 +367,7 @@ UINT32 tms32082_mp_device::read_creg(int reg)
case 0xa: // PPERROR
return 0xe0000;
- case 0xe: // TCOUNT
+ case 0xe: // TCOUNT
return m_tcount;
case 0x4000: // IN0P
@@ -413,7 +413,7 @@ void tms32082_mp_device::write_creg(int reg, UINT32 data)
printf("IE = %08X\n", data);
break;
- case 0xe: // TCOUNT
+ case 0xe: // TCOUNT
m_tcount = data;
break;
diff --git a/src/emu/cpu/ucom4/ucom4.c b/src/emu/cpu/ucom4/ucom4.c
index 1d3da737b77..0c6bd280358 100644
--- a/src/emu/cpu/ucom4/ucom4.c
+++ b/src/emu/cpu/ucom4/ucom4.c
@@ -268,12 +268,12 @@ void ucom4_cpu_device::output_w(int index, UINT8 data)
UINT8 upd557l_cpu_device::input_r(int index)
{
index &= 0xf;
-
+
if (index == NEC_UCOM4_PORTB)
logerror("%s read from unknown port %c at $%03X\n", tag(), 'A' + index, m_prev_pc);
else
return ucom4_cpu_device::input_r(index);
-
+
return 0;
}