Computer Graphics

Moderators: Sephiroth
Number of threads: 1263
Number of posts: 2665

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
starting a mode Posted by Juan_jose. on 6 Mar 2006 at 2:48 PM
Hello

I just want to know how can i star a video mode, without using any interruption (under DOS)...

Let's say i want to be able to star high resolution modes, like 640x480x32

I hope you can help me

<Juan>
Report
Re: starting a mode Posted by anthrax11 on 6 Mar 2006 at 4:23 PM
: Hello
:
: I just want to know how can i star a video mode, without using any interruption (under DOS)...
:
: Let's say i want to be able to star high resolution modes, like 640x480x32
:
: I hope you can help me
:
: <Juan>
:

I would use VESA. I have a bit of experience with it, so I think I might be able to help you. What language are you using?
Here is a page where they do it in C:
http://www.inversereality.org/tutorials/graphics%20programming/videomodesVESA.html

I pure assembly it doesnt look that messy:
mov ah,4fh ;VESA functions
mov al,2   ;Set screen mode
mov bx,112h;the number for 640*480*24
int 10h

Here is a list of the available screen modes:
http://www.oberon.ethz.ch/vesainfo.html

Nowadays, VESA is a widely used standard, so it wouldnt hurt to use it. You should look for VESA tutorials to find out about the other functions like bank swapping, double buffering etc.
Good luck!
Report
Re: starting a mode Posted by Juan_jose. on 7 Mar 2006 at 12:07 PM
Hello


Well i don't want to use VESA, i want to start a graphic mode by myself.... Without BIOS INterruptions



Linux does it... or thats what somebody told me....

Where can i get the source code that does it???


Thank you


Juan
Report
Re: starting a mode Posted by XLoom on 8 Mar 2006 at 9:22 AM
This message was edited by XLoom at 2006-3-8 9:22:29

If you don't want interrupts, you need to use ports. Check out functions inportb and outportb.

I think this place has an example http://my.execpc.com/~geezer/osd/graphics/modes.c

: Hello
:
:
: Well i don't want to use VESA, i want to start a graphic mode by myself.... Without BIOS INterruptions
:
:
:
: Linux does it... or thats what somebody told me....
:
: Where can i get the source code that does it???
:
:
: Thank you
:
:
: Juan
:






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.