src/mess/video/isa_mda.c
| r11621 | r11622 | |
| 205 | 205 | |
| 206 | 206 | static SCREEN_UPDATE( mc6845_mda ) |
| 207 | 207 | { |
| 208 | | mc6845_device *mc6845 = screen->owner()->subdevice<mc6845_device>(MDA_MC6845_NAME); |
| 208 | mc6845_device *mc6845 = downcast<mc6845_device *>(screen->owner()->subdevice(MDA_MC6845_NAME)); |
| 209 | 209 | mc6845->update( bitmap, cliprect ); |
| 210 | 210 | return 0; |
| 211 | 211 | } |
| r11621 | r11622 | |
| 444 | 444 | *************************************************************************/ |
| 445 | 445 | WRITE8_DEVICE_HANDLER ( pc_MDA_w ) |
| 446 | 446 | { |
| 447 | | mc6845_device *mc6845 = device->subdevice<mc6845_device>(MDA_MC6845_NAME); |
| 447 | mc6845_device *mc6845 = downcast<mc6845_device *>(device->subdevice(MDA_MC6845_NAME)); |
| 448 | 448 | address_space *space = device->machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 449 | 449 | device_t *lpt = device->subdevice("lpt"); |
| 450 | 450 | switch( offset ) |
| r11621 | r11622 | |
| 467 | 467 | READ8_DEVICE_HANDLER ( pc_MDA_r ) |
| 468 | 468 | { |
| 469 | 469 | int data = 0xff; |
| 470 | | mc6845_device *mc6845 = device->subdevice<mc6845_device>(MDA_MC6845_NAME); |
| 470 | mc6845_device *mc6845 = downcast<mc6845_device *>(device->subdevice(MDA_MC6845_NAME)); |
| 471 | 471 | address_space *space = device->machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 472 | 472 | device_t *lpt = device->subdevice("lpt"); |
| 473 | 473 | switch( offset ) |
| r11621 | r11622 | |
| 655 | 655 | |
| 656 | 656 | static SCREEN_UPDATE( mc6845_hercules ) |
| 657 | 657 | { |
| 658 | | mc6845_device *mc6845 = screen->owner()->subdevice<mc6845_device>(HERCULES_MC6845_NAME); |
| 658 | mc6845_device *mc6845 = downcast<mc6845_device *>(screen->owner()->subdevice(HERCULES_MC6845_NAME)); |
| 659 | 659 | |
| 660 | 660 | mc6845->update( bitmap, cliprect ); |
| 661 | 661 | return 0; |
| r11621 | r11622 | |
| 701 | 701 | |
| 702 | 702 | static WRITE8_DEVICE_HANDLER ( hercules_w ) |
| 703 | 703 | { |
| 704 | | mc6845_device *mc6845 = device->subdevice<mc6845_device>(HERCULES_MC6845_NAME); |
| 704 | mc6845_device *mc6845 = downcast<mc6845_device *>(device->subdevice(HERCULES_MC6845_NAME)); |
| 705 | 705 | address_space *space = device->machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 706 | 706 | device_t *lpt = device->subdevice("lpt"); |
| 707 | 707 | switch( offset ) |
| r11621 | r11622 | |
| 746 | 746 | static READ8_DEVICE_HANDLER ( hercules_r ) |
| 747 | 747 | { |
| 748 | 748 | int data = 0xff; |
| 749 | | mc6845_device *mc6845 = device->subdevice<mc6845_device>(HERCULES_MC6845_NAME); |
| 749 | mc6845_device *mc6845 = downcast<mc6845_device *>(device->subdevice(HERCULES_MC6845_NAME)); |
| 750 | 750 | address_space *space = device->machine().device("maincpu")->memory().space(AS_PROGRAM); |
| 751 | 751 | device_t *lpt = device->subdevice("lpt"); |
| 752 | 752 | switch( offset ) |