Date: Sun, 7 Aug 94 23:47:24 EDT From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: pochanay AT cae DOT wisc DOT edu Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: How do I ...? Reply-To: babcock AT cfa DOT harvard DOT edu > 1) How do I get int86x to work without crashing when passing an > address to an interrupt in real-mode. The one I am having trouble with > is video interrupt 10 function 10 subfunction 12 (all hex) which > is used to set a range of DAC registers. If this function is not supported by GO32, you have to use _go32_dpmi_simulate_int to execute it in real mode. > 2) How do I get DJGPP not to pad a structure like this: > struct { > SHORT a; > LONG b; > SHORT c; > } Try something like: struct { SHORT a __attribute__ ((packed)); LONG b __attribute__ ((packed)); SHORT c __attribute__ ((packed)); } (I think I got the syntax right; I couldn't find any examples on my home machine, but I have used the packed attribute in the past.)