Abdul
Yes you most certainly can. Here is a very basic example of how to write text to the screen, in C, without the need of an operating system.
Code:#include <dos.h> . . . void printtext(char* txt) { _AH = 0x13; /* request displayy string */ _AL = 1; /* display attr. and string and advance the cursor */ _BH = 0; /* page number */ _BL = 2; /* green on black */ _BP = txt; /* address of string to display */ _CX = sizeof(txt); /* numbers of characters in string */ _DX = 0; /* start writing the text at the top-left corner of screen */ geninterrupt(0x10); /* call the interrupt */ }




Reply With Quote