Simple VGA window - Need help guys, Newbie.
Code:
#include<stdio.h>
#define WHITE 0xF
void set_mode(unsigned char mode)
{
_asm mov ah,00
_asm mov al,mode
_asm int 10h
}
void pset(long x,long y,unsigned char color)
{
_asm mov ah,0ch
_asm mov al,color
_asm mov edx,x
_asm mov edx,y
_asm int 10h
}
void main(void)
{
set_mode(0x13);
pset(10,10,WHITE);
}
I put this together after looking at the star field program, on the site, how do i get my window to stay put? a loop? i have visual c++ and borland c++ , so any help is helpful :D figures.