Mardi 20 Mars 2001 04:39, Prashant Gupta a écrit:

> Win32 (intel) Assembler Routines...
> ;*********************
> ;
> ; INPUT: eax = source word
> ; OUTPUT: eax = output converted word
> ; Registers Destroyed : eax, ecx, edx
> (...)

Wow, do you really use this code ?

If you do, please use the following one, much shorter and faster :

Swap16 : 

xchg al, ah

Swap32 : 

xchg al, ah
rol eax , 16
xchg al, ah

Sorry to put some Intel ASM code in this forum...

-- 
Daniel Morais

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to