src/mess/video/pc_cga.c
| r10582 | r10583 | |
| 494 | 494 | fatalerror("CGA: Bus width %d not supported", buswidth); |
| 495 | 495 | break; |
| 496 | 496 | } |
| 497 | | |
| 497 | internal_pc_cga_video_start(machine); |
| 498 | 498 | cga.videoram_size = 0x4000; |
| 499 | 499 | cga.videoram = auto_alloc_array(machine, UINT8, 0x4000); |
| 500 | 500 | |
| 501 | 501 | memory_set_bankptr(machine,"bank11", cga.videoram); |
| 502 | 502 | |
| 503 | | internal_pc_cga_video_start(machine); |
| 504 | | |
| 505 | 503 | ntsc_decoder_init( machine, &s_ntsc, 8, 256 ); |
| 506 | 504 | } |
| 507 | 505 | |
| r10582 | r10583 | |
| 537 | 535 | break; |
| 538 | 536 | } |
| 539 | 537 | |
| 538 | internal_pc_cga_video_start(machine); |
| 539 | |
| 540 | 540 | cga.videoram_size = 0x8000; |
| 541 | 541 | cga.videoram = auto_alloc_array(machine, UINT8, 0x8000); |
| 542 | 542 | |
| 543 | 543 | memory_set_bankptr(machine,"bank11", cga.videoram); |
| 544 | 544 | |
| 545 | | internal_pc_cga_video_start(machine); |
| 546 | | |
| 547 | 545 | ntsc_decoder_init( machine, &s_ntsc, 8, 256 ); |
| 548 | 546 | } |
| 549 | 547 | |
| r10582 | r10583 | |
| 1764 | 1762 | |
| 1765 | 1763 | static VIDEO_START( pc1512 ) |
| 1766 | 1764 | { |
| 1767 | | cga.videoram_size = 0x10000; |
| 1768 | | cga.videoram = auto_alloc_array(machine, UINT8, 0x10000 ); |
| 1769 | | memory_set_bankptr(machine, "bank1", cga.videoram + videoram_offset[0]); |
| 1770 | | |
| 1771 | 1765 | memset( &pc1512, 0, sizeof ( pc1512 ) ); |
| 1772 | 1766 | pc1512.write = 0xf; |
| 1773 | 1767 | pc1512.read = 0; |
| 1774 | 1768 | |
| 1775 | 1769 | /* PC1512 cut-down 6845 */ |
| 1776 | 1770 | internal_pc_cga_video_start(machine); |
| 1777 | | |
| 1771 | cga.videoram_size = 0x10000; |
| 1772 | cga.videoram = auto_alloc_array(machine, UINT8, 0x10000 ); |
| 1773 | |
| 1778 | 1774 | address_space *space = cpu_get_address_space( machine->firstcpu, ADDRESS_SPACE_PROGRAM ); |
| 1779 | 1775 | address_space *io_space = cpu_get_address_space( machine->firstcpu, ADDRESS_SPACE_IO ); |
| 1780 | 1776 | |
| 1781 | 1777 | memory_install_read_bank( space, 0xb8000, 0xbbfff, 0, 0x0C000, "bank1" ); |
| 1778 | memory_set_bankptr(machine, "bank1", cga.videoram + videoram_offset[0]); |
| 1782 | 1779 | memory_install_write16_handler( space, 0xb8000, 0xbbfff, 0, 0x0C000, pc1512_videoram16le_w ); |
| 1783 | 1780 | |
| 1784 | 1781 | memory_install_read16_handler( io_space, 0x3d0, 0x3df, 0, 0, pc1512_16le_r ); |