Previous 15994 Revisions Next

r12914 Thursday 22nd September, 2011 at 12:15:47 UTC by Robbbert
POLY - added a dodgy keyboard.
[src/mess/drivers]poly.c

src/mess/drivers/poly.c
r12913r12914
1919#include "cpu/m6809/m6809.h"
2020#include "cpu/z80/z80.h"
2121#include "video/saa5050.h"
22#include "machine/terminal.h"
2223
2324
2425class poly_state : public driver_device
2526{
2627public:
2728   poly_state(const machine_config &mconfig, device_type type, const char *tag)
28      : driver_device(mconfig, type, tag) { }
29      : driver_device(mconfig, type, tag),
30   m_maincpu(*this, "maincpu")
31   { }
2932
33   required_device<cpu_device> m_maincpu;
34   DECLARE_WRITE8_MEMBER(kbd_put);
3035};
3136
3237
r12913r12914
4651INPUT_PORTS_END
4752
4853
49static MACHINE_RESET(poly)
54static MACHINE_RESET( poly )
5055{
5156}
5257
r12913r12914
6772   0   /* rev y order */
6873};
6974
75// temporary hack
76WRITE8_MEMBER( poly_state::kbd_put )
77{
78   address_space *mem = m_maincpu->memory().space(AS_PROGRAM);
79   mem->write_byte(0xebec, data);
80   mem->write_byte(0xebd0, 1); // any non-zero here
81}
7082
83static GENERIC_TERMINAL_INTERFACE( terminal_intf )
84{
85   DEVCB_DRIVER_MEMBER(poly_state, kbd_put)
86};
87
7188static MACHINE_CONFIG_START( poly, poly_state )
7289   /* basic machine hardware */
7390   MCFG_CPU_ADD("maincpu", M6809E, XTAL_4MHz)
r12913r12914
89106   MCFG_PALETTE_INIT(saa5050)
90107
91108   MCFG_SAA5050_ADD("saa5050", poly_saa5050_intf)
109
110   // temporary hack
111   MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)
92112MACHINE_CONFIG_END
93113
94114/* ROM definition */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team