Thanks for this code, Now I have a better one...
----- Original Message -----
From: "Daniel Morais" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 4:11 AM
Subject: Re: Palm to Desktop type conversions
> 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/
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/