assembly - LC3 Machine language -
in lc-3 machine language how can number of 16 bits left shifted n bits? if have 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 , binary numbers | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
then how can left shift 3?
because lc-3 apparently has no shift operations have yourself.
some folks dicussing lc-3 simulator , bit shift operations here http://www.asmcommunity.net/board/index.php?topic=28978.0 indicate that:
for each bit position of shift left, multiply 2 (or add if like)
hope helps.
Comments
Post a Comment