mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
just some whitespace cleanup, no functional change
This commit is contained in:
parent
00150aec1c
commit
567ae51cbe
@ -63,7 +63,8 @@ const device_type CP1610 = &device_creator<cp1610_cpu_device>;
|
||||
|
||||
/* set carry and overflow flags */
|
||||
#define SET_COV(n,m,qq) \
|
||||
{ unsigned int pp = n + m; \
|
||||
{ \
|
||||
unsigned int pp = n + m; \
|
||||
if (pp & 0x10000) \
|
||||
m_flags |= C; \
|
||||
if (qq) \
|
||||
@ -78,21 +79,7 @@ const device_type CP1610 = &device_creator<cp1610_cpu_device>;
|
||||
if ((n^pp)&(~(m^n))&0x8000) \
|
||||
m_flags |= OV; \
|
||||
} \
|
||||
}
|
||||
|
||||
#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
|
||||
@ -1098,10 +1085,6 @@ void cp1610_cpu_device::cp1610_mviat_i(int m, int d)
|
||||
m_r[m]++;
|
||||
m_r[d] = temp;
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
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)
|
||||
* - - - - SDBD, MVI@ Rm, Rd
|
||||
@ -3389,6 +3365,12 @@ void cp1610_cpu_device::device_start()
|
||||
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)
|
||||
{
|
||||
switch(irqline)
|
||||
|
@ -205,7 +205,6 @@ private:
|
||||
void cp1610_jd(UINT16 addr);
|
||||
void cp1610_do_sdbd();
|
||||
void cp1610_do_jumps();
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user