Previous 15994 Revisions Next

r1065 Tuesday 2nd October, 2007 at 21:19:50 UTC by Dirk Verwiebe
[Mephisto 8 Bit] Improved Keyboard mapping
[src/mess/drivers]mephisto.c

src/mess/drivers/mephisto.c
r1064r1065
128128INPUT_PORTS_START( mephisto )
129129  // PORT_START_TAG("keyboard_1")
130130  PORT_START  //Port $2c00
131  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_1)
131  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("CLEAR") PORT_CODE(KEYCODE_F1)
132132  PORT_START //Port $2c01
133  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("POS") PORT_CODE(KEYCODE_2)
133  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("POS") PORT_CODE(KEYCODE_F2)
134134  PORT_START //Port $2c02
135  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MEM") PORT_CODE(KEYCODE_3) 
135  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("MEM") PORT_CODE(KEYCODE_F3) 
136136  PORT_START //Port $2c03
137  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("INFO") PORT_CODE(KEYCODE_4)
137  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("INFO") PORT_CODE(KEYCODE_F4)
138138  PORT_START  //Port $2c04
139  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("LEV") PORT_CODE(KEYCODE_5)
139  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("LEV") PORT_CODE(KEYCODE_F5)
140140  PORT_START //Port $2c05
141141  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("ENT") PORT_CODE(KEYCODE_ENTER)
142142  PORT_START //Port $2c06
r1064r1065
146146  // PORT_START_TAG("keyboard_2")
147147  PORT_START  //Port $2c08
148148  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("E") PORT_CODE(KEYCODE_E)
149  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("5") PORT_CODE(KEYCODE_5)
149150  PORT_START //Port $2c09
150151  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("F") PORT_CODE(KEYCODE_F)
152  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("7") PORT_CODE(KEYCODE_7)
151153  PORT_START //Port $2c0a
152154  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("G") PORT_CODE(KEYCODE_G) 
155  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("6") PORT_CODE(KEYCODE_6) 
153156  PORT_START //Port $2c0b
154157  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("A") PORT_CODE(KEYCODE_A)
158  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("1") PORT_CODE(KEYCODE_1)
155159  PORT_START  //Port $2c0c
156160  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("H") PORT_CODE(KEYCODE_H)
161  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("8") PORT_CODE(KEYCODE_8)
157162  PORT_START //Port $2c0d
158163  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("B") PORT_CODE(KEYCODE_B)
164  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("2") PORT_CODE(KEYCODE_2)
159165  PORT_START //Port $2c0e
160  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C) 
166  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("C") PORT_CODE(KEYCODE_C)
167  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("3") PORT_CODE(KEYCODE_3) 
161168  PORT_START //Port $2c0f
162169  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("D") PORT_CODE(KEYCODE_D)
170  PORT_BIT(0x080, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("4") PORT_CODE(KEYCODE_4)
163171INPUT_PORTS_END
164172
165173
r1064r1065
178186  // mame_timer_pulse(MAME_TIME_IN_HZ(60), 0, update_leds);
179187   mame_timer_pulse(MAME_TIME_IN_HZ(600), 0, update_nmi);
180188  // cpunum_set_input_line(0, M65C02_IRQ_LINE,CLEAR_LINE);
181  beep_set_frequency(0, 4000);
189  //beep_set_frequency(0, 4000);
182190}
183191
184192
r1064r1065
216224   MDRV_MACHINE_START( mephisto )
217225   MDRV_MACHINE_RESET( mephisto )
218226    /* video hardware */
219    MDRV_DEFAULT_LAYOUT(layout_mephisto)
227  MDRV_VIDEO_ATTRIBUTES(VIDEO_TYPE_RASTER)
228  MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
229  MDRV_SCREEN_SIZE(640, 480)
230  MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479)
231  MDRV_PALETTE_LENGTH(4)
232   MDRV_DEFAULT_LAYOUT(layout_mephisto)
220233   /* sound hardware */
221234   MDRV_SPEAKER_STANDARD_MONO("mono")
222235   MDRV_SOUND_ADD(BEEP, 0)
r1064r1065
239252
240253ROM_START(mm5)
241254  ROM_REGION(0x10000,REGION_CPU1,0)
242  ROM_LOAD("mephisto5.rom", 0x8000, 0x8000, CRC(89c3d9d2) SHA1(77cd6f8eeb03c713249db140d2541e3264328048))
255  ROM_LOAD("mephisto50.rom", 0x8000, 0x8000, CRC(89c3d9d2) SHA1(77cd6f8eeb03c713249db140d2541e3264328048))
243256  ROM_SYSTEM_BIOS( 0, "none", "No Opening Library" )
244257  ROM_SYSTEM_BIOS( 1, "hg550", "HG550 Opening Library" )
245258   ROMX_LOAD("hg550.rom", 0x4000, 0x4000, CRC(0359f13d) SHA1(833cef8302ad8d283d3f95b1d325353c7e3b8614),ROM_BIOS(2))
r1064r1065
261274
262275/*    YEAR  NAME    PARENT   COMPAT   MACHINE INPUT   INIT    CONFIG    COMPANY   FULLNAME */
263276/*CONSB( 1983,   mephisto,   0,      0,      mephisto,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Mephisto Schach Computer", 0)*/
264CONSB( 1983,    mm4,   0,      mephisto, 0,        mephisto,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Mephisto 4 Schach Computer", 0)
265CONSB( 1983,    mm5,   0,      mephisto, 0,        mephisto,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Mephisto 5 Schach Computer", 0)
266CONSB( 1983,    rebel5,   0,      mephisto, 0,        rebel5,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Rebel 5 Schach Computer", 0)
277CONSB( 1987,    mm4,   0,      mephisto, 0,        mephisto,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Mephisto 4 Schach Computer", 0)
278CONSB( 1990,    mm5,   0,      mephisto, 0,        mephisto,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Mephisto 5 Schach Computer", 0)
279CONSB( 1986,    rebel5,   0,      mephisto, 0,        rebel5,   mephisto,   mephisto,   NULL,     "Hegener & Glaser",  "Mephisto Rebel 5 Schach Computer", 0)
267280// second design sold (same computer/program?)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team