Previous 199869 Revisions Next

r35056 Sunday 15th February, 2015 at 20:59:37 UTC by hap
small update
[src/emu/cpu/amis2000]amis2000.c amis2000op.inc
[src/mess/drivers]wildfire.c

trunk/src/emu/cpu/amis2000/amis2000.c
r243567r243568
1111
1212  TODO:
1313  - unemulated opcodes (need more testing material)
14  - is K/I input handling correct?
1415  - support external program map
1516  - STATUS pin(wildfire.c sound?)
1617  - add 50/60hz timer
r243567r243568
212213   m_d_polarity = 0;
213214   m_d = 0; d_latch_out(false);
214215   m_a = 0; m_write_a(0, 0, 0xffff);
215   m_ki_mask = 0xf;
216216}
217217
218218
trunk/src/emu/cpu/amis2000/amis2000op.inc
r243567r243568
371371void amis2000_device::op_szi()
372372{
373373   // SZI: skip next on I pin(s)
374   // note: AMI's manual is ambiguous here
375   m_skip = ((m_read_i(0, 0xff) & m_ki_mask) != 0);
374   m_skip = ((~m_read_i(0, 0xff) & m_ki_mask) != 0);
376375}
377376
378377void amis2000_device::op_szk()
379378{
380379   // SZK: skip next on K pin(s)
381   // note: AMI's manual is ambiguous here
382   m_skip = ((m_read_k(0, 0xff) & m_ki_mask) != 0);
380   m_skip = ((~m_read_k(0, 0xff) & m_ki_mask) != 0);
383381}
384382
385383void amis2000_device::op_sbe()
trunk/src/mess/drivers/wildfire.c
r243567r243568
1313
1414
1515  TODO:
16  - no sound
16  - bad sound (probably MCU related)
1717  - when the game strobes a led faster, it should appear brighter, for example when
1818    the ball hits one of the bumpers
1919  - some 7segs digits are wrong (mcu on-die decoder is customizable?)
r243567r243568
5151   UINT16 m_display_cache[0x10];
5252   UINT8 m_display_decay[0x100];
5353
54   DECLARE_READ8_MEMBER(read_k);
5554   DECLARE_WRITE8_MEMBER(write_d);
5655   DECLARE_WRITE16_MEMBER(write_a);
5756
r243567r243568
155154
156155***************************************************************************/
157156
158READ8_MEMBER(wildfire_state::read_k)
159{
160   // ?
161   return 0;
162}
163
164157WRITE8_MEMBER(wildfire_state::write_d)
165158{
159   // D0-D7: leds out
166160   m_d = data;
167161   display_update();
168162}
169163
170164WRITE16_MEMBER(wildfire_state::write_a)
171165{
166   // A12: enable speaker out
167   // this is in combination with the (not yet emulated) MCU F-pin
168   m_speaker->level_w(data >> 12 & 1);
169
170   // A0-A2: select 7segleds
171   // A3-A11: select other leds
172172   m_a = data;
173173   display_update();
174174}
r243567r243568
183183
184184static INPUT_PORTS_START( wildfire )
185185   PORT_START("IN1") // I
186   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Shooter Button")
187   PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Left Flipper")
188   PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Right Flipper")
189   PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
186   PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_NAME("Shooter Button")
187   PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_NAME("Left Flipper")
188   PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME("Right Flipper")
189   PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNUSED )
190190INPUT_PORTS_END
191191
192192
r243567r243568
222222   /* basic machine hardware */
223223   MCFG_CPU_ADD("maincpu", AMI_S2150, MASTER_CLOCK)
224224   MCFG_AMI_S2000_READ_I_CB(IOPORT("IN1"))
225   MCFG_AMI_S2000_READ_K_CB(READ8(wildfire_state, read_k))
226225   MCFG_AMI_S2000_WRITE_D_CB(WRITE8(wildfire_state, write_d))
227226   MCFG_AMI_S2000_WRITE_A_CB(WRITE16(wildfire_state, write_a))
228227
r243567r243568
253252ROM_END
254253
255254
256CONS( 1979, wildfire, 0, 0, wildfire, wildfire, driver_device, 0, "Parker Brothers", "Wildfire (prototype)", GAME_NO_SOUND | GAME_SUPPORTS_SAVE )
255CONS( 1979, wildfire, 0, 0, wildfire, wildfire, driver_device, 0, "Parker Brothers", "Wildfire (prototype)", GAME_IMPERFECT_SOUND | GAME_SUPPORTS_SAVE )


Previous 199869 Revisions Next


© 1997-2024 The MAME Team