piclist 2002\10\10\134428a >
Thread: "Mirror image" a byte
www.piclist.com/techref/index.htm?key=mirror+image+byte
flavicon
face BY : Wagner Lipnharski email (remove spam text)



Sam S Man wrote:
> Hi all
> Can anyone help improve the code below. I need a "mirror image" of a
> byte. For example b7,b6,b5,b4,b3,b2,b1,b0 will become
> b0,b1,b2,b3,b4,b5,b6,b7.... in the shortest time possible!! AND if
> possible no B and C....result in w.
>
>
> A= the file, B = the "mirror image", C=8
>
>     clrf    B
> X
>     rlf    A,f
>     rrf    b,f
>     decfsz    C,f
>     goto    X
>     goto    done


256 bytes table is the fastest possible solution.
Perhaps a 2x 16 nibbles table, but will take at least twice the 256 bytes
table time.

VV46NER

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<012c01c27084$51aecf40$9acc1b18@cfl.rr.com> 7bit

See also: www.piclist.com/techref/index.htm?key=mirror+image+byte
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) "Mirror image" a byte

month overview.

new search...