trunk/src/mess/drivers/br8641.c
| r0 | r19771 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Brandt 8641 |
| 4 | |
| 5 | Currency Counter |
| 6 | |
| 7 | 24/12/2012 Skeleton driver. |
| 8 | |
| 9 | There seams to be 15 buttons (according to images, I just have board) |
| 10 | also there are 8 dips currently set at 00011100 (1 is on) |
| 11 | |
| 12 | ****************************************************************************/ |
| 13 | |
| 14 | #include "emu.h" |
| 15 | #include "cpu/z80/z80.h" |
| 16 | |
| 17 | class brandt8641_state : public driver_device |
| 18 | { |
| 19 | public: |
| 20 | brandt8641_state(const machine_config &mconfig, device_type type, const char *tag) |
| 21 | : driver_device(mconfig, type, tag), |
| 22 | m_maincpu(*this, "maincpu") |
| 23 | { } |
| 24 | |
| 25 | required_device<cpu_device> m_maincpu; |
| 26 | }; |
| 27 | |
| 28 | static ADDRESS_MAP_START(brandt8641_mem, AS_PROGRAM, 8, brandt8641_state) |
| 29 | ADDRESS_MAP_UNMAP_HIGH |
| 30 | AM_RANGE(0x0000, 0x7fff) AM_ROM // 27256 at U12 |
| 31 | AM_RANGE(0x8000, 0x9fff) AM_RAM // 8KB static ram 6264 at U12 |
| 32 | ADDRESS_MAP_END |
| 33 | |
| 34 | static ADDRESS_MAP_START(brandt8641_io, AS_IO, 8, brandt8641_state) |
| 35 | ADDRESS_MAP_UNMAP_HIGH |
| 36 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 37 | ADDRESS_MAP_END |
| 38 | |
| 39 | |
| 40 | /* Input ports */ |
| 41 | static INPUT_PORTS_START( brandt8641 ) |
| 42 | INPUT_PORTS_END |
| 43 | |
| 44 | static MACHINE_CONFIG_START( brandt8641, brandt8641_state ) |
| 45 | /* basic machine hardware */ |
| 46 | MCFG_CPU_ADD("maincpu",Z80, XTAL_4MHz) // U4 ,4MHz crystal on board |
| 47 | MCFG_CPU_PROGRAM_MAP(brandt8641_mem) |
| 48 | MCFG_CPU_IO_MAP(brandt8641_io) |
| 49 | // Z80APIO U9 |
| 50 | // Z80APIO U14 |
| 51 | // Z80PIO U7 |
| 52 | // Z80CTC U8 |
| 53 | MACHINE_CONFIG_END |
| 54 | |
| 55 | /* ROM definition */ |
| 56 | ROM_START( br8641 ) |
| 57 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) |
| 58 | ROM_LOAD( "v0911he.u11", 0x0000, 0x8000, CRC(59a16951) SHA1(893dba60ec8bfa391fb2d2a30db5d42d601f5eb9)) |
| 59 | ROM_END |
| 60 | |
| 61 | /* Driver */ |
| 62 | COMP( 1986, br8641, 0, 0, brandt8641, brandt8641, driver_device, 0, "Brandt", "Brandt 8641", GAME_IS_SKELETON) |