Mail Archives: djgpp/1998/07/22/00:30:18
Hi i want to do the following in djgpp but i having problems is there anyone
out there that can help by perhaps offering a good tip or just a little piece
of code?
Macros that extract the segment and the offset from a far pointer (called
`FP_SEG' and `FP_OFF')
poke(0x0000, 0x010e, FP_SEG(font));
poke(0x0000, 0x010c, FP_OFF(font));
}
////////////////////////////////////////////////////
// OLDFONT //
// ReInstalls user's original font pointer //
////////////////////////////////////////////////////
void OldFont()
{
poke(0x0000, 0x010e, FP_SEG(UserFont));
poke(0x0000, 0x010c, FP_OFF(UserFont));
}
- Raw text -