News
Documentation History Authors Cost Video links
Forums
AdvanceMAME
AdvanceMENU
AdvanceCAB
|
Documentation of the AdvanceCAB vga utility.
AdvanceCAB VGA Mode Remapper For DOS1 Synopsisvga [/l] [/u] [/a] [/c CONFIG] [/d] [/e] 2 DescriptionThe `vga' utility is a TSR (Terminate Stay Resident) VGA BIOS wrapper that substitutes the default list of VGA video modes with a list of the favorite modes which work best with your video hardware.The `vga.exe' executable can be used as a standard executable or it can also be loaded as a `sys' driver in the `config.sys' as a `device'. Please note that the `sys' version can't be unloaded. At the startup the configuration file `vga.rc', created with the utility `vgav', is read and all the modelines present are activated. The format of this configuration file is specified in the document `advv.txt'. These are some example rc files:
From all the modelines in the configuration file three of them are chosen for the standard VGA mode 1h, 3h and 13h.
All the other modelines are used to adjust any other XMode detected. When the current video mode width and height match a modeline, the modeline is automatically set. 3 OptionsThese are the command line options supported:
You can force a video mode reset in text mode using the standard DOS command:
or with the `video' utility. 4 CardsThis utility should works with any VGA compatible board.5 How It WorksThis utility intercepts all the VGA BIOS calls and if it detects a ModeSet call for a know mode it uses his version of the mode.At any call of the interrupt 08h and 21h some VGA registers are read. If a VGA mode with the size of a know modeline is detected the mode is adjusted to match the mode defined in the configuration file. The disabling of the video output works ignoring all the int 10h calls. 6 LimitationsOnly the `modelines' compatible with the vga hardware are used.The text modes can use only the pixel clocks 28.322, 25.175, 14.161 and 12.587 MHz. The graphics modes can use only the pixelclocks 14.161, 12.587, 7.080 and 6.293 MHz. 7 ExamplesLoad it:
Load it with an arbitrary configuration file:
Unload it:
Load it in the config.sys file:
Adjust the current video mode in the config.sys without loading in memory the utility:
Adjust the current video mode in the config.sys and disable all the video output:
the latter is probably the most interesting use. You can load `vga' as soon as possible to adjust the video output and prevent other programs to write to the screen. You can also use the `video' utility to load an arbitrary image to display. After the system is initialized you can insert in the autoexec.bat the command:
to reenable the video output. 8 BugsThe configuration file is checked only for the `device_video_modeline' options. All the other options are ignored.9 CopyrightThis file is Copyright (C) 2003 Andrea Mazzoleni. |