diff options
author | Robbbert <Robbbert@users.noreply.github.com> | 2017-09-16 21:31:09 +1000 |
---|---|---|
committer | Robbbert <Robbbert@users.noreply.github.com> | 2017-09-16 21:31:09 +1000 |
commit | dcf1c72b98af4256d5c9d61cbca0dd3410648291 (patch) | |
tree | 4d7f344f48ad4678c365ee957fdae77a8d39a437 | |
parent | 7b35d138cc6e7b60afc4dcec1dae66a4feb624bf (diff) |
(nw) mits680b : cleanup, notes
-rw-r--r-- | src/mame/drivers/mits680b.cpp | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/src/mame/drivers/mits680b.cpp b/src/mame/drivers/mits680b.cpp index cd3c008ab58..3342f81acd0 100644 --- a/src/mame/drivers/mits680b.cpp +++ b/src/mame/drivers/mits680b.cpp @@ -2,11 +2,10 @@ // copyright-holders:Miodrag Milanovic, Robbbert /*************************************************************************** - MITS Altair 680b +MITS Altair 680b - 03/12/2009 Skeleton driver. - - 08/June/2011 connected to a terminal +2009-12-03 Skeleton driver. +2011-06-08 Connected to a terminal Monitor Commands: J @@ -17,25 +16,23 @@ P this does a rti and causes a momentary crash. Weird. ToDo: -- Hook ACIA back up, when there is some way to use it. - +- Find out what uart is used (not 8251, not 6551, not Z80SIO) and hook it up. + Initialisation consists of writing 03 to F000. ****************************************************************************/ #include "emu.h" #include "cpu/m6800/m6800.h" -#include "machine/mos6551.h" #include "machine/terminal.h" -#define TERMINAL_TAG "terminal" class mits680b_state : public driver_device { public: mits680b_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_terminal(*this, TERMINAL_TAG) + : driver_device(mconfig, type, tag) + , m_maincpu(*this, "maincpu") + , m_terminal(*this, "terminal") { } @@ -73,11 +70,10 @@ READ8_MEMBER( mits680b_state::terminal_r ) static ADDRESS_MAP_START(mits680b_mem, AS_PROGRAM, 8, mits680b_state) ADDRESS_MAP_UNMAP_HIGH AM_RANGE( 0x0000, 0x03ff ) AM_RAM // 1024 bytes RAM - //AM_RANGE( 0xf000, 0xf003 ) AM_DEVREADWRITE("acia", mos6551_device, read, write ) AM_RANGE( 0xf000, 0xf000 ) AM_READ(terminal_status_r) - AM_RANGE( 0xf001, 0xf001 ) AM_READ(terminal_r) AM_DEVWRITE(TERMINAL_TAG, generic_terminal_device, write) + AM_RANGE( 0xf001, 0xf001 ) AM_READ(terminal_r) AM_DEVWRITE("terminal", generic_terminal_device, write) AM_RANGE( 0xf002, 0xf002 ) AM_READ(status_check_r) - AM_RANGE( 0xff00, 0xffff ) AM_ROM + AM_RANGE( 0xff00, 0xffff ) AM_ROM AM_REGION("roms", 0) ADDRESS_MAP_END /* Input ports */ @@ -97,21 +93,18 @@ void mits680b_state::kbd_put(u8 data) static MACHINE_CONFIG_START( mits680b ) /* basic machine hardware */ - MCFG_CPU_ADD("maincpu",M6800, XTAL_1MHz / 2) + MCFG_CPU_ADD("maincpu", M6800, XTAL_1MHz / 2) MCFG_CPU_PROGRAM_MAP(mits680b_mem) /* video hardware */ - MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0) + MCFG_DEVICE_ADD("terminal", GENERIC_TERMINAL, 0) MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(mits680b_state, kbd_put)) - - /* acia */ - //MCFG_ACIA6551_ADD("acia") MACHINE_CONFIG_END /* ROM definition */ ROM_START( mits680b ) - ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) - ROM_LOAD( "mits680b.bin", 0xff00, 0x0100, CRC(397e717f) SHA1(257d3eb1343b8611dc05455aeed33615d581f29c)) + ROM_REGION( 0x100, "maincpu", ROMREGION_ERASEFF ) + ROM_LOAD( "mits680b.bin", 0x0000, 0x0100, CRC(397e717f) SHA1(257d3eb1343b8611dc05455aeed33615d581f29c)) ROM_END /* Driver */ |