Word swap bytes within halfwords : Sets $t1 to $t2 with the two bytes of each halfword exchanged, so 0xAABBCCDD becomes 0xBBAADDCC. Combined with 'rotr $t1,$t1,16' this reverses all four bytes, converting between little and big endian.
wsbh
Operands
$reg, $regVariants
- Word swap bytes within halfwords : Sets $t1 to $t2 with the two bytes of each halfword exchanged, so 0xAABBCCDD becomes 0xBBAADDCC. Combined with 'rotr $t1,$t1,16' this reverses all four bytes, converting between little and big endian. wsbh $t1,$t2
Loading...