Link to home
Start Free TrialLog in
Avatar of Kuoster
Kuoster

asked on

Hi-Res Graphics in DOS

Could anyone tell me how do I get a screen with 640*480*256,
800*600*256 or any higher resolutions? And how do I draw(lines, circles...etc.) in them?
Avatar of 3dnowman
3dnowman

You want to get at the VESA specs, or more simply to look at the SciTech MGL API.

See:

http://www.scitechsoft.com/dp_mgl.html

you can change the screen res in dos with this code. This will change the res to 1280x1024
changeres:

mov ax,4F02h

mov bx,107h

int 0x10

RET
I am not sure how you would draw stuff in dos, I would guess the you would do it by drawing pixel by pixel.
Avatar of Kuoster

ASKER

I don't think I'd use that... ^^'
ASKER CERTIFIED SOLUTION
Avatar of laeuchli
laeuchli

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kuoster

ASKER

Problem, how do I draw in them??
You will find that any mode besides #19 (320x200x256) has the screen memory broken into blocks, not just a contigeous 64k block of memory starting at A000h like the mode 19 has. I can't say right now where these blocks are but I'll try and have a look.