src/emu/devcb.h
| r14975 | r14976 | |
| 117 | 117 | |
| 118 | 118 | // static template for a read16 stub function that calls through a given READ16_MEMBER |
| 119 | 119 | template<class _Class, UINT16 (_Class::*_Function)(address_space &, offs_t, UINT16)> |
| 120 | | UINT16 devcb_stub16(device_t *device, offs_t offset) |
| 120 | UINT16 devcb_stub(device_t *device, offs_t offset, UINT16 mask=0xffff) |
| 121 | 121 | { |
| 122 | 122 | _Class *target = downcast<_Class *>(device); |
| 123 | | return (target->*_Function)(*device->machine().memory().first_space(), offset, 0xffff); |
| 123 | return (target->*_Function)(*device->machine().memory().first_space(), offset, mask); |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | // static template for a write_line stub function that calls through a given WRITE_LINE_MEMBER |
| r14975 | r14976 | |
| 141 | 141 | |
| 142 | 142 | // static template for a write16 stub function that calls through a given WRITE16_MEMBER |
| 143 | 143 | template<class _Class, void (_Class::*_Function)(address_space &, offs_t, UINT16, UINT16)> |
| 144 | | void devcb_stub16(device_t *device, offs_t offset, UINT16 data) |
| 144 | void devcb_stub(device_t *device, offs_t offset, UINT16 data, UINT16 mask=0xffff) |
| 145 | 145 | { |
| 146 | 146 | _Class *target = downcast<_Class *>(device); |
| 147 | | (target->*_Function)(*device->machine().memory().first_space(), offset, data, 0xffff); |
| 147 | (target->*_Function)(*device->machine().memory().first_space(), offset, data, mask); |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | #define DEVCB_NULL { DEVCB_TYPE_NULL } |
src/mess/drivers/a2600.c
| r14975 | r14976 | |
| 1566 | 1566 | |
| 1567 | 1567 | static const tia_interface a2600_tia_interface = |
| 1568 | 1568 | { |
| 1569 | | DEVCB_NULL,//DEVCB_DRIVER_MEMBER(a2600_state, a2600_read_input_port), |
| 1569 | DEVCB_DRIVER_MEMBER(a2600_state, a2600_read_input_port), |
| 1570 | 1570 | DEVCB_DRIVER_MEMBER(a2600_state, a2600_get_databus_contents), |
| 1571 | | DEVCB_NULL,//DEVCB_DRIVER_MEMBER(a2600_state, a2600_tia_vsync_callback) |
| 1571 | DEVCB_DRIVER_MEMBER(a2600_state, a2600_tia_vsync_callback) |
| 1572 | 1572 | }; |
| 1573 | 1573 | |
| 1574 | 1574 | static const tia_interface a2600_tia_interface_pal = |
| 1575 | 1575 | { |
| 1576 | | DEVCB_NULL,//DEVCB_DRIVER_MEMBER(a2600_state, a2600_read_input_port), |
| 1576 | DEVCB_DRIVER_MEMBER(a2600_state, a2600_read_input_port), |
| 1577 | 1577 | DEVCB_DRIVER_MEMBER(a2600_state, a2600_get_databus_contents), |
| 1578 | | DEVCB_NULL,//DEVCB_DRIVER_MEMBER(a2600_state, a2600_tia_vsync_callback_pal) |
| 1578 | DEVCB_DRIVER_MEMBER(a2600_state, a2600_tia_vsync_callback_pal) |
| 1579 | 1579 | }; |
| 1580 | 1580 | |
| 1581 | 1581 | |