Mail Archives: djgpp/1995/09/25/16:46:10
>>>>> "ALAN" == ALAN L HIGHTOWER <alh AT engr DOT engr DOT uark DOT edu> 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
- Raw text -