| Previous | 199869 Revisions | Next |
| r20272 Monday 14th January, 2013 at 22:02:06 UTC by Angelo Salese |
|---|
| Added a preliminary boolean flag to MC6845 interface structure: "show border area". If true, it will show the whole video area including border + blanking areas. [Angelo Salese] Bulk replaced const mc6845_interface -> MC6845_INTERFACE, nw (MESS) SMC-777: enabled to show the border area in MC6845 interface, changed various video related function accordingly [Angelo Salese] |
| [src/emu/video] | mc6845.c mc6845.h pc_cga.c |
| [src/mame/drivers] | 4roses.c 5clown.c albazg.c amaticmg.c aristmk4.c avt.c blitz.c blitz68k.c buster.c calomega.c carrera.c chance32.c coinmstr.c flipjack.c fortecar.c funworld.c goldnpkr.c hitpoker.c jokrwild.c jubilee.c kingdrby.c laserbas.c luckgrln.c magicfly.c majorpkr.c merit.c miniboy7.c mpu12wbk.c mpu4dealem.c murogem.c nyny.c othello.c peplus.c progolf.c r2dtank.c rgum.c slotcarn.c snk6502.c speedatk.c spiders.c ssingles.c supercrd.c tapatune.c tmspoker.c truco.c usgames.c vcombat.c vlc.c whitestar.c |
| [src/mame/video] | madalien.c qix.c twincobr.c |
| [src/mess/drivers] | a6809.c alphatro.c applix.c apricot.c apricotp.c b16.c bigbord2.c bml3.c bw12.c c128.c camplynx.c cbm2.c dim68k.c ec65.c einstein.c fp1100.c fp6000.c h19.c hp9k.c kaypro.c m20.c mbc200.c mbee.c multi16.c multi8.c myb3k.c mycom.c paso1600.c pasopia.c pasopia7.c pet.c pyl601.c smc777.c super80.c svi318.c trs80m2.c tvc.c v6809.c victor9k.c vk100.c x1.c x1twin.c z100.c zrt80.c |
| [src/mess/machine] | a2videoterm.c amstrad.c c64_xl80.c comx_clm.c ecb_grip.c wangpc_lvc.c wangpc_mvc.c |
| [src/mess/video] | abc1600.c abc800.c abc802.c abc806.c bbc.c dgn_beta.c isa_cga.c isa_mda.c mbc55x.c pc1512.c pc1640.c pc8401a.c pc_aga.c pc_t1t.c v1050.c |
| r20271 | r20272 | |
|---|---|---|
| 377 | 377 | GFXDECODE_END |
| 378 | 378 | |
| 379 | 379 | |
| 380 | static | |
| 380 | static MC6845_INTERFACE( mc6845_intf ) | |
| 381 | 381 | { |
| 382 | 382 | "screen", /* screen we are acting on */ |
| 383 | false, /* show border area */ | |
| 383 | 384 | 8, /* number of pixels per video memory address */ |
| 384 | 385 | NULL, /* before pixel update callback */ |
| 385 | 386 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 382 | 382 | * |
| 383 | 383 | *************************************/ |
| 384 | 384 | |
| 385 | static | |
| 385 | static MC6845_INTERFACE( mc6845_intf ) | |
| 386 | 386 | { |
| 387 | 387 | "screen", /* screen we are acting on */ |
| 388 | false, /* show border area */ | |
| 388 | 389 | 8, /* number of pixels per video memory address */ |
| 389 | 390 | begin_update, /* before pixel update callback */ |
| 390 | 391 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 20 | 20 | static void twincobr_restore_screen(running_machine &machine); |
| 21 | 21 | |
| 22 | 22 | /* 6845 used for video sync signals only */ |
| 23 | ||
| 23 | MC6845_INTERFACE( twincobr_mc6845_intf ) | |
| 24 | 24 | { |
| 25 | 25 | "screen", /* screen we are acting on */ |
| 26 | false, /* show border area */ | |
| 26 | 27 | 2, /* number of pixels per video memory address */ /* Horizontal Display programmed to 160 characters */ |
| 27 | 28 | NULL, /* before pixel update callback */ |
| 28 | 29 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 309 | 309 | } |
| 310 | 310 | |
| 311 | 311 | |
| 312 | static | |
| 312 | static MC6845_INTERFACE( mc6845_intf ) | |
| 313 | 313 | { |
| 314 | 314 | "screen", /* screen we are acting on */ |
| 315 | false, /* show border area */ | |
| 315 | 316 | 8, /* number of pixels per video memory address */ |
| 316 | 317 | NULL, /* before pixel update callback */ |
| 317 | 318 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 432 | 432 | * CRTC Interface * |
| 433 | 433 | *******************************************/ |
| 434 | 434 | |
| 435 | static | |
| 435 | static MC6845_INTERFACE( mc6845_intf ) | |
| 436 | 436 | { |
| 437 | 437 | "screen", /* screen we are acting on */ |
| 438 | false, /* show border area */ | |
| 438 | 439 | 4, /* number of pixels per video memory address */ |
| 439 | 440 | NULL, /* before pixel update callback */ |
| 440 | 441 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 564 | 564 | machine().device("soundcpu")->execute().set_input_line(M68K_IRQ_1, state ? ASSERT_LINE : CLEAR_LINE); |
| 565 | 565 | } |
| 566 | 566 | |
| 567 | static | |
| 567 | static MC6845_INTERFACE( mc6845_intf ) | |
| 568 | 568 | { |
| 569 | 569 | "screen", /* screen we are acting on */ |
| 570 | false, /* show border area */ | |
| 570 | 571 | 16, /* number of pixels per video memory address */ |
| 571 | 572 | NULL, /* before pixel update callback */ |
| 572 | 573 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 244 | 244 | } |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | static | |
| 247 | static MC6845_INTERFACE( whitestar_crtc6845_interface ) | |
| 248 | 248 | { |
| 249 | 249 | NULL, |
| 250 | false, /* show border area */ | |
| 250 | 251 | 1, |
| 251 | 252 | NULL, |
| 252 | 253 | whitestar_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 455 | 455 | GFXDECODE_ENTRY( "gfx1", 0, hitpoker_layout_8bpp, 0, 8 ) |
| 456 | 456 | GFXDECODE_END |
| 457 | 457 | |
| 458 | static | |
| 458 | static MC6845_INTERFACE( mc6845_intf ) | |
| 459 | 459 | { |
| 460 | 460 | "screen", /* screen we are acting on */ |
| 461 | false, /* show border area */ | |
| 461 | 462 | 8, /* number of pixels per video memory address */ |
| 462 | 463 | NULL, /* before pixel update callback */ |
| 463 | 464 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 847 | 847 | * CRTC Interface * |
| 848 | 848 | *******************************************/ |
| 849 | 849 | |
| 850 | static | |
| 850 | static MC6845_INTERFACE( mc6845_intf ) | |
| 851 | 851 | { |
| 852 | 852 | "screen", /* screen we are acting on */ |
| 853 | false, /* show border area */ | |
| 853 | 854 | 8, /* number of pixels per video memory address */ |
| 854 | 855 | NULL, /* before pixel update callback */ |
| 855 | 856 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 1545 | 1545 | DEVCB_NULL // IRQB |
| 1546 | 1546 | }; |
| 1547 | 1547 | |
| 1548 | static | |
| 1548 | static MC6845_INTERFACE( mc6845_intf ) | |
| 1549 | 1549 | { |
| 1550 | 1550 | /* in fact is a mc6845 driving 4 pixels by memory address. |
| 1551 | 1551 | that's why the big horizontal parameters */ |
| 1552 | 1552 | |
| 1553 | 1553 | "screen", /* screen we are acting on */ |
| 1554 | 4, /* number of pixels per video memory address */ | |
| 1554 | false, /* show border area */ | |
| 1555 | 4, /* number of pixels per video memory address */ | |
| 1555 | 1556 | NULL, /* before pixel update callback */ |
| 1556 | 1557 | NULL, /* row update callback */ |
| 1557 | 1558 | NULL, /* after pixel update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 912 | 912 | * |
| 913 | 913 | ***********************************************************************************************************/ |
| 914 | 914 | |
| 915 | static | |
| 915 | static MC6845_INTERFACE( mc6845_intf ) | |
| 916 | 916 | { |
| 917 | 917 | "screen", /* screen we are acting on */ |
| 918 | false, /* show border area */ | |
| 918 | 919 | 8, /* number of pixels per video memory address */ |
| 919 | 920 | NULL, /* before pixel update callback */ |
| 920 | 921 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 3399 | 3399 | * CRTC Interface * |
| 3400 | 3400 | *******************************************/ |
| 3401 | 3401 | |
| 3402 | static | |
| 3402 | static MC6845_INTERFACE( mc6845_intf ) | |
| 3403 | 3403 | { |
| 3404 | 3404 | "screen", /* screen we are acting on */ |
| 3405 | false, /* show border area */ | |
| 3405 | 3406 | 8, /* number of pixels per video memory address */ |
| 3406 | 3407 | NULL, /* before pixel update callback */ |
| 3407 | 3408 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 535 | 535 | }; |
| 536 | 536 | |
| 537 | 537 | |
| 538 | static | |
| 538 | static MC6845_INTERFACE( mc6845_intf ) | |
| 539 | 539 | { |
| 540 | 540 | "screen", /* screen we are acting on */ |
| 541 | false, /* show border area */ | |
| 541 | 542 | 8, /* number of pixels per video memory address */ |
| 542 | 543 | NULL, /* before pixel update callback */ |
| 543 | 544 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 738 | 738 | * CRTC Interface * |
| 739 | 739 | ********************************************/ |
| 740 | 740 | |
| 741 | static | |
| 741 | static MC6845_INTERFACE( mc6845_intf ) | |
| 742 | 742 | { |
| 743 | 743 | "screen", /* screen we are acting on */ |
| 744 | false, /* show border area */ | |
| 744 | 745 | 8, /* number of pixels per video memory address */ |
| 745 | 746 | NULL, /* before pixel update callback */ |
| 746 | 747 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 306 | 306 | GFXDECODE_ENTRY( "gfx1", 0, tiles8x8_layout, 0, 1 ) |
| 307 | 307 | GFXDECODE_END |
| 308 | 308 | |
| 309 | static | |
| 309 | static MC6845_INTERFACE( mc6845_intf ) | |
| 310 | 310 | { |
| 311 | 311 | "screen", /* screen we are acting on */ |
| 312 | false, /* show border area */ | |
| 312 | 313 | 8, /* number of pixels per video memory address */ |
| 313 | 314 | NULL, /* before pixel update callback */ |
| 314 | 315 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 505 | 505 | } |
| 506 | 506 | |
| 507 | 507 | |
| 508 | static | |
| 508 | static MC6845_INTERFACE( mc6845_intf ) | |
| 509 | 509 | { |
| 510 | 510 | "screen", /* screen we are acting on */ |
| 511 | false, /* show border area */ | |
| 511 | 512 | 8, /* number of pixels per video memory address */ |
| 512 | 513 | begin_update, /* before pixel update callback */ |
| 513 | 514 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 228 | 228 | GFXDECODE_END |
| 229 | 229 | |
| 230 | 230 | |
| 231 | static | |
| 231 | static MC6845_INTERFACE( mc6845_intf ) | |
| 232 | 232 | { |
| 233 | 233 | "screen", /* screen we are acting on */ |
| 234 | false, /* show border area */ | |
| 234 | 235 | 8, /* number of pixels per video memory address */ |
| 235 | 236 | NULL, /* before pixel update callback */ |
| 236 | 237 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 392 | 392 | * CRTC Interface * |
| 393 | 393 | ************************/ |
| 394 | 394 | |
| 395 | static | |
| 395 | static MC6845_INTERFACE( mc6845_intf ) | |
| 396 | 396 | { |
| 397 | 397 | "screen", /* screen we are acting on */ |
| 398 | false, /* show border area */ | |
| 398 | 399 | 8, /* number of pixels per video memory address */ |
| 399 | 400 | NULL, /* before pixel update callback */ |
| 400 | 401 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 973 | 973 | GFXDECODE_ENTRY( "reels", 0, tiles8x32_layout, 0, 64 ) |
| 974 | 974 | GFXDECODE_END |
| 975 | 975 | |
| 976 | static | |
| 976 | static MC6845_INTERFACE( mc6845_intf ) | |
| 977 | 977 | { |
| 978 | 978 | "screen", /* screen we are acting on */ |
| 979 | false, /* show border area */ | |
| 979 | 980 | 8, /* number of pixels per video memory address */ |
| 980 | 981 | NULL, /* before pixel update callback */ |
| 981 | 982 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 214 | 214 | GFXDECODE_END |
| 215 | 215 | |
| 216 | 216 | |
| 217 | static | |
| 217 | static MC6845_INTERFACE( mc6845_intf ) | |
| 218 | 218 | { |
| 219 | 219 | "screen", /* screen we are acting on */ |
| 220 | false, /* show border area */ | |
| 220 | 221 | 8, /* number of pixels per video memory address */ |
| 221 | 222 | NULL, /* before pixel update callback */ |
| 222 | 223 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 86 | 86 | virtual void video_start(); |
| 87 | 87 | virtual void palette_init(); |
| 88 | 88 | UINT32 screen_update_progolf(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 89 | INTERRUPT_GEN_MEMBER(progolf_interrupt); | |
| 90 | 89 | }; |
| 91 | 90 | |
| 92 | 91 | |
| r20271 | r20272 | |
| 369 | 368 | GFXDECODE_END |
| 370 | 369 | |
| 371 | 370 | |
| 372 | //#ifdef UNUSED_FUNCTION | |
| 373 | INTERRUPT_GEN_MEMBER(progolf_state::progolf_interrupt) | |
| 371 | static MC6845_INTERFACE( mc6845_intf ) | |
| 374 | 372 | { |
| 375 | } | |
| 376 | //#endif | |
| 377 | ||
| 378 | static const mc6845_interface mc6845_intf = | |
| 379 | { | |
| 380 | 373 | "screen", /* screen we are acting on */ |
| 374 | false, /* show border area */ | |
| 381 | 375 | 8, /* number of pixels per video memory address */ |
| 382 | 376 | NULL, /* before pixel update callback */ |
| 383 | 377 | NULL, /* row update callback */ |
| r20271 | r20272 | |
| 423 | 417 | /* basic machine hardware */ |
| 424 | 418 | MCFG_CPU_ADD("maincpu", DECO_222, 3000000/2) /* guess, 3 Mhz makes the game to behave worse? */ |
| 425 | 419 | MCFG_CPU_PROGRAM_MAP(main_cpu) |
| 426 | MCFG_CPU_VBLANK_INT_DRIVER("screen", progolf_state, progolf_interrupt) | |
| 427 | 420 | |
| 428 | 421 | MCFG_CPU_ADD("audiocpu", M6502, 500000) |
| 429 | 422 | MCFG_CPU_PROGRAM_MAP(sound_cpu) |
| r20271 | r20272 | |
| 457 | 450 | MCFG_DEVICE_REMOVE("maincpu") /* different encrypted cpu to progolf */ |
| 458 | 451 | MCFG_CPU_ADD("maincpu", DECO_CPU6, 3000000/2) /* guess, 3 Mhz makes the game to behave worse? */ |
| 459 | 452 | MCFG_CPU_PROGRAM_MAP(main_cpu) |
| 460 | MCFG_CPU_VBLANK_INT_DRIVER("screen", progolf_state, progolf_interrupt) | |
| 461 | 453 | MACHINE_CONFIG_END |
| 462 | 454 | |
| 463 | 455 |
| r20271 | r20272 | |
|---|---|---|
| 207 | 207 | DEVCB_NULL |
| 208 | 208 | }; |
| 209 | 209 | |
| 210 | static | |
| 210 | static MC6845_INTERFACE( mc6845_intf ) | |
| 211 | 211 | { |
| 212 | 212 | "screen", /* screen we are acting on */ |
| 213 | false, /* show border area */ | |
| 213 | 214 | 8, /* number of pixels per video memory address */ |
| 214 | 215 | NULL, /* before pixel update callback */ |
| 215 | 216 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 2714 | 2714 | * CRTC Interface * |
| 2715 | 2715 | *************************************************/ |
| 2716 | 2716 | |
| 2717 | static | |
| 2717 | static MC6845_INTERFACE( mc6845_intf ) | |
| 2718 | 2718 | { |
| 2719 | 2719 | "screen", /* screen we are acting on */ |
| 2720 | false, /* show border area */ | |
| 2720 | 2721 | 8, /* number of pixels per video memory address */ |
| 2721 | 2722 | NULL, /* before pixel update callback */ |
| 2722 | 2723 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 491 | 491 | * CRTC Interface * |
| 492 | 492 | ************************/ |
| 493 | 493 | |
| 494 | static | |
| 494 | static MC6845_INTERFACE( mc6845_intf ) | |
| 495 | 495 | { |
| 496 | 496 | "screen", /* screen we are acting on */ |
| 497 | false, /* show border area */ | |
| 497 | 498 | 4, /* number of pixels per video memory address */ |
| 498 | 499 | NULL, /* before pixel update callback */ |
| 499 | 500 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 1662 | 1662 | machine().device("maincpu")->execute().set_input_line(5, state ? ASSERT_LINE : CLEAR_LINE); |
| 1663 | 1663 | } |
| 1664 | 1664 | |
| 1665 | const mc6845_interface mc6845_intf_irq1 = | |
| 1665 | ||
| 1666 | static MC6845_INTERFACE( mc6845_intf_irq1 ) | |
| 1666 | 1667 | { |
| 1667 | 1668 | "screen", /* screen we are acting on */ |
| 1669 | false, /* show border area */ | |
| 1668 | 1670 | 4, /* number of pixels per video memory address */ /* Horizontal Display programmed to 160 characters */ |
| 1669 | 1671 | NULL, /* before pixel update callback */ |
| 1670 | 1672 | NULL, /* row update callback */ |
| r20271 | r20272 | |
| 1676 | 1678 | crtc_addr /* update address callback */ |
| 1677 | 1679 | }; |
| 1678 | 1680 | |
| 1679 | ||
| 1681 | static MC6845_INTERFACE( mc6845_intf_irq3 ) | |
| 1680 | 1682 | { |
| 1681 | 1683 | "screen", /* screen we are acting on */ |
| 1684 | false, /* show border area */ | |
| 1682 | 1685 | 4, /* number of pixels per video memory address */ /* Horizontal Display programmed to 160 characters */ |
| 1683 | 1686 | NULL, /* before pixel update callback */ |
| 1684 | 1687 | NULL, /* row update callback */ |
| r20271 | r20272 | |
| 1690 | 1693 | crtc_addr /* update address callback */ |
| 1691 | 1694 | }; |
| 1692 | 1695 | |
| 1693 | ||
| 1696 | static MC6845_INTERFACE( mc6845_intf_irq5 ) | |
| 1694 | 1697 | { |
| 1695 | 1698 | "screen", /* screen we are acting on */ |
| 1699 | false, /* show border area */ | |
| 1696 | 1700 | 4, /* number of pixels per video memory address */ /* Horizontal Display programmed to 160 characters */ |
| 1697 | 1701 | NULL, /* before pixel update callback */ |
| 1698 | 1702 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 359 | 359 | machine().device("maincpu")->execute().set_input_line(2, state ? ASSERT_LINE : CLEAR_LINE); |
| 360 | 360 | } |
| 361 | 361 | |
| 362 | static | |
| 362 | static MC6845_INTERFACE( h46505_intf ) | |
| 363 | 363 | { |
| 364 | 364 | "screen", /* screen we are acting on */ |
| 365 | false, /* show border area */ | |
| 365 | 366 | 5, /* number of pixels per video memory address */ |
| 366 | 367 | begin_update,/* before pixel update callback */ |
| 367 | 368 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 236 | 236 | m_count = 0; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | static | |
| 239 | static MC6845_INTERFACE( mc6845_intf ) | |
| 240 | 240 | { |
| 241 | 241 | "screen", /* screen we are acting on */ |
| 242 | false, /* show border area */ | |
| 242 | 243 | 8, /* number of pixels per video memory address */ |
| 243 | 244 | NULL, /* before pixel update callback */ |
| 244 | 245 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 399 | 399 | * CRTC Interface * |
| 400 | 400 | ************************/ |
| 401 | 401 | |
| 402 | //static | |
| 402 | //static MC6845_INTERFACE( mc6845_intf ) | |
| 403 | 403 | //{ |
| 404 | 404 | // "screen", /* screen we are acting on */ |
| 405 | // false, | |
| 405 | 406 | // 4, /* number of pixels per video memory address */ |
| 406 | 407 | // NULL, /* before pixel update callback */ |
| 407 | 408 | // NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 362 | 362 | * CRTC Interface * |
| 363 | 363 | ************************/ |
| 364 | 364 | |
| 365 | static | |
| 365 | static MC6845_INTERFACE( mc6845_intf ) | |
| 366 | 366 | { |
| 367 | 367 | "screen", /* screen we are acting on */ |
| 368 | false, /* show border area */ | |
| 368 | 369 | 8, /* number of pixels per video memory address */ |
| 369 | 370 | NULL, /* before pixel update callback */ |
| 370 | 371 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 313 | 313 | machine().device("maincpu")->execute().set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE); |
| 314 | 314 | } |
| 315 | 315 | |
| 316 | static | |
| 316 | static MC6845_INTERFACE( mc6845_intf ) | |
| 317 | 317 | { |
| 318 | 318 | "screen", /* screen we are acting on */ |
| 319 | false, /* show border area */ | |
| 319 | 320 | 8, /* number of pixels per video memory address */ |
| 320 | 321 | begin_update, /* before pixel update callback */ |
| 321 | 322 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 228 | 228 | return 0; |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | static | |
| 231 | static MC6845_INTERFACE( mc6845_intf ) | |
| 232 | 232 | { |
| 233 | 233 | "screen", /* screen we are acting on */ |
| 234 | false, /* show border area */ | |
| 234 | 235 | 8, /* number of pixels per video memory address */ |
| 235 | 236 | NULL, /* before pixel update callback */ |
| 236 | 237 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 430 | 430 | static MC6845_INTERFACE( mc6845_intf ) |
| 431 | 431 | { |
| 432 | 432 | "screen", /* screen we are acting on */ |
| 433 | false, /* show border area */ | |
| 433 | 434 | 8, /* number of pixels per video memory address */ |
| 434 | 435 | NULL, /* before pixel update callback */ |
| 435 | 436 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 2457 | 2457 | * CRTC Interface * |
| 2458 | 2458 | ************************/ |
| 2459 | 2459 | |
| 2460 | static | |
| 2460 | static MC6845_INTERFACE( mc6845_intf ) | |
| 2461 | 2461 | { |
| 2462 | 2462 | "screen", /* screen we are acting on */ |
| 2463 | false, /* show border area */ | |
| 2463 | 2464 | 4, /* number of pixels per video memory address */ |
| 2464 | 2465 | NULL, /* before pixel update callback */ |
| 2465 | 2466 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 544 | 544 | * CRTC Interface * |
| 545 | 545 | ************************/ |
| 546 | 546 | |
| 547 | static | |
| 547 | static MC6845_INTERFACE( mc6845_intf ) | |
| 548 | 548 | { |
| 549 | 549 | "screen", /* screen we are acting on */ |
| 550 | false, /* show border area */ | |
| 550 | 551 | 8, /* number of pixels per video memory address */ |
| 551 | 552 | NULL, /* before pixel update callback */ |
| 552 | 553 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 422 | 422 | } |
| 423 | 423 | |
| 424 | 424 | |
| 425 | static | |
| 425 | static MC6845_INTERFACE( mc6845_intf ) | |
| 426 | 426 | { |
| 427 | 427 | "screen", /* screen we are acting on */ |
| 428 | false, /* show border area */ | |
| 428 | 429 | 8, /* number of pixels per video memory address */ |
| 429 | 430 | begin_update, /* before pixel update callback */ |
| 430 | 431 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 456 | 456 | * CRTC Interface * |
| 457 | 457 | ************************/ |
| 458 | 458 | |
| 459 | static | |
| 459 | static MC6845_INTERFACE( mc6845_intf ) | |
| 460 | 460 | { |
| 461 | 461 | "screen", /* screen we are acting on */ |
| 462 | false, /* show border area */ | |
| 462 | 463 | 8, /* number of pixels per video memory address */ |
| 463 | 464 | NULL, /* before pixel update callback */ |
| 464 | 465 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 364 | 364 | |
| 365 | 365 | INPUT_PORTS_END |
| 366 | 366 | |
| 367 | static | |
| 367 | static MC6845_INTERFACE( h46505_intf ) | |
| 368 | 368 | { |
| 369 | 369 | "screen", /* screen we are acting on */ |
| 370 | false, /* show border area */ | |
| 370 | 371 | TILE_WIDTH, /* number of pixels per video memory address */ |
| 371 | 372 | NULL, /* before pixel update callback */ |
| 372 | 373 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 166 | 166 | machine().device("maincpu")->execute().set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE); |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | static | |
| 169 | static MC6845_INTERFACE( mc6845_intf ) | |
| 170 | 170 | { |
| 171 | 171 | "screen", /* screen we are acting on */ |
| 172 | false, /* show border area */ | |
| 172 | 173 | 8, /* number of pixels per video memory address */ |
| 173 | 174 | begin_update, /* before pixel update callback */ |
| 174 | 175 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 446 | 446 | } |
| 447 | 447 | |
| 448 | 448 | |
| 449 | static | |
| 449 | static MC6845_INTERFACE( mc6845_intf ) | |
| 450 | 450 | { |
| 451 | 451 | "screen", /* screen we are acting on */ |
| 452 | false, /* show border area */ | |
| 452 | 453 | 16, /* number of pixels per video memory address */ |
| 453 | 454 | NULL, /* before pixel update callback */ |
| 454 | 455 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 391 | 391 | * CRTC Interface * |
| 392 | 392 | **********************************/ |
| 393 | 393 | |
| 394 | static | |
| 394 | static MC6845_INTERFACE( mc6845_intf ) | |
| 395 | 395 | { |
| 396 | 396 | "screen", /* screen we are acting on */ |
| 397 | false, /* show border area */ | |
| 397 | 398 | 8, /* number of pixels per video memory address */ |
| 398 | 399 | NULL, /* before pixel update callback */ |
| 399 | 400 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 992 | 992 | DEVCB_NULL |
| 993 | 993 | }; |
| 994 | 994 | |
| 995 | static | |
| 995 | static MC6845_INTERFACE( h46505_intf ) | |
| 996 | 996 | { |
| 997 | 997 | "screen", /* screen we are acting on */ |
| 998 | false, /* show border area */ | |
| 998 | 999 | 8, /* number of pixels per video memory address */ |
| 999 | 1000 | NULL, /* before pixel update callback */ |
| 1000 | 1001 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 283 | 283 | GFXDECODE_ENTRY( "gfx2", 0, charlayout_3bpp, 0, 32 ) |
| 284 | 284 | GFXDECODE_END |
| 285 | 285 | |
| 286 | static | |
| 286 | static MC6845_INTERFACE( mc6845_intf ) | |
| 287 | 287 | { |
| 288 | 288 | "screen", /* screen we are acting on */ |
| 289 | false, /* show border area */ | |
| 289 | 290 | 8, /* number of pixels per video memory address */ |
| 290 | 291 | NULL, /* before pixel update callback */ |
| 291 | 292 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 291 | 291 | |
| 292 | 292 | static MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr); |
| 293 | 293 | |
| 294 | static | |
| 294 | static MC6845_INTERFACE( mc6845_intf ) | |
| 295 | 295 | { |
| 296 | 296 | "screen", /* screen we are acting on */ |
| 297 | false, /* show border area */ | |
| 297 | 298 | 8, /* number of pixels per video memory address */ |
| 298 | 299 | NULL, /* before pixel update callback */ |
| 299 | 300 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 215 | 215 | /******************** VIDEO SECTION ************************************/ |
| 216 | 216 | /***************************************************************************/ |
| 217 | 217 | |
| 218 | static | |
| 218 | static MC6845_INTERFACE( mc6845_intf ) | |
| 219 | 219 | { |
| 220 | "screen", /* screen we are acting on */ | |
| 221 | 8, /* number of pixels per video memory address */ | |
| 220 | "screen", /* screen we are acting on */ | |
| 221 | false, /* show border area */ | |
| 222 | 8, /* number of pixels per video memory address */ | |
| 222 | 223 | NULL, /* before pixel update callback */ |
| 223 | 224 | NULL, /* row update callback */ |
| 224 | 225 | NULL, /* after pixel update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 999 | 999 | * CRTC Interface * |
| 1000 | 1000 | ***********************/ |
| 1001 | 1001 | |
| 1002 | static | |
| 1002 | static MC6845_INTERFACE( mc6845_intf ) | |
| 1003 | 1003 | { |
| 1004 | 1004 | "screen", /* screen we are acting on */ |
| 1005 | false, /* show border area */ | |
| 1005 | 1006 | 16, /* number of pixels per video memory address */ |
| 1006 | 1007 | NULL, /* before pixel update callback */ |
| 1007 | 1008 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 755 | 755 | * |
| 756 | 756 | *************************************/ |
| 757 | 757 | |
| 758 | static | |
| 758 | static MC6845_INTERFACE( mc6845_intf ) | |
| 759 | 759 | { |
| 760 | 760 | "screen", /* screen we are acting on */ |
| 761 | false, /* show border area */ | |
| 761 | 762 | 8, /* number of pixels per video memory address */ |
| 762 | 763 | NULL, /* before pixel update callback */ |
| 763 | 764 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 799 | 799 | * CRTC Interface * |
| 800 | 800 | ************************************/ |
| 801 | 801 | |
| 802 | static | |
| 802 | static MC6845_INTERFACE( mc6845_intf ) | |
| 803 | 803 | { |
| 804 | 804 | "screen", /* screen we are acting on */ |
| 805 | false, /* show border area */ | |
| 805 | 806 | 4, /* number of pixels per video memory address */ |
| 806 | 807 | NULL, /* before pixel update callback */ |
| 807 | 808 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | |
| 395 | static | |
| 395 | static MC6845_INTERFACE( mc6845_intf ) | |
| 396 | 396 | { |
| 397 | 397 | "screen", /* screen we are acting on */ |
| 398 | false, /* show border area */ | |
| 398 | 399 | 8, /* number of pixels per video memory address */ |
| 399 | 400 | begin_update, /* before pixel update callback */ |
| 400 | 401 | update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 265 | 265 | } |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | static const mc6845_interface ssingles_mc6845_intf = | |
| 268 | ||
| 269 | static MC6845_INTERFACE( ssingles_mc6845_intf ) | |
| 269 | 270 | { |
| 270 | 271 | "screen", |
| 272 | false, | |
| 271 | 273 | 8, |
| 272 | 274 | NULL, /* before pixel update callback */ |
| 273 | 275 | ssingles_update_row, /* row update callback */ |
| r20271 | r20272 | |
| 279 | 281 | NULL /* update address callback */ |
| 280 | 282 | }; |
| 281 | 283 | |
| 282 | static | |
| 284 | static MC6845_INTERFACE( atamanot_mc6845_intf ) | |
| 283 | 285 | { |
| 284 | 286 | "screen", |
| 287 | false, | |
| 285 | 288 | 8, |
| 286 | 289 | NULL, /* before pixel update callback */ |
| 287 | 290 | atamanot_update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 144 | 144 | * |
| 145 | 145 | *************************************/ |
| 146 | 146 | |
| 147 | static | |
| 147 | static MC6845_INTERFACE( hd6845_intf ) | |
| 148 | 148 | { |
| 149 | 149 | "screen", /* screen we are acting on */ |
| 150 | false, /* show border area */ | |
| 150 | 151 | 8, /* number of pixels per video memory address */ |
| 151 | 152 | NULL, /* before pixel update callback */ |
| 152 | 153 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 988 | 988 | * CRTC Interface * |
| 989 | 989 | ***********************/ |
| 990 | 990 | |
| 991 | static | |
| 991 | static MC6845_INTERFACE( mc6845_intf ) | |
| 992 | 992 | { |
| 993 | 993 | "screen", /* screen we are acting on */ |
| 994 | false, /* show border area */ | |
| 994 | 995 | 8, /* number of pixels per video memory address */ |
| 995 | 996 | NULL, /* before pixel update callback */ |
| 996 | 997 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 780 | 780 | * CRTC Interface * |
| 781 | 781 | ************************/ |
| 782 | 782 | |
| 783 | static | |
| 783 | static MC6845_INTERFACE( mc6845_intf ) | |
| 784 | 784 | { |
| 785 | 785 | "screen", /* screen we are acting on */ |
| 786 | false, /* show border area */ | |
| 786 | 787 | 8, /* number of pixels per video memory address */ |
| 787 | 788 | NULL, /* before pixel update callback */ |
| 788 | 789 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 26 | 26 | |
| 27 | 27 | TODO: |
| 28 | 28 | |
| 29 | - Change device video emulation x/y offsets when "show border color" | |
| 30 | is true | |
| 31 | ||
| 29 | 32 | - mos8563 |
| 30 | 33 | |
| 31 | 34 | - horizontal scroll |
| r20271 | r20272 | |
| 95 | 98 | else |
| 96 | 99 | { |
| 97 | 100 | m_screen_tag = NULL; |
| 101 | m_show_border_area = false; | |
| 98 | 102 | m_hpixels_per_column = 0; |
| 99 | 103 | m_begin_update = NULL; |
| 100 | 104 | m_update_row = NULL; |
| r20271 | r20272 | |
| 506 | 510 | |
| 507 | 511 | attoseconds_t refresh = HZ_TO_ATTOSECONDS(m_clock) * (m_horiz_char_total + 1) * vert_pix_total; |
| 508 | 512 | |
| 509 | visarea.set(0, max_visible_x, 0, max_visible_y); | |
| 513 | if(m_show_border_area) | |
| 514 | visarea.set(0, horiz_pix_total+1, 0, vert_pix_total+1); | |
| 515 | else | |
| 516 | visarea.set(0, max_visible_x, 0, max_visible_y); | |
| 510 | 517 | |
| 511 | 518 | if (LOG) logerror("M6845 config screen: HTOTAL: 0x%x VTOTAL: 0x%x MAX_X: 0x%x MAX_Y: 0x%x HSYNC: 0x%x-0x%x VSYNC: 0x%x-0x%x Freq: %ffps\n", |
| 512 | 519 | horiz_pix_total, vert_pix_total, max_visible_x, max_visible_y, hsync_on_pos, hsync_off_pos - 1, vsync_on_pos, vsync_off_pos - 1, 1 / ATTOSECONDS_TO_DOUBLE(refresh)); |
| r20271 | r20272 | |
| 1041 | 1048 | m_line_address = 0; |
| 1042 | 1049 | m_current_disp_addr = 0; |
| 1043 | 1050 | |
| 1051 | save_item(NAME(m_show_border_area)); | |
| 1044 | 1052 | save_item(NAME(m_hpixels_per_column)); |
| 1045 | 1053 | save_item(NAME(m_register_address_latch)); |
| 1046 | 1054 | save_item(NAME(m_horiz_char_total)); |
| r20271 | r20272 | |
|---|---|---|
| 70 | 70 | struct mc6845_interface |
| 71 | 71 | { |
| 72 | 72 | const char *m_screen_tag; /* screen we are acting on */ |
| 73 | bool m_show_border_area; /* visible screen area (false) active display (true) active display + blanking */ | |
| 73 | 74 | int m_hpixels_per_column; /* number of pixels per video memory address */ |
| 74 | 75 | |
| 75 | 76 | /* if specified, this gets called before any pixel update, |
| r20271 | r20272 | |
|---|---|---|
| 180 | 180 | static SCREEN_UPDATE_RGB32( cga_poisk2 ); |
| 181 | 181 | static VIDEO_START( cga_mc1502 ); |
| 182 | 182 | |
| 183 | static | |
| 183 | static MC6845_INTERFACE( mc6845_cga_intf ) | |
| 184 | 184 | { |
| 185 | CGA_SCREEN_NAME, /* screen number */ | |
| 186 | 8, /* numbers of pixels per video memory address */ | |
| 187 | NULL, /* begin_update */ | |
| 188 | cga_update_row, /* update_row */ | |
| 189 | NULL, /* end_update */ | |
| 190 | DEVCB_NULL, /* on_de_changed */ | |
| 191 | DEVCB_NULL, /* on_cur_changed */ | |
| 192 | DEVCB_LINE(cga_hsync_changed), /* on_hsync_changed */ | |
| 193 | DEVCB_LINE(cga_vsync_changed), /* on_vsync_changed */ | |
| 185 | CGA_SCREEN_NAME, /* screen number */ | |
| 186 | false, /* show border area */ | |
| 187 | 8, /* numbers of pixels per video memory address */ | |
| 188 | NULL, /* begin_update */ | |
| 189 | cga_update_row, /* update_row */ | |
| 190 | NULL, /* end_update */ | |
| 191 | DEVCB_NULL, /* on_de_changed */ | |
| 192 | DEVCB_NULL, /* on_cur_changed */ | |
| 193 | DEVCB_LINE(cga_hsync_changed), /* on_hsync_changed */ | |
| 194 | DEVCB_LINE(cga_vsync_changed), /* on_vsync_changed */ | |
| 194 | 195 | NULL |
| 195 | 196 | }; |
| 196 | 197 |
| r20271 | r20272 | |
|---|---|---|
| 110 | 110 | xl80->crtc_update_row(device,bitmap,cliprect,ma,ra,y,x_count,cursor_x,param); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | static | |
| 113 | static MC6845_INTERFACE( crtc_intf ) | |
| 114 | 114 | { |
| 115 | 115 | MC6845_SCREEN_TAG, |
| 116 | false, | |
| 116 | 117 | 8, |
| 117 | 118 | NULL, |
| 118 | 119 | c64_xl80_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | static MC6845_UPDATE_ROW( videoterm_update_row ); |
| 50 | 50 | |
| 51 | static | |
| 51 | static MC6845_INTERFACE( mc6845_mda_intf ) | |
| 52 | 52 | { |
| 53 | 53 | VIDEOTERM_SCREEN_NAME, /* screen number */ |
| 54 | false, /* show border area */ | |
| 54 | 55 | 8, /* number of pixels per video memory address */ |
| 55 | 56 | NULL, /* begin_update */ |
| 56 | 57 | videoterm_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 117 | 117 | } |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | static | |
| 120 | static MC6845_INTERFACE( crtc_intf ) | |
| 121 | 121 | { |
| 122 | 122 | SCREEN_TAG, |
| 123 | false, | |
| 123 | 124 | 8, |
| 124 | 125 | NULL, |
| 125 | 126 | wangpc_lvc_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 129 | 129 | clm->crtc_update_row(device,bitmap,cliprect,ma,ra,y,x_count,cursor_x,param); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | static | |
| 132 | static MC6845_INTERFACE( crtc_intf ) | |
| 133 | 133 | { |
| 134 | 134 | MC6845_SCREEN_TAG, |
| 135 | false, | |
| 135 | 136 | 8, |
| 136 | 137 | NULL, |
| 137 | 138 | comx_clm_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 1069 | 1069 | } |
| 1070 | 1070 | |
| 1071 | 1071 | |
| 1072 | ||
| 1072 | MC6845_INTERFACE( amstrad_mc6845_intf ) | |
| 1073 | 1073 | { |
| 1074 | 1074 | NULL, /* screen name */ |
| 1075 | false, /* show border area */ | |
| 1075 | 1076 | 16, /* number of pixels per video memory address */ |
| 1076 | 1077 | NULL, /* begin_update */ |
| 1077 | 1078 | NULL, /* update_row */ |
| r20271 | r20272 | |
| 1084 | 1085 | }; |
| 1085 | 1086 | |
| 1086 | 1087 | |
| 1087 | ||
| 1088 | MC6845_INTERFACE( amstrad_plus_mc6845_intf ) | |
| 1088 | 1089 | { |
| 1089 | 1090 | NULL, /* screen name */ |
| 1091 | false, /* show border area */ | |
| 1090 | 1092 | 16, /* number of pixels per video memory address */ |
| 1091 | 1093 | NULL, /* begin_update */ |
| 1092 | 1094 | NULL, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 137 | 137 | } |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | static | |
| 140 | static MC6845_INTERFACE( crtc_intf ) | |
| 141 | 141 | { |
| 142 | 142 | SCREEN_TAG, |
| 143 | false, | |
| 143 | 144 | 10, |
| 144 | 145 | NULL, |
| 145 | 146 | wangpc_mvc_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 282 | 282 | speaker_levels |
| 283 | 283 | }; |
| 284 | 284 | |
| 285 | static | |
| 285 | static MC6845_INTERFACE( crtc_intf ) | |
| 286 | 286 | { |
| 287 | 287 | SCREEN_TAG, |
| 288 | false, | |
| 288 | 289 | 8, |
| 289 | 290 | NULL, |
| 290 | 291 | grip_update_row, |
| r20271 | r20272 | |
| 296 | 297 | NULL |
| 297 | 298 | }; |
| 298 | 299 | /* |
| 299 | static const mc6845_interface grip5_crtc_intf = | |
| 300 | ||
| 301 | static MC6845_INTERFACE( grip5_crtc_intf ) | |
| 300 | 302 | { |
| 301 | 303 | SCREEN_TAG, |
| 304 | false, | |
| 302 | 305 | 8, |
| 303 | 306 | NULL, |
| 304 | 307 | grip5_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 28 | 28 | static VIDEO_START( pc200 ); |
| 29 | 29 | |
| 30 | 30 | |
| 31 | static const mc6845_interface mc6845_aga_intf = { | |
| 31 | static MC6845_INTERFACE( mc6845_aga_intf ) | |
| 32 | { | |
| 32 | 33 | AGA_SCREEN_NAME, /* screen number */ |
| 34 | false, /* show border area */ | |
| 33 | 35 | 8, /* numbers of pixels per video memory address */ |
| 34 | 36 | NULL, /* begin_update */ |
| 35 | 37 | aga_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 55 | 55 | { |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | static const mc6845_interface pc8441a_mc6845_interface = | |
| 58 | ||
| 59 | static MC6845_INTERFACE( pc8441a_mc6845_interface ) | |
| 59 | 60 | { |
| 60 | 61 | CRT_SCREEN_TAG, |
| 62 | false, | |
| 61 | 63 | 6, |
| 62 | 64 | NULL, |
| 63 | 65 | pc8441a_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 74 | 74 | GFXDECODE_ENTRY( "mda:gfx1", 0x1000, pc_8_charlayout, 1, 1 ) |
| 75 | 75 | GFXDECODE_END |
| 76 | 76 | |
| 77 | static const mc6845_interface mc6845_mda_intf = | |
| 77 | ||
| 78 | static MC6845_INTERFACE( mc6845_mda_intf ) | |
| 78 | 79 | { |
| 79 | 80 | MDA_SCREEN_NAME, /* screen number */ |
| 81 | false, /* show border area */ | |
| 80 | 82 | 9, /* number of pixels per video memory address */ |
| 81 | 83 | NULL, /* begin_update */ |
| 82 | 84 | mda_update_row, /* update_row */ |
| r20271 | r20272 | |
| 496 | 498 | The divder/pixels per 6845 clock is 9 for text mode and 16 for graphics mode. |
| 497 | 499 | */ |
| 498 | 500 | |
| 499 | static | |
| 501 | static MC6845_INTERFACE( mc6845_hercules_intf ) | |
| 500 | 502 | { |
| 501 | 503 | HERCULES_SCREEN_NAME, /* screen number */ |
| 504 | false, /* show border area */ | |
| 502 | 505 | 9, /* number of pixels per video memory address */ |
| 503 | 506 | NULL, /* begin_update */ |
| 504 | 507 | mda_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 187 | 187 | // mc6845_interface crtc_intf |
| 188 | 188 | //------------------------------------------------- |
| 189 | 189 | |
| 190 | static | |
| 190 | static MC6845_INTERFACE( crtc_intf ) | |
| 191 | 191 | { |
| 192 | 192 | SCREEN_TAG, |
| 193 | false, | |
| 193 | 194 | ABC800_CHAR_WIDTH, |
| 194 | 195 | NULL, |
| 195 | 196 | abc802_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 409 | 409 | // mc6845_interface crtc_intf |
| 410 | 410 | //------------------------------------------------- |
| 411 | 411 | |
| 412 | static | |
| 412 | static MC6845_INTERFACE( crtc_intf ) | |
| 413 | 413 | { |
| 414 | 414 | SCREEN_TAG, |
| 415 | false, | |
| 415 | 416 | ABC800_CHAR_WIDTH, |
| 416 | 417 | NULL, |
| 417 | 418 | abc806_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 604 | 604 | } |
| 605 | 605 | |
| 606 | 606 | |
| 607 | static | |
| 607 | static MC6845_INTERFACE( mc6845_cga_intf ) | |
| 608 | 608 | { |
| 609 | 609 | CGA_SCREEN_NAME, /* screen number */ |
| 610 | false, /* show border area */ | |
| 610 | 611 | 8, /* numbers of pixels per video memory address */ |
| 611 | 612 | NULL, /* begin_update */ |
| 612 | 613 | cga_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 93 | 93 | set_interrupt(INT_VSYNC, state); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | static | |
| 96 | static MC6845_INTERFACE( crtc_intf ) | |
| 97 | 97 | { |
| 98 | 98 | SCREEN_TAG, |
| 99 | false, | |
| 99 | 100 | 8, |
| 100 | 101 | NULL, |
| 101 | 102 | v1050_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | |
| 284 | ||
| 284 | MC6845_INTERFACE( bbc_mc6845_intf ) | |
| 285 | 285 | { |
| 286 | 286 | "screen", /* screen number */ |
| 287 | false, /* show border area */ | |
| 287 | 288 | 8, /* numbers of pixels per video memory address */ |
| 288 | 289 | NULL, /* begin_update */ |
| 289 | 290 | vid_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 526 | 526 | } |
| 527 | 527 | } |
| 528 | 528 | |
| 529 | static | |
| 529 | static MC6845_INTERFACE( crtc_intf ) | |
| 530 | 530 | { |
| 531 | 531 | SCREEN_TAG, |
| 532 | false, | |
| 532 | 533 | 8, |
| 533 | 534 | NULL, |
| 534 | 535 | pc1512_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 256 | 256 | dgn_beta_frame_interrupt(machine(), state); |
| 257 | 257 | } |
| 258 | 258 | |
| 259 | ||
| 259 | MC6845_INTERFACE( dgnbeta_crtc6845_interface ) | |
| 260 | 260 | { |
| 261 | 261 | "screen", |
| 262 | false, | |
| 262 | 263 | 16 /*?*/, |
| 263 | 264 | NULL, |
| 264 | 265 | dgnbeta_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 275 | 275 | // mc6845_interface crtc_intf |
| 276 | 276 | //------------------------------------------------- |
| 277 | 277 | |
| 278 | static | |
| 278 | static MC6845_INTERFACE( crtc_intf ) | |
| 279 | 279 | { |
| 280 | 280 | SCREEN_TAG, |
| 281 | false, | |
| 281 | 282 | ABC800_CHAR_WIDTH, |
| 282 | 283 | NULL, |
| 283 | 284 | abc800m_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 347 | 347 | { |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | static | |
| 350 | static MC6845_INTERFACE( crtc_intf ) | |
| 351 | 351 | { |
| 352 | 352 | SCREEN_TAG, |
| 353 | false, | |
| 353 | 354 | 8, |
| 354 | 355 | NULL, |
| 355 | 356 | pc1640_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 1024 | 1024 | { |
| 1025 | 1025 | } |
| 1026 | 1026 | |
| 1027 | static | |
| 1027 | static MC6845_INTERFACE( crtc_intf ) | |
| 1028 | 1028 | { |
| 1029 | 1029 | SCREEN_TAG, |
| 1030 | false, | |
| 1030 | 1031 | 32, |
| 1031 | 1032 | NULL, |
| 1032 | 1033 | abc1600_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 158 | 158 | { |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | ||
| 161 | MC6845_INTERFACE( mb55x_mc6845_intf ) | |
| 162 | 162 | { |
| 163 | 163 | SCREEN_TAG, /* screen number */ |
| 164 | false, /* show border area */ | |
| 164 | 165 | 8, /* numbers of pixels per video memory address */ |
| 165 | 166 | NULL, /* begin_update */ |
| 166 | 167 | vid_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 29 | 29 | static WRITE_LINE_DEVICE_HANDLER( pcjr_vsync_changed ); |
| 30 | 30 | |
| 31 | 31 | |
| 32 | static const mc6845_interface mc6845_t1000_intf = { | |
| 32 | static MC6845_INTERFACE( mc6845_t1000_intf ) | |
| 33 | { | |
| 33 | 34 | T1000_SCREEN_NAME, /* screen number */ |
| 35 | false, /* show border area */ | |
| 34 | 36 | 8, /* numbers of pixels per video memory address */ |
| 35 | 37 | NULL, /* begin_update */ |
| 36 | 38 | t1000_update_row, /* update_row */ |
| r20271 | r20272 | |
| 57 | 59 | MACHINE_CONFIG_END |
| 58 | 60 | |
| 59 | 61 | |
| 60 | static const mc6845_interface mc6845_pcjr_intf = { | |
| 62 | static MC6845_INTERFACE( mc6845_pcjr_intf ) | |
| 63 | { | |
| 61 | 64 | T1000_SCREEN_NAME, /* screen number */ |
| 65 | false, /* show border area */ | |
| 62 | 66 | 8, /* numbers of pixels per video memory address */ |
| 63 | 67 | NULL, /* begin_update */ |
| 64 | 68 | t1000_update_row, /* update_row */ |
| r20271 | r20272 | |
|---|---|---|
| 381 | 381 | static const UPD7810_CONFIG fp1100_slave_cpu_config = { TYPE_7801, NULL }; |
| 382 | 382 | //static const upd1771_interface scv_upd1771c_config = { DEVCB_LINE( scv_upd1771_ack_w ) }; |
| 383 | 383 | |
| 384 | static const mc6845_interface mc6845_intf = | |
| 384 | ||
| 385 | static MC6845_INTERFACE( mc6845_intf ) | |
| 385 | 386 | { |
| 386 | 387 | "screen", /* screen we are acting on */ |
| 388 | false, /* show border area */ | |
| 387 | 389 | 8, /* number of pixels per video memory address */ |
| 388 | 390 | NULL, /* before pixel update callback */ |
| 389 | 391 | fp1100_update_row, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 27 | 27 | #include "formats/basicdsk.h" |
| 28 | 28 | #include "imagedev/flopdrv.h" |
| 29 | 29 | |
| 30 | #define mc6845_h_char_total (m_crtc_vreg[0]+1) | |
| 31 | #define mc6845_h_display (m_crtc_vreg[1]) | |
| 32 | #define mc6845_h_sync_pos (m_crtc_vreg[2]) | |
| 33 | #define mc6845_sync_width (m_crtc_vreg[3]) | |
| 34 | #define mc6845_v_char_total (m_crtc_vreg[4]+1) | |
| 35 | #define mc6845_v_total_adj (m_crtc_vreg[5]) | |
| 36 | #define mc6845_v_display (m_crtc_vreg[6]) | |
| 37 | #define mc6845_v_sync_pos (m_crtc_vreg[7]) | |
| 38 | #define mc6845_mode_ctrl (m_crtc_vreg[8]) | |
| 39 | #define mc6845_tile_height (m_crtc_vreg[9]+1) | |
| 40 | #define mc6845_cursor_y_start (m_crtc_vreg[0x0a]) | |
| 41 | #define mc6845_cursor_y_end (m_crtc_vreg[0x0b]) | |
| 42 | #define mc6845_start_addr (((m_crtc_vreg[0x0c]<<8) & 0x3f00) | (m_crtc_vreg[0x0d] & 0xff)) | |
| 43 | #define mc6845_cursor_addr (((m_crtc_vreg[0x0e]<<8) & 0x3f00) | (m_crtc_vreg[0x0f] & 0xff)) | |
| 44 | #define mc6845_light_pen_addr (((m_crtc_vreg[0x10]<<8) & 0x3f00) | (m_crtc_vreg[0x11] & 0xff)) | |
| 45 | #define mc6845_update_addr (((m_crtc_vreg[0x12]<<8) & 0x3f00) | (m_crtc_vreg[0x13] & 0xff)) | |
| 46 | ||
| 30 | 47 | class smc777_state : public driver_device |
| 31 | 48 | { |
| 32 | 49 | public: |
| r20271 | r20272 | |
| 50 | 67 | UINT8 *m_gvram; |
| 51 | 68 | UINT8 *m_pcg; |
| 52 | 69 | |
| 53 | UINT16 m_cursor_addr; | |
| 54 | UINT16 m_cursor_raster; | |
| 55 | 70 | UINT8 m_keyb_press; |
| 56 | 71 | UINT8 m_keyb_press_flag; |
| 57 | 72 | UINT8 m_shift_press_flag; |
| 58 | 73 | UINT8 m_backdrop_pen; |
| 59 | 74 | UINT8 m_display_reg; |
| 60 | int m_addr_latch; | |
| 61 | 75 | UINT8 m_fdc_irq_flag; |
| 62 | 76 | UINT8 m_fdc_drq_flag; |
| 63 | 77 | UINT8 m_system_data; |
| r20271 | r20272 | |
| 68 | 82 | UINT8 m_keyb_direct; |
| 69 | 83 | UINT8 m_pal_mode; |
| 70 | 84 | UINT8 m_keyb_cmd; |
| 85 | UINT8 m_crtc_vreg[0x20]; | |
| 86 | UINT8 m_crtc_addr; | |
| 71 | 87 | DECLARE_WRITE8_MEMBER(smc777_6845_w); |
| 72 | 88 | DECLARE_READ8_MEMBER(smc777_vram_r); |
| 73 | 89 | DECLARE_READ8_MEMBER(smc777_attr_r); |
| r20271 | r20272 | |
| 107 | 123 | }; |
| 108 | 124 | |
| 109 | 125 | |
| 126 | /* TODO: correct numbers, calculable thru mc6845 regs */ | |
| 127 | #define CRTC_MIN_X 24*8 | |
| 128 | #define CRTC_MIN_Y 4*8 | |
| 110 | 129 | |
| 111 | #define CRTC_MIN_X 10 | |
| 112 | #define CRTC_MIN_Y 10 | |
| 113 | ||
| 114 | 130 | void smc777_state::video_start() |
| 115 | 131 | { |
| 116 | 132 | } |
| r20271 | r20272 | |
| 121 | 137 | UINT16 count; |
| 122 | 138 | int x_width; |
| 123 | 139 | |
| 140 | // popmessage("%d %d %d %d",mc6845_v_char_total,mc6845_v_total_adj,mc6845_v_display,mc6845_v_sync_pos); | |
| 141 | ||
| 124 | 142 | bitmap.fill(machine().pens[m_backdrop_pen], cliprect); |
| 125 | 143 | |
| 126 | x_width = (m_display_reg & 0x80) | |
| 144 | x_width = ((m_display_reg & 0x80) >> 7); | |
| 127 | 145 | |
| 128 | 146 | count = 0x0000; |
| 129 | 147 | |
| r20271 | r20272 | |
| 137 | 155 | |
| 138 | 156 | color = (m_gvram[count] & 0xf0) >> 4; |
| 139 | 157 | /* todo: clean this up! */ |
| 140 | if(x_width | |
| 158 | //if(x_width) | |
| 141 | 159 | { |
| 142 | bitmap.pix16(y+yi+CRTC_MIN_Y, x*2+0+CRTC_MIN_X) = machine().pens[color]; | |
| 143 | } | |
| 144 | else | |
| 145 | { | |
| 146 | 160 | bitmap.pix16(y+yi+CRTC_MIN_Y, x*4+0+CRTC_MIN_X) = machine().pens[color]; |
| 147 | 161 | bitmap.pix16(y+yi+CRTC_MIN_Y, x*4+1+CRTC_MIN_X) = machine().pens[color]; |
| 148 | 162 | } |
| 163 | //else | |
| 164 | //{ | |
| 165 | // bitmap.pix16(y+yi+CRTC_MIN_Y, x*2+0+CRTC_MIN_X) = machine().pens[color]; | |
| 166 | //} | |
| 149 | 167 | |
| 150 | 168 | color = (m_gvram[count] & 0x0f) >> 0; |
| 151 | if(x_width | |
| 169 | //if(x_width) | |
| 152 | 170 | { |
| 153 | bitmap.pix16(y+yi+CRTC_MIN_Y, x*2+1+CRTC_MIN_X) = machine().pens[color]; | |
| 154 | } | |
| 155 | else | |
| 156 | { | |
| 157 | 171 | bitmap.pix16(y+yi+CRTC_MIN_Y, x*4+2+CRTC_MIN_X) = machine().pens[color]; |
| 158 | 172 | bitmap.pix16(y+yi+CRTC_MIN_Y, x*4+3+CRTC_MIN_X) = machine().pens[color]; |
| 159 | 173 | } |
| 174 | //else | |
| 175 | //{ | |
| 176 | // bitmap.pix16(y+yi+CRTC_MIN_Y, x*2+1+CRTC_MIN_X) = machine().pens[color]; | |
| 177 | //} | |
| 160 | 178 | |
| 161 | 179 | count++; |
| 162 | 180 | |
| r20271 | r20272 | |
| 167 | 185 | |
| 168 | 186 | count = 0x0000; |
| 169 | 187 | |
| 170 | x_width = (m_display_reg & 0x80) ? 40 : 80; | |
| 171 | ||
| 172 | 188 | for(y=0;y<25;y++) |
| 173 | 189 | { |
| 174 | for(x=0;x<x_width;x++) | |
| 190 | for(x=0;x<80/(x_width+1);x++) | |
| 175 | 191 | { |
| 176 | 192 | /* |
| 177 | 193 | -x-- ---- blink |
| r20271 | r20272 | |
| 207 | 223 | pen = ((m_pcg[tile*8+yi]>>(7-xi)) & 1) ? (color+m_pal_mode) : bk_pen; |
| 208 | 224 | |
| 209 | 225 | if (pen != -1) |
| 210 | bitmap.pix16(y*8+CRTC_MIN_Y+yi, x*8+CRTC_MIN_X+xi) = machine().pens[pen]; | |
| 226 | { | |
| 227 | if(x_width) | |
| 228 | { | |
| 229 | bitmap.pix16(y*8+CRTC_MIN_Y+yi, (x*8+xi)*2+0+CRTC_MIN_X) = machine().pens[pen]; | |
| 230 | bitmap.pix16(y*8+CRTC_MIN_Y+yi, (x*8+xi)*2+1+CRTC_MIN_X) = machine().pens[pen]; | |
| 231 | } | |
| 232 | else | |
| 233 | bitmap.pix16(y*8+CRTC_MIN_Y+yi, x*8+CRTC_MIN_X+xi) = machine().pens[pen]; | |
| 234 | } | |
| 211 | 235 | } |
| 212 | 236 | } |
| 213 | 237 | |
| 214 | 238 | // draw cursor |
| 215 | if(m_cursor_addr == count) | |
| 239 | if(mc6845_cursor_addr == count) | |
| 216 | 240 | { |
| 217 | 241 | int xc,yc,cursor_on; |
| 218 | 242 | |
| 219 | 243 | cursor_on = 0; |
| 220 | switch(m_cursor_ | |
| 244 | switch(mc6845_cursor_y_start & 0x60) | |
| 221 | 245 | { |
| 222 | 246 | case 0x00: cursor_on = 1; break; //always on |
| 223 | 247 | case 0x20: cursor_on = 0; break; //always off |
| r20271 | r20272 | |
| 227 | 251 | |
| 228 | 252 | if(cursor_on) |
| 229 | 253 | { |
| 230 | for(yc=0;yc<(8-(m_cursor_ | |
| 254 | for(yc=0;yc<(8-(mc6845_cursor_y_start & 7));yc++) | |
| 231 | 255 | { |
| 232 | 256 | for(xc=0;xc<8;xc++) |
| 233 | 257 | { |
| 234 | bitmap.pix16(y*8+CRTC_MIN_Y-yc+7, x*8+CRTC_MIN_X+xc) = machine().pens[0x7]; | |
| 258 | if(x_width) | |
| 259 | { | |
| 260 | bitmap.pix16(y*8+CRTC_MIN_Y-yc+7, (x*8+xc)*2+0+CRTC_MIN_X) = machine().pens[0x7]; | |
| 261 | bitmap.pix16(y*8+CRTC_MIN_Y-yc+7, (x*8+xc)*2+1+CRTC_MIN_X) = machine().pens[0x7]; | |
| 262 | } | |
| 263 | else | |
| 264 | bitmap.pix16(y*8+CRTC_MIN_Y-yc+7, x*8+CRTC_MIN_X+xc) = machine().pens[0x7]; | |
| 235 | 265 | } |
| 236 | 266 | } |
| 237 | 267 | } |
| r20271 | r20272 | |
| 248 | 278 | { |
| 249 | 279 | if(offset == 0) |
| 250 | 280 | { |
| 251 | m_addr_latch = data; | |
| 252 | //mc6845_address_w(m_crtc, 0,data); | |
| 281 | m_crtc_addr = data; | |
| 282 | m_crtc->address_w(space, 0,data); | |
| 253 | 283 | } |
| 254 | 284 | else |
| 255 | 285 | { |
| 256 | if(m_addr_latch == 0x0a) | |
| 257 | m_cursor_raster = data; | |
| 258 | else if(m_addr_latch == 0x0e) | |
| 259 | m_cursor_addr = ((data<<8) & 0x3f00) | (m_cursor_addr & 0xff); | |
| 260 | else if(m_addr_latch == 0x0f) | |
| 261 | m_cursor_addr = (m_cursor_addr & 0x3f00) | (data & 0xff); | |
| 262 | ||
| 263 | //mc6845_register_w(m_crtc, 0,data); | |
| 286 | m_crtc_vreg[m_crtc_addr] = data; | |
| 287 | m_crtc->register_w(space, 0,data); | |
| 264 | 288 | } |
| 265 | 289 | } |
| 266 | 290 | |
| r20271 | r20272 | |
| 553 | 577 | ---- -x-- mode select? |
| 554 | 578 | */ |
| 555 | 579 | |
| 556 | { | |
| 557 | if((m_display_reg & 0x80) != (data & 0x80)) | |
| 558 | { | |
| 559 | rectangle visarea = machine().primary_screen->visible_area(); | |
| 560 | int x_width; | |
| 561 | ||
| 562 | x_width = (data & 0x80) ? 320 : 640; | |
| 563 | ||
| 564 | visarea.set(0, (x_width+(CRTC_MIN_X*2)) - 1, 0, (200+(CRTC_MIN_Y*2)) - 1); | |
| 565 | ||
| 566 | machine().primary_screen->configure(660, 220, visarea, machine().primary_screen->frame_period().attoseconds); | |
| 567 | } | |
| 568 | } | |
| 569 | ||
| 570 | 580 | m_display_reg = data; |
| 571 | 581 | } |
| 572 | 582 | |
| r20271 | r20272 | |
| 984 | 994 | } |
| 985 | 995 | |
| 986 | 996 | |
| 987 | static | |
| 997 | static MC6845_INTERFACE( mc6845_intf ) | |
| 988 | 998 | { |
| 989 | 999 | "screen", /* screen we are acting on */ |
| 1000 | true, /* show border area */ | |
| 990 | 1001 | 8, /* number of pixels per video memory address */ |
| 991 | 1002 | NULL, /* before pixel update callback */ |
| 992 | 1003 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 355 | 355 | } |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | static const mc6845_interface bw12_mc6845_interface = | |
| 358 | ||
| 359 | static MC6845_INTERFACE( bw12_mc6845_interface ) | |
| 359 | 360 | { |
| 360 | 361 | SCREEN_TAG, |
| 362 | false, | |
| 361 | 363 | 8, |
| 362 | 364 | NULL, |
| 363 | 365 | bw12_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 556 | 556 | GFXDECODE_ENTRY( "kanji", 0x0000, multi8_kanjilayout, 0, 1 ) |
| 557 | 557 | GFXDECODE_END |
| 558 | 558 | |
| 559 | static const mc6845_interface mc6845_intf = | |
| 559 | ||
| 560 | static MC6845_INTERFACE( mc6845_intf ) | |
| 560 | 561 | { |
| 561 | 562 | "screen", /* screen we are acting on */ |
| 563 | false, /* show border area */ | |
| 562 | 564 | 8, /* number of pixels per video memory address */ |
| 563 | 565 | NULL, /* before pixel update callback */ |
| 564 | 566 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 1897 | 1897 | DEVCB_DRIVER_MEMBER(x1_state, x1_portc_w) /* Port C write */ |
| 1898 | 1898 | }; |
| 1899 | 1899 | |
| 1900 | static | |
| 1900 | static MC6845_INTERFACE( mc6845_intf ) | |
| 1901 | 1901 | { |
| 1902 | 1902 | "screen", /* screen we are acting on */ |
| 1903 | false, /* show border area */ | |
| 1903 | 1904 | 8, /* number of pixels per video memory address */ |
| 1904 | 1905 | NULL, /* before pixel update callback */ |
| 1905 | 1906 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 56 | 56 | { |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | static const mc6845_interface crtc_intf = | |
| 59 | ||
| 60 | static MC6845_INTERFACE( crtc_intf ) | |
| 60 | 61 | { |
| 61 | 62 | SCREEN_CRT_TAG, |
| 63 | false, | |
| 62 | 64 | 8, |
| 63 | 65 | NULL, |
| 64 | 66 | fp_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 189 | 189 | #endif |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | static const mc6845_interface applix_crtc = { | |
| 192 | static MC6845_INTERFACE( applix_crtc ) | |
| 193 | { | |
| 193 | 194 | "screen", /* name of screen */ |
| 195 | false, | |
| 194 | 196 | 8, /* number of dots per character */ |
| 195 | 197 | NULL, |
| 196 | 198 | applix_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 1103 | 1103 | } |
| 1104 | 1104 | } |
| 1105 | 1105 | |
| 1106 | static | |
| 1106 | static MC6845_INTERFACE( crtc_intf ) | |
| 1107 | 1107 | { |
| 1108 | 1108 | SCREEN_TAG, |
| 1109 | false, | |
| 1109 | 1110 | 9, |
| 1110 | 1111 | NULL, |
| 1111 | 1112 | crtc_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 947 | 947 | } |
| 948 | 948 | |
| 949 | 949 | |
| 950 | static | |
| 950 | static MC6845_INTERFACE( mc6845_intf ) | |
| 951 | 951 | { |
| 952 | 952 | "screen", |
| 953 | false, | |
| 953 | 954 | 12, |
| 954 | 955 | NULL, |
| 955 | 956 | vk100_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 597 | 597 | GFXDECODE_ENTRY( "gfx1", 0x3000, pet80_charlayout, 0, 1 ) |
| 598 | 598 | GFXDECODE_END |
| 599 | 599 | |
| 600 | static const mc6845_interface crtc_pet40 = { | |
| 600 | ||
| 601 | static MC6845_INTERFACE( crtc_pet40 ) | |
| 602 | { | |
| 601 | 603 | "screen", |
| 604 | false, | |
| 602 | 605 | 8, |
| 603 | 606 | NULL, |
| 604 | 607 | pet40_update_row, |
| r20271 | r20272 | |
| 610 | 613 | NULL |
| 611 | 614 | }; |
| 612 | 615 | |
| 613 | static const mc6845_interface crtc_pet80 = { | |
| 616 | static MC6845_INTERFACE( crtc_pet80 ) | |
| 617 | { | |
| 614 | 618 | "screen", |
| 619 | false, | |
| 615 | 620 | 16, |
| 616 | 621 | NULL, |
| 617 | 622 | pet80_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 614 | 614 | NULL |
| 615 | 615 | }; |
| 616 | 616 | |
| 617 | static const mc6845_interface mbee_crtc = { | |
| 617 | ||
| 618 | static MC6845_INTERFACE( mbee_crtc ) | |
| 619 | { | |
| 618 | 620 | "screen", /* name of screen */ |
| 621 | false, | |
| 619 | 622 | 8, /* number of dots per character */ |
| 620 | 623 | NULL, |
| 621 | 624 | mbee_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
| 627 | 630 | mbee_update_addr /* handler to process transparent mode */ |
| 628 | 631 | }; |
| 629 | 632 | |
| 630 | static const mc6845_interface mbeeic_crtc = { | |
| 633 | ||
| 634 | static MC6845_INTERFACE( mbeeic_crtc ) | |
| 635 | { | |
| 631 | 636 | "screen", /* name of screen */ |
| 637 | false, | |
| 632 | 638 | 8, /* number of dots per character */ |
| 633 | 639 | NULL, |
| 634 | 640 | mbeeic_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
| 640 | 646 | mbee_update_addr /* handler to process transparent mode */ |
| 641 | 647 | }; |
| 642 | 648 | |
| 643 | static const mc6845_interface mbeeppc_crtc = { | |
| 649 | static MC6845_INTERFACE( mbeeppc_crtc ) | |
| 650 | { | |
| 644 | 651 | "screen", /* name of screen */ |
| 652 | false, | |
| 645 | 653 | 8, /* number of dots per character */ |
| 646 | 654 | NULL, |
| 647 | 655 | mbeeppc_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
| 653 | 661 | mbee_update_addr /* handler to process transparent mode */ |
| 654 | 662 | }; |
| 655 | 663 | |
| 656 | static const mc6845_interface mbee256_crtc = { | |
| 664 | static MC6845_INTERFACE( mbee256_crtc ) | |
| 665 | { | |
| 657 | 666 | "screen", /* name of screen */ |
| 667 | false, | |
| 658 | 668 | 8, /* number of dots per character */ |
| 659 | 669 | NULL, |
| 660 | 670 | mbeeppc_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 226 | 226 | } |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | static const mc6845_interface zrt80_crtc6845_interface = | |
| 229 | ||
| 230 | static MC6845_INTERFACE( zrt80_crtc6845_interface ) | |
| 230 | 231 | { |
| 231 | 232 | "screen", |
| 233 | false, | |
| 232 | 234 | 8 /*?*/, |
| 233 | 235 | NULL, |
| 234 | 236 | zrt80_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 631 | 631 | } |
| 632 | 632 | } |
| 633 | 633 | |
| 634 | static const mc6845_interface tvc_crtc6845_interface = | |
| 634 | ||
| 635 | static MC6845_INTERFACE( tvc_crtc6845_interface ) | |
| 635 | 636 | { |
| 636 | 637 | "screen", |
| 638 | false, | |
| 637 | 639 | 8 /*?*/, |
| 638 | 640 | NULL, |
| 639 | 641 | tvc_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 301 | 301 | DEVCB_NULL |
| 302 | 302 | }; |
| 303 | 303 | |
| 304 | static | |
| 304 | static MC6845_INTERFACE( mc6845_intf ) | |
| 305 | 305 | { |
| 306 | "screen", /* screen we are acting on */ | |
| 307 | 8, /* number of pixels per video memory address */ | |
| 308 | NULL, /* before pixel update callback */ | |
| 306 | "screen", /* screen we are acting on */ | |
| 307 | false, /* show border area */ | |
| 308 | 8, /* number of pixels per video memory address */ | |
| 309 | NULL, /* before pixel update callback */ | |
| 309 | 310 | pasopia_update_row, /* row update callback */ |
| 310 | NULL, /* after pixel update callback */ | |
| 311 | DEVCB_NULL, /* callback for display state changes */ | |
| 312 | DEVCB_NULL, /* callback for cursor state changes */ | |
| 313 | DEVCB_NULL, /* HSYNC callback */ | |
| 314 | DEVCB_NULL, /* VSYNC callback */ | |
| 315 | NULL /* update address callback */ | |
| 311 | NULL, /* after pixel update callback */ | |
| 312 | DEVCB_NULL, /* callback for display state changes */ | |
| 313 | DEVCB_NULL, /* callback for cursor state changes */ | |
| 314 | DEVCB_NULL, /* HSYNC callback */ | |
| 315 | DEVCB_NULL, /* VSYNC callback */ | |
| 316 | NULL /* update address callback */ | |
| 316 | 317 | }; |
| 317 | 318 | |
| 318 | 319 | static const gfx_layout p7_chars_8x8 = |
| r20271 | r20272 | |
|---|---|---|
| 173 | 173 | m_p_videoram = memregion("videoram")->base(); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | static const mc6845_interface v6809_crtc = { | |
| 176 | ||
| 177 | static MC6845_INTERFACE( v6809_crtc ) | |
| 178 | { | |
| 177 | 179 | "screen", /* name of screen */ |
| 180 | false, | |
| 178 | 181 | 8, /* number of dots per character */ |
| 179 | 182 | NULL, |
| 180 | 183 | v6809_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 66 | 66 | { |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | static const mc6845_interface a6809_crtc6845_interface = | |
| 69 | ||
| 70 | static MC6845_INTERFACE( a6809_crtc6845_interface ) | |
| 70 | 71 | { |
| 71 | 72 | "screen", |
| 73 | false, | |
| 72 | 74 | 12 /*?*/, |
| 73 | 75 | NULL, |
| 74 | 76 | a6809_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 564 | 564 | PORT_BIT(0xffe00000,IP_ACTIVE_HIGH,IPT_UNKNOWN) |
| 565 | 565 | INPUT_PORTS_END |
| 566 | 566 | |
| 567 | static const mc6845_interface mc6845_intf = | |
| 567 | ||
| 568 | static MC6845_INTERFACE( mc6845_intf ) | |
| 568 | 569 | { |
| 569 | 570 | "screen", /* screen we are acting on */ |
| 571 | false, /* show border area */ | |
| 570 | 572 | 8, /* number of pixels per video memory address */ |
| 571 | 573 | NULL, /* before pixel update callback */ |
| 572 | 574 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 259 | 259 | GFXDECODE_END |
| 260 | 260 | |
| 261 | 261 | |
| 262 | static | |
| 262 | static MC6845_INTERFACE( mc6845_intf ) | |
| 263 | 263 | { |
| 264 | 264 | "screen", /* screen we are acting on */ |
| 265 | false, /* show border area */ | |
| 265 | 266 | 8, /* number of pixels per video memory address */ |
| 266 | 267 | NULL, /* before pixel update callback */ |
| 267 | 268 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 107 | 107 | } |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | static const mc6845_interface hd46505s_intf = | |
| 110 | ||
| 111 | static MC6845_INTERFACE( hd46505s_intf ) | |
| 111 | 112 | { |
| 112 | 113 | SCREEN_TAG, |
| 114 | false, | |
| 113 | 115 | 10, |
| 114 | 116 | NULL, |
| 115 | 117 | victor9k_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 385 | 385 | kbdBit=data; |
| 386 | 386 | } |
| 387 | 387 | |
| 388 | static const mc6845_interface hp9k_mc6845_intf = { | |
| 388 | ||
| 389 | static MC6845_INTERFACE( hp9k_mc6845_intf ) | |
| 390 | { | |
| 389 | 391 | "screen", /* name of screen */ |
| 392 | false, | |
| 390 | 393 | 8, /* number of dots per character */ |
| 391 | 394 | NULL, |
| 392 | 395 | NULL, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 144 | 144 | { |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | static const mc6845_interface mc6845_intf = | |
| 147 | ||
| 148 | static MC6845_INTERFACE( mc6845_intf ) | |
| 148 | 149 | { |
| 149 | 150 | "screen", /* screen we are acting on */ |
| 151 | false, /* show border area */ | |
| 150 | 152 | 8, /* number of pixels per video memory address */ |
| 151 | 153 | NULL, /* before pixel update callback */ |
| 152 | 154 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 350 | 350 | DEVCB_NULL |
| 351 | 351 | }; |
| 352 | 352 | |
| 353 | static const mc6845_interface h19_crtc6845_interface = | |
| 353 | ||
| 354 | static MC6845_INTERFACE( h19_crtc6845_interface ) | |
| 354 | 355 | { |
| 355 | 356 | "screen", |
| 357 | false, | |
| 356 | 358 | 8 /*?*/, |
| 357 | 359 | NULL, |
| 358 | 360 | h19_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 379 | 379 | palette_set_color_rgb(machine(), 8, 0xf7, 0xaa, 0x00); |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | static const mc6845_interface alphatro_crtc6845_interface = | |
| 382 | ||
| 383 | static MC6845_INTERFACE( alphatro_crtc6845_interface ) | |
| 383 | 384 | { |
| 384 | 385 | "screen", |
| 386 | false, | |
| 385 | 387 | 8, |
| 386 | 388 | NULL, |
| 387 | 389 | alphatro_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 247 | 247 | |
| 248 | 248 | |
| 249 | 249 | |
| 250 | static | |
| 250 | static MC6845_INTERFACE( mc6845_intf ) | |
| 251 | 251 | { |
| 252 | 252 | "screen", /* screen we are acting on */ |
| 253 | false, /* show border area */ | |
| 253 | 254 | 8, /* number of pixels per video memory address */ |
| 254 | 255 | NULL, /* before pixel update callback */ |
| 255 | 256 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 386 | 386 | MCFG_RAM_EXTRA_OPTIONS("96K,160K") |
| 387 | 387 | MACHINE_CONFIG_END |
| 388 | 388 | |
| 389 | static const mc6845_interface svi806_crtc6845_interface = | |
| 389 | ||
| 390 | static MC6845_INTERFACE( svi806_crtc6845_interface ) | |
| 390 | 391 | { |
| 391 | 392 | "svi806", |
| 393 | false, | |
| 392 | 394 | 8 /*?*/, |
| 393 | 395 | NULL, |
| 394 | 396 | svi806_crtc6845_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 211 | 211 | } |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | static const mc6845_interface ec65_crtc6845_interface = | |
| 214 | ||
| 215 | static MC6845_INTERFACE( ec65_crtc6845_interface ) | |
| 215 | 216 | { |
| 216 | 217 | "screen", |
| 218 | false, | |
| 217 | 219 | 8 /*?*/, |
| 218 | 220 | NULL, |
| 219 | 221 | ec65_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 280 | 280 | { |
| 281 | 281 | } |
| 282 | 282 | |
| 283 | static | |
| 283 | static MC6845_INTERFACE( mc6845_intf ) | |
| 284 | 284 | { |
| 285 | 285 | "screen", /* screen we are acting on */ |
| 286 | false, /* show border area */ | |
| 286 | 287 | 8, /* number of pixels per video memory address */ |
| 287 | 288 | NULL, /* before pixel update callback */ |
| 288 | 289 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 831 | 831 | m_maincpu->reset(); // reset the CPU to ensure it picks up the new vector |
| 832 | 832 | } |
| 833 | 833 | |
| 834 | static const mc6845_interface mc6845_intf = | |
| 834 | ||
| 835 | static MC6845_INTERFACE( mc6845_intf ) | |
| 835 | 836 | { |
| 836 | 837 | "screen", /* screen we are acting on */ |
| 838 | false, /* show border area */ | |
| 837 | 839 | 16, /* number of pixels per video memory address */ |
| 838 | 840 | NULL, /* before pixel update callback */ |
| 839 | 841 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 662 | 662 | } |
| 663 | 663 | } |
| 664 | 664 | |
| 665 | static const mc6845_interface bigbord2_crtc = { | |
| 665 | static MC6845_INTERFACE( bigbord2_crtc ) | |
| 666 | { | |
| 666 | 667 | SCREEN_TAG, /* name of screen */ |
| 668 | false, | |
| 667 | 669 | 8, /* number of dots per character */ |
| 668 | 670 | NULL, |
| 669 | 671 | bigbord2_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 88 | 88 | DEVCB_DRIVER_MEMBER(x1_state, x1_portc_w) /* Port C write */ |
| 89 | 89 | }; |
| 90 | 90 | |
| 91 | static | |
| 91 | static MC6845_INTERFACE( mc6845_intf ) | |
| 92 | 92 | { |
| 93 | 93 | "x1_screen", /* screen we are acting on */ |
| 94 | 8, /* number of pixels per video memory address */ | |
| 95 | NULL, /* before pixel update callback */ | |
| 96 | NULL, /* row update callback */ | |
| 97 | NULL, /* after pixel update callback */ | |
| 98 | DEVCB_NULL, /* callback for display state changes */ | |
| 99 | DEVCB_NULL, /* callback for cursor state changes */ | |
| 100 | DEVCB_NULL, /* HSYNC callback */ | |
| 101 | DEVCB_NULL, /* VSYNC callback */ | |
| 102 | NULL /* update address callback */ | |
| 94 | false, /* show border area*/ | |
| 95 | 8, /* number of pixels per video memory address */ | |
| 96 | NULL, /* before pixel update callback */ | |
| 97 | NULL, /* row update callback */ | |
| 98 | NULL, /* after pixel update callback */ | |
| 99 | DEVCB_NULL, /* callback for display state changes */ | |
| 100 | DEVCB_NULL, /* callback for cursor state changes */ | |
| 101 | DEVCB_NULL, /* HSYNC callback */ | |
| 102 | DEVCB_NULL, /* VSYNC callback */ | |
| 103 | NULL /* update address callback */ | |
| 103 | 104 | }; |
| 104 | 105 | |
| 105 | 106 | /************************************* |
| r20271 | r20272 | |
|---|---|---|
| 627 | 627 | DEVCB_NULL |
| 628 | 628 | }; |
| 629 | 629 | |
| 630 | static const mc6845_interface mc6845_intf = | |
| 630 | ||
| 631 | static MC6845_INTERFACE( mc6845_intf ) | |
| 631 | 632 | { |
| 632 | 633 | "screen", /* screen we are acting on */ |
| 634 | false, /* show border area */ | |
| 633 | 635 | 8, /* number of pixels per video memory address */ |
| 634 | 636 | NULL, /* before pixel update callback */ |
| 635 | 637 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 147 | 147 | { NULL } |
| 148 | 148 | }; |
| 149 | 149 | |
| 150 | static const mc6845_interface kaypro2x_crtc = { | |
| 150 | ||
| 151 | ||
| 152 | static MC6845_INTERFACE( kaypro2x_crtc ) | |
| 153 | { | |
| 151 | 154 | "screen", /* name of screen */ |
| 155 | false, | |
| 152 | 156 | 7, /* number of dots per character */ |
| 153 | 157 | NULL, |
| 154 | 158 | kaypro2x_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 713 | 713 | DEVCB_NULL |
| 714 | 714 | }; |
| 715 | 715 | |
| 716 | static | |
| 716 | static MC6845_INTERFACE( einstein_crtc6845_interface ) | |
| 717 | 717 | { |
| 718 | 718 | "80column", |
| 719 | false, | |
| 719 | 720 | 8, |
| 720 | 721 | NULL, |
| 721 | 722 | einstein_6845_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 616 | 616 | } |
| 617 | 617 | } |
| 618 | 618 | |
| 619 | static | |
| 619 | static MC6845_INTERFACE( mc6845_intf ) | |
| 620 | 620 | { |
| 621 | 621 | SCREEN_TAG, |
| 622 | false, | |
| 622 | 623 | 8, |
| 623 | 624 | NULL, |
| 624 | 625 | trs80m2_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 432 | 432 | { |
| 433 | 433 | } |
| 434 | 434 | |
| 435 | static const mc6845_interface lynx48k_crtc6845_interface = { | |
| 435 | static MC6845_INTERFACE( lynx48k_crtc6845_interface ) | |
| 436 | { | |
| 436 | 437 | "screen", |
| 438 | false, | |
| 437 | 439 | 8, |
| 438 | 440 | NULL, |
| 439 | 441 | lynx48k_update_row, |
| r20271 | r20272 | |
| 445 | 447 | NULL |
| 446 | 448 | }; |
| 447 | 449 | |
| 448 | static const mc6845_interface lynx128k_crtc6845_interface = { | |
| 450 | ||
| 451 | static MC6845_INTERFACE( lynx128k_crtc6845_interface ) | |
| 452 | { | |
| 449 | 453 | "screen", /* screen name */ |
| 454 | false, | |
| 450 | 455 | 8, /* dots per character */ |
| 451 | 456 | NULL, |
| 452 | 457 | lynx128k_update_row, /* callback to display one scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 283 | 283 | GFXDECODE_ENTRY( "chargen", 0x0000, dim68k_charlayout, 0, 1 ) |
| 284 | 284 | GFXDECODE_END |
| 285 | 285 | |
| 286 | static const mc6845_interface dim68k_crtc = { | |
| 286 | static MC6845_INTERFACE( dim68k_crtc ) | |
| 287 | { | |
| 287 | 288 | "screen", /* name of screen */ |
| 289 | false, | |
| 288 | 290 | 8, /* number of dots per character - switchable 7 or 8 */ |
| 289 | 291 | NULL, |
| 290 | 292 | dim68k_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 788 | 788 | GFXDECODE_ENTRY( "charom", 0x0000, gfx_8x8x1, 0, 1 ) |
| 789 | 789 | GFXDECODE_END |
| 790 | 790 | |
| 791 | static const mc6845_interface vdc_intf = | |
| 791 | ||
| 792 | static MC6845_INTERFACE( vdc_intf ) | |
| 792 | 793 | { |
| 793 | 794 | SCREEN_VDC_TAG, |
| 795 | false, | |
| 794 | 796 | 8, |
| 795 | 797 | NULL, |
| 796 | 798 | NULL, |
| r20271 | r20272 | |
|---|---|---|
| 723 | 723 | GFXDECODE_ENTRY( "kanji", 0x00000, p7_chars_16x16, 0, 0x10 ) |
| 724 | 724 | GFXDECODE_END |
| 725 | 725 | |
| 726 | static | |
| 726 | static MC6845_INTERFACE( mc6845_intf ) | |
| 727 | 727 | { |
| 728 | 728 | "screen", /* screen we are acting on */ |
| 729 | false, /* show border area */ | |
| 729 | 730 | 8, /* number of pixels per video memory address */ |
| 730 | 731 | NULL, /* before pixel update callback */ |
| 731 | 732 | NULL, /* row update callback */ |
| r20271 | r20272 | |
|---|---|---|
| 463 | 463 | } |
| 464 | 464 | |
| 465 | 465 | |
| 466 | static const mc6845_interface pyl601_crtc6845_interface = | |
| 466 | ||
| 467 | static MC6845_INTERFACE( pyl601_crtc6845_interface ) | |
| 467 | 468 | { |
| 468 | 469 | "screen", |
| 470 | false, | |
| 469 | 471 | 8 /*?*/, |
| 470 | 472 | NULL, |
| 471 | 473 | pyl601_update_row, |
| r20271 | r20272 | |
| 477 | 479 | NULL |
| 478 | 480 | }; |
| 479 | 481 | |
| 480 | static | |
| 482 | static MC6845_INTERFACE( pyl601a_crtc6845_interface ) | |
| 481 | 483 | { |
| 482 | 484 | "screen", |
| 485 | false, | |
| 483 | 486 | 8 /*?*/, |
| 484 | 487 | NULL, |
| 485 | 488 | pyl601a_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 616 | 616 | }; |
| 617 | 617 | |
| 618 | 618 | |
| 619 | static const mc6845_interface super80v_crtc = { | |
| 619 | static MC6845_INTERFACE( super80v_crtc ) | |
| 620 | { | |
| 620 | 621 | "screen", /* name of screen */ |
| 622 | false, | |
| 621 | 623 | SUPER80V_DOTS, /* number of dots per character */ |
| 622 | 624 | NULL, |
| 623 | 625 | super80v_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 134 | 134 | { |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | static const mc6845_interface mbc200_crtc = { | |
| 137 | ||
| 138 | static MC6845_INTERFACE( mbc200_crtc ) | |
| 139 | { | |
| 138 | 140 | "screen", /* name of screen */ |
| 141 | false, | |
| 139 | 142 | 8, /* number of dots per character */ |
| 140 | 143 | NULL, |
| 141 | 144 | mbc200_update_row, /* handler to display a scanline */ |
| r20271 | r20272 | |
|---|---|---|
| 331 | 331 | GFXDECODE_ENTRY( "chargen", 0x0000, mycom_charlayout, 0, 1 ) |
| 332 | 332 | GFXDECODE_END |
| 333 | 333 | |
| 334 | static | |
| 334 | static MC6845_INTERFACE( mc6845_intf ) | |
| 335 | 335 | { |
| 336 | "screen", /* screen we are acting on */ | |
| 337 | 8, /* number of pixels per video memory address */ | |
| 338 | NULL, /* before pixel update callback */ | |
| 339 | mycom_update_row, /* row update callback */ | |
| 340 | NULL, /* after pixel update callback */ | |
| 341 | DEVCB_NULL, /* callback for display state changes */ | |
| 342 | DEVCB_NULL, /* callback for cursor state changes */ | |
| 343 | DEVCB_NULL, /* HSYNC callback */ | |
| 344 | DEVCB_NULL, /* VSYNC callback */ | |
| 345 | NULL /* update address callback */ | |
| 336 | "screen", /* screen we are acting on */ | |
| 337 | false, /* show border area */ | |
| 338 | 8, /* number of pixels per video memory address */ | |
| 339 | NULL, /* before pixel update callback */ | |
| 340 | mycom_update_row, /* row update callback */ | |
| 341 | NULL, /* after pixel update callback */ | |
| 342 | DEVCB_NULL, /* callback for display state changes */ | |
| 343 | DEVCB_NULL, /* callback for cursor state changes */ | |
| 344 | DEVCB_NULL, /* HSYNC callback */ | |
| 345 | DEVCB_NULL, /* VSYNC callback */ | |
| 346 | NULL /* update address callback */ | |
| 346 | 347 | }; |
| 347 | 348 | |
| 348 | 349 | WRITE8_MEMBER( mycom_state::mycom_04_w ) |
| r20271 | r20272 | |
|---|---|---|
| 235 | 235 | m_display_enabled = state; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | static const mc6845_interface apricot_mc6845_intf = | |
| 238 | ||
| 239 | static MC6845_INTERFACE( apricot_mc6845_intf ) | |
| 239 | 240 | { |
| 240 | 241 | "screen", |
| 242 | false, | |
| 241 | 243 | 10, |
| 242 | 244 | NULL, |
| 243 | 245 | apricot_update_row, |
| r20271 | r20272 | |
|---|---|---|
| 230 | 230 | GFXDECODE_ENTRY( "ipl", 0x0000, myb3k_charlayout, 0, 1 ) |
| 231 | 231 | GFXDECODE_END |
| 232 | 232 | |
| 233 | static | |
| 233 | static MC6845_INTERFACE( mc6845_intf ) | |
| 234 | 234 | { |
| 235 | 235 | "screen", /* screen we are acting on */ |
| 236 | false, /* show border area */ | |
| 236 | 237 | 8, /* number of pixels per video memory address */ |
| 237 | 238 | NULL, /* before pixel update callback */ |
| 238 | 239 | NULL, /* row update callback */ |
| Previous | 199869 Revisions | Next |