Previous 199869 Revisions Next

r32998 Sunday 26th October, 2014 at 20:30:51 UTC by Sergey Svishchev
ie15: init palette, minor cleanup
[src/emu/bus/isa]hdc.c
[src/mess/drivers]ie15.c

trunk/src/emu/bus/isa/hdc.c
r241509r241510
749749         logerror("hdc_data_w $%02x\n", data);
750750
751751      *buffer_ptr++ = data;
752      // XXX ec1841 wants this
753      if (buffer[0] == CMD_SETPARAM && data_cnt == 9) {
754         status &= ~STA_READY;
755      } else {
756         status |= STA_READY;
757      }
752      status |= STA_READY;
758753      if (--data_cnt == 0)
759754      {
760755         if (LOG_HDC_STATUS)
r241509r241510
763758         status &= ~STA_COMMAND;
764759         status &= ~STA_REQUEST;
765760         status &= ~STA_READY;
766         status &= ~STA_INPUT;
761         status |= STA_INPUT;
762
767763         timer->adjust(attotime::from_msec(1),0);
768764      }
769765   }
r241509r241510
855851
856852UINT8 isa8_hdc_device::pc_hdc_dipswitch_r()
857853{
858   status |= STA_READY; // XXX
859   if (LOG_HDC_STATUS)
860      logerror("%s: pc_hdc_dipswitch_r: status $%02X\n", machine().describe_context(), status);
861854   return dip;
862855}
863856
trunk/src/mess/drivers/ie15.c
r241509r241510
6363   virtual void machine_reset();
6464   virtual void video_start();
6565   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
66   UINT32 screen_update_hle(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
6766   TIMER_DEVICE_CALLBACK_MEMBER( scanline_callback );
6867   DECLARE_WRITE16_MEMBER( kbd_put );
68   DECLARE_PALETTE_INIT( ie15 );
6969
7070   DECLARE_WRITE_LINE_MEMBER( serial_rx_callback );
7171   virtual void rcv_complete();
r241509r241510
600600   GFXDECODE_ENTRY("chargen", 0x0000, ie15_charlayout, 0, 1)
601601GFXDECODE_END
602602
603PALETTE_INIT_MEMBER( ie15_state, ie15 )
604{
605   palette.set_pen_color(0, rgb_t::black); // black
606   palette.set_pen_color(1, 0x00, 0xc0, 0x00); // green
607}
608
603609static MACHINE_CONFIG_START( ie15, ie15_state )
604610   /* Basic machine hardware */
605611   MCFG_CPU_ADD("maincpu", IE15, XTAL_30_8MHz / 10)
r241509r241510
625631   MCFG_DEVICE_ADD("keyboard", IE15_KEYBOARD, 0)
626632   MCFG_IE15_KEYBOARD_CB(WRITE16(ie15_state, kbd_put))
627633
628   MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
634   MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "null_modem")
629635   MCFG_RS232_RXD_HANDLER(WRITELINE(ie15_state, serial_rx_callback))
630   MCFG_DEVICE_MODIFY("rs232")
631   MCFG_SLOT_DEFAULT_OPTION("null_modem")
632636
633637   MCFG_SPEAKER_STANDARD_MONO("mono")
634638   MCFG_SOUND_ADD("beeper", BEEP, 0)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team