src/mess/video/gamecom.c
| r1597 | r1598 | |
| 22 | 22 | rec.min_x = 0; |
| 23 | 23 | rec.max_x = Y_PIXELS - 1; |
| 24 | 24 | rec.min_y = rec.max_y = scanline; |
| 25 | | fillbitmap( tmpbitmap, Machine->pens[ 0 ], &rec ); |
| 25 | fillbitmap( tmpbitmap, machine->pens[ 0 ], &rec ); |
| 26 | 26 | return; |
| 27 | 27 | } else { |
| 28 | 28 | UINT8 *line = &gamecom_vram[ base_address + 40 * scanline ]; |
| r1597 | r1598 | |
| 57 | 57 | } |
| 58 | 58 | for( i = 0; i < 40; i++ ) { |
| 59 | 59 | UINT8 p = line[i]; |
| 60 | | *BITMAP_ADDR16(tmpbitmap, i * 4 + 0, scanline) = Machine->pens[ pal[ ( p >> 6 ) & 3 ] ]; |
| 61 | | *BITMAP_ADDR16(tmpbitmap, i * 4 + 1, scanline) = Machine->pens[ pal[ ( p >> 4 ) & 3 ] ]; |
| 62 | | *BITMAP_ADDR16(tmpbitmap, i * 4 + 2, scanline) = Machine->pens[ pal[ ( p >> 2 ) & 3 ] ]; |
| 63 | | *BITMAP_ADDR16(tmpbitmap, i * 4 + 3, scanline) = Machine->pens[ pal[ ( p ) & 3 ] ]; |
| 60 | *BITMAP_ADDR16(tmpbitmap, i * 4 + 0, scanline) = machine->pens[ pal[ ( p >> 6 ) & 3 ] ]; |
| 61 | *BITMAP_ADDR16(tmpbitmap, i * 4 + 1, scanline) = machine->pens[ pal[ ( p >> 4 ) & 3 ] ]; |
| 62 | *BITMAP_ADDR16(tmpbitmap, i * 4 + 2, scanline) = machine->pens[ pal[ ( p >> 2 ) & 3 ] ]; |
| 63 | *BITMAP_ADDR16(tmpbitmap, i * 4 + 3, scanline) = machine->pens[ pal[ ( p ) & 3 ] ]; |
| 64 | 64 | } |
| 65 | 65 | } |
| 66 | 66 | |
src/mess/video/arcadia.c
| r1597 | r1598 | |
| 821 | 821 | /* 7-Sep-2007 - whomever wrote this crap code was dynamically remapping |
| 822 | 822 | * the color table, a vile gross hack. Doesn't look like this is going |
| 823 | 823 | * to survive the 0.118u5 transition */ |
| 824 | | /*Machine->gfx[0]->colortable[0]=Machine->pens[arcadia_video.reg.d.pal[1]&7];*/ |
| 824 | /*machine->gfx[0]->colortable[0]=machine->pens[arcadia_video.reg.d.pal[1]&7];*/ |
| 825 | 825 | |
| 826 | 826 | if (arcadia_video.line<arcadia_video.ypos) |
| 827 | 827 | { |
| 828 | | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, Machine->screen[0].width, 1, Machine->remapped_colortable[Machine->gfx[0]->color_base + 0]); |
| 828 | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, machine->screen[0].width, 1, machine->remapped_colortable[machine->gfx[0]->color_base + 0]); |
| 829 | 829 | memset(arcadia_video.bg[arcadia_video.line], 0, sizeof(arcadia_video.bg[0])); |
| 830 | 830 | } |
| 831 | 831 | else |
| r1597 | r1598 | |
| 853 | 853 | else |
| 854 | 854 | { |
| 855 | 855 | arcadia_video.charline=0xd; |
| 856 | | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, Machine->screen[0].width, 1, Machine->remapped_colortable[Machine->gfx[0]->color_base + 0]); |
| 856 | plot_box(arcadia_video.bitmap, 0, arcadia_video.line, machine->screen[0].width, 1, machine->remapped_colortable[machine->gfx[0]->color_base + 0]); |
| 857 | 857 | memset(arcadia_video.bg[arcadia_video.line], 0, sizeof(arcadia_video.bg[0])); |
| 858 | 858 | } |
| 859 | 859 | } |
src/mess/video/cgenie.c
| r1597 | r1598 | |
| 268 | 268 | { |
| 269 | 269 | /* get graphics code */ |
| 270 | 270 | code = videoram[i]; |
| 271 | | drawgfx(bitmap, Machine->gfx[1], code, 0, |
| 271 | drawgfx(bitmap, machine->gfx[1], code, 0, |
| 272 | 272 | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 273 | 273 | } |
| 274 | 274 | else |
| r1597 | r1598 | |
| 278 | 278 | |
| 279 | 279 | /* translate defined character sets */ |
| 280 | 280 | code += cgenie_font_offset[(code >> 6) & 3]; |
| 281 | | drawgfx(bitmap, Machine->gfx[0], code, colorram[i&0x3ff], |
| 281 | drawgfx(bitmap, machine->gfx[0], code, colorram[i&0x3ff], |
| 282 | 282 | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 283 | 283 | } |
| 284 | 284 | |
| r1597 | r1598 | |
| 307 | 307 | rc.max_x = r.max_x; |
| 308 | 308 | rc.min_y = r.min_y + (crt.cursor_top & 15); |
| 309 | 309 | rc.max_y = r.min_y + (crt.cursor_bottom & 15); |
| 310 | | drawgfx(bitmap, Machine->gfx[0], 0x7f, colorram[i&0x3ff], |
| 310 | drawgfx(bitmap, machine->gfx[0], 0x7f, colorram[i&0x3ff], |
| 311 | 311 | 0, 0, rc.min_x, rc.min_y, &rc, TRANSPARENCY_NONE, 0); |
| 312 | 312 | } |
| 313 | 313 | } |
| r1597 | r1598 | |
| 347 | 347 | { |
| 348 | 348 | /* get graphics code */ |
| 349 | 349 | code = videoram[i]; |
| 350 | | drawgfx(tmpbitmap, Machine->gfx[1], code, 1, |
| 350 | drawgfx(tmpbitmap, machine->gfx[1], code, 1, |
| 351 | 351 | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 352 | | drawgfx(dlybitmap, Machine->gfx[1], code, 2, |
| 352 | drawgfx(dlybitmap, machine->gfx[1], code, 2, |
| 353 | 353 | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 354 | 354 | } |
| 355 | 355 | else |
| r1597 | r1598 | |
| 359 | 359 | |
| 360 | 360 | /* translate defined character sets */ |
| 361 | 361 | code += cgenie_font_offset[(code >> 6) & 3]; |
| 362 | | drawgfx(tmpbitmap, Machine->gfx[0], code, colorram[i&0x3ff] + 16, |
| 362 | drawgfx(tmpbitmap, machine->gfx[0], code, colorram[i&0x3ff] + 16, |
| 363 | 363 | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 364 | | drawgfx(dlybitmap, Machine->gfx[0], code, colorram[i&0x3ff] + 32, |
| 364 | drawgfx(dlybitmap, machine->gfx[0], code, colorram[i&0x3ff] + 32, |
| 365 | 365 | 0, 0, r.min_x, r.min_y, &r, TRANSPARENCY_NONE, 0); |
| 366 | 366 | } |
| 367 | 367 | |
| r1597 | r1598 | |
| 391 | 391 | rc.min_y = r.min_y + (crt.cursor_top & 15); |
| 392 | 392 | rc.max_y = r.min_y + (crt.cursor_bottom & 15); |
| 393 | 393 | |
| 394 | | drawgfx(tmpbitmap, Machine->gfx[0], 0x7f, colorram[i&0x3ff] + 16, |
| 394 | drawgfx(tmpbitmap, machine->gfx[0], 0x7f, colorram[i&0x3ff] + 16, |
| 395 | 395 | 0, 0, rc.min_x, rc.min_y, &rc, TRANSPARENCY_NONE, 0); |
| 396 | | drawgfx(dlybitmap, Machine->gfx[0], 0x7f, colorram[i&0x3ff] + 32, |
| 396 | drawgfx(dlybitmap, machine->gfx[0], 0x7f, colorram[i&0x3ff] + 32, |
| 397 | 397 | 0, 0, rc.min_x, rc.min_y, &rc, TRANSPARENCY_NONE, 0); |
| 398 | 398 | } |
| 399 | 399 | } |
src/mess/video/vc4000.c
| r1597 | r1598 | |
| 416 | 416 | { |
| 417 | 417 | int x,y,i; |
| 418 | 418 | UINT8 collision[400]={0}; // better alloca or gcc feature of non constant long automatic arrays |
| 419 | | assert(sizeof(collision)>=Machine->screen[0].width); |
| 419 | assert(sizeof(collision)>=machine->screen[0].width); |
| 420 | 420 | |
| 421 | 421 | vc4000_video.line++; |
| 422 | 422 | vc4000_video.line%=312; |
| r1597 | r1598 | |
| 436 | 436 | /* 7-Sep-2007 - whomever wrote this crap code was dynamically remapping |
| 437 | 437 | * the color table, a vile gross hack. Doesn't look like this is going |
| 438 | 438 | * to survive the 0.118u5 transition */ |
| 439 | | /* Machine->gfx[0]->colortable[1]=Machine->pens[8|((vc4000_video.reg.d.sprite_colors[0]>>3)&7)]; */ |
| 439 | /* machine->gfx[0]->colortable[1]=machine->pens[8|((vc4000_video.reg.d.sprite_colors[0]>>3)&7)]; */ |
| 440 | 440 | vc4000_sprite_update(vc4000_video.bitmap, collision, &vc4000_video.sprites[0]); |
| 441 | | /* Machine->gfx[0]->colortable[1]=Machine->pens[8|(vc4000_video.reg.d.sprite_colors[0]&7)]; */ |
| 441 | /* machine->gfx[0]->colortable[1]=machine->pens[8|(vc4000_video.reg.d.sprite_colors[0]&7)]; */ |
| 442 | 442 | vc4000_sprite_update(vc4000_video.bitmap, collision, &vc4000_video.sprites[1]); |
| 443 | | /* Machine->gfx[0]->colortable[1]=Machine->pens[8|((vc4000_video.reg.d.sprite_colors[1]>>3)&7)]; */ |
| 443 | /* machine->gfx[0]->colortable[1]=machine->pens[8|((vc4000_video.reg.d.sprite_colors[1]>>3)&7)]; */ |
| 444 | 444 | vc4000_sprite_update(vc4000_video.bitmap, collision, &vc4000_video.sprites[2]); |
| 445 | | /* Machine->gfx[0]->colortable[1]=Machine->pens[8|(vc4000_video.reg.d.sprite_colors[1]&7)]; */ |
| 445 | /* machine->gfx[0]->colortable[1]=machine->pens[8|(vc4000_video.reg.d.sprite_colors[1]&7)]; */ |
| 446 | 446 | vc4000_sprite_update(vc4000_video.bitmap, collision, &vc4000_video.sprites[3]); |
| 447 | 447 | |
| 448 | 448 | for (i=0; i<256; i++) |
src/mess/machine/apple2.c
| r1597 | r1598 | |
| 721 | 721 | { |
| 722 | 722 | int need_intcxrom, i; |
| 723 | 723 | |
| 724 | | need_intcxrom = !strcmp(Machine->gamedrv->name, "apple2c") |
| 725 | | || !strcmp(Machine->gamedrv->name, "apple2c0") |
| 726 | | || !strcmp(Machine->gamedrv->name, "apple2c3") |
| 727 | | || !strcmp(Machine->gamedrv->name, "apple2cp") |
| 728 | | || !strncmp(Machine->gamedrv->name, "apple2g", 7); |
| 724 | need_intcxrom = !strcmp(machine->gamedrv->name, "apple2c") |
| 725 | || !strcmp(machine->gamedrv->name, "apple2c0") |
| 726 | || !strcmp(machine->gamedrv->name, "apple2c3") |
| 727 | || !strcmp(machine->gamedrv->name, "apple2cp") |
| 728 | || !strncmp(machine->gamedrv->name, "apple2g", 7); |
| 729 | 729 | apple2_setvar(need_intcxrom ? VAR_INTCXROM : 0, ~0); |
| 730 | 730 | |
| 731 | 731 | // ROM 0 cannot boot unless language card bank 2 is write-enabled (but read ROM) on startup |
| 732 | | if (!strncmp(Machine->gamedrv->name, "apple2g", 7)) |
| 732 | if (!strncmp(machine->gamedrv->name, "apple2g", 7)) |
| 733 | 733 | { |
| 734 | 734 | apple2_setvar(VAR_LCWRITE|VAR_LCRAM2, VAR_LCWRITE | VAR_LCRAM | VAR_LCRAM2); |
| 735 | 735 | } |
src/mess/drivers/glasgow.c
| r1597 | r1598 | |
| 534 | 534 | |
| 535 | 535 | static TIMER_CALLBACK( update_nmi ) |
| 536 | 536 | { |
| 537 | | // if (irq_flag==0)cpunum_set_input_line_and_vector(Machine, 0, MC68000_IRQ_7, PULSE_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 538 | | cpunum_set_input_line_and_vector(Machine, 0, MC68000_IRQ_7, PULSE_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 537 | // if (irq_flag==0)cpunum_set_input_line_and_vector(machine, 0, MC68000_IRQ_7, PULSE_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 538 | cpunum_set_input_line_and_vector(machine, 0, MC68000_IRQ_7, PULSE_LINE, MC68000_INT_ACK_AUTOVECTOR); |
| 539 | 539 | |
| 540 | 540 | } |
| 541 | 541 | |
| 542 | 542 | static TIMER_CALLBACK( update_nmi32 ) |
| 543 | 543 | { |
| 544 | | cpunum_set_input_line_and_vector(Machine, 0, MC68020_IRQ_7, PULSE_LINE, MC68020_INT_ACK_AUTOVECTOR); |
| 544 | cpunum_set_input_line_and_vector(machine, 0, MC68020_IRQ_7, PULSE_LINE, MC68020_INT_ACK_AUTOVECTOR); |
| 545 | 545 | } |
| 546 | 546 | |
| 547 | 547 | static MACHINE_START( glasgow ) |
src/mess/drivers/x68k.c
| r1597 | r1598 | |
| 232 | 232 | // if(sys.mfp.iera & (1 << x)) |
| 233 | 233 | { |
| 234 | 234 | current_vector[6] = (sys.mfp.vr & 0xf0) | (x+8); |
| 235 | | cpunum_set_input_line_and_vector(Machine, 0,sys.mfp.irqline,HOLD_LINE,(sys.mfp.vr & 0xf0) | (x + 8)); |
| 235 | cpunum_set_input_line_and_vector(machine, 0,sys.mfp.irqline,HOLD_LINE,(sys.mfp.vr & 0xf0) | (x + 8)); |
| 236 | 236 | // logerror("MFP: Sent IRQ vector 0x%02x (IRQ line %i)\n",(sys.mfp.vr & 0xf0) | (x+8),sys.mfp.irqline); |
| 237 | 237 | return; // one at a time only |
| 238 | 238 | } |
| r1597 | r1598 | |
| 251 | 251 | // if(sys.mfp.ierb & (1 << x)) |
| 252 | 252 | { |
| 253 | 253 | current_vector[6] = (sys.mfp.vr & 0xf0) | x; |
| 254 | | cpunum_set_input_line_and_vector(Machine, 0,sys.mfp.irqline,HOLD_LINE,(sys.mfp.vr & 0xf0) | x); |
| 254 | cpunum_set_input_line_and_vector(machine, 0,sys.mfp.irqline,HOLD_LINE,(sys.mfp.vr & 0xf0) | x); |
| 255 | 255 | // logerror("MFP: Sent IRQ vector 0x%02x (IRQ line %i)\n",(sys.mfp.vr & 0xf0) | x,sys.mfp.irqline); |
| 256 | 256 | return; // one at a time only |
| 257 | 257 | } |
| r1597 | r1598 | |
| 626 | 626 | sys.mouse.irqactive = 1; |
| 627 | 627 | current_vector[5] = 0x54; |
| 628 | 628 | current_irq_line = 5; |
| 629 | | cpunum_set_input_line_and_vector(Machine, 0,5,HOLD_LINE,0x54); |
| 629 | cpunum_set_input_line_and_vector(machine, 0,5,HOLD_LINE,0x54); |
| 630 | 630 | } |
| 631 | 631 | } |
| 632 | 632 | } |