mirror of
https://github.com/holub/mame
synced 2025-07-08 11:21:56 +03:00
fixed Visual Studio compilation and compilation in general / small r10788_device initialization cleanup (nw)
This commit is contained in:
parent
ee0573b629
commit
bb652cbfec
@ -58,7 +58,6 @@ const device_type R10788 = &device_creator<r10788_device>;
|
|||||||
|
|
||||||
r10788_device::r10788_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
r10788_device::r10788_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
||||||
: device_t(mconfig, R10788, "Rockwell 10788", tag, owner, clock, "r10788", __FILE__),
|
: device_t(mconfig, R10788, "Rockwell 10788", tag, owner, clock, "r10788", __FILE__),
|
||||||
m_reg(),
|
|
||||||
m_ktr(0), m_kts(0), m_kla(0), m_klb(0), m_mask_a(15), m_mask_b(15), m_ker(0),
|
m_ktr(0), m_kts(0), m_kla(0), m_klb(0), m_mask_a(15), m_mask_b(15), m_ker(0),
|
||||||
m_io_counter(0), m_scan_counter(0),
|
m_io_counter(0), m_scan_counter(0),
|
||||||
m_display(*this)
|
m_display(*this)
|
||||||
@ -93,8 +92,7 @@ void r10788_device::device_start()
|
|||||||
*/
|
*/
|
||||||
void r10788_device::device_reset()
|
void r10788_device::device_reset()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < 16; i++)
|
memset(m_reg, 0x00, sizeof(m_reg));
|
||||||
m_reg[0][i] = m_reg[1][i] = 0;
|
|
||||||
m_ktr = 0;
|
m_ktr = 0;
|
||||||
m_kts = 0;
|
m_kts = 0;
|
||||||
m_kla = 0;
|
m_kla = 0;
|
||||||
|
@ -57,7 +57,6 @@ const device_type RA17XX = &device_creator<ra17xx_device>;
|
|||||||
|
|
||||||
ra17xx_device::ra17xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
ra17xx_device::ra17xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
||||||
: device_t(mconfig, RA17XX, "Rockwell A17XX", tag, owner, clock, "ra17xx", __FILE__),
|
: device_t(mconfig, RA17XX, "Rockwell A17XX", tag, owner, clock, "ra17xx", __FILE__),
|
||||||
m_line(),
|
|
||||||
m_enable(false),
|
m_enable(false),
|
||||||
m_iord(*this),
|
m_iord(*this),
|
||||||
m_iowr(*this)
|
m_iowr(*this)
|
||||||
|
@ -261,7 +261,7 @@ static void fpga_send(unsigned char cmd){
|
|||||||
WRITE8_MEMBER(barata_state::fpga_w)
|
WRITE8_MEMBER(barata_state::fpga_w)
|
||||||
{
|
{
|
||||||
static unsigned char old_data = 0;
|
static unsigned char old_data = 0;
|
||||||
if (!BIT(old_data, 5) and BIT(data, 5)){
|
if (!BIT(old_data, 5) && BIT(data, 5)){
|
||||||
//process the command sent to the FPGA
|
//process the command sent to the FPGA
|
||||||
fpga_send((data >> 2) & 7);
|
fpga_send((data >> 2) & 7);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user