I have a problem in Assembly using C++. The Problem is i ned to
display dot colors in the screen using dos.h include files. This is
the sample program already done but ned to re edit to create a ACRONYM
letters.
#include <stdio.h>
#include <dos.h>
#include <stdlib.h>
#include <conio.h>
#include <iostream.h>
int GMode()
{
union REGS regs;
regs.h.ah=0x00;
regs.h.al=0x13;
int86(0x10,®s,®s);
rand();
return 0;
}
void Tmode()
{
union REGS regs;
regs.h.ah=0x00;
regs.h.al=0x03;
int86(0x10,®s,®s);
}
int Plot (int x,int y,int color)
{
union REGS regs;
regs.h.ah=0x0c;
regs.h.al=color;
regs.x.cx=x;
regs.x.dx=y;
int86(0x10,®s,®s);
return 0;
}
int main()
{
GMode();
Plot(100,100,14);
getch();
Tmode();
return 0;
}
This program display only 1 dot, but i ned to display lots of dots
that formed letter C D in the screen. Also the color of dots should be
randomize so that the letter C D have different colors inside it. Just
use loop in the program.
I ned this program until February 6,2005 . The next day after that is
the due date of this said program. Hope this program will be finished
as fast as possible. TY |