Previous 15994 Revisions Next

r6759 Friday 25th December, 2009 at 16:00:56 UTC by Robbbert
Added F4 character displayer
[src/mess/drivers]xerox820.c z1013.c

src/mess/drivers/z1013.c
r6758r6759
146146
147147INPUT_PORTS_EXTERN( k7659 );
148148
149/* F4 Character Displayer */
150static const gfx_layout z1013_charlayout =
151{
152   8, 8,               /* 8 x 8 characters */
153   512,               /* 2 x 256 characters */
154   1,               /* 1 bits per pixel */
155   { 0 },               /* no bitplanes */
156   /* x offsets */
157   { 0, 1, 2, 3, 4, 5, 6, 7 },
158   /* y offsets */
159   {  0*8,  1*8,  2*8,  3*8,  4*8,  5*8,  6*8,  7*8, 8*8,  9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
160   8*8               /* every char takes 8 bytes */
161};
162
163static GFXDECODE_START( z1013 )
164   GFXDECODE_ENTRY( "gfx1", 0x0000, z1013_charlayout, 0, 1 )
165GFXDECODE_END
166
167
149168/* Machine driver */
150169static MACHINE_DRIVER_START( z1013 )
151170   /* basic machine hardware */
r6758r6759
163182   MDRV_SCREEN_SIZE(32*8, 32*8)
164183   MDRV_SCREEN_VISIBLE_AREA(0, 32*8-1, 0, 32*8-1)
165184
185   MDRV_GFXDECODE(z1013)
166186   MDRV_PALETTE_LENGTH(2)
167187   MDRV_PALETTE_INIT(black_and_white)
168188
src/mess/drivers/xerox820.c
r6758r6759
702702   DO_NOT_KEEP_GEOMETRY
703703};
704704
705/* F4 Character Displayer */
706static const gfx_layout xerox820_charlayout =
707{
708   8, 8,               /* 8 x 8 characters */
709   256,               /* 256 characters */
710   1,               /* 1 bits per pixel */
711   { 0 },               /* no bitplanes */
712   /* x offsets */
713   { 0, 1, 2, 3, 4, 5, 6, 7 },
714   /* y offsets */
715   {  0*8,  1*8,  2*8,  3*8,  4*8,  5*8,  6*8,  7*8, 8*8,  9*8, 10*8, 11*8, 12*8, 13*8, 14*8, 15*8 },
716   8*8               /* every char takes 8 bytes */
717};
718
719static GFXDECODE_START( xerox820 )
720   GFXDECODE_ENTRY( "chargen", 0x0000, xerox820_charlayout, 0, 1 )
721GFXDECODE_END
722
723
705724/* Machine Drivers */
706725
707726static MACHINE_DRIVER_START( xerox820 )
r6758r6759
720739   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
721740   MDRV_SCREEN_RAW_PARAMS(XTAL_10_69425MHz, 700, 0, 560, 260, 0, 240)
722741
742   MDRV_GFXDECODE(xerox820)
723743   MDRV_PALETTE_LENGTH(2)
724744    MDRV_PALETTE_INIT(black_and_white)
725745

Previous 15994 Revisions Next


© 1998-2018 The MESS Team