Mail Archives: djgpp/1994/08/08/01:59:24
> 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.)
- Raw text -