Mail Archives: djgpp/1993/04/19/13:25:31
> 1 Which registers must be preserved in C/C++/Assembly routines
bx, si, di must be preserved.
> 2 Can I use segment pointers %es %fs & %gs (I could use a few address regs)
In general, there should be no reason to use segment registers. go32
sets up the registers to the linear mapping segments it uses and there
is no part of memory you can't access with these segments. Also, you
can't use them as general-purpose registers since the 80386 may fault
if you load them with an invalid value.
DJ
- Raw text -