line assembly help

Heamanth Kumar heamanth at rediffmail.com
Sat Jun 16 21:27:18 UTC 2001


Hello,
       I'm trying to compile some code with a small bit of assembly for byte swaping with gcc. I get linking errors. I'm new to Assembly Can any body help.
   
the code is 
   xchg(us) \
    __asm__("
        mov us,%ax
        xchg %al,%ah
        mov %ax,us 
        ");


When I call this function to swap I get a link error like 
(.text+)x8): undefined reference to 'us'

ld returned 1 exit status

Any help would be appreated..
My host is RH Linux for i386 target..

Heamanth




  

  

_____________________________________________________
Buy Lagaan & Yaadein music for 30% less.
Avail this special offer at http://shopping.rediff.com/shopping/music/offerrediffmailer.htm 






More information about the users mailing list