On 03-05-12 13:27, Thomas Schatzl wrote:
...
function reverse(b : byte) : byte; assembler; nostackframe;
asm
   .long 0xe6ff0f30 // rbit r0, r0
   lsr r0, r0, #23
end;


Hi,

I've been looking a bit further at this.
I disassembled the code and this is the result :

 8000150:       e6ff0f30        rbit    r0, r0
 8000154:       ea4f 50d0       mov.w   r0, r0, lsr #23
 8000158:       46f7            mov     pc, lr

Wouldn't it be possible to do
        rbit    r0, r0, lsr #23
When reading the ARM programming manual I believe it should.

But do I gain something ?

Regards,

Koenraad Lelong.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to