Iris _

Pixsys Forum

everybody's effort for the same goal

Swap Byte/Word

Post Reply
user7490
Posts: 50
Joined: 21/01/2014, 8:23

Swap Byte/Word

Post by user7490 »

Buonasera

Chiedo: esiste una funzione che faccia lo Swap byte di una word ?

Grazie
Pixsys tecnico 1
Moderatore
Posts: 1662
Joined: 29/10/2010, 10:09
Contact:

Re: Swap Byte/Word

Post by Pixsys tecnico 1 »

Salve,
se il suo intento è quello di invertire l'ordine dei due byte di una word, è sufficiente usare la funzione ROL di 8 posizioni:

ROL(Word_Interessata,8)
Post Reply