#include #define INT_10 0x010 static void (interrupt far *(OLD_10H))(); void interrupt MY_10H(void) { switch (_AH) { case 0x02: /* Set cursor pos */ _DH = 24 - _DH; _DL = 79 - _DL; break; } __emit__(0xEA, 0x0CB8, 0x181C); /* 0CB8:181C __emit__(0xEA /* Far JMP */, (FP_SEG(*OLD_10H)), (FP_OFF(*OLD_10H))); */ } void main(void) { OLD_10H = getvect(INT_10); /* Memorize it */ disable(); setvect(INT_10, MY_10H); /* Change it */ enable(); keep(0, 600); }