just some whitespace cleanup, no functional change

This commit is contained in:
hap 2015-06-21 18:54:52 +02:00
parent 00150aec1c
commit 567ae51cbe
2 changed files with 714 additions and 733 deletions

View File

@ -63,7 +63,8 @@ const device_type CP1610 = &device_creator<cp1610_cpu_device>;
/* set carry and overflow flags */ /* set carry and overflow flags */
#define SET_COV(n,m,qq) \ #define SET_COV(n,m,qq) \
{ unsigned int pp = n + m; \ { \
unsigned int pp = n + m; \
if (pp & 0x10000) \ if (pp & 0x10000) \
m_flags |= C; \ m_flags |= C; \
if (qq) \ if (qq) \
@ -80,20 +81,6 @@ const device_type CP1610 = &device_creator<cp1610_cpu_device>;
} \ } \
} }
#if 0
#define SET_COV(n,m) \
if ((n&0x7fff)+(m&0x7fff) > 0x7fff) \
{ \
if (!(m_flags & C))\
m_flags |= OV; \
} \
else \
{ \
if (m_flags & C) \
m_flags |= OV; \
}
#endif
/*********************************** /***********************************
* illegal opcodes * illegal opcodes
***********************************/ ***********************************/
@ -1098,10 +1085,6 @@ void cp1610_cpu_device::cp1610_mviat_i(int m, int d)
m_r[m]++; m_r[m]++;
m_r[d] = temp; m_r[d] = temp;
m_icount -= 8; m_icount -= 8;
//m_r[d] = cp1610_readmem16(m_r[m]);
//m_r[m]++;
//m_icount -= 8;
} }
/*************************************************** /***************************************************
@ -1527,13 +1510,6 @@ void cp1610_cpu_device::cp1610_xori(int d)
m_icount -= 8; m_icount -= 8;
} }
void cp1610_cpu_device::device_reset()
{
/* This is how we set the reset vector */
set_input_line(CP1610_RESET, PULSE_LINE);
}
/*************************************************** /***************************************************
* S Z C OV 0x001 1 010 mmm ddd (mmm = 0xx) * S Z C OV 0x001 1 010 mmm ddd (mmm = 0xx)
* - - - - SDBD, MVI@ Rm, Rd * - - - - SDBD, MVI@ Rm, Rd
@ -3389,6 +3365,12 @@ void cp1610_cpu_device::device_start()
m_icountptr = &m_icount; m_icountptr = &m_icount;
} }
void cp1610_cpu_device::device_reset()
{
/* This is how we set the reset vector */
set_input_line(CP1610_RESET, PULSE_LINE);
}
void cp1610_cpu_device::execute_set_input(int irqline, int state) void cp1610_cpu_device::execute_set_input(int irqline, int state)
{ {
switch(irqline) switch(irqline)

View File

@ -205,7 +205,6 @@ private:
void cp1610_jd(UINT16 addr); void cp1610_jd(UINT16 addr);
void cp1610_do_sdbd(); void cp1610_do_sdbd();
void cp1610_do_jumps(); void cp1610_do_jumps();
}; };