Previous 15994 Revisions Next

r3127 Sunday 31st August, 2008 at 18:30:59 UTC by Curt Coder
[ABC80x] Changed to use the new MCS48 cpu core.
[src/mess/drivers]abc80x.c

src/mess/drivers/abc80x.c
r3126r3127
5555
5656    TODO:
5757
58   - ABC77 i8035 EA line handling
5859    - ABC77 keyboard ROM dump is needed!
5960   - refactor ABC77/99 keyboards into devices?
6061   - rewrite Z80DART for bit level serial I/O
r3126r3127
7576/* Components */
7677#include "cpu/z80/z80.h"
7778#include "cpu/z80/z80daisy.h"
78#include "cpu/i8039/i8039.h"
79#include "cpu/mcs48/mcs48.h"
7980#include "machine/centroni.h"
8081#include "includes/serial.h"
8182#include "machine/z80ctc.h"
r3126r3127
299300   // write abc77_txd to Z80DART TxD
300301}
301302
302static READ8_HANDLER( abc77_ea_r )
303{
304   return input_port_read(machine, "DSW") & 0x01;
305}
306
307303/* Memory Maps */
308304
309305// ABC 77 keyboard
r3126r3127
314310
315311static ADDRESS_MAP_START( abc77_io_map, ADDRESS_SPACE_IO, 8 )
316312   AM_RANGE(0x00, 0x3f) AM_RAM
317   AM_RANGE(I8039_p1, I8039_p1) AM_READ(abc77_data_r)
318   AM_RANGE(I8039_p2, I8039_p2) AM_WRITE(abc77_data_w)
319   AM_RANGE(I8039_t1, I8039_t1) AM_READ(abc77_clock_r)
320   AM_RANGE(I8039_bus, I8039_bus) AM_READ_PORT("DSW")
321   AM_RANGE(I8039_ea, I8039_ea) AM_READ(abc77_ea_r)
313   AM_RANGE(MCS48_PORT_P1, MCS48_PORT_P1) AM_READ(abc77_data_r)
314   AM_RANGE(MCS48_PORT_P2, MCS48_PORT_P2) AM_WRITE(abc77_data_w)
315   AM_RANGE(MCS48_PORT_T1, MCS48_PORT_T1) AM_READ(abc77_clock_r)
316   AM_RANGE(MCS48_PORT_BUS, MCS48_PORT_BUS) AM_READ_PORT("DSW")
322317ADDRESS_MAP_END
323318
324319// ABC 800M

Previous 15994 Revisions Next


© 1998-2018 The MESS Team