TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: JAMES VAHN
from: PAUL WANKADIA
date: 1997-06-03 21:10:00
subject: DJGPP, gcc et al

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.