Previous 199869 Revisions Next

r40058 Wednesday 29th July, 2015 at 19:57:33 UTC by Dirk Best
mz3500: use standard 3-bit brg palette
[src/mess/drivers]mz3500.c

trunk/src/mess/drivers/mz3500.c
r248569r248570
9898
9999   // screen updates
100100   UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
101   DECLARE_PALETTE_INIT(mz3500);
102101   UPD7220_DISPLAY_PIXELS_MEMBER( hgdc_display_pixels );
103102   UPD7220_DRAW_TEXT_LINE_MEMBER( hgdc_draw_text );
104103
r248569r248570
786785}
787786
788787
789
790PALETTE_INIT_MEMBER(mz3500_state, mz3500)
791{
792   int i;
793
794   for(i=0;i<8;i++)
795      palette.set_pen_color(i,pal1bit((i >> 1) & 1),pal1bit(i >> 2),pal1bit((i >> 0) & 1));
796
797}
798
799788static ADDRESS_MAP_START( upd7220_1_map, AS_0, 16, mz3500_state )
800789   ADDRESS_MAP_GLOBAL_MASK(0x1fff)
801790   AM_RANGE(0x00000, 0x00fff) AM_RAM AM_SHARE("video_ram")
r248569r248570
854843
855844   MCFG_GFXDECODE_ADD("gfxdecode", "palette", mz3500)
856845
857   MCFG_PALETTE_ADD("palette", 8)
858   MCFG_PALETTE_INIT_OWNER(mz3500_state, mz3500)
846   MCFG_PALETTE_ADD_3BIT_BRG("palette")
859847
860848   /* sound hardware */
861849   MCFG_SPEAKER_STANDARD_MONO("mono")


Previous 199869 Revisions Next


© 1997-2024 The MAME Team