Mail Archives: djgpp/1996/12/27/17:43:10
Jens Vaasjo wrote:
>
> With in-line assemly in djgpp can you assume that es==ds when
> it gets enters your inline assemly ?
yes
> Also does the es register have to be preserved (if you change es do you
> have to set it back its its original value) ?
yes, otherwise, gcc's string operations (esp strlen) won't work
> Also if you have to preserve the es register does it have to be done
> manually ("pushl %%es\n" and "popl %%es\n") or can you put something in
> the 'registers clobbered' section ("ecx" works but "es" does not)?
Manually, gcc's extended asm doesn't know about segment registers.
Bill
--
Leave others their otherness.
- Raw text -