#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <dos.h>

#define THERE 5
#define ARE 3
#define OTHER 5
#define FISH 4
#define IN 2
#define THE 3
#define SEA 3

int i = 5;
int j = 5;
char far *uk;
union REGS in,out;
int index;

void print(char *code, int size, char attr) {
	for(index = 0; index < size; index++){
		*(uk + i*160+j*2) = code[index];
		*(uk + i*160+j*2+1) = attr;
		j++;
	}	
}

int main () {
	char There_code = { 84, 104, 101, 114, 101 };
	char are_code = { 97, 114, 101 };
	char other_code = { 111, 116, 104, 101, 114};
	char fish_code = { 102, 105, 115, 104 };
	char in_code = { 105, 110 };
	char the_code = { 116, 104, 101 };
	char sea_code = { 115, 101, 97 };
	char m1 =65;
	
	out.h.al = 2;
	in.h.al = 2;
	clrscr();
	int86(0x10,&in,&out);
	uk=(char far *)0xB8000000;
	
	print(There_code, THERE, m1);
	print(are_code, ARE, m1);
	print(other_code, OTHER, m1);
	print(fish_code, FISH, m1);
	print(in_code, IN, m1);
	print(the_code, THE, m1);
	print(sea_code, SEA, m1);
	
	getch();
	return 0;
}
