The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ArtemESC on April 08, 2006, 06:04:54 PM

Title: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 08, 2006, 06:04:54 PM
Hello
How subj. make?
Title: Re: Low-level definition of graph. video-regime...
Post by: Tedd on April 10, 2006, 10:04:52 AM
What do you mean by "graphics video regime" ?

You want to access low-level graphics hardware?
I think more words are needed :wink
(It's okay if your english is not so good, but try to explain :U)
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 12, 2006, 04:04:22 PM
>>Tedd
My English is really bad, but i try to explain...
  How set or get video-regime?
        Video-regime is screen parametrs,
                             for example: 640   480
                                               1024 768
I know what exist the BIOS function, but it allow detect and set "video" parametrs before 640: 480 only...
Title: Re: Low-level definition of graph. video-regime...
Post by: hitchhikr on April 12, 2006, 05:18:27 PM
If it's for windows: ChangeDisplaySettings()/EnumDisplaySettings().

Otherwise take a look at the VBE/VESA stuff for MSDOS.
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 12, 2006, 05:39:18 PM
>>hitchhikr 
Thanks, but i want low-level (hardware-level) access to memory...
Title: Re: Low-level definition of graph. video-regime...
Post by: hitchhikr on April 12, 2006, 06:03:52 PM
What do you want to do exactly, what kind of memory do you want to have access to and under what os ?
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 12, 2006, 06:31:33 PM
...memory... - video-memory
...os... - Really, i write os...
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 12, 2006, 06:42:30 PM
Sorry for my two previous topics - i knew what i repeated on another topic...
         
Title: Re: Low-level definition of graph. video-regime...
Post by: hitchhikr on April 12, 2006, 06:47:06 PM
http://www.delorie.com/djgpp/doc/ug/graphics/vesa.html

You may want to access the linear frame buffer via vesa, most recent gfxcards support at least the 2.0 specs i think.
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 12, 2006, 08:13:37 PM
Thanks, but ...
http://www.delorie.com/djgpp/doc/ug/graphics/vesa.html - reference is invalid...
Title: Re: Low-level definition of graph. video-regime...
Post by: BogdanOntanu on April 12, 2006, 11:33:42 PM
ArtemESC,

There is no need to double post ...
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 13, 2006, 09:46:09 AM
>> ArtemESC,
>>
>> There is no need to double post ...
    Why did i double post?
    Did you meant the (transfered)  topic in 16-bit programming?So, I asked other question...
Title: Re: Low-level definition of graph. video-regime...
Post by: Tedd on April 13, 2006, 10:25:02 AM
For Win32:
LONG ChangeDisplaySettings(LPDEVMODE  lpDevMode, DWORD dwflags);
Title: Re: Low-level definition of graph. video-regime...
Post by: ArtemESC on April 13, 2006, 02:14:49 PM
>>Tedd
     In clearly assembler... I must use hardware resource of a computer.
                       I "work" in ring 0. Please, give me a simple example or net-references...
Title: Re: Low-level definition of graph. video-regime...
Post by: Tedd on April 13, 2006, 04:36:41 PM
Then there is no easy way - each graphics device is (very!!) different.
If you only use VGA then it may be simple, but SVGA is not. VESA can help sometimes.

http://www.osdever.net/cottontail/#Video -- links to some information