Previous 199869 Revisions Next

r18214 Sunday 30th September, 2012 at 15:14:01 UTC by Miodrag Milanović
some cleanup, continuing tomorrow (nw)
[src/emu/video]pc_vga.c

trunk/src/emu/video/pc_vga.c
r18213r18214
7171   struct
7272   {
7373      UINT8 index;
74      UINT8 *data;
74      UINT8 data[0x100];
7575      UINT8 map_mask;
7676      struct
7777      {
r18213r18214
8383   struct
8484   {
8585      UINT8 index;
86      UINT8 *data;
86      UINT8 data[0x100];
8787      UINT16 horz_total;
8888      UINT16 horz_disp_end;
8989/**/   UINT8 horz_blank_start;
r18213r18214
18921892   vga.miscellaneous_output = 0;
18931893   vga.feature_control = 0;
18941894   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));
18961896   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));
18981898   vga.gc.index = 0;
18991899   memset(vga.gc.latch, 0, sizeof(vga.gc.latch));
19001900   memset(&vga.attribute, 0, sizeof(vga.attribute));
r18213r18214
20262026   vga.svga_intf.seq_regcount = 0x05;
20272027   vga.svga_intf.crtc_regcount = 0x19;
20282028
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);
20362030   pc_vga_reset(machine);
20372031
20382032}
r18213r18214
20472041   vga.svga_intf.seq_regcount = 0x08;
20482042   vga.svga_intf.crtc_regcount = 0x19;
20492043
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   
20572046   pc_vga_reset(machine);
20582047
20592048}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team