trunk/src/emu/video/pc_vga.c
| r18213 | r18214 | |
| 71 | 71 | struct |
| 72 | 72 | { |
| 73 | 73 | UINT8 index; |
| 74 | | UINT8 *data; |
| 74 | UINT8 data[0x100]; |
| 75 | 75 | UINT8 map_mask; |
| 76 | 76 | struct |
| 77 | 77 | { |
| r18213 | r18214 | |
| 83 | 83 | struct |
| 84 | 84 | { |
| 85 | 85 | UINT8 index; |
| 86 | | UINT8 *data; |
| 86 | UINT8 data[0x100]; |
| 87 | 87 | UINT16 horz_total; |
| 88 | 88 | UINT16 horz_disp_end; |
| 89 | 89 | /**/ UINT8 horz_blank_start; |
| r18213 | r18214 | |
| 1892 | 1892 | vga.miscellaneous_output = 0; |
| 1893 | 1893 | vga.feature_control = 0; |
| 1894 | 1894 | vga.sequencer.index = 0; |
| 1895 | | memset(vga.sequencer.data, 0, vga.svga_intf.seq_regcount * sizeof(*vga.sequencer.data)); |
| 1895 | memset(vga.sequencer.data, 0, sizeof(vga.sequencer.data)); |
| 1896 | 1896 | vga.crtc.index = 0; |
| 1897 | | memset(vga.crtc.data, 0, vga.svga_intf.crtc_regcount * sizeof(*vga.crtc.data)); |
| 1897 | memset(vga.crtc.data, 0, sizeof(vga.crtc.data)); |
| 1898 | 1898 | vga.gc.index = 0; |
| 1899 | 1899 | memset(vga.gc.latch, 0, sizeof(vga.gc.latch)); |
| 1900 | 1900 | memset(&vga.attribute, 0, sizeof(vga.attribute)); |
| r18213 | r18214 | |
| 2026 | 2026 | vga.svga_intf.seq_regcount = 0x05; |
| 2027 | 2027 | vga.svga_intf.crtc_regcount = 0x19; |
| 2028 | 2028 | |
| 2029 | | vga.memory = auto_alloc_array(machine, UINT8, vga.svga_intf.vram_size); |
| 2030 | | vga.sequencer.data = auto_alloc_array(machine, UINT8, vga.svga_intf.seq_regcount); |
| 2031 | | vga.crtc.data = auto_alloc_array(machine, UINT8, 0x100); |
| 2032 | | memset(vga.memory, '\0', vga.svga_intf.vram_size); |
| 2033 | | memset(vga.sequencer.data, '\0', vga.svga_intf.seq_regcount); |
| 2034 | | memset(vga.crtc.data, '\0', 0x100); |
| 2035 | | |
| 2029 | vga.memory = auto_alloc_array_clear(machine, UINT8, vga.svga_intf.vram_size); |
| 2036 | 2030 | pc_vga_reset(machine); |
| 2037 | 2031 | |
| 2038 | 2032 | } |
| r18213 | r18214 | |
| 2047 | 2041 | vga.svga_intf.seq_regcount = 0x08; |
| 2048 | 2042 | vga.svga_intf.crtc_regcount = 0x19; |
| 2049 | 2043 | |
| 2050 | | vga.memory = auto_alloc_array(machine, UINT8, vga.svga_intf.vram_size); |
| 2051 | | vga.sequencer.data = auto_alloc_array(machine, UINT8, vga.svga_intf.seq_regcount); |
| 2052 | | vga.crtc.data = auto_alloc_array(machine, UINT8, 0x100); |
| 2053 | | memset(vga.memory, '\0', vga.svga_intf.vram_size); |
| 2054 | | memset(vga.sequencer.data, '\0', vga.svga_intf.seq_regcount); |
| 2055 | | memset(vga.crtc.data, '\0', 0x100); |
| 2056 | | |
| 2044 | vga.memory = auto_alloc_array_clear(machine, UINT8, vga.svga_intf.vram_size); |
| 2045 | |
| 2057 | 2046 | pc_vga_reset(machine); |
| 2058 | 2047 | |
| 2059 | 2048 | } |