Date: Mon, 25 Sep 95 13:44 MDT From: mat AT ardi DOT com (Mat Hostetter) To: ALAN L HIGHTOWER Cc: Todd Muhlfelder , djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: ASM in DJGPP References: >>>>> "ALAN" == ALAN L HIGHTOWER writes: ALAN> On Mon, 25 Sep 1995, Todd Muhlfelder wrote: >> So, I tried to do this line in DJGPP (works fine in Turbo C++): >> >> _AX = 0x0013 /* Gets into Mode 13H */ ALAN> the equivalent would be: ALAN> asm(" movw $0x13, %ax "); Correct, although you wouldn't want to actually write code like that, since it would confuse gcc's optimizer. You're not telling the compiler that %ax is modified, and gcc has no reason to preserve %ax's value after this instruction has been executed. -Mat