On 30 May 97, James Vahn wrote to Paul Wankadia --
JV> > It's a DOS port of the GNU compiler that relies on a stub to enter
JV> > protected mode (using DPMI). Thus, it generates code under the
JV> > assumption that all segments will be USE32...
JV> Then if it's using the 66h prefix on 32-bit registers, something is
JV> amiss. Sorry I can't be more helpful.
My fault ... I really have to (a) RTFM 1275 times and (b) give as much info
as I can the FIRST time 'round.
I was trying to use as to assemble 16-bit code, but DJGPP assumes operation
will be in a USE32 segment, thus inserting 0x66 before all 16-bit operations.
Unfortunately, being in a USE16 segment at the time of execution, all those
operations got conveniently transformed into 32-bit operations, thus
completely and utterly screwing everything to pieces. With the aid of the
magic ".code16" directive, everything and everyone's happy ...
... until I start trying to write code to move into protected mode ...
--- PPoint 2.00
---------------
* Origin: Junyer's Workshop (3:640/772.3)
|