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
1
0

1

Screen mask

Program to change the shape of the mouse.
#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<graphics.h>
union REGS in,out;
struct SREGS s;
int cursor[32]={/*screen mask 16 hexa decimal no’s*/0x0000, 0x0000, 0x0000,
0x0000,0x8001,0xC003,0xE007,0xF00F, 0xF00F, 0xF00F,0xE007,0xC003,0x8001,
0x0000, 0x0000,0x0000,
/*cursor mask 16 hexa decimal no’s*/
0xFFFF,0x8001,0xFFFF,0x8001,0x4002,0x2004,0x1008,0x0810,0x0810,0x0810,0x1
008,0x2004,0x4002,0xFFFF,0x8001,0xFFFF};
void main()

{
clrscr();
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver, &gmode, "E:\tc\bgi");

in.x.ax=9;//service no for change the shape of mouse pointer
in.x.bx=0;//initial mouse x coordinate value
in.x.cx=0;//initial mouse y coordinate value
in.x.dx=(unsigned)cursor;//assign the values of screen mask and cursor mask
in to dx register.
segread(&s);//s is the variable for segment structer.
s.es=s.ds;//ds is data segment and es is extra segment.
int86x(0x33,&in,&out,&s);
in.x.ax=1;//display the mouse
int86(0x33,&in,&out);
getch();
}
Out put