src/mess/drivers/comquest.c
| r1518 | r1519 | |
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | #include "driver.h" |
| 43 | | #include "mslegacy.h" |
| 44 | 43 | #include "includes/comquest.h" |
| 45 | 44 | #include "devices/cartslot.h" |
| 46 | 45 | |
| r1518 | r1519 | |
| 202 | 201 | GFXDECODE_ENTRY( REGION_GFX1, 0x0000, comquest_charlayout, 0, 2 ) |
| 203 | 202 | GFXDECODE_END |
| 204 | 203 | |
| 205 | | static const unsigned char comquest_palette[] = |
| 206 | | { |
| 207 | | 0, 0, 0, |
| 208 | | 255,255,255 |
| 209 | | }; |
| 210 | 204 | |
| 211 | | static const unsigned short comquest_colortable[1][2] = { |
| 212 | | { 0, 1 }, |
| 213 | | }; |
| 214 | | |
| 215 | | static PALETTE_INIT( comquest ) |
| 216 | | { |
| 217 | | palette_set_colors_rgb(machine, 0, comquest_palette, sizeof(comquest_palette) / 3); |
| 218 | | memcpy(colortable, comquest_colortable,sizeof(comquest_colortable)); |
| 219 | | } |
| 220 | | |
| 221 | 205 | static MACHINE_RESET( comquest ) |
| 222 | 206 | { |
| 223 | 207 | // UINT8 *mem=memory_region(REGION_USER1); |
| r1518 | r1519 | |
| 261 | 245 | MDRV_CPU_CONFIG( amask ) |
| 262 | 246 | MDRV_SCREEN_REFRESH_RATE(LCD_FRAMES_PER_SECOND) |
| 263 | 247 | MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION) |
| 264 | | MDRV_INTERLEAVE(1) |
| 265 | 248 | |
| 266 | 249 | MDRV_MACHINE_RESET( comquest ) |
| 267 | 250 | |
| r1518 | r1519 | |
| 271 | 254 | MDRV_SCREEN_SIZE(64*4, 128) /* 160 x 102 */ |
| 272 | 255 | MDRV_SCREEN_VISIBLE_AREA(0, 64*4-1, 0, 128-1) |
| 273 | 256 | MDRV_GFXDECODE( comquest ) |
| 274 | | MDRV_PALETTE_LENGTH( sizeof(comquest_palette) / 3) |
| 275 | | MDRV_COLORTABLE_LENGTH( sizeof(comquest_colortable) / sizeof(comquest_colortable[0][0]) ) |
| 276 | | MDRV_PALETTE_INIT( comquest ) |
| 257 | MDRV_PALETTE_LENGTH(2) |
| 258 | MDRV_PALETTE_INIT(black_and_white) |
| 277 | 259 | |
| 278 | 260 | MDRV_VIDEO_START( comquest ) |
| 279 | 261 | MDRV_VIDEO_UPDATE( comquest ) |