home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
msdos
/
bbs
/
mikes30c.arc
/
CHRPUT.C
next >
Wrap
Text File
|
1985-09-25
|
520b
|
29 lines
chr_put(c) /* Put character with attribute in first 8 bits of int */
int c; /* and character in last 8 bits */
{
union REGS REG;
REG.h.ah = 0x9;
REG.h.al = c;
REG.h.bl = c >> 8;
REG.h.bh = 00;
REG.x.cx = 1;
int86(0x10, ®, ®);
return(REG.x.ax);
}
chr_get() /* Get character with attribute returns 2byte int used above */
{
union REGS REG;
REG.h.ah = 0x8;
REG.h.bh = 00;
int86(0x10, ®, ®);
return(REG.x.ax);
}