Sunday, 15 April 2012

binary - How to implement a logical shift (to the left) by 8 bits? -


I am trying to determine how the previous 8 bits of a 16-bit (two-byte) word (i.e. byte ) Using the LC-3 instruction set to move left.

For example,

  0000 0000 1111 1111 - & gt; 1111 1111 0000 0000  

Now you understand that you are talking about LC-3, I found and referenced this presentation.

You have to implement one. There are many ways available to do this in particular.

If you understand, you will be able to do it in a straightforward manner.

No comments:

Post a Comment