Previous 15994 Revisions Next

r15861 Sunday 12th August, 2012 at 11:54:24 UTC by Robbbert
Have to fix teleprinter too (nw)
[src/mess/machine]teleprinter.c teleprinter.h terminal.c terminal.h

src/mess/machine/teleprinter.c
r15860r15861
201201   return 0;
202202}
203203
204static ASCII_KEYBOARD_INTERFACE( keyboard_intf )
205{
206   DEVCB_DEVICE_MEMBER(DEVICE_SELF_OWNER, generic_terminal_device, kbd_put)
207};
208
204209/***************************************************************************
205210    VIDEO HARDWARE
206211***************************************************************************/
r15860r15861
211216   MCFG_SCREEN_SIZE(TELEPRINTER_WIDTH*8, TELEPRINTER_HEIGHT*8)
212217   MCFG_SCREEN_VISIBLE_AREA(0, TELEPRINTER_WIDTH*8-1, 0, TELEPRINTER_HEIGHT*8-1)
213218   MCFG_SCREEN_UPDATE_DEVICE(DEVICE_SELF, teleprinter_device, tp_update)
219   MCFG_ASCII_KEYBOARD_ADD(KEYBOARD_TAG, keyboard_intf)
214220MACHINE_CONFIG_END
215221
216222machine_config_constructor teleprinter_device::device_mconfig_additions() const
217223{
218      return MACHINE_CONFIG_NAME(generic_teleprinter);
224   return MACHINE_CONFIG_NAME(generic_teleprinter);
219225}
220226
221227/*-------------------------------------------------
src/mess/machine/teleprinter.h
r15860r15861
1919   MCFG_DEVICE_CONFIG(_intrf)
2020
2121#define MCFG_GENERIC_TELEPRINTER_REMOVE(_tag)      \
22    MCFG_DEVICE_REMOVE(_tag)
22   MCFG_DEVICE_REMOVE(_tag)
2323
2424/***************************************************************************
2525    FUNCTION PROTOTYPES
src/mess/machine/terminal.c
r15860r15861
322322
323323machine_config_constructor generic_terminal_device::device_mconfig_additions() const
324324{
325      return MACHINE_CONFIG_NAME(generic_terminal);
325   return MACHINE_CONFIG_NAME(generic_terminal);
326326}
327327
328328void generic_terminal_device::device_start()
src/mess/machine/terminal.h
r15860r15861
3434   MCFG_DEVICE_CONFIG(_intrf)
3535
3636#define MCFG_GENERIC_TERMINAL_REMOVE(_tag)      \
37    MCFG_DEVICE_REMOVE(_tag)
37   MCFG_DEVICE_REMOVE(_tag)
3838
3939#define MCFG_SERIAL_TERMINAL_ADD(_tag, _intrf, _clock) \
4040   MCFG_DEVICE_ADD(_tag, SERIAL_TERMINAL, _clock) \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team