From d9918815c3e5edc6bb529dcc82a0635131a05b43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Corr=C3=AAa=20da=20Silva=20Sanches?= Date: Sat, 17 Jan 2015 23:41:04 -0200 Subject: [PATCH] (mess) skelethon driver for the BancTec ESeries panel --- src/mess/drivers/banctec.c | 86 +++++++++++++++++++++++++++++++++++++ src/mess/includes/banctec.h | 26 +++++++++++ src/mess/mess.mak | 4 ++ 3 files changed, 116 insertions(+) create mode 100644 src/mess/drivers/banctec.c create mode 100644 src/mess/includes/banctec.h diff --git a/src/mess/drivers/banctec.c b/src/mess/drivers/banctec.c new file mode 100644 index 00000000000..645bf425fb9 --- /dev/null +++ b/src/mess/drivers/banctec.c @@ -0,0 +1,86 @@ +#include "emu.h" +#include "cpu/m6805/m6805.h" +#include "includes/banctec.h" + +static ADDRESS_MAP_START( banctec_mem , AS_PROGRAM, 8, banctec_state ) + AM_RANGE(0x0000, 0x1fff) AM_ROM +ADDRESS_MAP_END + +#if 0 +static const gfx_layout banctec_charlayout = +{ + 8,8, + 256*8, /* 256 characters */ + 1, /* 1 bits per pixel */ + { 0 }, /* no bitplanes; 1 bit per pixel */ + /* x offsets */ + { + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + }, + /* y offsets */ + { + 0, + 8, + 16, + 24, + 32, + 40, + 48, + 56, + }, + 8*8 +}; + +static GFXDECODE_START( banctec ) + GFXDECODE_ENTRY( "gfx1", 0x0000, banctec_charlayout, 0, 2 ) +GFXDECODE_END +#endif + +void banctec_state::machine_reset() +{ +} + +static MACHINE_CONFIG_START( banctec, banctec_state ) + /* basic machine hardware */ + MCFG_CPU_ADD("maincpu", M6805, 4000000) /* 4000000? */ + MCFG_CPU_PROGRAM_MAP(banctec_mem) + +#if 0 + /* video hardware */ + MCFG_SCREEN_ADD("screen", LCD) + MCFG_SCREEN_REFRESH_RATE(LCD_FRAMES_PER_SECOND) + MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ + MCFG_SCREEN_SIZE(64*4, 128) /* 160 x 102 */ + MCFG_SCREEN_VISIBLE_AREA(0, 64*4-1, 0, 128-1) + MCFG_SCREEN_UPDATE_DRIVER(banctec_state, screen_update_banctec) + MCFG_SCREEN_PALETTE("palette") + + MCFG_GFXDECODE_ADD("gfxdecode", "palette", banctec ) + MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette") +#endif + +MACHINE_CONFIG_END + +ROM_START(banctec) + ROM_REGION(0x2000,"maincpu",0) + ROM_LOAD("banctec_eseries_panel.u8", 0x0000, 0x2000, CRC(f3335e0a) SHA1(5ca45fdcb7ef45a65c28c79abfa9ebb7a8a06619)) + + ROM_REGION(0x1000,"gfx",0) + ROM_LOAD("banctec_eseries_panel.u20", 0x0000, 0x1000, CRC(5b6ecec9) SHA1(35aff8f965bce77205e3a43d71e39097585091a7)) +ROM_END + +/*************************************************************************** + + Game driver(s) + +***************************************************************************/ + +/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT MONITOR COMPANY FULLNAME */ +CONS( 1993, banctec, 0, 0, banctec, 0, driver_device, 0, "BancTec", "ESeries Panel", GAME_NOT_WORKING | GAME_NO_SOUND) diff --git a/src/mess/includes/banctec.h b/src/mess/includes/banctec.h new file mode 100644 index 00000000000..4cfae74d477 --- /dev/null +++ b/src/mess/includes/banctec.h @@ -0,0 +1,26 @@ +/***************************************************************************** + * + * includes/banctec.h + * + ****************************************************************************/ + +#ifndef BANCTEC_H_ +#define BANCTEC_H_ + + +class banctec_state : public driver_device +{ +public: + banctec_state(const machine_config &mconfig, device_type type, const char *tag) + : driver_device(mconfig, type, tag), + m_maincpu(*this, "maincpu") { } + + DECLARE_READ8_MEMBER(banctec_read); + DECLARE_WRITE8_MEMBER(banctec_write); + virtual void machine_reset(); +// virtual void video_start(); +// UINT32 screen_update_banctec(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); + required_device m_maincpu; +}; + +#endif /* BANCTEC_H_ */ diff --git a/src/mess/mess.mak b/src/mess/mess.mak index 374f3d20007..0f94b38f5f0 100644 --- a/src/mess/mess.mak +++ b/src/mess/mess.mak @@ -675,6 +675,7 @@ DRVLIBS += \ $(MESSOBJ)/att.a \ $(MESSOBJ)/bally.a \ $(MESSOBJ)/bandai.a \ + $(MESSOBJ)/banctec.a \ $(MESSOBJ)/be.a \ $(MESSOBJ)/bnpo.a \ $(MESSOBJ)/bondwell.a \ @@ -1036,6 +1037,9 @@ $(MESSOBJ)/att.a: \ $(MESSOBJ)/bally.a: \ $(MESS_DRIVERS)/astrocde.o \ +$(MESSOBJ)/banctec.a: \ + $(MESS_DRIVERS)/banctec.o \ + $(MESSOBJ)/bandai.a: \ $(MESS_DRIVERS)/sv8000.o \ $(MESS_DRIVERS)/rx78.o \