RSS

task6.cpp

12 Jun

#include
#include
#include
#define UCHAR unsigned char
#define VIDEO_INT 0x10
int main(void)
{
union REGS in,out;
UCHAR h1,h2,x,y;
h1=h2=x=y=0;
for(h1=5;h1>0;h1–)
{
for(h2=0;h2<h1;h2++)
{
in.h.ah=0x02;
in.h.bh=0x00;
in.h.dh=y;
in.h.dl=x;
int86(VIDEO_INT,&in,&out);
in.h.ah=0x09;
in.h.al=0x31+h2;
in.h.bh=0x00;
in.h.bl=0x07;
in.h.ch=0x00;
in.h.cl=0x01;
int86(VIDEO_INT,&in,&out);
x+=2;
}
x=0;y++;
}
getch();
return EXIT_SUCCESS;
}

 
Leave a comment

Posted by on June 12, 2011 in C ++, Computer

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: