Board works with some demo programs now (nw)

This commit is contained in:
R. Belmont 2012-09-23 22:41:22 +00:00
parent 8f1a1a9bdc
commit 3a74e392d0
2 changed files with 22 additions and 2 deletions

View File

@ -3,7 +3,12 @@
a2arcadeboard.c
Implementation of the Third Millenium Engineering Arcade Board
TODO:
- VDPTEST program seems to want more than 16K of RAM, but docs/ads/press releases say 16k, period
- MLDEMO program needs vsync IRQ from the TMS but doesn't program the registers the way our emulation
wants to enable IRQs
*********************************************************************/
#include "emu.h"
@ -35,7 +40,7 @@ static TMS9928A_INTERFACE(arcadeboard_tms9918a_interface)
{
SCREEN_TAG,
0x4000, // 16k of VRAM
DEVCB_NULL // VBL interrupt
DEVCB_DEVICE_LINE_MEMBER(DEVICE_SELF_OWNER, a2bus_arcboard_device, tms_irq_w)
};
MACHINE_CONFIG_FRAGMENT( arcadeboard )
@ -143,3 +148,16 @@ void a2bus_arcboard_device::write_c0nx(address_space &space, UINT8 offset, UINT8
break;
}
}
WRITE_LINE_MEMBER( a2bus_arcboard_device::tms_irq_w )
{
if (state)
{
raise_slot_irq();
}
else
{
lower_slot_irq();
}
}

View File

@ -30,6 +30,8 @@ public:
// optional information overrides
virtual machine_config_constructor device_mconfig_additions() const;
DECLARE_WRITE_LINE_MEMBER( tms_irq_w );
protected:
virtual void device_start();
virtual void device_reset();