trunk/src/mess/includes/pp01.h
r25461 | r25462 | |
7 | 7 | #ifndef PP01_H_ |
8 | 8 | #define PP01_H_ |
9 | 9 | |
| 10 | #include "emu.h" |
| 11 | #include "cpu/i8085/i8085.h" |
| 12 | #include "machine/ram.h" |
| 13 | //#include "machine/i8251.h" |
10 | 14 | #include "machine/pit8253.h" |
11 | 15 | #include "machine/i8255.h" |
12 | | #include "machine/ram.h" |
| 16 | #include "sound/speaker.h" |
| 17 | //#include "sound/wave.h" |
| 18 | //#include "imagedev/cassette.h" |
13 | 19 | |
14 | 20 | class pp01_state : public driver_device |
15 | 21 | { |
r25461 | r25462 | |
18 | 24 | : driver_device(mconfig, type, tag), |
19 | 25 | m_maincpu(*this, "maincpu"), |
20 | 26 | m_pit(*this, "pit8253"), |
| 27 | m_speaker(*this, "speaker"), |
21 | 28 | m_ram(*this, RAM_TAG) { } |
22 | 29 | |
23 | 30 | required_device<cpu_device> m_maincpu; |
24 | 31 | required_device<pit8253_device> m_pit; |
| 32 | required_device<speaker_sound_device> m_speaker; |
25 | 33 | required_device<ram_device> m_ram; |
26 | 34 | UINT8 m_video_scroll; |
27 | 35 | UINT8 m_memory_block[16]; |
trunk/src/mess/drivers/pp01.c
r25461 | r25462 | |
7 | 7 | ****************************************************************************/ |
8 | 8 | |
9 | 9 | |
10 | | #include "emu.h" |
11 | | #include "cpu/i8085/i8085.h" |
12 | | #include "machine/ram.h" |
13 | 10 | #include "includes/pp01.h" |
14 | 11 | |
15 | 12 | |
r25461 | r25462 | |
138 | 135 | PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED) |
139 | 136 | PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNUSED) |
140 | 137 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
141 | | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_COLON) |
| 138 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME(":") PORT_CODE(KEYCODE_QUOTE) |
142 | 139 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("J") PORT_CODE(KEYCODE_J) |
143 | 140 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Z") PORT_CODE(KEYCODE_Z) |
144 | 141 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
r25461 | r25462 | |
185 | 182 | PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNUSED) |
186 | 183 | PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("/") PORT_CODE(KEYCODE_SLASH) |
187 | 184 | PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("O") PORT_CODE(KEYCODE_O) |
188 | | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("_") PORT_CODE(KEYCODE_TILDE) |
| 185 | PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("_") PORT_CODE(KEYCODE_HOME) |
189 | 186 | PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_UNUSED) |
190 | 187 | PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED) |
191 | 188 | PORT_START("LINEALL") |
r25461 | r25462 | |
201 | 198 | MCFG_CPU_PROGRAM_MAP(pp01_mem) |
202 | 199 | MCFG_CPU_IO_MAP(pp01_io) |
203 | 200 | |
204 | | |
205 | 201 | /* video hardware */ |
206 | 202 | MCFG_SCREEN_ADD("screen", RASTER) |
207 | 203 | MCFG_SCREEN_REFRESH_RATE(50) |
r25461 | r25462 | |
209 | 205 | MCFG_SCREEN_SIZE(256, 256) |
210 | 206 | MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 0, 256-1) |
211 | 207 | MCFG_SCREEN_UPDATE_DRIVER(pp01_state, screen_update_pp01) |
212 | | |
213 | 208 | MCFG_PALETTE_LENGTH(8) |
214 | 209 | |
| 210 | /* sound hardware */ |
| 211 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| 212 | MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0) |
| 213 | MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) |
| 214 | //MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette") |
| 215 | //MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) |
215 | 216 | |
| 217 | /* Devices */ |
216 | 218 | MCFG_PIT8253_ADD( "pit8253", pp01_pit8253_intf ) |
217 | | |
218 | 219 | MCFG_I8255A_ADD( "ppi8255", pp01_ppi8255_interface ) |
219 | 220 | |
220 | 221 | /* internal ram */ |
r25461 | r25462 | |
249 | 250 | |
250 | 251 | /* Driver */ |
251 | 252 | |
252 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
253 | | COMP( 198?, pp01, 0, 0, pp01, pp01, driver_device, 0, "ZVT", "PP-01", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 253 | /* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */ |
| 254 | COMP( 198?, pp01, 0, 0, pp01, pp01, driver_device, 0, "ZVT", "PP-01", GAME_NOT_WORKING ) |