I am using Turbo C and am trying to learn how to graphics and sometime within a month or two create a small asteroids-like-game. To set the video mode in DOS (You know, CGA, VGA, SVGA)
I use this code:
union REGS r;
r.h.al = mode_code;
r.h.ah = 0;
int86(0x10, &r, &r);
would put the screen in 320x200 4 color mode.
but the problem is I can't get any of the higher modes for some reason. If I did
mode(13); for 320x200 256 color mode or
mode(12); for 640x480 16 color mode, It doesn't work right, and my lines or points don't show up.
(I could also use 0x13 or 0x12 instead of 13 or 12 it doesn't make a difference)
Please help me in setting my screen to the higher modes.
I can use 0x00-0x06 without problems. Also maybe you can simply give me a new mode setting function that works.
The problem may be with Turbo C since it is so old that EGA or VGA weren't out yet but I don't know.