sync (nw)

This commit is contained in:
Olivier Galibert 2012-02-12 09:45:38 +00:00
parent 0603aba914
commit ad7b1b3400
2 changed files with 3 additions and 5 deletions

View File

@ -294,7 +294,7 @@ mccs1850_device::mccs1850_device(const machine_config &mconfig, const char *tag,
{ {
} }
void mccs1850_device::set_cb(cb_t _int_cb, cb_t _pse_cb, cb_t _nuc_cb) void mccs1850_device::set_cb(line_cb_t _int_cb, line_cb_t _pse_cb, line_cb_t _nuc_cb)
{ {
int_cb = _int_cb; int_cb = _int_cb;
pse_cb = _pse_cb; pse_cb = _pse_cb;

View File

@ -47,11 +47,9 @@ class mccs1850_device : public device_t,
public device_nvram_interface public device_nvram_interface
{ {
public: public:
typedef delegate<void (bool state)> cb_t;
// construction/destruction // construction/destruction
mccs1850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); mccs1850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
void set_cb(cb_t int_cb, cb_t pse_cb, cb_t nuc_cb); void set_cb(line_cb_t int_cb, line_cb_t pse_cb, line_cb_t nuc_cb);
DECLARE_WRITE_LINE_MEMBER( ce_w ); DECLARE_WRITE_LINE_MEMBER( ce_w );
DECLARE_WRITE_LINE_MEMBER( sck_w ); DECLARE_WRITE_LINE_MEMBER( sck_w );
@ -85,7 +83,7 @@ private:
static const device_timer_id TIMER_CLOCK = 0; static const device_timer_id TIMER_CLOCK = 0;
cb_t int_cb, pse_cb, nuc_cb; line_cb_t int_cb, pse_cb, nuc_cb;
UINT8 m_ram[0x80]; // RAM UINT8 m_ram[0x80]; // RAM