
xdata unsigned char at 0x4000 MY_8255_BASE[4];

//MY_8255_BASE[4] represents Port-A, Port-B, Port-C & Control Registor of 8255

unsigned char *ptr_8255;

void init_8255(unsigned char control_word)
{
	ptr_8255 = MY_8255_BASE;
	*(ptr_8255 + 3) = control_word;
}

