home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / comm / ykh121.zip / YKHSRC.ZIP / MAKEFONT.C < prev    next >
C/C++ Source or Header  |  1993-03-27  |  416b  |  31 lines

  1. #pragma inline
  2. #include <dos.h>
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5.  
  6. unsigned fseg;
  7. unsigned foffs;
  8.  
  9. main()
  10. {
  11. FILE* outfile;
  12. unsigned char far* font;
  13.  
  14. asm push es
  15. asm push bp
  16.  
  17. asm mov ax,1130h
  18. asm mov bh,6
  19. asm int 10h
  20. asm mov fseg,es
  21. asm mov foffs,bp
  22.  
  23. asm pop bp
  24. asm pop es
  25.  
  26. font=MK_FP(fseg,foffs);
  27. outfile=fopen("R08x16.f00","wb");
  28. fwrite(font,16*256,1,outfile);
  29. fclose(outfile);
  30. }
  31.