Article View: comp.os.msdos.programmer
Article #1009Efficient byte/word mirroring request
From: egg
Date: Fri, 28 Aug 1992 14:34
Date: Fri, 28 Aug 1992 14:34
20 lines
756 bytes
756 bytes
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
Technical Details
Message-ID:
<1992Aug28.083405.164422@dstos3.dsto.gov.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!yoyo.aarnet.edu.au!dstos3.dsto.gov.au!eggShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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