On Friday 05 August 2005 17:23, Sergey Plis wrote:
> Is there a way to automatically read a big endian file in bigforth as a
> little endian or I have to shuffle the bits myself? Just trying to see
> what is faster. May be it is possible to make OS do it.

Nope, the OS won't help you. You have to shuffle the bytes yourself, but 
bswap is your friend:

code bswap ax bswap next end-code macro

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/

Attachment: pgp6WLWIXa3Vg.pgp
Description: PGP signature

Reply via email to