~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/mame/drivers/avt.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
 
402
402
 
403
403
************************************************************************************************/
404
 
#define ADDRESS_MAP_MODERN
405
404
 
406
405
 
407
406
#define MASTER_CLOCK    XTAL_10MHz                      /* unknown */
423
422
        avt_state(const machine_config &mconfig, device_type type, const char *tag)
424
423
                : driver_device(mconfig, type, tag),
425
424
                m_maincpu(*this,"maincpu"),
426
 
                m_crtc(*this, "crtc")
427
 
                { }
 
425
                m_crtc(*this, "crtc"),
 
426
                m_videoram(*this, "videoram"),
 
427
                m_colorram(*this, "colorram"){ }
 
428
 
 
429
        required_device<cpu_device> m_maincpu;
 
430
        required_device<mc6845_device> m_crtc;
 
431
        required_shared_ptr<UINT8> m_videoram;
 
432
        required_shared_ptr<UINT8> m_colorram;
428
433
 
429
434
        DECLARE_WRITE8_MEMBER(avt_6845_address_w);
430
435
        DECLARE_WRITE8_MEMBER(avt_6845_data_w);
432
437
        DECLARE_WRITE8_MEMBER(avt_videoram_w);
433
438
        DECLARE_WRITE8_MEMBER(avt_colorram_w);
434
439
 
435
 
        UINT8 *m_videoram;
436
 
        UINT8 *m_colorram;
437
440
        tilemap_t *m_bg_tilemap;
438
441
        UINT8 m_crtc_vreg[0x100],m_crtc_index;
439
442
 
440
 
        required_device<cpu_device> m_maincpu;
441
 
        required_device<mc6845_device> m_crtc;
 
443
        DECLARE_WRITE8_MEMBER(debug_w);
442
444
};
443
445
 
444
446
#define mc6845_h_char_total     (state->m_crtc_vreg[0])
529
531
 
530
532
static PALETTE_INIT( avt )
531
533
{
 
534
        const UINT8 *color_prom = machine.root_device().memregion("proms")->base();
532
535
/*  prom bits
533
536
    7654 3210
534
537
    ---- ---x   Intensity?.
582
585
*            Read / Write Handlers            *
583
586
**********************************************/
584
587
 
585
 
//static WRITE8_HANDLER( debug_w )
 
588
//WRITE8_MEMBER(avt_state::debug_w)
586
589
//{
587
590
//  popmessage("written : %02X", data);
588
591
//}
614
617
        AM_RANGE(0x0000, 0x5fff) AM_ROM
615
618
        AM_RANGE(0x6000, 0x7fff) AM_RAM
616
619
        AM_RANGE(0x8000, 0x9fff) AM_RAM // AM_SHARE("nvram")
617
 
        AM_RANGE(0xa000, 0xa7ff) AM_RAM_WRITE(avt_videoram_w) AM_BASE(m_videoram)
618
 
        AM_RANGE(0xc000, 0xc7ff) AM_RAM_WRITE(avt_colorram_w) AM_BASE(m_colorram)
 
620
        AM_RANGE(0xa000, 0xa7ff) AM_RAM_WRITE(avt_videoram_w) AM_SHARE("videoram")
 
621
        AM_RANGE(0xc000, 0xc7ff) AM_RAM_WRITE(avt_colorram_w) AM_SHARE("colorram")
619
622
ADDRESS_MAP_END
620
623
 
621
624
static ADDRESS_MAP_START( avt_portmap, AS_IO, 8, avt_state )