When I am write at DOS
tcc filename.c filename.exe
nothing happens.
#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
void StartVidScreen (void){ //320x200
}
asm{
seting the video mode screen to 320 x 200
mov ah,0
mov al,13h
int 10h
here i am trying to make the background white but its not working
mov ah,0ffh
mov al,' '
int 10h
}
void main(void)
{
StartVidScreen(); // Start Video Screen
}
As we're in VGA mode 13h, I would use the following int 10h call:
Function 10h, subfunction 10h: Sets the RGB (Red, Green, Blue) values for one of the DAC (Digital-to-Analog Converter) registers.
Inputs
So to set the background
Tested on real vintage hardware, works.