home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!dstos3.dsto.gov.au!egg
- From: egg@dstos3.dsto.gov.au
- Newsgroups: comp.os.msdos.programmer
- Subject: Efficient byte/word mirroring request
- Message-ID: <1992Aug28.083405.164422@dstos3.dsto.gov.au>
- Date: 28 Aug 92 14:34:05 GMT
- Organization: Defence Science and Technology Organisation
- Lines: 20
-
- Does anyone know how to quickly and efficiently mirror a byte.
- ie
- 11001010 to 01010011
-
- the only way I know is this
-
- mov al,byte_to_shift
- mov cx,8
- ShiftLoop:
- rcr al
- rcl ah
- loop ShiftLoop
- mov shifted_byte,ah
-
- There must be an easier (and smarter) way to speed this up using logical
- op's perhaps ?
- Any Help appreciated.
-
- Themie Gouthas
- egg@dstos3.dsto.gov.au
-