| Previous | 199869 Revisions | Next |
| r33955 Friday 19th December, 2014 at 16:53:24 UTC by Oliver Stöneberg |
|---|
| fixed Visual Studio compilation and compilation in general / small r10788_device initialization cleanup (nw) |
| [src/emu/machine] | r10788.c ra17xx.c |
| [src/mame/drivers] | barata.c |
| r242466 | r242467 | |
|---|---|---|
| 58 | 58 | |
| 59 | 59 | r10788_device::r10788_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 60 | 60 | : device_t(mconfig, R10788, "Rockwell 10788", tag, owner, clock, "r10788", __FILE__), |
| 61 | m_reg(), | |
| 62 | 61 | m_ktr(0), m_kts(0), m_kla(0), m_klb(0), m_mask_a(15), m_mask_b(15), m_ker(0), |
| 63 | 62 | m_io_counter(0), m_scan_counter(0), |
| 64 | 63 | m_display(*this) |
| r242466 | r242467 | |
| 93 | 92 | */ |
| 94 | 93 | void r10788_device::device_reset() |
| 95 | 94 | { |
| 96 | for (int i = 0; i < 16; i++) | |
| 97 | m_reg[0][i] = m_reg[1][i] = 0; | |
| 95 | memset(m_reg, 0x00, sizeof(m_reg)); | |
| 98 | 96 | m_ktr = 0; |
| 99 | 97 | m_kts = 0; |
| 100 | 98 | m_kla = 0; |
| r242466 | r242467 | |
|---|---|---|
| 57 | 57 | |
| 58 | 58 | ra17xx_device::ra17xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 59 | 59 | : device_t(mconfig, RA17XX, "Rockwell A17XX", tag, owner, clock, "ra17xx", __FILE__), |
| 60 | m_line(), | |
| 61 | 60 | m_enable(false), |
| 62 | 61 | m_iord(*this), |
| 63 | 62 | m_iowr(*this) |
| r242466 | r242467 | |
|---|---|---|
| 261 | 261 | WRITE8_MEMBER(barata_state::fpga_w) |
| 262 | 262 | { |
| 263 | 263 | static unsigned char old_data = 0; |
| 264 | if (!BIT(old_data, 5) | |
| 264 | if (!BIT(old_data, 5) && BIT(data, 5)){ | |
| 265 | 265 | //process the command sent to the FPGA |
| 266 | 266 | fpga_send((data >> 2) & 7); |
| 267 | 267 | } |
| https://github.com/mamedev/mame/commit/bb652cbfec5e86d97f45bf9ddb48337aa49c74ab |
| Previous | 199869 Revisions | Next |