Jspice3
loadfont.c File Reference
#include <dos.h>
Include dependency graph for loadfont.c:

Go to the source code of this file.

Functions

void load_font (int scanheight)
 

Function Documentation

void load_font ( int  scanheight)

Definition at line 11 of file loadfont.c.

15 {
16  union REGS r;
17  int mode;
18 
19  if (scanheight == 15) /* default 8X16 */ return;
20  if (scanheight == 13) /* 8X14 */ mode = 0x11;
21  else if (scanheight == 7) /* 8X8 */ mode = 0x12;
22  else return;
23  mode |= 0x1100;
24  r.x.ax = mode;
25  r.x.bx = 0;
26  int86(0x10,&r,&r);
27  /* set modified printscreen for other than 25 rows */
28  r.x.ax = 0x1200;
29  r.x.bx = 0x20;
30  int86(0x10,&r,&r);
31 }
Definition: cddefs.h:162