Mail Archives: djgpp/1998/01/06/10:14:16
farpokeb is defined as:-
extern __inline__ void farpokeb(unsigned short selector,
unsigned long offset, unsigned char value) {
__asm__ __volatile__ ("movw %w0,%%gs\n" " .byte 0x65 \n" " movb %b1,(%k2)"
: : "g" (selector), "qi" (value), "r" (offset)); }
and its relatives similarly. Which PC instructions can I prefix `byte 0x65'
to to make them operate on conventional memory? If e.g. I wanted a quick way
to compile `x &= y', where x is in conventional memory, would this work?:-
extern __inline__ void farpokeandb(unsigned short selector,
unsigned long offset, unsigned char value) {
__asm__ __volatile__ ("movw %w0,%%gs\n" " .byte 0x65 \n" " andb %b1,(%k2)"
: : "g" (selector), "qi" (value), "r" (offset)); }
- Raw text -