src/mess/drivers/mycom.c
| r8564 | r8565 | |
| 34 | 34 | return 0; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | /* F4 Character Displayer */ |
| 38 | static const gfx_layout mycom_charlayout = |
| 39 | { |
| 40 | 8, 8, /* 8 x 8 characters */ |
| 41 | 256, /* 256 characters */ |
| 42 | 1, /* 1 bits per pixel */ |
| 43 | { 0 }, /* no bitplanes */ |
| 44 | /* x offsets */ |
| 45 | { 0, 1, 2, 3, 4, 5, 6, 7 }, |
| 46 | /* y offsets */ |
| 47 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 }, |
| 48 | 8*8 /* every char takes 8 bytes */ |
| 49 | }; |
| 50 | |
| 51 | static GFXDECODE_START( mycom ) |
| 52 | GFXDECODE_ENTRY( "gfx", 0x0000, mycom_charlayout, 0, 1 ) |
| 53 | GFXDECODE_END |
| 54 | |
| 55 | |
| 37 | 56 | static MACHINE_DRIVER_START( mycom ) |
| 38 | 57 | /* basic machine hardware */ |
| 39 | 58 | MDRV_CPU_ADD("maincpu",Z80, XTAL_4MHz) |
| r8564 | r8565 | |
| 50 | 69 | MDRV_SCREEN_VISIBLE_AREA(0, 640-1, 0, 480-1) |
| 51 | 70 | MDRV_PALETTE_LENGTH(2) |
| 52 | 71 | MDRV_PALETTE_INIT(black_and_white) |
| 72 | MDRV_GFXDECODE(mycom) |
| 53 | 73 | |
| 54 | 74 | MDRV_VIDEO_START(mycom) |
| 55 | 75 | MDRV_VIDEO_UPDATE(mycom) |