RSS

task3.cpp

12 Jun

#include
#include
#include
#define UCHAR unsigned char
#define VIDEO_INT 0x10
int main(void)
{
union REGS in,out;
UCHAR h1,x,y;
h1=x=y=0;
for(h1=1;h1<9;h1+=2)
{
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+h1;
in.h.bh=0x00;
in.h.bl=0x07;
in.h.ch=0x00;
in.h.cl=0x01;
int86(VIDEO_INT,&in,&out);
x=0;y+=2;
}
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: