"Question About SHR Operation in Lesson 14 - Patrick's Explanation" #14
Replies: 4 comments 10 replies
-
Thanks for pointing out that friend. I trust this will be attended to by him as soon as he is available. |
Beta Was this translation helpful? Give feedback.
-
HEY @EngrPips , when he is doing hex and dec. it is giving correct answer |
Beta Was this translation helpful? Give feedback.
-
Hey @Basha-dude, Now I understand your point, and yeah, they yield the same result because we padded with 0 from the left, so one 0b111100000 Shifting the above value two times to the right would result in 0b001111000, but moving by one bit to the right would result in 0b011110000. You would see that those two values are not the same. |
Beta Was this translation helpful? Give feedback.
-
Oh, I see, You should watch this |
Beta Was this translation helpful? Give feedback.
-
@PatrickAlphaC, in Lesson 14 - SHR, you mentioned that for the value
0x0102
in binary (0b100000010
), performing ashr 2
operation results in0b01000000.
However, in the written lesson, it is correctly stated as0b001000000
. It seems there was a mistake in the video explanation. Could you please confirm and correct this?Beta Was this translation helpful? Give feedback.
All reactions