#include "dos.h"

main()

{

//AIM : to print on the printer using BIOS

      union REGS i,o;

      char str[]="test string to be printed";

      char *s;

      for(s=str;(*s);s++)

            {

                  i.h.ah=0; //service to print the char stored in al register

                  i.h.al=*s; //char to be printed on the printer

                  int86(23,&i,&o); //INT 23 for printing

            }

  return 0;

}