Previous 199869 Revisions Next

r29395 Monday 7th April, 2014 at 01:38:19 UTC by Angelo Salese
Added vblank bit 7 hook-up for 4 En Linea, nw
[src/mame/drivers]4enlinea.c

trunk/src/mame/drivers/4enlinea.c
r29394r29395
229229*          Video Hardware          *
230230***********************************/
231231
232// TODO: this is actually UM487F
232233class isa8_cga_4enlinea_device : public isa8_cga_device
233234{
234235public:
235236   // construction/destruction
236237   isa8_cga_4enlinea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
237238
239   DECLARE_READ8_MEMBER( _4enlinea_io_read );
238240   virtual void device_start();
239241   virtual const rom_entry *device_rom_region() const;
240242};
r29394r29395
252254}
253255
254256
257READ8_MEMBER( isa8_cga_4enlinea_device::_4enlinea_io_read )
258{
259   UINT8 data;
255260
261   switch (offset)
262   {
263   case 0xa:
264      data = isa8_cga_device::io_read(space, offset);
265      data|= (data & 8) << 4;
266      break;
267
268   default:
269      data = isa8_cga_device::io_read(space, offset);
270      break;
271   }
272   return data;
273}
274
275
256276void isa8_cga_4enlinea_device::device_start()
257277{
258278   if (m_palette != NULL && !m_palette->started())
r29394r29395
263283   m_vram.resize(m_vram_size);
264284
265285   m_update_row = NULL;
266   m_isa->install_device(0x3d0, 0x3df, 0, 0, read8_delegate( FUNC(isa8_cga_device::io_read), this ), write8_delegate( FUNC(isa8_cga_device::io_write), this ) );
286   m_isa->install_device(0x3d0, 0x3df, 0, 0, read8_delegate( FUNC(isa8_cga_4enlinea_device::_4enlinea_io_read), this ), write8_delegate( FUNC(isa8_cga_device::io_write), this ) );
267287   m_isa->install_bank(0x8000, 0xbfff, 0, 0, "bank1", m_vram);
268288
269289   /* Initialise the cga palette */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team