what is union REGS

Jul 5, 2013 at 6:31pm
in am working on a detect mouse programme there is a line in that programme can anyone tell me what is this ?

 
  union REGS in, out; //REGS is a union 
Jul 5, 2013 at 8:45pm
It defines two REGS objects, in and out.
Last edited on Jul 5, 2013 at 8:46pm
Jul 5, 2013 at 9:19pm
You should look at your compiler's documentation before posting questions like this.

It is a structure to hold the values of all the 16-bit x86 hardware registers for use in functions that generate or capture hardware interrupts.
Topic archived. No new replies allowed.