Mail Archives: djgpp/2003/07/23/02:13:53
DJ Delorie <dj AT delorie DOT com> wrote in message news:<200307221324 DOT h6MDOhLl019991 AT envy DOT delorie DOT com>...
> > But I'm wondering if there's more, for example, are there any for the
> > segment registers? Thank you.
>
> GCC doesn't generally care about segment registers, so it doesn't have
> constraints for them. The rest of the constraints are documented in
> the gcc internals doc (gccint.info) under "machine descriptions" ->
> "operand constraints"
>
> http://www.delorie.com/gnu/docs/gcc/gccint_76.html
One more quick question. Looking at the source for _farpokeb
extern __inline__ void _farpokeb(unsigned short selector, unsigned
long offset, unsigned char value)
{
__asm__ __volatile__(
"movw %w0, %%fs\n"
".byte 0x64 \n"
"movb %b1, (%k2)"
:
: "rm" (selector), "qi" (value), "r" (offset));
}
Looking at the "rm" (selector) and "movw %w0, %%fs" parts, I assume
that this allows selector to be placed directly into the fs register,
right?
Also, "qi" (value) moves value directly into al?
Thanks.
- Raw text -